Binary search – AQA GCSE Computer Science lesson (8525)
Pupils learn to explain how a binary search works and carry one out on a sorted list.
Lesson 7 of 11 in unit 10.5 Compression, Networks and Searching, taught in Year 10, Summer 1. It answers one big question: How can a sorted list be searched in far fewer steps?
By the end, pupils can explain how a binary search works and carry one out on a sorted list.
- The Build (the main task)
- Explain how a binary search finds an item in a sorted list. (4 marks) Complete the trace table when the user enters Orwell. (4 marks)
- Support version
- The sorted list numbered 0 to 9, a part-filled trace table and a sentence starter.
- Challenge
- Complete a trace table (start, finish, mid, found, Output) for the Build's binary search when the user enters Carroll. (4 marks) Explain why a binary search cannot be used on the returns trolley's list of titles, and what would have to happen first. (4 marks) Complete a trace table for the Build's binary search when the user enters Lewis, who is not in the list. State the output and explain how the algorithm knows to stop. (5 marks)
- Real-world link
- Finding a book in the catalogue, which is sorted by author.
- Key words
- Binary search, Midpoint and Ordered, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “A binary search works on any list”; “The middle item is found by rounding up”.
- AQA 8525 specification
- 3.1.3 (searching algorithms: linear and binary search).
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 Compression, Networks and Searching 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 explain what data compression is and why it is used, and represent data as run length encoding frequency/data pairs.
Pupils learn to complete trace tables for algorithms in AQA pseudo-code, flowcharts and the class's language, and state an algorithm's purpose.
Pupils learn to explain how Huffman coding compresses data and read characters' codes from a Huffman tree.
Written for the specifications named. Not endorsed by or affiliated with any exam board.