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]
3 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]3 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
Find the point B on AC such that the ratio of AB to BC is 2:3
Virty [35]

Answer:

B(4, - 3 )

Step-by-step explanation:

We have A(2, - 7) and C(7, 3 )

Using the section formula to calculate the coordinates of B

x_{B} = \frac{3(2)+2(7)}{2+3} = \frac{6+14}{5} = \frac{20}{5} = 4

y_{B} = \frac{3(-7)+2(3)}{2+3} = \frac{-21+6}{5} = \frac{-15}{5} = - 3

Hence B(4, - 3 )

3 0
3 years ago
If g(x) = x^2 - 4 find g (5) A. 6 B. 14 C. 21 D. 29​
Marrrta [24]
C.21

5^2-4=21


Explanation
3 0
3 years ago
Read 2 more answers
What is the greatest common factor of 3 and 27?
Drupady [299]

Answer:

3

Step-by-step explanation:

because 3 is the only number that goes into both 3 and 27

8 0
3 years ago
Read 2 more answers
The product of a number and twice that number is 180000, write the multiplication problem
ElenaW [278]
Six hundred times 300 equals 180,000
3 0
4 years ago
Read 2 more answers
Teresa bought 16 roses for $20.64. How much did she pay for each rose
jeka94
Roses: 16
Total Cost: $20.64

Divide:
$20.64 ÷ 16
=  $1.29

Each Rose cost $1.29

Hope This Helped! :3
6 0
4 years ago
Read 2 more answers
Other questions:
  • Which statement is true? Use the diagram to answer.
    13·1 answer
  • PLEASE HELP ASAP!!! Will give brainliest!
    9·1 answer
  • What is the answer to 5 squared
    10·2 answers
  • Which city is lovated in the state that had the greater increase in population from 1890 to 1990
    9·2 answers
  • Round to nearest tenth 8 divided by 6.403
    11·2 answers
  • How many glasses like the one shown can be filled three-quarters full from the pitcher holding 150 cubic inches of water? Assume
    10·1 answer
  • Retion number are numbers that can be written as fraction or_____​
    7·1 answer
  • What is 2^4 in standard form?
    7·1 answer
  • What is 5/10 + 8/100
    12·1 answer
  • Let k(w)= w+3/w+9. Find k^-1(-4)
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!