Question: One algorithm takes 1 sec to execute on your machine to process a dataset of size N. You replace your machine with one that is

One algorithm takes 1 sec to execute on your machine to process a dataset of size N. You replace your machine with one that is 10 times faster. What will be the size of the dataset you can process in 1 sec, if the execution time for a dataset of size n is proportional to

a) n

b) n2

c) log n

?

Add a brief justification in addition to giving your answer.

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!