Skip to content
0

Key Stage 3 Β· Computing

Algorithms: searching and sorting

0 / 12

Test yourself Printable worksheet

Key words
algorithm
a step-by-step set of instructions to solve a problem
linear search
checking each item in order
binary search
repeatedly halving a sorted list
bubble sort
sorting by swapping neighbouring items
merge sort
sorting by splitting into pieces and merging in order
efficiency
how quickly an algorithm works as the data grows

All key words A to Z

For grown-ups

Key Stage 3 computing asks pupils to understand several key algorithms, including searching and sorting, and to compare how efficient they are. These ideas power everything from search engines to online shops.

Try at home

  • Play 'guess my number from 1 to 100' with higher/lower clues: that's binary search.
  • Shuffle 8 playing cards and sort them using bubble sort swaps.
  • Look up a word in a paper dictionary and talk about why it's quick.
  • Sort books on a shelf by height and count the swaps.

Ask your child

  • Why is binary search faster than linear search?
  • When can't you use binary search?
  • How does bubble sort work?

Practise with a game