Comparing merge sort and bubble sort – AQA GCSE Computer Science lesson (8525)
Pupils learn to compare merge sort and bubble sort and choose one for a task, explaining why.
Lesson 6 of 10 in unit 10.6 Protocols, Network Security and Sorting, taught in Year 10, Summer 2. It answers one big question: Which sorting algorithm should we choose, and why?
By the end, pupils can compare merge sort and bubble sort and choose one for a task, explaining why.
- The Build (the main task)
- Compare merge sort and bubble sort, giving one advantage and one disadvantage of each. (4 marks) At the end of the season the café sorts 10,000 scores. Explain which sort it should use. (2 marks)
- Support version
- A comparison table with rows for speed on large lists, memory used and ease of writing.
- Challenge
- A handheld game stores its 12 high scores in a very small memory. Explain which sort it should use, giving two reasons. (4 marks) The scores 12, 18, 25, 34, 29, 41, 47, 53 are nearly sorted. (a) State how many passes and how many comparisons a bubble sort makes. (2 marks) (b) Explain why bubble sort can be quick on a nearly sorted list. (2 marks) Eight scores are in reverse order: 80, 70, 60, 50, 40, 30, 20, 10. A bubble sort makes 8 passes of 7 comparisons; a merge sort makes 12 comparisons. (a) Calculate the bubble sort's comparisons. Show your working. (2 marks) (b) Explain what the two totals show about the efficiency of the sorts. (2 marks)
- Real-world link
- Sorting a few scores now and every score at the end of the season.
- Key words
- Merge sort, Bubble sort and Compare, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “Merge sort is always the best choice”; “A faster algorithm uses less memory”.
- AQA 8525 specification
- 3.1.2; 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 allPupils learn to define a network protocol and explain the purpose of TCP, IP, HTTP, HTTPS, SMTP and IMAP.
Pupils learn to explain and carry out a bubble sort, showing the list each time the order changes.
Pupils learn to name and describe the four layers of the TCP/IP model and say which protocols work at each.
Written for the specifications named. Not endorsed by or affiliated with any exam board.