Skip to content
Official PYQ · 2005

GATE CS 2005 Q37 — Asymptotic Worst Case Time and Space Complexity

Explain with AI

Suppose T(n)=2T(n2)+nT(n) =2T (\frac{n}{2}) + n, T(0)=T(1)=1T(0) = T(1) =1

Which one of the following is FALSE?

Choose one option
View worked solution

Answer: C

To find the correct option, let us first solve the given recurrence relation:

T(n)=2T(n2)+nT(n) = 2T\left(\frac{n}{2}\right) + n

We can apply the Master Theorem for divide-and-conquer recurrences of the form T(n)=aT(n/b)+f(n)T(n) = aT(n/b) + f(n):

  • Here, a=2a = 2, b=2b = 2, and f(n)=nf(n) = n.
  • We compute nlog⁡ba=nlog⁡22=n1=nn^{\log_b a} = n^{\log_2 2} = n^1 = n.
  • Since f(n)=Θ(nlog⁡ba)=Θ(n)f(n) = \Theta(n^{\log_b a}) = \Theta(n), we fall into Case 2 of the Master Theorem.

Thus, the tight asymptotic bound is:

T(n)=Θ(nlog⁡n)T(n) = \Theta(n \log n)

Now, let us evaluate each option based on the definitions of asymptotic notations:

  • Option B: T(n)=Θ(nlog⁡n)T(n) = \Theta(n \log n) is TRUE as derived above.
  • Option D: T(n)=O(nlog⁡n)T(n) = O(n \log n) is TRUE because any function that is Θ(g(n))\Theta(g(n)) is also O(g(n))O(g(n)).
  • Option A: T(n)=O(n2)T(n) = O(n^2) is TRUE because nlog⁡nn \log n grows strictly slower than n2n^2 as n→∞n \to \infty (i.e., nlog⁡n=o(n2)  ⟹  nlog⁡n=O(n2)n \log n = o(n^2) \implies n \log n = O(n^2)).
  • Option C: T(n)=Ω(n2)T(n) = \Omega(n^2) is FALSE because nlog⁡nn \log n does not grow at least as fast as n2n^2. Mathematically, lim⁡n→∞nlog⁡nn2=0\lim_{n \to \infty} \frac{n \log n}{n^2} = 0, which means T(n)=o(n2)T(n) = o(n^2), making it impossible for T(n)T(n) to be Ω(n2)\Omega(n^2).

Therefore, the false statement is C.

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

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