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
earnstyle [38]
4 years ago
15

What is the smallest value of n such that an algorithm whose running time is 100n 2 runs faster than an algorithm whose running

time is 2n on the same time.
Mathematics
1 answer:
Semmy [17]4 years ago
8 0

Answer:

n = 15

Step-by-step explanation:

For inputs of the value of n, the running time for the algorithm A is 100n^2 and that of B is 2^n.

If A is to run faster than B, 100n^2 must be smaller than 2^n.

Let's check from n = 1 to know the value of n that fits

n = 1

100(1)^2 > 2^1

100 > 2

n = 2

100(2)^2 > 2^2

400 > 4

n = 4

100(4)^2 > 2^4

1600 > 16

n = 8

100(8)^2 > 2^8

6400 > 2^8

n = 16

100(16)^2 < 2^16

25600 < 2^16

This implies that between n = 8 and 16, A starts to run faster than B

n = (8+16)/2 = 12

100(12)^2 > 2^12

14400 > 2^12

n = (12+16)/2 = 14

100(14)^2 > 2^14

19600 > 2^14

n = (14+16)/2

n = 15

100(15)^2 < 2^15

22500 < 2^15

At n= 15, A starts running faster than B

You might be interested in
If you have 5 eyes what eoul you do?​
postnew [5]

Answer:

im in to bullying, because i have 5 eyes i know it's is so problem to 5 eye but don't be affairs to people how hates you,don't be shy be positive with yourself and the people how hates you will be apologized to you.

Step-by-step explanation:

i hope its help you

5 0
3 years ago
Tangela bought 12 cans of soda for 5.40 what was the unit rate for each can of soda
ANEK [815]

Answer:

Step-by-step explanation:

So 5.40 divided by 12

3 0
3 years ago
Read 2 more answers
What are these slopes?
Nookie1986 [14]

Answer:

4. \frac{-5}{1} or -5 (It's a negative slope)

5. 0 (It's a horizontal line)

6. \frac{2}{3}

Formula: \frac{rise}{run}

4 0
2 years ago
A coordinate plane from negative 8 to 8 along the x-axis and from negative 7 to 7 along the y-axis. Which steps should be used t
sdas [7]

Answer:

see the explanation

Step-by-step explanation:

we have

y-4=\frac{1}{3}(x+2)

This is the equation of a line in point slope form

where

the point is (-2,4)

the slope is m=1/3

Remember that the formula of slope is "rise over run", where the "rise" (means change in y, up or down) and the "run" (means change in x, left or right)

so

To graph the line

1. Plot the point (–2,4).

2. From that point, count left 3 units and down 1 unit and plot a second point.

3. Draw a line through the two points

3 0
4 years ago
Read 2 more answers
Find all possible complex roots of x^4-3x^3-6x^2+8x and of x^3+10x^2+169x
mr_godi [17]
Hello,

1)
&#10;x^{4}-3x^{3}-6x^{2}+8x=x(x^3-3x^2-6x+8)

&#10;=x(x^{3}-x^{2}-2x^2+2x-8x+8)=x(x^{2}(x-1)-2x(x-1)-8(x-1))

&#10;=x(x-1)(x^2-2x-8)=x(x-1)(x^2+2x-4x-8)

&#10;=x(x-1)(x(x+2)-4(x+2))=x(x-1)(x+2)(x-4)


2)

x^{3}+10x^{2}+169x=x(x^2+10x+169)=x(x+5-12i)(x+5+12i)&#10;


3 0
4 years ago
Other questions:
  • What is 931/12 Anwser is 345
    14·1 answer
  • What is the answer of this four questions
    11·2 answers
  • Question 1
    5·2 answers
  • Would you rather live where it is constantly winter or where it is constantly summer
    12·1 answer
  • 6/2(1+2)+1-1+1-1+1-1​
    12·2 answers
  • A recent article in a university newspaper claimed that the proportion of students who commute more than miles to school is no m
    12·1 answer
  • 20<br> cm<br> 30 centimeters<br> 2. Find the area of the<br> shaded region above.
    14·1 answer
  • How to solve 8x + 7= 31 step by step
    8·2 answers
  • Help me please please please!!!
    6·2 answers
  • What is the standard form for y+2=4/5 (x+4)
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!