Suppose the running times of an algorithm for inputs of size (1,000,2,000), 3,000, and 4,000 are 5

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, respectively. Estimate how long it will take to solve a problem of size 5,000. Is the algorithm linear, linearithmic, quadratic, cubic, or exponential?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: