GATE CS 2009 · Heap Sort & Non-Comparison Sorts

MCQ · 2 marks · Problem PROG-SORT-0044

In quick sort, for sorting n elements, the (n/4)th smallest element is selected as pivot using an O(n) time algorithm. What is the worst case time complexity of the quick sort?
  1. A
    \(\theta (n)\)
  2. B
    \(\theta (n logn)\)
  3. C
    \(\theta (n^{2})\)
  4. D
    \(\theta (n^{2} logn)\)

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/1325/gate2009-39

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