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
What is the growth factor associated with the following growth rate: 30% decrease
fenix001 [56]

Given:

Growth rate = 30% decrease

To find:

The growth factor associated with the given growth rate.

Solution:

The general exponential function is:

y=a(1+r)^x

y=a(b)^x

Where, a is the initial value, r is the growth rate in decimal and b=1+r is the growth factor.

It is given that the growth rate is 30% decrease. So,

r=-30\%

r=-\dfrac{30}{100}

r=-0.3

Now,

b=1+r

b=1+(-0.3)

b=1-0.3

b=0.7

Therefore, the growth factor is 0.7.

5 0
2 years ago
Please help on the fraction question
lana66690 [7]
Im pretty sure the answer is 10. Hope this helped.

7 0
3 years ago
Read 2 more answers
Which equation best describes the pattern in the table below?
mash [69]
If i looked at this correctly i believe the answer would be c
4 0
3 years ago
Write an equation of the line that passes through (5,9) and is perpendicular to the line y=-1/3x+1
777dan777 [17]
Perpendicular = opposite sign and reciprocal slope
Slope would be 3
Y = 3x + b, plug in point
9 = 3(5) + b, b = -6
Solution: y = 3x - 6
7 0
2 years ago
Jackie bicycles 9 kilometers west to get from her house to school. After school, she bicycles 12 kilometers north to her friend
klemol [59]
Answer:

21 kilometers!

Explanation: You add the two distances she rode her bicycle and add them together. 9+12 = 21kilometers!
8 0
3 years ago
Other questions:
  • if you put down 15% on a $9000 car and pay monthly payments of $189.40 for 48 months , what is the total price of the car?
    14·1 answer
  • BRAINLIESTT ASAP! PLEASE HELP ME :)
    15·2 answers
  • 6th grade math help me, please. :)
    12·1 answer
  • Find the lcm of 5,,6,7​
    14·1 answer
  • The weight of a box of chocolates is 2.2 pounds. After taking out 75% of the chocolates, the remaining chocolates and the box we
    10·1 answer
  • Pls help me with thid
    8·2 answers
  • PLZZZ HELP ME ITS DUE TODAY AT 11:59, HELPPPP
    11·2 answers
  • Help me do this work
    11·1 answer
  • Can a wheel make 72 revolutions per minute
    9·1 answer
  • Find the value of xxx in the isosceles triangle shown below. Choose 1 answer: Choose 1 answer: (Choice A) A x = 20x=20x, equals,
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!