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
natulia [17]
3 years ago
5

uppose that we have a function with a constant amount of work done in initialization, a call to a log-linearsorting algorithm, a

nd a loop that iterates n times, doing a linear amount of work in each iteration.What is the running time of the algorithm
Mathematics
1 answer:
White raven [17]3 years ago
7 0

Answer:

The running time is quadratic (O(n²) )

Step-by-step explanation:

For the set up, we have a constant running time of C. The, a log-linearsorting is called, thus, its execution time, denoted by T(n),  is O(n*log(n)). Then, we call n times a linear iteration, with a running time of an+b, for certain constants a and b, thus, the running time of the algorithm is

C + T(n) + n*(a*n+b) = an²+bn + T + C

Since T(n) is O(n*log(n)) and n² is asymptotically bigger than n*log(n), then the running time of the algorith is quadratic, therefore, it is O(n²).

You might be interested in
The absolute value function fx = - x -3​
Ira Lisetskai [31]

Answer:

All real numbers less than or equal to

Step-by-step explanation:

4 0
3 years ago
The area of a rectangle is 256.5m.  If the length is 18m what is the perimeter of the rectangle?
irga5000 [103]
The area of a rectangle equals length times height. (A=LH)

A=256.5 L=18

Plugging in the numbers into the equation, you get 256.5=18H. (like I substituted the numbers in)

next if you divided both sides by 18, it will cancel out the 18 in the 18H side of the equation.

So, it is 256.5/18 equaling H

256.5 divided by 18 is... 14.25

That means the height is 14.25 an the length is 18.

the perimeter is all of the sides added together. in a rectangle, the sides opposite each other are the same.

So you have two sides that are 14.25 and two that are 18 meters long.

14.25+14.25+18+18 equals the perimeter then.

So the answer would be... 64.5!
5 0
3 years ago
Read 2 more answers
-18x+2x-15x+23x-12x-4x <br> Combine like terms
Helga [31]
Combine like terms =75x
4 0
3 years ago
Read 2 more answers
Bananas cost $2 a bunch and apples cost $0.75 each. If “b” represents the number of bunches of bananas and “a” represents the nu
dangina [55]

Answer: 2b + 0.75a

Step-by-step explanation:

6 0
3 years ago
What is 2+2=? Math question
jeka57 [31]

Answer:

4

Step-by-step explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • What is the decimal of 1/3
    12·2 answers
  • A department store sold 51 51 shirts one day. All short-sleeved shirts cost $14.00 $ 14.00 each and all long-sleeved shirts cost
    8·1 answer
  • Which measurement is equivalent to 80 cm?<br><br> 8,000 mm<br> 0.8 m<br> 0.08 km<br> 8 m
    5·2 answers
  • May someone please help me with this question
    11·1 answer
  • Find the missing length
    9·1 answer
  • Find the coordinates of the point where the lines with equations y=x and y=-6 intersect
    10·1 answer
  • Domain And Range, Best answer will get brainliest
    10·1 answer
  • A bookstore had 81 copies of a magazine, Yesterday the bookstore sold 7/9 of these copies. How many copies were sold yesterday?​
    11·2 answers
  • Which trig ratio? Can you solve this??
    7·1 answer
  • What is the solution to w - 9 1/2 = 15<br>24 1/2<br>6 1/2<br>23 1/2<br>5 1/2​
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!