in Algorithms edited by
2,247 views
0 votes
0 votes

in Algorithms edited by
2.2k views

3 Comments

Getting increasing order as ii,i,iv,iii . pls confirm.
5
5
nlog(log(n)) < nlog(n) <  n(log(n))^2 < n(log(n^n))

Option : 2,1,4,3
0
0
2,1,4,3 is correct...
0
0

2 Answers

0 votes
0 votes
I am calculating it like below.

let n = 2^2^3

(i) nlog n = 2^8 * 8

(ii) n log(log n) = 2^8 * 3

(iii) n log(n^n) = 2^8 * 2^8 * 8

(iv) n (log n)^2 = 2^8 * 16

So the order is 3,4,1,2

Not sure if I'm doing something wrong.
0 votes
0 votes

Put $n = 2^{16}$

i) $n log  n \rightarrow 2^{16} log 2^{16} = 2^{16} . 16 = 2^{20}$

ii) $n log(log n) \rightarrow 2^{16} log (log (2^{16})) = 2^{16} . 4 = 2^{18}$

iii) $n log (n^n) \rightarrow n^2 logn = ({2^{16}})^2 log( 2^{16}) = 2^{32}.16 = 2^{36}$

iv) $n (logn)^2 \rightarrow 2^{16} (log (2^{16}))^2 = 2^{16}. 256 = 2^{16}. 2^8 = 2^{24}$

Therefore the correct increasing order is $ii < i < iv < iii.$

So, the answer is None of these.

Related questions