944,082 Members | Top Members by Rank

Ad:
Sep 18th, 2004
0

Confusion about Algorithm Analysis Problem.

Expand Post »
Quote ...
The Algorithm A is the correct algorithm to solve problem Y.

For each n, A requires N^2 time on all inputs of size n. What can you conclude about the upper bound and lower bound for problem Y
.....

I think I know how to do this maybe. An algorithm A is O(f(n)) means thats... if the input is of size n then the algorithm will stop after f(n) time.

so in the problem O(f(n)) = n^2

So shouldn't the upper bound be the same as any other algorithm that runs at O(n^2)). And lower bound?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
garg is offline Offline
14 posts
since Aug 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Computer Science Forum Timeline: Integrated Development Environment (IDE) Usability Survey
Next Thread in Computer Science Forum Timeline: Need help in understanding Round Robin!!! Please help!!!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC