Multiple choice

Which of the given options provides the increasing order of asymptotic complexity of functions f1, f2, f3 and f4? f1 (n) = 2n; f2 (n) = n3/2; f3 (n) = n log2 n; f4 (n) = nlog2n

  1. f3, f2, f4,f1

  2. f3, f2, f1,f4

  3. f2, f3, f1,f4

  4. f2, f3, f4,f1

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Let n = 1024 f1 (n) = 21024 f2 (n) = 215 f3 (n) = 10×210 f4 (n) = 102410 = 2100 $\therefore$f3, f2, f4, f1 is the required increasing order