Question: Exercise 2 . We collected data on the running time of a program on inputs of various sizes and got the following results: Size of

Exercise 2. We collected data on the running time of a program on inputs of various sizes and
got the following results:
Size of the input n 501002004008001600
Time in seconds 0.170.742.6911.0244.66178.5
1. Explain why the runtime cannot be exponential: of the form T(n) c
n
for some constant
c >1?
2. Suppose the runtime is polynomial: of the form T(n) cnk
for some constants c >0 and
k >=1. Estimate k as well as possible.
3. Based on this estimation,

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!