Back to the 2022 paper

Module 1: Introduction

20222m

Which one of the following functions is asymptotically smallest?
(i) 2n2^n
(ii) nlog⁡nn^{\log n}
(iii) nnn^{\sqrt{n}}
(iv) (100)(log⁡n)1/3+(log⁡log⁡n)2/3(100)^{(\log n)^{1/3}} + (\log \log n)^{2/3}

Worked SolutionAI Assisted

Answer: (iv) (100)(log⁡n)1/3+(log⁡log⁡n)2/3(100)^{(\log n)^{1/3}} + (\log \log n)^{2/3} is asymptotically smallest

Explanation:

Take logs or compare growth orders:

  • (i) 2n=enln⁡2=eΘ(n)2^n = e^{n \ln 2} = e^{\Theta(n)} → exponential
  • (ii) nlog⁡n=e(log⁡n)(ln⁡n)=eΘ((log⁡n)2)n^{\log n}= e^{(\log n)(\ln n)} = e^{\Theta((\log n)^2)}
  • (iii) nn=en⋅ln⁡n=eΘ(nlog⁡n)n^{\sqrt n}= e^{\sqrt n \cdot \ln n}= e^{\Theta(\sqrt n \log n)}
  • (iv) (100)(log⁡n)1/3=e(ln⁡100)(log⁡n)1/3=eΘ((log⁡n)1/3)(100)^{(\log n)^{1/3}} = e^{(\ln 100)(\log n)^{1/3}} = e^{\Theta((\log n)^{1/3})} plus (log⁡log⁡n)2/3=eΘ(log⁡log⁡log⁡n)(\log\log n)^{2/3}= e^{\Theta(\log\log\log n)} which is doubly logarithmic.

For large nn: (log⁡n)1/3≪(log⁡n)2≪nlog⁡n≪n(\log n)^{1/3} \ll (\log n)^2 \ll \sqrt n\log n \ll n.

Hence ordering from smallest to largest: (iv) ≪\ll (ii) ≪\ll (iii) ≪\ll (i).

Formally f4=no(1)f_4 = n^{o(1)} (sub-polynomial, quasi-polylog), f2=nΘ(log⁡n)f_2 = n^{\Theta(\log n)} (super-polynomial but sub-exponential), f3=2Θ(nlog⁡n)f_3 = 2^{\Theta(\sqrt n \log n)}, f1=2Θ(n)f_1=2^{\Theta(n)}.

Correct choice: (iv)

Note: Options (ii) and (iii) are often swapped in ranking; but both dominate (iv) asymptotically.

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.