Question: Suppose an algorithm takes five seconds to handle a data set of 1,000 records. Fill in the following table, which shows the approximate growth of
Suppose an algorithm takes five seconds to handle a data set of 1,000 records. Fill in the following table, which shows the approximate growth of the execution times depending on the complexity of the algorithm.

For example, because 3,0002/1,0002 = 9, the algorithm would take nine times as long, or 45 seconds, to handle a data set of 3,000 records.
O(n) O(n?) o(n) O(n log(n) O(2") 1,000 5 5 2,000 3,000 45 10,000 5.
Step by Step Solution
3.50 Rating (170 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
