maisonsuperman8475 maisonsuperman8475
  • 25-06-2020
  • Computers and Technology
contestada

3) An algorithm has a run time of O(nk ) for some integer k. On an input of size 500, the algorithm takes 16 seconds to run. On an input of size 750, the algorithm takes 81 seconds to run. What is the value of k?

Respuesta :

ogbe2k3
ogbe2k3 ogbe2k3
  • 25-06-2020

Answer:

The value of k is 4

Explanation:

Solution

Given that:

k = integer

Input size = 500

The algorithm takes a run of = 16 seconds

Input size = 750

The algorithm takes a run of = 81 seconds

Now,

We have to determine the value of k

The equation is shown below:

(500)^k /16 = (750) ^k /81

Thus

(750/500)^ k = 81/16

= (3/2)^k

=(3/2)^ 4

k is = 4

Answer Link

Otras preguntas

I just need help understanding it so I can do the next one
is gold one of the transition elements
What is the value of the ratio of the surface area to the volume of the right prism? A. 1.4 B. 1.07 C. 0.94 D. 0.7
Derive the equation of the parabola with a focus at (−5, 5) and a directrix of y = -1 f(x) = −1/12 (x − 5)2 + 2 f(x) = 1/12 (x − 5)2 + 2 f(x) = −1/12 (x + 5)
Convert 15 years to seconds
Negative six over seven minus three over five ( symplify)
Why is it dark at night?
If the divisor is 40 what is the least 3 digit dividend that would give the remainder of 4
Four- fifteenths of the airlines flight are international. The airlines flights are equally divided around 8 countries . If the airline has 1,800 flights in a
In the short story "the lottery", from what object is the lottery drawn