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

Consider the dot plot which shows the distribution of data collected on the number of pets at home. Which statement BEST describes the center of the data colle
Identify what kind of thinker you are and your strengths and weaknesses 5-10 sentences
How much heat is required to increase the temperature of 35.0 grams of water from 10.0°C to 45.0°C? (The specific heat of water is 4.18 J/g°C)
The divisions of psychology listed by the apa today gives a clear indication of the:
hey can you please help me posted picture of question
Using the figure shown, what is the value of Y?
Leon sees a poster that shows a lake in front of a snow-capped mountain. The mountain appears upside down in the lake. Which best explains why the image of the
A mixture contains 40 ounces of glycol and water and it is 10% glycol the mixture is to be strengthened to 25% by adding glycol how much glycol is in the origin
Which kind of front brings rainy or snowy weather that lasts a very long time?
How do darwin finches illistrate the thoery of natural selection