Single lesson · Written for AQA GCSE Computer Science (8525)

Bubble sort – AQA GCSE Computer Science lesson (8525)

Pupils learn to explain and carry out a bubble sort, showing the list each time the order changes.

Also in a bundle Protocols, Network Security and Sorting – AQA GCSE Computer Science lessons (8525) 10 lessons for £39 · save 2% on buying separately

Lesson 2 of 10 in unit 10.6 Protocols, Network Security and Sorting, taught in Year 10, Summer 2. It answers one big question: How does a bubble sort put a list in order?

By the end, pupils can explain and carry out a bubble sort, showing the list each time the order changes.

The Build (the main task)
Explain how a bubble sort puts a list in order. (3 marks) Complete the table to show the list each time its order changes during a bubble sort into ascending order. You may not need every row. (3 marks)
Support version
Number cards to swap, with a table to record the list after every swap.
Challenge
Show the list 64, 19, 50, 8, 33 each time its order changes during a bubble sort into ascending order. (3 marks) (a) Explain how a bubble sort knows it has finished. (2 marks) (b) The list 3, 5, 8, 9 is bubble sorted into ascending order. State how many passes are made, and explain why. (2 marks) The leaderboard shows the highest score first. Show the list 18, 42, 27, 55, 30 each time its order changes during a bubble sort into descending order, and state the change to the comparison that makes the sort descending. (4 marks)
Real-world link
Ordering the café's tournament scores.
Key words
Bubble sort, Pass and Swap, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“One pass is enough to sort the list”; “Bubble sort compares every item with every other item at once”.
AQA 8525 specification
3.1.4 (sorting algorithms: bubble sort and merge sort).

Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.

Pupils can do it all on paper.

Also sold in the Protocols, Network Security and Sorting unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.

An independent resource written for AQA GCSE Computer Science (8525). It is not endorsed by AQA.

What's included

  • Slide deck (PowerPoint)
  • Lesson plan (Word)
  • Worksheet (Word)
  • Support worksheet with scaffolds (Word)
  • Single-teacher licence: use and adapt it with your own classes

More for GCSE Computer Science (AQA)

See all

Written for the specifications named. Not endorsed by or affiliated with any exam board.