Question: 7. (20 points) Consider that duplicate elements may occur in the input list to be sorted by the QUICKSORT algorithm. Modify the pseudo code of
7. (20 points) Consider that duplicate elements may occur in the input list to be sorted by the QUICKSORT algorithm. Modify the pseudo code of function PARTITION so that all elements the same as the pivot will not be considered in the future rounds of recursive calls by QUICKSORT. You may change the parameter setting in PARTITION if you feel the need
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
