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
What are the common factors of 8 and 16
julia-pushkina [17]
The common factor of 8 and 16 are 1, 2, 4, and 8.
5 0
2 years ago
Read 2 more answers
Help pleaseeee it’s due in 27 mins
Nitella [24]

Answer:

X-intercepts: (-5,0)

Y-Intercepts: (0,2)

Step-by-step explanation:

6 0
3 years ago
Read 2 more answers
Liam sorted music albums in his collection into three genres as shown
djverab [1.8K]
BDE are the correct options
4 0
3 years ago
Granger walks 2 1/5 miles in 2/3 an hour at a constant speed.
Lorico [155]
She walks 3 3/10 mph
In 1/3 an hour she walks 2 1/5 : 2 = 11/10
4 0
3 years ago
When the sum of a number and -6 is multiplied by -3, the result is 24
Firlakuza [10]
Number = -14
(-14)+(-6)=-8
(-8)*(-3)=24
4 0
3 years ago
Read 2 more answers
Other questions:
  • Calisto Publishing Co. sells graphic novels and comics to a large retailer for $7.50 per book,
    9·1 answer
  • Why are 0.02 and 0.020 equal?
    5·1 answer
  • whats the remainder of 974 divided by 37 I'm really exhausted so this would alot of help I got a tons and tons of things to do
    11·2 answers
  • -4--7=n cual es el valor de n ​
    15·1 answer
  • Mackenzie's company reimburses her $0.75 per mile that she drives for business. If she goes on a business trip and drives a tota
    5·1 answer
  • In testing hypotheses, which of the following would be strong evidence against the null hypothesis?
    12·1 answer
  • My question is in the picture I tried to multiply -7 on both sides and got -147 I don't know if it's correct or if it's the righ
    6·2 answers
  • When sandy and allen's mother decorates the house by herself, it takes her 5 hours.When both Sandy and Allen help, the three can
    11·1 answer
  • Find 3 ratios that are equivalent to the given ratio.<br> 3/4
    8·2 answers
  • D
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!