Question: Suppose the running times of an algorithm for inputs of size (1,000,2,000), 3,000, and 4,000 are 5 seconds, 20 seconds, 45 seconds, and 80 seconds,
Suppose the running times of an algorithm for inputs of size \(1,000,2,000\), 3,000, and 4,000 are 5 seconds, 20 seconds, 45 seconds, and 80 seconds, respectively. Estimate how long it will take to solve a problem of size 5,000. Is the algorithm linear, linearithmic, quadratic, cubic, or exponential?
Step by Step Solution
★★★★★
3.27 Rating (153 Votes )
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
From the given data we can see that the running times of the algorithm for inputs of size 1000 2000 ... View full answer
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
