Skip to content
GATEiit

GATE CSE 2021 Set 2 Q49: Master theorem cases for T(n) = aT(n/b) + f(n)

Question

For constants a≥1a \geq 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)?

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 2/3 mark in GATE.
Show answer and explanation

Answer: C (official GATE 2021 final answer key)

Concept used: Master theorem: compare f(n)f(n) with nlog⁡ban^{\log_b a}.

First step: Recall case 1 (f polynomially smaller gives Θ(nlog⁡ba)\Theta(n^{\log_b a})) and case 2 (equal growth adds a log⁡n\log n factor); A and B ignore aa and bb.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2021 Set 2 CS question paper and final answer key, organised by IIT Bombay. Question paper · Answer key