retagged by
2,492 views
3 votes
3 votes
Which of the following options provides the increasing order of asymptotic complexity of functions(Note: Consider log base 2)
a) f1(n)=n logn log logn
b) f2(n)=(n!)^1/n
c) f3(n)=(n^n^(0.5))
d) f4(n)=log n^n

At first glance I thought f2 grow faster but i was wrong.

Ans : f2,f4,f1,f3

Please can somebody help.
retagged by

1 Answer

Best answer
0 votes
0 votes
$f2$ is not the fastest, in fact it is the slowest in the options.

 Correct order is $f2 < f4 < f1 < f3$

Choose $n = 2^{16}$ and substitute.

$f2 \rightarrow$ $n!^{\frac{1}{n}}$ = $\sqrt[n]{n!}$ $\rightarrow$ Very small value

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

$f1 \rightarrow$ $nlogn log log n = $ $2^{16} log2^{16} log log 2^{16} = 2^{16} . 16 . 4 = 2^{22}$

$f3 \rightarrow$ $n^{n^{0.5}} = $$((2^{16})^{2^{16}})^{0.5} = (2^{16})^{2^8} = 2^{16*256} = 2^{4096}$
selected by

Related questions

3 votes
3 votes
3 answers
1
radha gogia asked Oct 5, 2015
2,347 views
F1 =(logn)! F2=(log(n!)) F3 = (logn)^logn Just one query n! would be a constant rght , so in F1 we are taking factorial of a constant while in second one we are taking lo...
0 votes
0 votes
1 answer
2
1 votes
1 votes
3 answers
3
Anu asked May 18, 2015
1,197 views
which of the following is correct?
3 votes
3 votes
1 answer
4
sunil sarode asked Nov 10, 2017
7,493 views
Arrange the following functions in asymptotically increasing orderf1(n) = n0.999999 log nf2(n) = 10000000nf3(n) = 1.000001nf4(n) = n2Ans is f1, f2, f4, f3I am not unders...