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
DECIMALS Order least from greatest 1.2 0.12 12 0.012
earnstyle [38]

Answer:

0.012, 0.12, 1.2, 12

9.68 9.7 9.71 9.90

5 0
3 years ago
Read 2 more answers
Francine ran 3 1/2 laps around the circular track in the school gym. The track has a diameter of 1/2 miles. About how far does F
Juliette [100K]

Answer:

Francine run 5.495 miles

Step-by-step explanation:

Given :

Francine ran  3\frac{1}{2}  laps around the circular track in the school gym.

The track has a diameter of 1/2 miles.

To Find :  About how far does Francine run?

Solution :

First we need to calculate the perimeter of circular track :

Perimeter of circle :  2\pi r

Since we are given the diameter = 1/2 miles = 0.5 miles

So, Radius will be (Diameter/2) = 0.5/2 = 0.25 miles

So, The perimeter will be:

2\pi *0.25

0.5\pi

Since \pi =3.14

⇒0.5*3.14

⇒1.57

Thus the circular track is of 1.57 miles .

Since she ran   3\frac{1}{2}  = 7/2=3.5 laps

1 lap = 1.57 miles

So, 3.5 laps = 1.57*3.5 =5.495 miles .

Hence ,  Francine run 5.495 miles


6 0
3 years ago
3-6 x (3 4th dived by 3 0) 2
nadezda [96]

Step-by-step explanation:

3 - 6 x ( 3/4 ÷ 3) 2

is this the correct equation? I'll solve it as long as i have the correct equation, but unsure as to if the 3 and 0 are supposed to be a fraction, decimal or multiplied etc

7 0
3 years ago
Find the slope (2,5) and (6,2)
Drupady [299]

Answer:

slope =<u>-3</u>

            4

Step-by-step explanation:

slope = <u>y2 - y1</u>

            x2 - x1

        =<u>2 - 5</u>

          6 - 2

       = <u>-3</u>

          4

5 0
3 years ago
BRAINLIEST 20PTSSSS
Licemer1 [7]

Answer:

A,D,E

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • An arithmetic sequence is shown below. You are not given many terms of this sequence, but you do have enough to fill in the miss
    13·1 answer
  • Use the Distribtive property to answer 4(x-8)
    9·1 answer
  • Find the circumference leave the answer in terms of pi
    13·1 answer
  • A tour director collected $258 for 13 tour packages.Tour package A costs $18 and tour B costs $22. How many of each tour package
    6·1 answer
  • Mercury has an atomic number of 80. How many electrons are there in an isotope of mercury-204?
    9·2 answers
  • Evaluate the expression 2times9 pluse5times3
    9·1 answer
  • An object is launched into the air. The projectile motion of the object can be modeled using the function h(t) = –16t2 + 72t + 5
    15·2 answers
  • Please help me it this question​
    6·1 answer
  • Help me with this question
    15·1 answer
  • What is the equation of a line that has the same slope as y=7-2x and the same y-intercept as y=-7x-5
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!