GATE CS 2021, set 2 · Question 49 · Algorithms · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

For constants a ≥ 1 and b > 1, consider the following recurrence defined on the non-negative integers:
T(n) = a · T(n/b) + f(n)
Which one of the following options is correct about the recurrence T(n)?

  1. (A) If f(n) is n log₂(n), then T(n) is Θ(n log₂(n)).
  2. (B) If f(n) is n/log₂(n), then T(n) is Θ(log₂(n)).
  3. (C) If f(n) is O(n^(log_b(a)-ε)) for some ε > 0, then T(n) is Θ(n^(log_b(a))).
  4. (D) If f(n) is Θ(n^(log_b(a))), then T(n) is Θ(n^(log_b(a))).
Answer

Answer (C)

Answer from the official GATE CS 2021 answer key.

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