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

What is the purpose of writing a reflective essay? A) to describe an amusing event in the writer’s life as if it were a short story B) to provide information on
can someone help me please
Benny recorded the eye color and hair-color people walking the shopping mall based on the results of his survey what is experimental probability that a person w
How do large food particles enter an amoeba
Why did Thomas Jefferson refer to the election of 1800 as the “Revolution of 1800”?
What is the first step in the five-step process for preparing a speech? A. practice your speech B. gather information for your speech C. select an appropriat
Does natural selection operate on individuals or populations
can a triangle have two right angles? Explan?
A student solved this problem by making a table. Jason has $160. Liam has $120. In how many years will they both have the same amount of money if Jason save
Can i get sum help wit the last prob plz