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
How do you solve for x <br> ax=6
boyakko [2]
To find X divide Bothe side by A
4 0
3 years ago
Read 2 more answers
Pls help pls pls pls pls
alexira [117]

Answer:

B' - (3,1)

C' - (3,8)

D' - (6,-1)

Step-by-step explanation:

8 0
3 years ago
Brainliest question if you help
scoundrel [369]

Answer:

C.

Step-by-step explanation:

6 0
3 years ago
A store sells a twelve pack of markers for $20. How much does it cost for one marker?
Elenna [48]

Answer:

$1.67

Step-by-step explanation:

Take the total cost and divide by the number of markers

$20/12 =1.6666666

Since we are dealing with money we round to the nearest cent

$1.67

7 0
3 years ago
Read 2 more answers
Rhee and Pamela are two of the 5 members of a band. Every week, the band picks two members at random to play on their own for fi
frozen [14]
There is a 40% chance that Rhee and Pamela will be chosen. I got my answer by dividing 2 and 5 to get the percent. 
3 0
3 years ago
Other questions:
  • Finish the factoring: (-7y+2)(5y+3)
    8·2 answers
  • Help is needed! i really dont know that well! this is English/ Reading
    14·1 answer
  • A 2-column table has 5 rows. The first column is labeled x with entries negative 2, negative 1, 0, 1, 2. The second column is la
    13·2 answers
  • 1/4 long divison work
    6·1 answer
  • Triangle XYZ has coordinates:X (-5,-2)Y (-7,-6)Z(-3,-6). If thetriangle rotates 90° clockwise, what are the coordinates of Y’?
    13·1 answer
  • I need help on this question <br> Factor by grouping.<br> 2u^3+3u^2+14u+21
    12·1 answer
  • Find the difference:<br> 16 16
    8·1 answer
  • Please help will brainliest all please
    8·1 answer
  • Please help me with this question.
    11·1 answer
  • (25+(2×7)+3×(6-3)+2000​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!