Merge sort – OCR GCSE Computer Science lesson (J277)
Pupils learn to carry out a merge sort on up to eight items, showing every split into sublists and every merge back in order.
Lesson 4 of 11 in unit 10.6 Protocols and Sorting, taught in Year 10, Summer 2. It answers one big question: How does merge sort split a list and rebuild it?
By the end, pupils can carry out a merge sort on up to eight items, showing every split into sublists and every merge back in order.
- The Build (the main task)
- Complete a merge sort diagram for the eight finishing times 52, 38, 61, 45, 29, 70, 33, 48, showing every split into sublists and every merge.
- Support version
- Part-filled diagram: every split is drawn, and the first two merges are done.
- Challenge
- Count the comparisons needed to merge two sorted sublists of four, and explain why merging is quick.
- Real-world link
- The time-trial finishing times must be put in order to award the prizes.
- Key words
- Merge sort, Sublist and Divide, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “The list is sorted once it has been split”; “Merge sort splits by value: smaller items left, bigger items right”.
- OCR J277 specification
- 2.1.3 (sorting algorithms: the main steps of bubble sort, merge sort and insertion sort, applying each to a data set and recognising each from its code).
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 and Sorting unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.
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 (OCR)
See allPupils learn to compare wired (Ethernet) and wireless (Wi-Fi, Bluetooth) connections, recommend one for a given use, and explain why wireless data is encrypted.
Free sample lessonPupils learn to carry out a bubble sort pass by pass, showing each comparison and swap, and state when the algorithm stops.
Pupils learn to describe the purpose and format of IPv4, IPv6 and MAC addresses and explain which one stays the same when a device changes network.
Written for the specifications named. Not endorsed by or affiliated with any exam board.