Question: Question 1 ( 3 0 points ) Answer the following questions. All running times refer to the worst - case analysis. 1 ) Abby came

Question 1(30 points) Answer the following questions. All running times refer to the worst-case analysis.
1) Abby came up with an algorithm for some problem that runs in time \Theta (n2 log ( n )), and Bill came up
with an algorithm for the same problem that runs in time o (n2 log ( n )). Based on this information,
which one would you choose? Why?
2) Abby tells you that a certain algorithm runs in time O ( n 3+200 n ), and Bill tells you that the same
algorithm runs in time ( n3). Can both Abby and Bill be correct? Why?
3) Abby tells you that a certain algorithm runs in time ( n2+200 n ), and Bill tells you that the same
algorithm runs in time ( n3). Assume that both statements are correct, which one is more
informative, i.e., gives you a better estimation of the running time? Why?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!