GATE DA 2024 · Divide & Conquer: Quicksort

NAT · 1 mark · Problem PROG-SORT-0012

Consider sorting the following array of integers in ascending order using an in-place Quicksort algorithm that uses the last element as the pivot.\[\begin{array}{|c|c|c|c|c|} \hline 60&70&80&90&100 \\ \hline \end{array}\]The minimum number of swaps performed during this Quicksort is

Numerical answer (NAT).

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

Show the worked solutionOfficial GATE Answer Key: [0.0, 0.0].See full step-by-step discussion on GateOverflow: https://gateoverflow.in/422942/gate-ds%26ai-2024-question-20

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