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
Kennedy wants to use an internet site to sell his gmae system. the website will charge him a fee that will be deducted from the
EleoNora [17]
We want to find 9.5% of $50.

First put 9.5% in decimal form. 9.5% = 0.095.

Then multiply 0.095 by 50. 50 * 0.095 = $4.75 fee

The money Kennedy will recieve is going to be 50 dollars minus the $4.75 fee.

50 - 4.75 = $45.25 with the fee subtracted

4 0
3 years ago
I want to give them away!!!!
zhuklara [117]

Answer:

but why? Im just curious lol. but thanks! ^^

Step-by-step explanation:

8 0
3 years ago
Can someone please help me? if you can explain please...
weqwewe [10]
C= pi•diameter. If the dinner plate's diameter is 7 inches, then multiply 7 times pi, 3.14. 7•3.14= 21.98. So, the answer for the first question is B, 22. :) 

For the second question, it is asking for the answer in terms of pi. Since the diameter is 6, divide 6 by 2 to get the radius. (A=pi•radius squared) 6 divided by 2 is 3. Now, square 3. which gives you 9. Since the answer has to be in terms of pi, the answer is B. ;) 
7 0
3 years ago
Read 2 more answers
What is the solution set of the equation using the quadratic formula?
oee [108]

(1)

we are given

x^2+6x+10=0

we can use quadratic formula

\mathrm{For\:a\:quadratic\:equation\:of\:the\:form\:}ax^2+bx+c=0\mathrm{\:the\:solutions\:are\:}

x=\frac{-b\pm \sqrt{b^2-4ac}}{2a}

now, we can compare and find a , b and c

we get

a=1,b=6,c=10

now, we can plug these values into quadratic formula

x=\frac{-6\pm \sqrt{6^2-4(1)(10)}}{2(1)}

x=\frac{-6+\sqrt{6^2-4\cdot \:1\cdot \:10}}{2\cdot \:1}

we can simplify it

x=-3+i

x=\frac{-6-\sqrt{6^2-4\cdot \:1\cdot \:10}}{2\cdot \:1}

x=-3-i

so, we will get solution

{−3+i, −3−i}.........Answer

(2)

we are given equation as

x^2-8x+14=0

Since, Jamal solve this equation by completing square

so, firstly we will move constant term on right side

so,  subtract both sides by 14

x^2-8x+14-14=0-14

x^2-8x=-14

we can write

-8x=-2\times 4\times x

so, we will add both sides by 4^2

x^2-8x+4^2=-14+4^2

we get

x^2-8x+16=-14+16..............Answer


4 0
3 years ago
Your food costs are $1700. Your total food sales are $2890. What percent of your food sales do the food costs represents?
nadezda [96]
I agree with you, and since you got the right answer, you would know why.
1700/2890 ≈ 0.5882 = 58.82%

However, usually, you should write about 58.82% as it isn't exactly 58.82

Updated: sorry 'write' not right... :(
4 0
3 years ago
Other questions:
  • 9+4 third power x (20 -8) divided by 2+6
    7·1 answer
  • a driver starts his parked car and within 5 seconds reaches a speed of 60km/h as he travels east. what is his acceleration
    11·2 answers
  • Help pleasee someone?
    14·2 answers
  • Find the slope of the line that goes through (-1,2) and (-1,9)
    6·1 answer
  • What is the value of the expression below?
    11·2 answers
  • The ages of three cousins are consecutive even whole numbers. The sum of the youngest and oldest ages is 16. How old is the olde
    9·2 answers
  • The measure of an angle is nineteen times the measure of a supplementary angle. what is the measure of each angle?
    8·1 answer
  • Pls explain this to me!!
    6·1 answer
  • Consider right triangle MNO below which expression represents the length of side MN
    8·1 answer
  • Anyone knows the answer?! ​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!