Paper 2 Section A: writing algorithms – OCR A Level Computer Science lesson (H446)
Students learn to write correct, well-structured functions in OCR exam pseudocode or Python for searching, sorting and data structure problems.
Lesson 7 of 14 in unit 13.8 Synoptic Revision, taught in Year 13, Spring 2. It answers one big question: How do I write an algorithm that earns full marks?
By the end, students can write correct, well-structured functions in OCR exam pseudocode or Python for searching, sorting and data structure problems.
- What happens
- Bell Task (5 min), then a ten-question interleaved retrieval quiz without notes (8 min) – six questions on today's topics, four spaced from earlier blocks – self-marked in green pen, each wrong answer logged in the student's revision tracker. Topics revisited: 12.2 programming foundations, 12.4 searching, sorting and recursion, 12.8 data structure algorithms, 13.2 (merge and quick sort). Fluency: a Guided Practice at the computers – run, predict and modify a whole function (header, loop bounds, return), with a paper version. Two reteach chunks (below). Exam practice: the 8-mark Write Build, self-marked against the mark points; Challenges are 8-mark Write and Compare questions. Targeting: students open their revision tracker (lesson 1) and do the practice set for their red topic first; students secure in both reteach points take the extension question. Exit: correct three faulty headers or loops.
- Main task
- Write a function for Ravensgill Coastal Rescue that takes an array of crew response times, sorts it with an insertion sort and returns the median time (8 marks).
Also sold in the Synoptic Revision 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 turn their mock and Progress Check results into a prioritised revision tracker with measurable weekly targets.
Students learn to link the fetch-decode-execute cycle, LMC, interrupts, scheduling and memory management in one connected explanation.
Students learn to convert and calculate with two's complement and floating point, apply masks and simplify Boolean expressions linked to hardware.
Written for the specifications named. Not endorsed by or affiliated with any exam board.