Consider the following functions : f(n) = 3n^(√n) g(n) = 2^(√n log₂ n) h(n) =…

2023

Consider the following functions :

f(n) = 3n^(√n)

g(n) = 2^(√n log₂ n)

h(n) = n!

Which of the following is true ?

  1. A.

    \(h(n)\) is \(O(f(n))\)

  2. B.

    \(h(n)\) is \(O(g(n))\)

  3. C.

    \(g(n)\) is not \(O(f(n))\)

  4. D.

    \(f(n)\) is  \(O(g(n))\)

Attempted by 234 students.

Show answer & explanation

Correct answer: D

image.png

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Coding For Placement