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

Fill in the information missing in the table to the right by selecting the appropriate answer from the drop-down menu. Carbo- hydrates Nucleic Proteins Acids A
"The World on Turtle's Back" is a creation myth because it focuses on characters whom the Iroquois considered "gods." is an Iroquoian story about people and ani
The points (-2, 6) and (3, __ ) are data values of an inverse variation. Fill in the missing value.
What are some differences between animal and plant cells? What are some similarities?
arrange the given decimal by ascending 2.0342, 2.3042, 2.3104, 2.4​
What is the value of z?
Bobby bought a new tablet.He made an initial payment of $75 to the store, and he will pay $15 each month until the tablet is paid off. Witch equation represents
A line has a slope of negative 3 and a y-intercept of 3 what is the x intercept of the line​
Solve for x. 0.5x + 0.7 = −0.75
What organization was not created during the war years?