Lossy and lossless compression – OCR A Level Computer Science lesson (H446)
Students learn to compare lossy and lossless compression and justify which suits a given type of file.
Lesson 1 of 12 in unit 12.11 Compression, Encryption, Hashing and Databases, taught in Year 12, Summer 2. It answers one big question: When is it acceptable to throw data away?
By the end, students can compare lossy and lossless compression and justify which suits a given type of file.
- The Build (the main task)
- Compare lossy and lossless compression, and justify which Shutterbox should use for members' competition photos, gallery thumbnails and the app's program updates (6 marks).
- Support version
- A comparison table (what is removed · can the original be rebuilt · typical size reduction · suits) with the lossy column done, and the starter '… whereas …'.
- Challenge
- Explain why compressing a Shutterbox JPEG again with a lossless method saves very little space.
- Real-world link
- Students meet Shutterbox, a fictional photo-sharing app for the Harbour Lane Camera Club whose members upload full-resolution competition photos: the unit's running context.
- Key words
- Lossy compression, Lossless compression and Reduce, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “Lossy compression can be reversed to get the original back”; “Lossless compression makes files as small as lossy compression”.
- OCR H446 specification
- 1.3.1 (a).
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 Compression, Encryption, Hashing and Databases 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 apply run length encoding and dictionary coding to data and calculate whether the result is smaller.
Students learn to describe symmetric and asymmetric encryption and state whose key encrypts and decrypts in each.
Students learn to explain how a digital signature is created and checked, and how it authenticates the sender and shows the message is unchanged.
Written for the specifications named. Not endorsed by or affiliated with any exam board.