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
Lucas has five buttons in a container. Each button is a different shape. There is a star, an oval, a hexagon, a circle, and a he
Readme [11.4K]
Part A: There are five buttons in all in all in the given item. The item above can be answered through the fundamental principles of counting. 

There are 5 items to choose from during the first pick. Because the shape can be returned and picked again, there are also 5 items to choose from in the second pick. Multiplying them,
                               n = 5 x 5 = 25
Therefore, the sample size for the compound event is equal to 25.

Part B: The same concept can be used in this part of the item; however, instead of 5 there are 6 buttons to choose from.
                              n = 6 x 6 = 36

Hence, the sample size of this picking process is 36. 
7 0
4 years ago
Read 2 more answers
Mary sells fruit with four of her friends. If the earnings are divided evenly, how
nignag [31]

\qquad\qquad\huge\underline{{\sf Answer}}♨

Let the total money earned be x

since each of them get equal share, therefore :

\qquad \tt \dashrightarrow \:5 \times 30 = x

\qquad \tt \dashrightarrow \:x =  \$150

And here, we used <u>Total earning</u> as the variable in the problem ~

So, correct choice is D

5 0
2 years ago
Read 2 more answers
L 3.3.3 Quiz: Square Roots
DaniilM [7]
The square roots of 289 are 17 and -17, so answers DE and OF. Hope this helps:)
4 0
3 years ago
1. Six more than four times a number is eighteen.<br> What is the number?
saw5 [17]

Answer:

3

Step-by-step explanation:

1. Write out the equation

  • 6 + 4x = 18

2. Subtract 6 from each side

  • 4x = 12

3. Divide by 4 on each side

  • x = 3
4 0
4 years ago
Simplify 4x((3x)3-9x+15)<br>​
Marianna [84]

Answer:

60x

Step-by-step explanation:

5 0
3 years ago
Other questions:
  • Anybody have the correct answer for me?
    9·2 answers
  • Can anyone help us on this question
    15·1 answer
  • The surface area (SA) of a cube with a as the length of each of its sides is given by the formula SA=6a^2 If the surface area is
    11·2 answers
  • Combine like terms <br> 9j+34j
    12·2 answers
  • if an airplane consumes 30.25 gallons of fuel in 2.8 hours of flying how many gallons will it consume and 4.3 hours of flying?​
    7·1 answer
  • If f (x) = x-3, f (3)=
    14·2 answers
  • Then, list at least three
    8·1 answer
  • Change 15:00 to 12 hour clock time using a.m. and p.m.
    11·2 answers
  • I need help on this question 7 - (-19) - 18 + (-19) + 18
    14·2 answers
  • The net of a square pyramid is shown in the diagram. What is the total surface area of the pyramid in square feet?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!