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
After a 13% price reduction, a boat sold for $25,230. What was the boat's price before the reduction? (Round to the nearest cent
sashaice [31]

Answer:

The boat's price before the reduction was $ 29,000.

Step-by-step explanation:

Given that after a 13% price reduction, a boat sold for $ 25,230, to determine what was the boat's price before the reduction, the following calculation must be performed:

100 - 13 = 87

87 = 25230

100 = X

100 x 25 230/87 = X

2523000/87 = X

29000 = X

Therefore, the boat's price before the reduction was $ 29,000.

4 0
3 years ago
Help? Please I don’t get this
Veseljchak [2.6K]
Volume = pi x radius squared x height
v=3pixr^2x3
v=27pi
7 0
3 years ago
Kwasi has earned $60 in babysitting money. He spends 40% of this money buying drinks for himself and two friends at Starbucks. H
mart [117]

Answer: Yes

Step-by-step explanation:

Given

Kwasi earned \$60 in babysitting

He spends 40% of the money in buying drinks

Money spend is given by

\Rightarrow 60\times 40\%\\\Rightarrow \$24\\\text{Remaining amount is}\\\Rightarrow 60-24=\$36

So, Kwasi has enough money left to buy a skateboard.

3 0
3 years ago
Algebra 1. please help me. i’m literally struggling , i’ll give an extra 50 points if it’s right and brainliest. - question in p
Arada [10]

Answer:

15x² - 3x - 7

Step-by-step explanation:

(12x² + 2x) - (-3x²+ 5x + 7)

First open the parentheses by applying the distributive property.

To do this, multiply each term you have inside (-3x⅔ + 5x + 7) by -1.

Thus, you would have the following:

12x² + 2x + 3x² - 5x - 7

Add like terms

12x² + 3x² + 2x - 5x - 7

15x² - 3x - 7

6 0
3 years ago
Can someone plz help me with this
Ronch [10]
The line is right in the middle of 100 and 110 degrees so the answer should be 105 degrees. This tool is called a protractor. :)
3 0
3 years ago
Read 2 more answers
Other questions:
  • If sin9theta=1 find the value of theta 13 points will be marked as brainliest
    12·1 answer
  • Y varies inversely as x . When x=2, y=48. Find y when x=5
    8·1 answer
  • What is the volume of the square pyramid with base edges 18 m and slant height 15 m?
    8·1 answer
  • 2. An 82 kg man on a diving board drops from rest 3.0 m above the surface of the water
    10·1 answer
  • a square and rectangle are shown below the width of the rectangle is the same length at a side of the square both represented by
    11·1 answer
  • A line segment has end points at (-3, -5) and (4, 1). What is it’s length?
    7·1 answer
  • The chart below shows how many newspapers each person stacked.
    10·1 answer
  • Russ tosses a fair coin <br> 40<br> times. The coin lands on heads
    15·1 answer
  • F(x)=-3+|x-11| reflection across the Y axis
    9·1 answer
  • 5 points6) In a clothes bag there are 3 green socks (G), 2 blue socks (B), and 1 redsock (R). One sock is taken out of the bag a
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!