edited by
1,581 views
2 votes
2 votes
Which of the given options provides the increasing order of asymptotic complexity of functions $f1$, $f2$, $f3$ and $f4$?

  $f1(n) = 2^n \\ f2(n) = n^{(3/2)} \\ f3(n) = nlogn \\ f4(n) = n^{(logn)}$

How $n^{3/2}$ is greater than $n^{logn}$
edited by

1 Answer

2 votes
2 votes
Increasing order of asymptotic complexity of these functions is $f3<f2<f4<f1$.

ie; $nlogn < n^{3/2} < n^{logn} < 2^n $.

Let's see how: To check this, choose a value of $n$ which is positive and a fairly large one.

A power of $2$ is preferred. I am taking $2^{16}$.

$f3 \rightarrow nlog n \Rightarrow$ $2^{16} log (2^{16}) = 2^{16}$ x $2^4 = 2^{20}$

$f2 \rightarrow n^{3/2} \Rightarrow$ $ (2^{16})^{\frac{3}{2}} = 2^{24}$

$f4 \rightarrow n^{log n} \Rightarrow$ $ (2^{16})^{log({2^{16}})} = (2^{16})^{16} = 2^{256}$

$f1 \rightarrow 2^n \Rightarrow$ $2^{(2^{16})} = 2^{65536}$
edited by

Related questions

0 votes
0 votes
0 answers
3
0 votes
0 votes
0 answers
4
Sajal Mallick asked Nov 27, 2023
182 views
As we have to select maximal set of “non overlapping” activities. So like job scheduling algo of greedy we can solve it. So according to that complexity must be O(n l...