Bubble Sort -
- Iterate over the array and swap elements that are out of order.
- Repeat until you iterate with no swaps.
Shuttle Sort -
Slightly more efficient than bubble sort
- 1st pass - compare the 1st and 2nd numbers and swap if necessary
- 2nd pass - compare the 2nd and 3rd. If a swap has occurred compare the 1st and new 2nd.
- Repeat. If a swap occurs check previous elements.
Quick Sort -
- Pick a pivot in the middle
- Put all numbers bigger than the pivot in one sub list and all numbers less in another sub list.
- Repeat for each sub list recursively
- When a sub list has one element it’s sorted.
Interchange Sort -
- Iterate over the list to find the smallest number and put it 1st in a new list and remove it from the original list.
- Iterate again adding the smallest element to the new list and repeat.