Question: 8. A program with running time (nn) takes 4 ms for an input of size 100. How much time will be needed for this program

 8. A program with running time (nn) takes 4 ms for

8. A program with running time (nn) takes 4 ms for an input of size 100. How much time will be needed for this program to solve an instance of size 1600? In general, how many times the running time will increase when the size is increased 16 times? Show your calculations. 9. What is the complexity ? count = 0; For i = 1 to n do For p = 1 to 3 do For k = 1 to i do count = count +1; end for loops

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!