Single lesson · Written for OCR A Level (H446)

Static and dynamic data structures – OCR A Level Computer Science lesson (H446)

Students learn to compare static and dynamic data structures and justify one for a given use.

Also in a bundle Data Structures – OCR A Level Computer Science lessons (H446) 15 lessons for £45 · save 25% on buying separately

Lesson 2 of 15 in unit 12.8 Data Structures, taught in Year 12, Spring 2. It answers one big question: Should a structure's size be fixed before the program runs?

By the end, students can compare static and dynamic data structures and justify one for a given use.

The Build (the main task)
Compare static and dynamic data structures, and justify which Tillbrook should use for the parcels loaded onto one van, which holds at most 120 (6 marks).
Support version
A comparison table (memory reserved · can it change size · access · wasted space · running out · extra memory) with the static column filled, and 'whereas' sentence starters.
Challenge
Explain why a dynamic structure can still run out of space, and what the program should do when it does.
Real-world link
One van's load list, whose maximum is known, beside the depot's daily intake, which changes every day.
Key words
Static data structure, Dynamic data structure and Fixed, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“A dynamic structure can never run out of memory”; “'Static' means the values stored cannot change”.
OCR H446 specification
1.4.2 (a); (b).

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 Data Structures 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.