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
zmey [24]
3 years ago
6

Suppose that you have two different algorithms for solving a problem of size n. The first algorithm uses exactly n(log n) operat

ions and the second algorithm uses exactly n 3/2 operations. As n grows, determine which algorithm uses fewer operations?
Mathematics
1 answer:
Mumz [18]3 years ago
5 0

Answer:

Algorithm 1 uses:

n*log(n) operations.

While algorithm 2 uses:

n^(3/2) operations.

We want to see, as n grows, which algorithm uses fewer operations.

So we would want to first solve:

n*log(n) = n^(3/2)

This will give us the exact value of n such that the number of operations is the same in both algorithms.

dividing both sides by n we get:

log(n) = n^(3/2)/n = n^(3/2 - 1) = n^(1/2)

where we can use:

log(n) = ln(n)/ln(10)

ln(n) = ln(10)*n^(1/2)

This equation actually has no solutions.

This happens because the right side is always larger than the left side.

Then, the same thing happens for our two initial equations:

n^(3/2) is always larger than n*log(n), as you can see in the graph below, where n^(3/2)  is represented with the orange graph:

So we can conclude that the fist algorithm uses less operations as n grows.

You might be interested in
Can u guys help me please ?‍♀️
Over [174]

Answer:

r = 8 ft

Step-by-step explanation:

The formula for circumference of a circle is

C = 2 * pi *r

We know the circumference is 16 pi

16 pi = 2 pi r

Divide each side by 2pi

16 pi /2 pi = 2 pi r / (2pi)

8 = r

7 0
3 years ago
Is 447 a term of t(n)=24-5n ?
svetoff [14.1K]
No, i don’t believe so. but i’m not 100% sure.
8 0
3 years ago
There are 527 students enrolled at school 11% are absent today how many students are absent​
trapecia [35]

Answer:

About 58 students are absent today.

Step-by-step explanation:

11%=0.11

0.11*527=57.97

3 0
4 years ago
How could you rewrite 0.05 × 10 = 0.5 as a division equation ? explain how you know
Artist 52 [7]
First change the 0.05 to a fraction.
0.05 = 1/20
Then you have the equation:
10/20 = 0.5
5 0
3 years ago
Read 2 more answers
2 (4y + 3 + y) hellppp
Yanka [14]

Answer:

10y + 6 hope this helps :)

Step-by-step explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • The sitting unit for distance is the kilometer
    12·1 answer
  • Help me please I have the faintest clue
    13·1 answer
  • Bill at a restaurant came to $136.40 the patrons decide to leave a 15% tip what is the total bill including the tip
    5·2 answers
  • B = 73°, b = 15, c = 10
    5·1 answer
  • Point A is a representation of which number on the number line?
    6·1 answer
  • How to do this with steps please help
    5·1 answer
  • B) Find the value of 2^-3 x 3^-2
    11·2 answers
  • $43,000 at 11% for 4 years
    6·1 answer
  • Find the cardinal number for the given set.
    12·1 answer
  • Write a two-column proof in your journal, upload the image, and submit to your teacher.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!