|
Answer» In quicksort, the steps performed are the following:
a) pick an ELEMENT, CALLED a pivot, from the list b) reorder the list so that all ELEMENTS with values less than the pivot come before the pivot, while all elements with values greater than the pivot come after it (equal values can GO either way) c) RECURSIVELY sort the sub-list of lesser elements and the sub-list of greater elements. In quicksort, the steps performed are the following: a) pick an element, called a pivot, from the list b) reorder the list so that all elements with values less than the pivot come before the pivot, while all elements with values greater than the pivot come after it (equal values can go either way) c) recursively sort the sub-list of lesser elements and the sub-list of greater elements.
|