Skip to content
Official PYQ · 2026

GATE CS 2026 Set 2 Q14 — Asymptotic Worst Case Time and Space Complexity

Explain with AI

Consider the following functions, where nn is a positive integer.

n1/3,log⁡(n),log⁡(n!),2log⁡(n)n^{1 / 3}, \log (n), \log (n!), 2^{\log (n)}
Which one of the following options lists the functions in increasing order of asymptotic growth rate?

Note: Assume the base of log to be 22.

Choose one option
View worked solution

Answer: A

To find the increasing order of asymptotic growth rate, let us simplify and analyze each of the given functions for large values of nn:

  1. f1(n)=log⁡(n)f_1(n) = \log(n)
    This is a logarithmic function, which grows extremely slowly compared to any positive polynomial power of nn.
  2. f2(n)=n1/3f_2(n) = n^{1/3}
    This is a sub-linear polynomial function. Since logarithmic growth is asymptotically slower than any polynomial growth ncn^c (for c>0c > 0), we have: log⁡(n)<n1/3\log(n) < n^{1/3}
  3. f3(n)=2log⁡(n)f_3(n) = 2^{\log(n)}
    Using the logarithmic identity alog⁡a(x)=xa^{\log_a(x)} = x, we simplify this to: 2log⁡2(n)=n2^{\log_2(n)} = n Comparing this with n1/3n^{1/3}, we clearly have n1/3<nn^{1/3} < n.
  4. f4(n)=log⁡(n!)f_4(n) = \log(n!)
    Using Stirling's approximation, n!≈2πn(ne)nn! \approx \sqrt{2\pi n} \left(\frac{n}{e}\right)^n, which gives: log⁡(n!)=Θ(nlog⁡n)\log(n!) = \Theta(n \log n) Comparing this with f3(n)=nf_3(n) = n, we have n<nlog⁡nn < n \log n.

Combining these relations, the increasing order of asymptotic growth rate is:

log⁡(n)<n1/3<2log⁡(n)<log⁡(n!)\log(n) < n^{1/3} < 2^{\log(n)} < \log(n!)

This matches Option A.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Asymptotic Worst Case Time and Space Complexity questions