Question: a) Consider a computer which can execute one million instructions per second irrespective of the type of instruction. Each column in the table below gives

 a) Consider a computer which can execute one million instructions per

a) Consider a computer which can execute one million instructions per second irrespective of the type of instruction. Each column in the table below gives a number of instructions for some algorithm as a function of the input size n. Fill in the table with the running time required to execute each algorithm on inputs of size n = 10, 20, 50, 100. Give your answer in seconds, minutes, hours, days, or years as appropriate. (Keep in mind that the age of the universe is around 1.38 x 10 years!) n n log (n) n' 2" n! n = 10 n = 20 n = 50 n = 100

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!