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

besides mining for gold, list two ways people made money during the gold rush
PLEASE HELP I WILL GIVE ALL DA POINTS. Imagine you are working for the U.S. branch of a Chinese trading company. This trading company mainly trades Chinese trad
PLEASE HELP ME ASAP
Need help with this continuity problem.
Andrew Jackson image as what's candídate gained him the presidency in 1828?
How many Joules will be lost by 150 g of water if it is cooled from 90oC to 5oC?
Prince Henry the Navigator promoted the study of navigation and sponsored several voyages along Africa's west coast. What country was Henry the Navigator from?
Determine the rate law, including the values of the orders and rate law constant, for the following reaction using the experimental data provided. A + B yields
Does this graph represent a function? Why or why not? A. No, because it fails the vertical line test. B. No, because it is not a straight line. C. Yes, because
n is m% of what? pls answer asap thx!