GATEverse Practice, past papers & mock tests
GATE 2014 · session-1
AlgorithmsSortingeasyMCQ1 mark
Let P be a quicksort program to sort numbers in ascending order using the first element as the pivot. Let t₁ and t₂ be the number of comparisons made by P for the inputs [1 2 3 4 5] and [4 1 5 3 2] respectively. Which one of the following holds?
Save your progress

Related Algorithms PYQs