GATE CS 2025, set 1 · Question 20 · Algorithms · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Consider the following recurrence relation:
T(n) = 2T(n-1) + n2ⁿ for n > 0, T(0) = 1.
Which ONE of the following options is CORRECT?

  1. (A) T(n) = Θ(n² 2ⁿ)
  2. (B) T(n) = Θ(n 2ⁿ)
  3. (C) T(n) = Θ((log n)² 2ⁿ)
  4. (D) T(n) = Θ(4ⁿ)
Answer

Answer (A)

Answer from the official GATE CS 2025 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes