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 causes a civilization to become powerful
1. Manufacturing Process Incorporation plan to produce a new ergonomic chair. Before the company starts producing this chair they need to determine the producti
This has to do with music
Identify the current Supreme Court justices and their general political learnings
Read the following paragraph and answer the question. 1George Washington was born on February 22, 1732, in Westmoreland County, Virginia. 2Contrary to popular b
order these from least to greatest 6. 6/25,6.17,5.171,25/4​
A constant current is sent through a helical coil. the coil a.tends to get shorter explain. b.tends to get longer c.tends to rotate about its axis d.produces ze
x+2y=4 -x-2y=-4the solutions ​
My answer is b, is this right
Please can you show me how to do this please