Consider the following recurrence relation:
Which ONE of the following options is CORRECT?
GATE CSE 2025Algorithms › Growth of Functions & Complexity AnalysisVerified
(A) T ( n ) = Θ ( n 2 2 n ) T(n)=\Theta\left(n^{2} 2^{n}\right) T ( n ) = Θ ( n 2 2 n )
The recurrence is a decrease-by-one recurrence ($T(n)$ depends on $T(n-1)$), so the divide-and-conquer Master Theorem does not apply directly. The clean route is to scale out the exponential factor $2^n$: define $S(n)=T(n)/2^{n}$; the recurrence collapses to a trivial summation $S(n)=S(n-1)+n$, giving an exact closed form and hence the $\Theta$ class.
Dividing by $2^{n}$ linearizes the recurrence into $S(n)=S(n-1)+n$, giving the exact solution $T(n)=\frac{n^{2}+n+2}{2}\,2^{n}$. All three community answers converge on option A, and direct computation ($T(3)=56$, $T(4)=176$) is consistent with $\Theta(n^{2}2^{n})$.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.