GATE CS 2001 · Heap Sort & Non-Comparison Sorts

MCQ · 1 mark · Problem PROG-SORT-0062

Randomized quicksort is an extension of quicksort where the pivot is chosen randomly. What is the worst case complexity of sorting n numbers using randomized quicksort ?
  1. A
    O(n)
  2. B
    O(nlogn)
  3. C
    O(\(n^{2}\) )
  4. D
    O(n!)

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/707/gate2001-1-14

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