A Sorting Algorithm that is the fastest in all cases. Time complexity of:
- Worst case
- Best case
Algorithm
- Pick a pivot index at random
- Create a sub-list for all indexes smaller than the pivot index
- Create a sub-list for all indexes bigger than the pivot index
- Create a sublist for the item at the pivot index
- Recursively call this pivot algorithm
- Base case is when the list is size of 1