GATEverse Practice, past papers & mock tests
GATE 2014 · SET - 2
AlgorithmsSortingeasyMCQ1 mark
Let P be a quick sort program to sort numbers in ascending order using the first element as the pivot. Let t1 and t2 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