Question

For constants a≥1a \ge 1 and b>1b > 1, consider the following recurrence defined on the non-negative integers:

T(n)=a⋅T(nb)+f(n)T(n) = a \cdot T\left(\frac{n}{b}\right) + f(n)

Which one of the following options is correct about the recurrence T(n)T(n)?

Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2021 answer key

Solution

Match the recurrence with the standard cases of the Master Theorem.

The recurrence is given by T(n)=a⋅T(n/b)+f(n)T(n) = a \cdot T(n/b) + f(n) for constants a≥1a \ge 1 and b>1b > 1.

In the Master Theorem, the critical exponent is ccrit=log⁡bac_{\text{crit}} = \log_b a, and the watershed function is nlog⁡ban^{\log_b a}.

Case 1 of the Master Theorem states:
If f(n)=O(nlog⁡b(a)−ϵ)f(n) = O(n^{\log_b(a) - \epsilon}) for some constant ϵ>0\epsilon > 0, then the work at the leaves dominates the total cost, and:

T(n)=Θ(nlog⁡ba)T(n) = \Theta(n^{\log_b a})

This precisely matches option C.

Why other options are incorrect:

  • In option D, when f(n)=Θ(nlog⁡ba)f(n) = \Theta(n^{\log_b a}), Case 2 applies, giving T(n)=Θ(nlog⁡balog⁡n)T(n) = \Theta(n^{\log_b a} \log n), not Θ(nlog⁡ba)\Theta(n^{\log_b a}).
  • Options A and B make unjustified assertions that depend on the specific values of aa and bb.
Final answer

C

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2021 Computer Science and Information Technology - Session 2 (CS2)
Question
49 of 65, printed as CS Q.39
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.