Skip to main content

GATE CSE 2026Algorithms › Growth of Functions & Complexity AnalysisVerified

GATE CSE 2026 PYQ: Consider the following functions, where n n n is a positive integer. n 1 / 3 , log ⁡ ( n ) , log ⁡ ( n ! ) ,…

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 2.

  1. A
    log⁡(n),n1/3,2log⁡(n),log⁡(n!)\log (n), n^{1 / 3}, 2^{\log (n)}, \log (n!)
    Correct answer
  2. B
    n1/3,log⁡(n),log⁡(n!),2log⁡(n)n^{1 / 3}, \log (n), \log (n!), 2^{\log (n)}
  3. C
    log⁡(n),n1/3,log⁡(n!),2log⁡(n)\log (n), n^{1 / 3}, \log (n!), 2^{\log (n)}
  4. D
    2log⁡(n),n1/3,log⁡(n),log⁡(n!)2^{\log (n)}, n^{1 / 3}, \log (n), \log (n!)

Answer

(A) log ⁡ ( n ) , n 1 / 3 , 2 log ⁡ ( n ) , log ⁡ ( n ! ) \log (n), n^{1 / 3}, 2^{\log (n)}, \log (n!) lo g ( n ) , n 1/3 , 2 l o g ( n ) , lo g ( n !)

Approach

Compare the functions by simplifying $2^{\log_2 n}$ to $n$, using Stirling's approximation $\log(n!)=\Theta(n\log n)$, and recalling that any logarithmic function grows slower than any positive power of $n$.

Using $2^{\log_2 n}=n$ and $\log(n!)=\Theta(n\log n)$, the correct increasing order is $\log n \< n^{1/3} \< 2^{\log n} \< \log(n!)$, so option A is correct.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.