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

Write an equation of a line PARALLEL to given line. 1. y = 4x + 6 2. -6x + y= 3 3. x + y= 9
An ecotourist in Central America and the Caribbean is most likely to? A. Avoid indigenous people. B. Explore the regions of mountains and rain forest. C. Tak
How can u find the volume of a rectangular prism using a model
Natasha is in the middle of choosing a career. Arrange her actions in the decision-making process in the correct order. Tiles Natasha decides that being an equi
PLEASE I NEED HELP ASAP!!!! Evaluate In 5 options: 0.62 0.70 1.61 1.95
a bird is flying northeast. in the same time it flies 3\8 mile east,its flies 5\6 mile north. how many miles does the bird fly east for every mile it travels no
which type of landform develops at plate boundaries where one oceanic plate descends beneath another? A. volcanic island arc B. mountian ranges formed by a bat
Using the point slope formula what is the equation of the line that passes through the points (1,5) and (0,0)?
what is the solution?? 2sin^2 x +sinx +1=0
I need help if u don't know it then keep scrolling