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]
3 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]3 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
Amanda's earnings vary directly with the number of hours she works. Suppose that she worked 9 hours yesterday and earned 117. ho
alina1380 [7]

Answer:

91

Step-by-step explanation:

117/9 is 13 which means she earns 13 for each hour and for 7 hours it will be 13 multiply by 7 and that gives 91

6 0
3 years ago
Rewrite the equation using the properties of exponents. <br><br> <img src="https://tex.z-dn.net/?f=%5Csqrt%5B3%5D%7B81y%5E7%7D"
nekit [7.7K]

Answer:

3y^2 3√3y(end route) if you are simplifying, and (81y^7)^1/3 if you are rewriting it.

Step-by-step:

I know this!

3 0
3 years ago
the red line and the blue line trains just arrived at station when will they next arrive at the station at the same time
Whitepunk [10]
They will meet back up in 40 minutes because 8x5=40 and 10x4=40 which 40 is both a multple of 8 and 10 so you're welcome
4 0
3 years ago
What is the exponent of 10? <br><br> (Thank you for helping!)
Lemur [1.5K]

Answer:

exponent is 0

Step-by-step explanation:

8 0
2 years ago
Can someone please answer this for brainlist pls.
o-na [289]

Answer:

If your answer is linear, I would suggests: 1,2,4 maybe there's another one but I'm confident about those though. Hopefully I helped you with my options.

Step-by-step explanation:

8 0
3 years ago
Other questions:
  • When using order of operations to simplify expressions
    5·1 answer
  • Please help and thank you!
    13·1 answer
  • There 6 entrances to the haunted house. If you do not exit the same way you entered, how many different ways can you enter and e
    14·2 answers
  • How many solutions will the following equation have? 25=20x-4x^2
    11·1 answer
  • Solve each equation. Check your solution 2/5g=3/5
    7·2 answers
  • Margie's car can go 32 miles on a gallon of gas, and gas currently costs $4 per gallon. How many miles can Margie drive on $20 w
    12·1 answer
  • You know that 125 is a composite number because it is divisible by ___. A. 2 B. 3 C. 5 D. 7
    11·2 answers
  • Please help me with this question
    12·2 answers
  • A swordfish can swim at a rate of 260 yards per hour how many feet per hour is this
    9·1 answer
  • What percent of 950 is 2​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!