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
Plss help asap :) <br><br><br> (if your reading this I hope you have a great day!)
Alika [10]
Neither.

Parallel lines have the same slope.
Perpendicular lines have negative reciprocal slopes.

Rewriting the 2nd equation to solve for y,
You get:

Y=1/5x + 1/2

The first equation slope is negative, and the second is positive. However, the second slope is 1/5, and not 5/1 - which would be the negative reciprocal of (-1/5)from the first equation.

Hope that helps!
8 0
3 years ago
Malia is booking train tickets for her family. Tickets cost $75 per adult, $50 per senior or per person between the ages of 12 a
soldi70 [24.7K]

Answer:235$

Step-by-step explanation:

8 0
3 years ago
The variance of a stock's returns can be calculated as the:
Tamiku [17]

Answer:

The correct option is b.

Step-by-step explanation:

The formula for standard deviation is

\sigma^2=\frac{\sum {(x-\overline{x})^2}}{n}

where, \overline{x} is mean of the data and n is number of observation.

The variance of a stock's returns can be calculated by the above formula.

Variance of stock's returns is the average value of squared deviations from the mean.

Therefore the correct option is b.

4 0
3 years ago
The area of a square is 484 square inches. How long is each side?
hodyreva [135]

Answer:

\sqrt{484} =22

Step-by-step explanation:

8 0
2 years ago
Read 2 more answers
What’s (3b-5c)(2x+5y) squared
lukranit [14]
Answer: In your problem, you said that they are squared. However, it is not written as squared. We just have to multiply them.

We can use the FOIL method.

(3b - 5c)(3x + 5y)

6bx + 15by - 10cx - 25cy

There are no like terms, so that expression is our final answer.
8 0
3 years ago
Other questions:
  • A drama club sells tickets to a performance. The cost is $1 for each adult and students are free.
    11·1 answer
  • What is the answer to John bought a video game on sale for $35. The original price of the game was 3 times that amount. John als
    13·1 answer
  • A quadrilateral has vertices A(11, -7), B(9, -4), C(11, -1), and D(13, -4).
    10·2 answers
  • I need help on this question.
    12·1 answer
  • Why you should record a 1 in the tens column when you regroup in an addition problem
    8·2 answers
  • What are the solutions of x^2-4x-9=29
    15·2 answers
  • Graph the piecewise-defined function.
    11·1 answer
  • Consider random samples of size 50 from a population with proportion 0.35.
    11·1 answer
  • Please help <br> don’t give any fake links pls
    14·1 answer
  • Y=1/2(x+8)+3 please show work also write in y=mx+b
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!