Single lesson · Written for OCR A Level (H446)

Synoptic links: data structures in systems – OCR A Level Computer Science lesson (H446)

Students learn to trace and write stack, queue, linked list and hash table operations and link each structure to where a system uses it.

Also in a bundle Synoptic Revision – OCR A Level Computer Science lessons (H446) 14 lessons for £45 · save 19% on buying separately

Lesson 4 of 14 in unit 13.8 Synoptic Revision, taught in Year 13, Spring 2. It answers one big question: Why do real systems use stacks, queues and hash tables?

By the end, students can trace and write stack, queue, linked list and hash table operations and link each structure to where a system uses it.

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.8 data structures (arrays, records, stacks, queues, linked lists, trees, graphs, hash tables), 12.11 hashing and 12.5 (the call stack). Synoptic link: the course examples the sequence names – a stack for subroutine calls and interrupts, a hash table for crew ID lookups and password hashes, a queue for callout messages, a graph for the Ravensgill Coastal Rescue search area. Two reteach chunks (below), each traced then written. Exam practice: Trace (3), Write a function (6) in OCR exam pseudocode or Python, and Describe a breadth-first traversal (4). 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: three questions, including a pop() with the empty check.
Main task
Write the pop() and push() functions for Ravensgill Coastal Rescue's callout stack, held in an array of 20 with a top pointer, including checks for empty and full (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 all

Written for the specifications named. Not endorsed by or affiliated with any exam board.