lucygarduno7268 lucygarduno7268
  • 03-09-2019
  • Computers and Technology
contestada

Which is the lowest Complexity"

A. (n) * 2n

B. (n2) * n

C. n2

D.nlog(n)

E. 3n

Respuesta :

Branta Branta
  • 06-09-2019

Answer:

E. 3n

Explanation:

Of the options given, 3n represents the lowest complexity = O(3n). Since O(constant * n) is the same as O(n) this represents linear complexity.

All other given options represent a complexity higher than linear complexity.

  • (n) * 2n > O(n)
  • (n2) * n > O(n)
  • n^2 > O(n)
  • nlogn > O(n)

This is because quadratic complexity and log-linear complexity are higher than linear.

Answer Link

Otras preguntas

If you wanted to know the location of a vehicle that ran out of gas after taking a zigzag route through the city, which quantity would be most useful? a. the ve
What is the missing number? 7/18= 21/? A.3 B.32 C.44 D.54
please help 14 points
What are the coordinates of the midpoint segment joining the points A(-3,-4) and B(4,2)
Solve the inequality 2(x - 5) - 7x < -25
A worker's income is increased in the ratio 36:30.find the increase per cent​
PLEASE ANSWER SOON I HAVE LITTLE TO NO TIME LEFT I WILL GIVE BRAINLY PLSS the volume of a balloon varies directly with the temperature (in degrees kalvin)of the
Plzzzzzzzzzz help me as fast as possible What are polysaccharides? proteins carbohydrates amino acids small biomolecules
can u please answer the questionsssss
Number 9.) A car is driving at 90 miles per hour. What is its speed in feet per second? Roynd your answer to the nearest whole number