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

According to the American music industry, the length of a song is normally distributed with a mean of 240 seconds and standard deviation thirty seconds. Suppose
Find the intercepts of the equation. 4x + 7y = - 84
plz solve this question.....​
If an object is having a constant positive acceleration, what can we assume about the forces on it?
The table below shows the fossils of organisms found in various layers of an undisturbed rock: Fossils In Rock Layers Layer (from top) Fossils in Layer 1 X, W 2
what product contains alot of processed simple sugars? 1. fruit 2. cookie 3.potato 4. pasta
1. Which role is it when the President appoints a new cabinet member?
Find the length of each line segment or object
measure the mass of 1 gram of sand
What is the sum for the expression below? 234+114+312