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

PLEASE HELPP!! Which of the following most accurately describes the function of a vaccine? A A vaccine benefits a person who has just begun to show signs of
What is the difference between the monetary base and the monetary supply?
compound sentence fast please
True or False? A mechanical wave needs a medium to transfer energy. True False
plz help with this 5th one
The plantation system in the Southern Colonies led to.A: Catholics being sent away to other ColoniesB: Military conflicts between the ColoniesC: laws that prote
Identifying the true consequences or outcomes based on the evidence, is adopting a ___________ perspective.
Sofa is a comfortable _______for three or two people
The graph of y = f(x) is shown below. Determine the value of x when f(x) = -4? ? y 10 9 8 7 6 5 ur 4 3 NO C 2 1 X -10 -9 -8 -7 -6 -5 -4 1 2 3 4 -2 -1 -1 5 6 7 8
Why did president Jackson remove the Native Americans from the east?