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

Horizontal _____ has produced folded rocks in the earth's crust.​
Some like to walk around the edge of the rock on the ground. Others climb to the top, though some people do not think they should do so. They believe that climb
If a bike rider slows from 7.0m/s to 2.0m/s in 4.90s, what is the bike riders acceleration?
by word of mouth; spoken rather than written
The following text is an example of which fallacy or rhetorical ploy? I skipped going to the dentist last year and didn’t have any cavities when I went in yeste
Someone please help me
a school musical soild 353 tickets. $5 for adults and $3.50 for students. the school made $1500 how many adult tickets were sold how many student tickets​
Being more involved in your community and engaging in actions that positively impact others is referred to as: a. Moral development b. Civic engagement c. Perso
Around election time, some people will say that a vote for a third party is a “throw away vote”. why might this be a prevalent belief? Do you think this is an a
-d=-13/3 what does d equal