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
Each year Lizzie’s school purchases student agenda books, which are sold in the school store. This year, the school purchased 35
Stells [14]

The school can charge $7.54 for each agenda book.

Step-by-step explanation:

Given,

Purchase price of 350 books = $1137.50

Profit they want to make = $1500

Total amount = 1137.50 + 1500 = $2637.50

Therefore;

The school must sell 350 books for $2637.50

Thus,

350 books = 2637.50 dollars

1 book = \frac{2637.50}{350}

1 book = $7.535

Rounding off to nearest cent

1 book = $7.54

The school can charge $7.54 for each agenda book.

Keywords: addition, division

Learn more about addition at:

  • brainly.com/question/10666510
  • brainly.com/question/10699220

#LearnwithBrainly

5 0
3 years ago
Will give brainliest to correct answer
nordsb [41]

Answer:

The answer is b

Step-by-step explanation:

6 0
2 years ago
Read 2 more answers
Identify the domain of the function shown in the graph .
lilavasa [31]

Answer:

Option B

Step-by-step explanation:

Domain of a function is the set of x-values or input values.

Similarly, Range of a function is the set of y-values of output values.

From the graph attached,

Function is defined for all x-values (For all real numbers).

Therefore, domain of the function is {x | x ∈ R}

Option B will be the answer.

4 0
3 years ago
My dog is 113cm tall how many meters tall is my dog? (Hint: 1m=100cm (hint: 1 m=100cm
Llana [10]

Answer:

Your dog will be 1.13 meters tall

7 0
3 years ago
I really need help with this
Ivenika [448]

A line is infinitely long but is only one-dimensional.

A solid is three-dimensional but not infinite.

Geometric space is infinite but is three-dimensional.

So, that leaves a plane, which is two-dimensional and infinitely large. The answer is A plane!

5 0
3 years ago
Other questions:
  • NEED DONE ASAP. IT'S 12AM AND I WANNA GET THIS DONE SO I CAN SLEEP..
    13·1 answer
  • Richard has enrolled in a 401(k) savings plan. He intends to deposit $250 each month; his employer does not contribute to his ac
    14·1 answer
  • the midpoint of [KL] is (-8, 1). one endpoint is K(-6, 5). find the coordinates of the other endpoint L
    9·1 answer
  • 1.) A 20° sector in a circle has an area of 21.5π yd².
    9·1 answer
  • There are 34 balls in a bucket. The balls are numbered from 1 to 34. One ball is randomly selected from the bucket. What is the
    14·2 answers
  • What is an equation of the line that passes through the points (1, 2) and (2, -1)?
    12·1 answer
  • Four less than the product of 7 and a number is equal to 8 Use the variable b for unknown number
    9·1 answer
  • The recursive rule for a sequence and one of the specific terms is given. Find the position of the given
    7·1 answer
  • Solve the following equation:<br> 1-31 x 8 = x<br> X =
    11·2 answers
  • Systems of equations with graphing
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!