1.

Quick sort is run on 2 inputs shown below to sort in ascending orderA. 1, 2, 3……nB. n, n – 1, n – 2 …… 1Let C1 and C2 be the number of comparisons made for A and B respectively. Then

A. C1 > C2
B. C1 = C2
C. C1 < C2
D. Cannot say anything for arbitrary n
Answer» C. C1 < C2


Discussion

No Comment Found

Related MCQs