GATE CS 1998 · Selection Sort

MCQ · 1 mark · Problem PROG-SORT-0059

Give the correct matching for the following pairs:\[\begin{array}{ll|ll}\hline \text{(A)} & \text{$O (\log n)$} & \text{(P)} & \text{Selection sort} \\\hline \text{(B)} & \text{$O (n)$} & \text{(Q)}& \text{Insertion sort} \\\hline \text{(C)}& \text{$O (n \log n)$} & \text{(R)} & \text{Binary search} \\\hline \text{(D)} & \text{$O (n^2)$} &\text{(S)} & \text{Merge sort} \\\hline \end{array}\]
  1. A
    A-R B-P C-Q D-S
  2. B
    A-R B-P C-S D-Q
  3. C
    A-P B-R C-S D-Q
  4. D
    A-P B-S C-R D-Q

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

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1659/gate1998-1-22

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