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
Nathan had an infection, and his doctor wanted him to take penicillin. Because Nathan’s father and paternal grandfather were all
Art [367]
Nathan has an infection and he needs to be treated with penicillin
But there’s a 75% probability of him being allergic to penicillin
And to test if the skin reacts to penicillin, the test is 98% accuracy
So even if he has the allergy the test is only 98% accurate of identifying the allergy
Therefore we are asked to find the probability of both these events happening
Event 1 and event 2 both should happen then. When the ‘and’ function is used in probabilities then the probabilities of both events happening should be multiplied
Therefore probability that Nathan has the allergy and test predicts it is
= 75% x 98% = 0.735
The answer is D. 0.735
6 0
3 years ago
Please could someone help
Morgarella [4.7K]
1. Simplify= xy^3
2. Factorise= (2x+1)(2x-1)
3. 
4. 
5. Estimate= 415.96
6. Highest Common Factor
70= -70,-35,-14,-10,-7,-5,-2,-1,1,2,5,7,10,14,35,70
98= -98,-49,-14,-7,-2,-1,1,2,7,14,49,98
7. Expand: 4-4x+x^2 Simplify: x^2-4x+4
8. 
9. This is actually the easiest you take both the mass and volume and divide them :) which would be 500g<span>÷25cm^3=20g/cm3 </span>
10. 

The ones I didn't answer I am not sure about and don't wanna give you any wrong answers :) Hope I helped though!
7 0
3 years ago
The time spent watching television in hours on a daily basis of eight different people was used to create the box plot shown abo
kozerog [31]

a time watching television d

7 0
2 years ago
What number makes the equation true? 25-6=7+4+?
lora16 [44]
The answer is 8, I hoped I helped you!
5 0
3 years ago
Solve for p in the literal equation 7p + 9r = 9.<br> p =
ExtremeBDS [4]

Answer:

       p = -7

Step-by-step explanation:

7p + 9r = 9

      -9    -9

      7p = 0

      -7     -7

        p = -7

     

4 0
3 years ago
Other questions:
  • 1/2 to the nearest present
    9·1 answer
  • What is the answer to the question
    10·1 answer
  • 6000 is blank as 600
    5·2 answers
  • Angle c is inscribed in circle O. AB is a diameter of circle O. what is the radius of circle.​
    7·1 answer
  • Malik considers the enlargement of the trapezoid
    14·1 answer
  • ASAP ASAP ASAP NEED HELP NEED HELP PLSSSSSSSSS
    8·1 answer
  • Simipified the exprestion -1.7+(-6.3).On the test when maureen simipified the exression she got -4.6. What mistake did maureen l
    5·1 answer
  • Marcelo can select from 2 types of oranges and 3 types of peaches. If he randomly selects 1 orange and 1 peach, how many possibl
    15·1 answer
  • HELP PLS MIGHT GIVE BRAINLIST ONLY OF TWO PEOPLE ANSWER!
    10·1 answer
  • Fr 33 points for all! Enjoy it
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!