Consider the following functions: f(n) = 2^n g(n) = n! h(n) = n^(log n) Which…

PYQ GATE 2008

Consider the following functions:

f(n) = 2^n

g(n) = n!

h(n) = n^(log n)

Which of the following statements about the asymptotic behaviour of f(n), g(n), and h(n) is true?

  1. A.

    f(n) = O(g(n)); g(n) = O(h(n))

  2. B.

    f(n) = Ω(g(n)); g(n) = O(h(n))

  3. C.

    g(n) = O(f(n)); h(n) = O(f(n))

  4. D.

    h(n) = O(f(n)); g(n) = Ω(f(n))

Attempted by 327 students.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…