Searching and Sorting
Computing · Programming & Algorithms · ages 10–12
Why order helps: checking items one by one versus halving the search each time (the guess-the-number game, binary search); simple ways to sort a pile of cards; how sorted data makes searching fast
At what age?
Usually at ages 10–12. The age is a guide: what decides whether a child is ready is the foundations below.
How do you know your child has learned it?
- Play guess-the-number with a halving strategy and explain why it needs so few guesses
- Sort a set of cards with a step-by-step method and describe the method
- Explain why looking something up in a sorted list is faster than in a jumbled one
A quick check
If you think of a number from 1 to 100, could your child find it in seven guesses or fewer, and explain the strategy?
What comes first?
- Everyday Algorithms (needed): Searching and sorting are classic algorithms to compare
- Estimating and Checking Answers (helps): Halving and estimating are number-sense skills
Where to learn it
- Raspberry Pi Projects (Course · Chinese & English · ages 8–14 · Free): The Raspberry Pi Foundation's free project library (in Chinese too): build something that works, step by step, in Scratch, Python or HTML.
- Hello World! Computer Programming for Kids and Other Beginners (3rd edition) (Book · Chinese · ages 10–14): A Python introduction written by a father and son, in conversation, for parent and child to read and type along together; the third edition is fully updated to Python 3 and adds a chapter on the internet.