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

Terry is interested in slowing the cognitive decline that comes with aging. according to current research, what is the most beneficial change he can make?
I don't feel like doing the math.
In what ways did the telephone impact the U.S ?
Helppp pleaseeeee asap helppp
Firms in oligopolistic markets tend to
x+2x=9what does x equal? and how do I get the answer?
Which of the following is not a metric base unit? (2 points) a. Liter b. Gram c. Meter d. Mile
The time required to do a job varies inversely as the number of people working. It takes 5hr for 7 bricklayers to build a park well. How long will it take 10 br
A paintball court charges an initial entrance fee plus a fixed price per ball. The variable ppp models the total price (in dollars) as a function of nnn, the nu
Emmanuel has 745 pictures in his phone. His memory is getting full, so he starts deleting 29 pictures everyday. Define each variable and write an algebraic expr