GATE CS 2021 · Set-2 · Asymptotic Analysis & Recurrences

MCQ · 2 marks · Problem PROG-DIVC-0077

For constants \(a\geq 1\) and \(b \gt 1\), consider the following recurrence defined on the non-negative integers:\(T(n) = a \cdot T \left(\dfrac{n}{b} \right) + f(n)\)Which one of the following options is correct about the recurrence \(T(n)\)?
  1. A
    if \(f(n)\) is \(n \log_2(n)\), then \(T(n)\) is \(\Theta(n \log_2(n))\).
  2. B
    if \(f(n)\) is \(\dfrac{n}{\log_2(n)}\), then \(T(n)\) is \(\Theta(\log_2(n))\).
  3. C
    if \(f(n)\) is \(O(n^{\log_b(a)-\epsilon})\) for some \(\epsilon \gt 0\), then \(T(n)\) is \(\Theta(n ^{\log_b(a)})\).
  4. D
    if \(f(n)\) is \(\Theta(n ^{\log_b(a)})\), then \(T(n)\) is \(\Theta(n ^{\log_b(a)})\).

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/357501/gate-cse-2021-set-2-question-39

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com