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

MCQ · 2 marks · Problem PROG-DIVC-0080

Consider the following recurrence relation.\[T\left ( n \right )=\left\{\begin{array} {lcl} T(n/2)+T(2n/5)+7n & \text{if} \; n > 0\\1 & \text{if}\; n=0 \end{array}\right.\]Which one of the following options is correct?
  1. A
    \(T(n)=\Theta (n^{5/2})\)
  2. B
    \(T(n)=\Theta (n \log n)\)
  3. C
    \(T(n)=\Theta (n)\)
  4. D
    \(T(n)=\Theta ((\log n)^{5/2})\)

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/357421/gate-cse-2021-set-1-question-30

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