Sorting
Practice lessons
Bubble Sort
Imagine kids lining up by height, but each kid can only compare with the neighbour directly beside them and swap places.
Merge Sort
Two sorted piles of exam papers need to become one.
Quick Sort
Organising a bookshelf: pick one book, put everything thinner on the left and thicker on the right.
Counting Sort
Sorting coins is not done by comparing pairs.
Heap Sort
A knockout tournament: after the first rounds, the champion stands on top.
Insertion Sort
You are holding cards.
Selection Sort
Picking a football team by height: scan the whole line for the shortest kid and put them first.