script

Saturday, January 19, 2013

7.1-4


7.1-4 How would you modify QUICKSORT to sort into nonincreasing order?
If the line 4 of partition is changed to $A[i] \geq x$ the array will be sorted into non increasing order

No comments:

Post a Comment