GATE CS 2019 · Heap Sort & Non-Comparison Sorts

NAT · 1 mark · Problem PROG-SORT-0021

An array of 25 distinct elements is to be sorted using quicksort. Assume that the pivot element is chosen uniformly at random. The probability that the pivot element gets placed in the worst possible location in the first round of partitioning (rounded off to 2 decimal places) is .

Numerical answer (NAT).

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

Show the worked solutionOfficial GATE Answer Key: [0.08, 0.08].See full step-by-step discussion on GateOverflow: https://gateoverflow.in/302828/gate2019-cs-20

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