Description of quick sort
Pick a random pivot element pi , from, a partition a into the set of elements less than pi , the set of elements equal to pi , and the set of elements greater than pi and finally, recursively sort the first and third sets in this partition.
Algorithm:
Consider the Quick sort working flow:
C++ program for Quick Sort
Output