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
Jason and Marc each bought a new video game for 40$.
lilavasa [31]
Turn the percentage into a decimal and then multiply. Don’t forget to multiply the percentage with the decimal.
3 0
3 years ago
Mikayla caught a value pack of crackers for $6.72. The value pack had 24 individually wrapped crackers packages. Solve 24x = $6.
Licemer1 [7]

Answer:

0.28$

Step-by-step explanation:

divide

7 0
3 years ago
What is the equation of the line that passes through (0, 3) and (7, 0)?
r-ruslan [8.4K]
The answer should be (C):y=(-3/7)x+3 because:

 if you use the slope formula: (Y2-Y1)/(X2-X1) it would look like this:

(0-3)/(7-0) and the slope of the line would be -3/7

then using the slope you just found, plug it into the y=mx+b equation along with one set of coordinates to find b (the y-intercept):

y=mx+b
0=(-3/7)(7)+b
b=3

SO, overall if you put the slope (m) and the y-intercept (b) that you found together, you get the line formula of y=(-3/7)+3 

5 0
3 years ago
Pls explain your answer
spayn [35]

Yo sup??

this is of the form called slope and point... hence

y-11=-4(x+2)

therefore the correct answer is option A

Hope this helps

8 0
3 years ago
Factors of 6:factors of 7:
Olenka [21]
6: 1,3,2,6
7: 1,7
Factors of 6 are 1,3,2,6 because 1x6 (6x1) and 3x2. (2x3)

Factors of 7 are 1,7 because seven is a odd number so you can only multiply it by one and itself. (1x7 or 7x1)
6 0
3 years ago
Other questions:
  • True or false A ratio shows a relationship between like values
    14·1 answer
  • Choose the correct simplification of (5x3 − 5x − 8) + (2x3 + 4x + 2).
    13·2 answers
  • The number of school buses needed to transport students on a field trip is given by the function f(x) = x/40. What if the domain
    6·1 answer
  • Express the first number as a percentage of the second number. 29 pounds of recyclable trash in a barrel of 53 pounds of trash.
    14·1 answer
  • Which of the following is a composite number?
    13·2 answers
  • 4÷(-2) how do I figure this out
    7·1 answer
  • giselle pays $210 in advance on her account at the athletic club. each time she uses the club, $15 is deducted from the account.
    10·2 answers
  • Sandy purchases her college books for the upcoming semester. She has to pay $98
    9·2 answers
  • A.) A $135 pair of shoes is on sale for 40% off. If the sales tax is 8%, what is the final price of the shoes? The shoes will co
    6·1 answer
  • PLS HELP ASAP
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!