1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Vika [28.1K]
2 years ago
5

What is the effect in the time required to solve a prob- lem when you double the size of the input from n to 2n, assuming that t

he number of milliseconds the algorithm uses to solve the problem with input size n is each of these function? [Express your answer in the simplest form pos- sible, either as a ratio or a difference. Your answer may be a function of n or a constant.]
A. log n
B. log log n
C. 100 n
D. n log n
E. n2
F. n3
G. 2n
Mathematics
1 answer:
Inga [223]2 years ago
5 0

Answer:

f(2n)-f(n)=log2

b.lg(lg2+lgn)-lglgn

c. f(2n)/f(n)=2

d.2nlg2+nlgn

e.f(2n)/(n)=4

f.f(2n)/f(n)=8

g. f(2n)/f(n)=2

Step-by-step explanation:

What is the effect in the time required to solve a prob- lem when you double the size of the input from n to 2n, assuming that the number of milliseconds the algorithm uses to solve the problem with input size n is each of these function? [Express your answer in the simplest form pos- sible, either as a ratio or a difference. Your answer may be a function of n or a constant.]

from a

f(n)=logn

f(2n)=lg(2n)

f(2n)-f(n)=log2n-logn

lo(2*n)=lg2+lgn-lgn

f(2n)-f(n)=lg2+lgn-lgn

f(2n)-f(n)=log2

2.f(n)=lglgn

F(2n)=lglg2n

f(2n)-f(n)=lglg2n-lglgn

lg2n=lg2+lgn

lg(lg2+lgn)-lglgn

3.f(n)=100n

f(2n)=100(2n)

f(2n)/f(n)=200n/100n

f(2n)/f(n)=2

the time will double

4.f(n)=nlgn

f(2n)=2nlg2n

f(2n)-f(n)=2nlg2n-nlgn

f(2n)-f(n)=2n(lg2+lgn)-nlgn

2nLg2+2nlgn-nlgn

2nlg2+nlgn

5.we shall look for the ratio

f(n)=n^2

f(2n)=2n^2

f(2n)/(n)=2n^2/n^2

f(2n)/(n)=4n^2/n^2

f(2n)/(n)=4

the time will be times 4 the initial tiote tat ratio are used because it will be easier to calculate and compare

6.n^3

f(n)=n^3

f(2n)=(2n)^3

f(2n)/f(n)=(2n)^3/n^3

f(2n)/f(n)=8

the ratio will be times 8 the initial

7.2n

f(n)=2n

f(2n)=2(2n)

f(2n)/f(n)=2(2n)/2n

f(2n)/f(n)=2

You might be interested in
What is the sum 2 2/3 + 1 1/2?
erastova [34]

Answer:

4 1/6, 25/6, 4.167

Step-by-step explanation:

I'm dumb

5 0
3 years ago
Read 2 more answers
Is the answer 3, 4, 5, or 6? need answer asap please! :)
-BARSIC- [3]
Don't touch the center. It is already even. 
Start anywhere by connecting a dotted line from one vertex to the next. To keep things so we know what we are talking about, go clockwise. Now you have 2 points that are Eulerized that were not before.

Skip and edge and do the same thing to the next two vertices. Those two become eulerized. Skip an edge and do the last 2.

Let's try to describe this better. Start at any vertex and number them 1 to 6 clockwise.
Join 1 to 2 
Join 3 to 4
Join 5 to 6

I think 3 is the minimum.
3 <<<< answer
4 0
3 years ago
3) Slope = 4, passing through (-1,5)<br> Slope
Nonamiya [84]
Be more specific boo xxo
7 0
3 years ago
Read 2 more answers
An airplane travels at a constant speed of 300 miles per hour. How far, in miles, will the airplane travel in 20 minutes?​
Strike441 [17]

Answer:

100 miles in 20 minutes.

Step-by-step explanation:

300/60 = x/20

x = 300/60 * 20

x = 100

7 0
2 years ago
What’s the equation for “The price of a video game system plus 9% sales tax”
jek_recluse [69]

Answer:


Step-by-step explanation:

let <em>t = </em>total, <em>p = origional price.</em>

tax<em>= p(.09) </em>

t+tax= final price.


5 0
2 years ago
Other questions:
  • The quotient of j and 8" can be expressed as:
    11·1 answer
  • Ana runs 3/4 miles in 6 minutes or 1/10 hour. What is her spores in miles per hour?
    6·1 answer
  • John's parents ask him to eat 75% of the brussels sprouts on his plate at dinner. John eats 9 brussels sprouts. How many brussel
    8·1 answer
  • Someone please help me asap,
    9·1 answer
  • Zeke and Jay run a 220 yard dash, and jay wins the race by 10 yds. If Jay runs the race and 30 seconds What is the rate of each
    11·1 answer
  • If f(x) = 6(9)^x then f(1/2) =?
    9·1 answer
  • What is the measure of angle DBA?
    14·2 answers
  • What is 8690 rounded off to the neareset hundred?<br>am just asking​
    5·2 answers
  • there are 864 students in a ninth grade class. there are 48 more boys than girls. how many boys are are there?
    9·1 answer
  • Brandon was playing a video game where he scores three points for each treasure he finds. If he found 32 treasures on the first
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!