Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8623391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:16:09+00:00 2026-06-12T07:16:09+00:00

I was going through this page related to dynamic programming. I am a big

  • 0

I was going through this page related to dynamic programming. I am a big confused about the complexity given

enter image description here

Here in the third case the complexity is given as $O(n^2)$. I am not sure how it came to be that. Can anyone please elaborate. How the complexities were calculated here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T07:16:10+00:00Added an answer on June 12, 2026 at 7:16 am

    If i and j are both free to range from 1 to n, I can see n^2 subproblems by thinking about holding i fixed at 1 while ranging j from 1-n. Then do the same for all values of i 1-n. But the picture and set notation seem to imply j > i (a contiguous, unique set) so I think that makes it a bit confusing. I’m imagining i=2, j=1… could it be x2, x3 (interpreting j as the number of x’s we want starting at 2?) or x2, x1 (interpreting j as the index)….

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am going through this tutorial about PDO and have come to the point
Yesterday while going through this question, I found a curious case of passing and
Trying to learn a bit about PDO and is going through this tutorial .
I'm going through the w3cschools XSLT tutorial, and I am at this page: xsl-if
I have been going through this page to install zend framework on my machine
I was going through this article : http://www.ajaxline.com/32-tips-to-speed-up-your-mysql-queries at point#4 , it states :
I am going through this tutorial , but I already had Ruby 1.8.7 installed.
I am going through this document and this is what I gathered. <Esc> Escape
I was going through this sample package which Google has provided with it's sdk.
While going through some tutorials, I have encountered lines such as this: ((IDisposable)foo).Dispose(); Ignore

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.