Algorithms | Analysis of Algorithms | Question 13

Last Updated :
Discuss
Comments

Consider the following functions:

  f(n)   = 2n
  g(n)   = n!
  h(n)   = nlog(n)

Which of the following statements about the asymptotic behavior of f(n), g(n), and h(n) is true?
(A) f(n) = O(g(n)); g(n) = O(h(n))
(B) f(n) = [Tex]\\Omega  [/Tex](g(n)); g(n) = O(h(n))
(C) g(n) = O(f(n)); h(n) = O(f(n))
(D) h(n) = O(f(n)); g(n) = [Tex]\\Omega  [/Tex](f(n))

A

B

C

D

Share your thoughts in the comments