Heuristics and performance modelling – OCR A Level Computer Science lesson (H446)
Students learn to explain how a heuristic trades optimality for speed and how performance modelling predicts a system's behaviour before it is built.
Lesson 8 of 17 in unit 13.4 Path-finding, Computational Methods and Project Development, taught in Year 13, Autumn 2. It answers one big question: When is a quick, good-enough answer better than the best one?
By the end, students can explain how a heuristic trades optimality for speed and how performance modelling predicts a system's behaviour before it is built.
- The Build (the main task)
- Explain why Harrowgate Fulfilment uses a nearest-neighbour heuristic to plan a picker's trip to four aisle locations instead of checking every order of visits, and how performance modelling could predict whether the packing benches will cope with three times the normal orders before peak season.
- Support version
- The four locations on a number line (packing desk 0 m, A +2 m, B −3 m, C +8 m, D −5 m), with the nearest-neighbour trip half drawn, and sentence starters for the modelling part.
- Challenge
- Calculate how many orders of visits there are for 10 and for 20 locations, and explain what this shows about checking every order.
- Real-world link
- Harrowgate Fulfilment's human pickers collect small orders, and its managers must plan for peak season.
- Key words
- Performance modelling, Heuristic and Approximate, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “A heuristic always finds the best answer, just faster”; “Performance modelling means measuring the finished system”.
- OCR H446 specification
- 2.2.2 (f) (computational methods used to solve problems: backtracking, data mining, heuristics, performance modelling, pipelining and visualisation).
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.
Students can do it all on paper.
Also sold in the Path-finding, Computational Methods and Project Development unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.
An independent resource written for OCR A Level Computer Science (H446). It is not endorsed by OCR or Cambridge University Press & Assessment. Programming project (NEA) lessons teach general skills on a made-up example project and give supervised time, within JCQ's rules on the help a centre may give.
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 A Level Computer Science
See allStudents learn to describe how Dijkstra's algorithm finds the shortest path in a weighted graph and why each step keeps the lowest total.
Free sample lessonStudents learn to trace Dijkstra's algorithm with a priority queue, recording each distance and previous node, and read the path back from the goal.
Students learn to plan sprint 2 from their design and review of sprint 1, and write modular, annotated code with dated journal entries.
Written for the specifications named. Not endorsed by or affiliated with any exam board.