Single lesson · Written for AQA GCSE Computer Science (8525)

Data compression and run length encoding – AQA GCSE Computer Science lesson (8525)

Pupils learn to explain what data compression is and why it is used, and represent data as run length encoding frequency/data pairs.

Also in a bundle Compression, Networks and Searching – AQA GCSE Computer Science lessons (8525) 11 lessons for £39 · save 11% on buying separately

Lesson 1 of 11 in unit 10.5 Compression, Networks and Searching, taught in Year 10, Summer 1. It answers one big question: Why make files smaller, and how can repeats help?

By the end, pupils can explain what data compression is and why it is used, and represent data as run length encoding frequency/data pairs.

The Build (the main task)
Explain one reason why Riverbank Libraries compresses the e-books it sends to its branches. (2 marks) The first row of the poster icon is 1111000001100000. Write the run length encoding (RLE) frequency/data pairs for this row. (2 marks) Explain why RLE would not reduce the size of the text LIBRARY. (2 marks)
Support version
The row with each run marked, a frequency/data table to fill and sentence starters.
Challenge
Another row of the poster icon is 0000000111111000. Write the RLE frequency/data pairs for this row. (2 marks) The library's 'quiet' icon has three rows, shown in the picture. Write the RLE pairs for each row, then state how many fewer numbers RLE stores than one value for each pixel. (4 marks) Explain why RLE suits the library's black and white icons but not its photos of the reading room. (4 marks)
Real-world link
Riverbank Libraries sends its posters and e-books to three branches.
Key words
Compression, Run length encoding (RLE) and Repeat, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“Compressing a file makes it look smaller on screen or play for less time”; “RLE always makes data smaller”.
AQA 8525 specification
3.3.8 (data compression: why compress; Huffman coding and trees; bits in Huffman and ASCII; run length encoding).

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.

Pupils can do it all on paper.

Also sold in the Compression, Networks and Searching unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.

An independent resource written for AQA GCSE Computer Science (8525). It is not endorsed by AQA.

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 GCSE Computer Science (AQA)

See all

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