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]
2 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]2 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
According to Okun's law, if the unemployment rate goes from 7% to 4%, what
tatyana61 [14]

Answer:

Step-by-step explanation:

6 0
2 years ago
Read 2 more answers
Which of the following expressions is/are equivalent to 16x + 8-2?
sasho [114]
B. 24x2 is the correct answer
8 0
2 years ago
Use the figure to write and solve an equation for x
Lera25 [3.4K]
The answer is 6 :)))
5 0
3 years ago
Help in dying please​
Mkey [24]

Answer:

hello! :) i hope your having a wonderful day :)

Step-by-step explanation:

7 0
2 years ago
Emma bought a carpet for $40. Later that carpet was marked down by 20%. By how much has the value been decreased?​
Gnoma [55]
By 8. 20 percent of 40 is 8. :)
5 0
2 years ago
Read 2 more answers
Other questions:
  • brian buys bikes to resell. he applies a mark up of 15%. write two expressions to represent the selling price. let (b) represent
    12·1 answer
  • PLEASE HELP! WILL MARK BRAINLIEST!
    7·1 answer
  • PLEASE HELP ME !!!!!!!!!!!!
    8·1 answer
  • 5.) You deposit $5000 into an account compounded annually for 8
    7·1 answer
  • Can someone please help?
    8·2 answers
  • What is the solution set of fx x>-5) u {xx<5)?
    7·1 answer
  • Find the exact values of the remaining five trigonometric functions of o satisfying the given conditions.
    5·1 answer
  • A group of friends were working on a student film that had a budget of $900. They used 87% of their budget on costumes. How much
    8·1 answer
  • Please help Fr pleased I’m begging you
    12·1 answer
  • The DVD player has lost some popularity with the increase of streaming videos. In order to decrease their inventory of DVD playe
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!