Question: Algorithm x programmed by an ace programmer runs in time 2 . 5 n 4 + 3 n 3 + 1 . 4 n +

Algorithm x programmed by an "ace programmer" runs in time 2.5n4+3n3+1.4n+2 for inputs of size n
3 points
in the worst case. Another algorithm Y programmed by a novice for the same problem runsin time 2000n+10000 for inputs of size n in the worst case.
Please select the correct answers
For inputs of size 2,x is much faster than Y.
Algorithm x is going to be much faster than Y for all inputs.
Algorithm x runs in time (n4)
Algorithm Y runs in time O(n2)
Algorithm Y is asymptotically faster than x.
It is possible for some input of size 100 that algorithm x is faster than algorithm Y
 Algorithm x programmed by an "ace programmer" runs in time 2.5n4+3n3+1.4n+2

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 Databases Questions!