| Computer at Work |
Taking Control of Chaos: How Computers Sort
Imagine you have a huge stack of unsorted playing cards. Your goal is to arrange them from lowest to highest number. What seems intuitive to us is a real challenge for a computer. It has to sort a list by following very precise instructions. Here are three famous methods.
1. Bubble Sort: The Cozy Soap Bubble
Bubble sort is the simplest way to sort a list. Imagine the heavier numbers sinking to the bottom, while