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
Guys I need help, this is so important for my grade
Dmitrij [34]

Answer:

For Part C) use numbers 1 2 3 4.

Step-by-step explanation:

8 0
3 years ago
Does anyone know this and can help please
adelina 88 [10]

Answer:

\frac{y^7z^3}{x}

Step-by-step explanation:

When variables have negative exponents, switch their positions.

\frac{x^{-1}y^7}{z^{-3}}=\frac{y^7z^3}{x}

5 0
2 years ago
What is true regarding two adjacent arcs created by two<br> intersecting diameters?
Juli2301 [7.4K]

Given:

Two diameters intersect each other.

To find:

The correct statement regarding two adjacent arcs created by two  intersecting diameters.

Solution:

We know that, two diameter intersect each other at origin and measure of arc is equal to the corresponding angle generated by the intersection of diameters.

If two lines intersect each other then we get 4 angles and sum of any two adjacent angles is 180°.

It means the sum of any two adjacent central angles generated by the intersection of diameters is 180°.

So, the sum of two adjacent arcs created by two  intersecting diameters is 180°.

Therefore, the correct option is C.

7 0
2 years ago
A cyclist travels 15km due north and then 18 km due east. How far is she from the starting point?​
zavuch27 [327]

Answer:

DONT KNOW SRY

Step-by-step explanation:

8 0
2 years ago
Staph the inequality and plot a point in the solution set. Explain how you know the point is a solution.
seropon [69]

Answer:

The points when graphed are: (3,0) and (0,-5)

Step-by-step explanation:

I know that these points are a solution to the graph because it has one x value and one y value that stays constant.

For an example, if we used an X and Y table we could see that each variable has one other variable.

This is how it look like when graphed:

8 0
3 years ago
Other questions:
  • John is making punch. How many cups of 50% juice should he add to a drink that contains 10% juice if he wants to make 15 cups of
    8·1 answer
  • A box of photographs contains 13 wedding photographs 4 vacation photographs and 8 holiday photographs one is randomly selected w
    6·1 answer
  • The Zoo charges $14 per visit for non-members. To become a member of the Zoo you will be charged a $36 one-time fee $2 per visit
    9·1 answer
  • Solve each equation using the quadratic formula. 4x^2-13x+3
    15·2 answers
  • Solve for x in simplest form.<br>14 = 1/3(8x + 6)​
    12·1 answer
  • Hi I was a little confused on dilation can anyone help me (will mark Brainly)
    14·1 answer
  • A student earns $11.75 per hour of gardening. if the student worked 21 hours a month then how much did they earn?
    13·2 answers
  • Solve for f(-1)<br><br> f(x)=-3x +3<br><br> f(-1)=?
    5·1 answer
  • **PLS HELP! IT WOULD HELP A LOT, AND ILL GIVE BRAINLIEST!**
    10·2 answers
  • How many cups for raisins should the hikers have used if they had w cups of peanuts? 3 cups of peanuts? 5 cups of peanuts? Expla
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!