Question: Say you write a program that take O ( n 2 ) ( quadratic ) time to execute. You run it on an empty data

Say you write a program that take O(n2)(quadratic) time to execute. You run it on an empty data set and it takes 300ms to run. You run it on a data set of size 1000 and it takes 500ms and for a data set of size 2000 it takes 1.1s. How long would you expect it to run for a data set of 8000?

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