Question: An algorithm takes 0 . 5 ms for input size 1 0 0 . How long will it take for input size 5 0 0

An algorithm takes 0.5 ms for input size 100. How long will it take for input size 500 if the
running
time is the following (assume low-order terms are negligible)?
(a) linear
(b)O(NlogN)
(c) quadratic
(d) cubic
Select one or more:
a.(a) five times as long, or 2.5 ms
b.(d)12 times as long, or 6 ms
c.(a)10 times as long, or 25 ms ,
d.(c)25 times as long, or 12.5 ms
e.(d)125 times as long, or 62.5 ms
f.(b) slightly more than five times as long
An algorithm takes 0 . 5 ms for input size 1 0 0

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!