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

On a summer afternoon, the sand on the beach can get very hot. When you step on the sand in bare feet, you can burn yourself. Which of the following sentences b
Brittany placed a cold piece of butter on a hot ear of corn. The butter began to melt. The butter melted when it came into contact with the corn because heat wa
Which of the following describes the Conquistadors goals in the New World? Select one: a. Gold - The Conquistadors wanted to get rich b. God - The Conquistadors
why did some people treat native americans so badly?
how do you say 'im getting over you' in spanish
How long does interphase last?
How is the graph of y=-8x^2-2 diffrent from the graph of y=-8x^2
What is the value of f(-4) in the piecewise function f(x)= -x-5 for -5<= x <= -2; -x^2+1 for -2<=x<=2; (x-3)^2+2 for 2<=x<=4? If that makes an
What process in animal cells required oxygen
why did some chiefs decide to fight when english colonists moved into their territory?plz help me