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
The price of a phone is decreased by 20% and now is $141.6 <br> Find the original price.<br> = $
Paraphin [41]

the answer of it is $2 the original price

8 0
2 years ago
Which steps will translate f(x) = 3x to g(x) = 3x + 1 + 4? Shift f(x) = 3x one unit up and four units to the right. Shift f(x) =
taurus [48]

Answer: 3x one unit to the left and four units up.

Step-by-step explanation: I took the quiz and made an 100 !!!! :)

8 0
3 years ago
Read 2 more answers
A classroom board is 54 inches wide and 36 inches tall. Eva
Lady bird [3.3K]
<h3>Answer:  180 inches</h3>

Work Shown:

L = 54 = length

W = 36 = width

P = 2(L+W) ... perimeter of the rectangle

P = 2(54+36)

P = 2(90)

P = 180

She needs 180 inches of ribbon.

To convert to feet, divide by 12. So 180 inches = 180/12 = 15 feet.

8 0
1 year ago
How many minutes will it take five people to stack 250 chairs if each person can stack 20 chairs a minute
maria [59]
250/5 = 50.....so each person is stacking 50 chairs...

50/20 = 2.5 minutes....so it takes each person 2.5 minutes to stack 50 chairs.

so ur answer is 2.5 minutes
8 0
3 years ago
Read 2 more answers
Help me with this....After drawing a histogram....How do u find the class in which the median lies in a histogram....​
Ann [662]

Answer:

Get all the values of the histogram and put them in order:

For example 2,5,7,1,7,3  becomes 1,2,3,5,7,7 and then you get the middle number, which is in this case (3+5)/2=3.5

Then see which of the readings lie on 3.5.

Step-by-step explanation:

5 0
2 years ago
Other questions:
  • Please help me with this question
    5·1 answer
  • Complete the conditional statement. If -2a &gt; 6, then _____. a &gt; 3 a &lt; 3 a &lt; -3 a &gt; -3
    6·1 answer
  • The width of a rectangular box is 8in. The height is one fifth the length x. The volume is 640 in^3 (inches cubed). What is the
    15·1 answer
  • Which of the following is true?
    12·1 answer
  • A sporting goods store manager was selling a ski set for a certain price. The manager offered the markdowns shown below, making
    6·1 answer
  • Gavin and Jim share some money in a ratio of 1:3 gavin gets £15 how much did Jim get
    14·1 answer
  • Calculate the area of a circle with radius of 3.5 (1dp) please help
    7·1 answer
  • Question two plz :)
    15·2 answers
  • Convert the following quinary numbers into decimal numbers.
    13·1 answer
  • Fatima has a car detailing service. She charges $15.00 for a vacuum,
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!