Technology · AlgorithmsVISUAL DISCOVERY 96 OF 1,100
Compare-Swap Moves Items into Order
Explorer · about 8 minutes · a little curiosity goes a long way
Browse all adventures
For grown-ups
Today’s little discovery
A left-to-right bubble-sort pass compares adjacent items and swaps out-of-order pairs. After one pass, the largest item has reached the right end; more passes finish sorting.
Ask “what changed first?” and “what changed because of it?” Let the child use the arrows and readout as evidence.
This is a learning model. Try the take-home activity together.Voice settings
Using Heart (en-US).
Saved voices download ahead of play for this activity. No lesson text is sent to a speech service.The sample plays once and does not change the Sound on/off setting.- Wonder
- Guess
- Try it
- Discover
- Celebrate
HERE’S A LITTLE WONDER…
How can local comparisons build a sorted list?
Number cards swap whenever the left card is larger than its neighbor.
No rush. Try an idea and see.Open Lesson to read the question, choose your idea, and continue.