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
Read a system of equations to describe the situation below solve using illumination and fill in the blanks
Lana71 [14]

System of Equations

Let:

x = number of people that can be seated at a table

y = number of people that can be seated at a booth

The first plan consists of 23 tables and 10 booths and then 228 people could be seated, thus:

23x + 10y = 228

The second plan consists of 12 tables and 12 booths and that way 180 people could be seated, thus:

12x + 12y = 180

The method of elimination requires equating the coefficients of one variable and eliminating it by adding the equations.

Multiply the first equation by 12:

276x + 120y = 2736

Multiply the second equation by -23:

-276x - 276y = -4140

Add the last two equations (the variable x cancels out):

120y - 276y = 2736 - 4140

Simplifying:

-156y = -1404

Dividing by -156:

y = -1404/(-156)

y = 9

Substitute this value in the first equation:

23x + 10(9) = 228

Operate:

23x + 90 = 228

Subtract 90:

23x = 138

Divide by 23:

x = 138/23

x = 6

Every table can seat 6 people, and every booth can seat 9 people

4 0
1 year ago
What is the volume of a sphere with surface area of 25 pi yd squared?
kherson [118]

\bf \textit{surface area of a sphere}\\\\ SA=4\pi r^2~~ \begin{cases} r=radius\\ \cline{1-1} SA=25\pi \end{cases}\implies 25\pi =4\pi r^2 \\\\\\ \cfrac{25\pi }{4\pi }=r^2\implies \cfrac{25}{4}=r^2\implies \sqrt{\cfrac{25}{4}}=r\implies \cfrac{\sqrt{25}}{\sqrt{4}}=r\implies \cfrac{5}{2}=r \\\\[-0.35em] ~\dotfill

\bf \textit{volume of a sphere}\\\\ V=\cfrac{4\pi r^3}{3}\qquad \qquad \implies V=\cfrac{4\pi \left( \frac{5}{2} \right)^3}{3}\implies V=\cfrac{4\pi \cdot \frac{125}{8}}{3}\implies V=\cfrac{\frac{500\pi }{8}}{~~\frac{3}{1}~~} \\\\\\ V=\cfrac{500\pi }{8}\cdot \cfrac{1}{3}\implies V=\cfrac{500\pi }{24}\implies V=\cfrac{125\pi }{6}\implies V\approx 65.45

7 0
3 years ago
Cos A+cosB+CosC=1+4sinA/2*sinB/2*sinC/2
Scrat [10]
Socratic use det app
5 0
3 years ago
How to make a graph of an exponential function that shows exponential decay and has a y intercept of 2
Sliva [168]

Answer:

f(x)=2e^{-kx}

in a graph the x value at the y intercept is 0

f(x)=Ae^{-kx}  is a typical decay function

if x = 0  thus e^{-kx} = 1

so at 0 the function value would be A

f(x)=2e^{-kx}

Step-by-step explanation:

6 0
3 years ago
B2+4 <br> when b =3<br><br> help me please !!!!
Vadim26 [7]

Answer:

10

Step-by-step explanation:

P.s. Coefficient always goes before the variable

= 2b + 4

= 2(3) + 4    Substitute b for 3

= 6 + 4

= 10

8 0
2 years ago
Read 2 more answers
Other questions:
  • In a high school, 7% of the students play the piano. This is 21 students. Choose the expressions that complete each step involve
    11·1 answer
  • What are three integers that do not all have the same sign that have a sum of -20. Write three integers that do not all have the
    6·1 answer
  • Please tell me the final answer and process
    10·1 answer
  • Please help me with my question!!
    9·2 answers
  • Isaac and Shonda can rent a canoe for $12 per hour and a mountain bike for $9 per hour. Together, they have $138 to spend. Let c
    9·2 answers
  • Write the following linear function in slope intercept form.
    9·1 answer
  • Answer the questions for BRAINLIEST (EASY)<br><br> A.<br> B.<br> C.
    9·2 answers
  • This is probably easy but I zoned out in class so yeah
    9·1 answer
  • Write the first five terms of the sequence defined by the given formula
    14·1 answer
  • Which expression does NOT have a Greatest Common Factor?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!