edited by
22,891 views
79 votes
79 votes

Consider the following functions

  • $f(n) = 3n^{\sqrt{n}}$
  • $g(n) = 2^{\sqrt{n}{\log_{2}n}}$
  • $h(n) = n!$

Which of the following is true?

  1. $h(n)$ is $O(f(n))$
  2. $h(n)$ is $O(g(n))$
  3. $g(n)$ is not $O(f(n))$
  4. $f(n)$ is $O(g(n))$
edited by

10 Answers

0 votes
0 votes

Here, we will rewrite these functions in such a manner that is suitable for asymptotic comparison:

Refer below image

0 votes
0 votes

take log for all 3 functions, and consider only higher power functions. 

f(n)  = sqrt(n)logn

g(n) = sqrt(n)logn

h(n) = nlogn

f(n) and g(n) growth order is same and is less then h(n).

do only option satisfies.

 

Answer:

Related questions