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

One day I was hanging around the campus and Chad and Tim Gray told me Dean was staying in a cold-water pad in East Harlem, the Spanish Harlem. Dean had arrived
A carpenter had a piece of wood that was 12 feet in length.If he needs only 8 5/12 feet of wood, then how much wood should he cut?
help me pleas and thank you
List 3 facts you learned about dolphins
A 50-kg copper block initially at 140°c is dropped into an insulated tank that contains 90 l of water at 10°c. Determine the final equilibrium temperature and
An electron confined in a one-dimensional box is observed, at different times, to have energies of 12 eV, 27 eV, and 48 eV. What is the length of the box? 45. |
Text Relationships - “Earth’s Weather and Climate”⇔
Which word correctly completes the following conversation? Béatrice: J'ai une inflammation de gencives. Julien: Je te conseille d'aller chez______ А. le dentist
How does the wave period relate to the frequency of a wave?
PLZ HELP!!! NO LINKS OR NON-ANSWERS!!!!!!!