A program has runtime proportional to (log n)7 where n is the input size. Suppose we run the program with input size 10 and the runtime is 35 ms. What will the new runtime be in seconds when we increase the input size to ten billion?.
Runtime of a program proportional to (logn)7 where n is the input size
considering base 10
Given Input Size n is 10 and Runtime is 35 ms
when we increase input n to 10 billion(1010)
We calculated Constant K=0.035 and Given input n=1010
When we increase the input to 10 billion run time is 350000 seconds
Get Answers For Free
Most questions answered within 1 hours.