Exam skills: Big O questions – OCR A Level Computer Science lesson (H446)
Students learn to answer Big O exam questions by explaining the growth and applying it to the facts of the scenario.
Lesson 15 of 16 in unit 13.2 Big O and Project Design, taught in Year 13, Autumn 1. It answers one big question: How do you turn a Big O fact into full marks?
By the end, students can answer Big O exam questions by explaining the growth and applying it to the facts of the scenario.
- The Build (the main task)
- Explain, using Big O notation, why Lumenfield Observatory should sort its catalogue of 1 000 000 stars once and then use binary search for its 50 000 daily look-ups, rather than a linear search for each look-up (6 marks).
- Support version
- A planning frame with three boxes (the cost of linear search each time, the one-off cost of sorting, the cost of binary search each time) and the numbers to use, plus the connective 'so' to link each fact to the scenario.
- Challenge
- Discuss whether Lumenfield Observatory should store the catalogue in a hash table instead of a sorted array, given that 2000 new stars are added every night (9 marks, levels-marked 7–9 / 4–6 / 1–3).
- Real-world link
- Lumenfield Observatory's astronomers look up 50 000 stars a day from the website and the telescope control software.
- Key words
- Big O notation, Logarithmic complexity and Explain, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “Binary search can be used on the catalogue whatever order it is in”; “A general answer about Big O earns the marks without using the scenario's facts”.
- OCR H446 specification
- 2.3.1 (a)–(d) (algorithms: analyse and design algorithms for a given situation; judge how suitable an algorithm is for a task and data set by its execution time and the space it needs; measure efficiency with Big O notation (constant, linear, polynomial, exponential and logarithmic complexity); compare the complexity of algorithms).
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 Big O and Project Design 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)
- Exam skills - Big O questions - Quiz Quiz Trade Cards
- Single-teacher licence: use and adapt it with your own classes
More for A Level Computer Science
See allStudents learn to explain why algorithms are compared by how their steps grow with n, and reduce a step-count formula to its Big O.
Free sample lessonStudents learn to identify O(1), O(n) and O(n²) code from its loops and explain each answer from how often the statements run.
Students learn to explain logarithmic and exponential growth in terms of halving and doubling, and say why exponential algorithms do not scale.
Written for the specifications named. Not endorsed by or affiliated with any exam board.