Question: On my machine, a certain O ( n 2 ) sorting algorithm takes one second to sort 1 0 0 0 random items. Sorting 1

On my machine, a certain O(n2) sorting algorithm takes one second to sort 1000 random items. Sorting 100,000 random items can be expected to take:
1-2 minutes
10-15 minutes
2-3 hours
about one day
almost one year

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 Databases Questions!