Compression
Why compression is used and the difference between lossy and lossless compression.
Learning Objectives
- 1Explain why compression is needed
- 2Describe lossy compression and its effect on a file
- 3Describe lossless compression and its effect on a file
- 4Recommend a suitable type of compression for a given scenario, with reasons
Why compression is needed
Think of it like...
Compression is like packing a suitcase efficiently: you fit more in, and it's easier to carry, but depending on how you pack, you might have to fold (and slightly crease) some items to make everything fit.
Lossless compression
Lossy compression
Choosing the right type of compression
Exam Phrasing: Use These Exact Phrases
- ✓Compression reduces file size, saving storage space and reducing transmission time
- ✓Lossless compression removes no data; the file can be restored exactly to its original
- ✓Lossy compression permanently removes some data to achieve a greater reduction in file size
- ✓Lossless compression is required for files like text and code, where no data can be lost
- ✓Lossy compression is suitable for images, audio and video, where a small quality loss is not noticeable
- ✓Advantage of lossless: no data is lost. Disadvantage: smaller reduction in file size
- ✓Advantage of lossy: much greater reduction in file size. Disadvantage: data is permanently lost
- 💡If a question asks for an advantage and a disadvantage of a compression type, give one clear point for each, don't just describe the type in general.
- 💡For "recommend and justify" questions, always explain why a compression type suits the scenario, not how compression works, examiners specifically flagged this as a common way to lose marks.
- 💡Text and code files always need lossless compression, since any change could corrupt the file or alter its meaning.
- 💡If a scenario mentions streaming, storage limits, or "quality loss would not be noticed", that points towards lossy compression.
- 💡You don't need to know how any specific compression algorithm works, focus on the difference in effect on the file (data lost or not) and when each type is appropriate.
Wrong:
Describing how a type of compression works instead of justifying why it suits the scenario
Right:
Explain why the type of compression is appropriate for the specific scenario given
Why it matters: OCR examiners noted this is a common way candidates lose marks on "recommend and justify" compression questions.
Wrong:
Using lossy compression for a text document
Right:
Use lossless compression for text, since losing data could corrupt the document or change its meaning
Why it matters: Text files require every character to be preserved exactly, lossy compression is not appropriate.
Wrong:
Lossless compression always reduces file size more than lossy
Right:
Lossy compression achieves a much greater reduction in file size than lossless, because it permanently discards data
Why it matters: It's the opposite way round, lossless keeps all the data, so it can't shrink the file as much as lossy can.
Question:
A music streaming app compresses songs before sending them to users. Recommend whether lossy or lossless compression should be used, and justify your answer. [3]
💡 Attempt this before revealing the answer, practice makes perfect!
Model Answer:
Lossy compression should be used. This is because it achieves a much greater reduction in file size than lossless compression, meaning songs can stream faster and use less data. A small loss in audio quality from lossy compression is unlikely to be noticed by most listeners, so the trade-off is worthwhile.
Mark Scheme:
- 1Identifies lossy compression
- 2Justifies with greater file size reduction, allowing faster streaming/less data use
- 3Justifies with the small quality loss being acceptable/unlikely to be noticed
Tap a card to flip it. Use the arrow keys to move and space to flip.
Exam-style questions. Have a go, then reveal the mark scheme to check your answer.
1.State one reason why compression is used.
[1]2.State the difference between lossy and lossless compression.
[2]3.A student is emailing a Word document containing coursework text to their teacher. Recommend a type of compression and justify your answer.
[2]4.A photographer wants to upload holiday photos to a website, and file size is more important to them than perfect image quality. Recommend a type of compression and justify your answer.
[2]5.Explain why lossless compression is not usually suitable for streaming music to many users at once.
[3]6.A photographer stores original images and also emails previews to clients. Discuss whether they should use lossy or lossless compression.
[8]Extended response · marked in levels, not by counting points
The examiners' reports are the most useful and least read of the three: they say what candidates actually got wrong each year. All files are hosted by OCR.
Past-paper questions grouped by topic
The same OCR questions, sorted by topic rather than by year (via Physics & Maths Tutor).
On a question about compressing a text file, most candidates correctly identified lossless compression. Stronger answers justified this either by explaining why lossless suits text, or by explaining why lossy would not be appropriate.
On a question about compressing an image or audio file, many candidates correctly recommended lossy compression, explaining that the loss of data would not be noticed and that it reduces file size more. Candidates who chose lossless sometimes struggled to justify their choice appropriately.
A general pattern noted across "recommend and justify" style questions: some candidates gave a choice but described how that method works rather than explaining why it was the most appropriate choice for the given context. Only the "why" earns justification marks.