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 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
Time in seconds
Explain why the runtime cannot be exponential: of the form Tn c
n
for some constant
c
Suppose the runtime is polynomial: of the form Tn cnk
for some constants c and
k Estimate k as well as possible.
Based on this estimation,
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
