GATE CS 1999 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0161

If \(T_1 = O(1)\), give the correct matching for the following pairs:\[\begin{array}{l|l}\hline \text{(M) $T_n = T_{n-1} + n$} & \text{(U) $T\_n = O(n)$} \\\hline \text{(N) $T_n = T_{n/2} + n$} & \text{(V) $T\_n = O(n \log n)$} \\\hline \text{(O) $T_n = T_{n/2} + n \log n$} & \text{(W) $T\_n = O(n^2)$} \\\hline \text{(P) $T_n = T_{n-1} + \log n$} & \text{(X) $T\_n = O(\log^2 n)$} \\\hline \end{array}\]
  1. A
    \(\text{M-W, N-V, O-U, P-X}\)
  2. B
    \(\text{M-W, N-U, O-X, P-V}\)
  3. C
    \(\text{M-V, N-W, O-X, P-U}\)
  4. D
    \(\text{M-W, N-U, O-V, P-V}\)

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

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1498/gate1999-2-21

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