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 are five facts about gary soto?
What is the solution to the inequality below ? Square root x <=5 A. no solution B. 0<= x <= 25 C. X <=5 D. X <=25
what is the meaning of obfuscate
A shopping cart accelerates 0.5 m/s2 when a net force of 8 N is applied to it. What is the mass of the shopping cart?
What are the steps in an experiment called
A shopping cart accelerates 0.5 m/s2 when a net force of 8 N is applied to it. What is the mass of the shopping cart?
When using the perfect tenses of verbs, it's necessary to add a/an infinitive
Explain how making a list of dos and don'ts might be helpful before making an oral presentation.
Can anyone help me solve this? What is it even asking?
0.185 to a fraction from a decimal into caltou