GCSE · Computer Science · Eduqas · Spec C500QS

Principles of data compression

Imagine texting a friend 5W 6B 3G instead of 14 separate pixels. Same picture, fewer pieces. That one trick is the whole idea behind compression.

​

Computer Science · Compression

One row of pixels, four ways

  1. 1 Explore
  2. 2 Translate
  3. 3 Spot the mismatch

Model. A toy row of 14 pixels. Each letter is one pixel: W is white, B is black, G is a dark grey that is hard to tell from black. Real files are vastly bigger; this only shows the idea.

Step 1 · Explore

Tap a colour in the key, or a run in any tab, and watch where it shows up in the other tabs. Then flip between the Original row and Lossless, decompressed. Then look at the Lossy tab.

Linked parts: select one to follow it through every representation

The file as it starts: every pixel written out one by one.

Linked parts tried: 0 of 2.

Why compress?

?

Reason it through

Why do people bother compressing files?

Link 1 of 4

First link · your turn

What does compressing do to the number of bits a file needs?

2
Locked — reveal the link above first
3
Locked — reveal the link above first
4
Locked — reveal the link above first

Two types of compression

LossyvsLossless

Read across each row: the first is the one people mix up most.

Focus

Is data permanently removed?

Lossy

Yes, some of it

Lossless

No, none of it

The insight

This is the dividing line. Everything else follows from it.

Can the original be recovered exactly?

Lossy

No

Lossless

Yes, when it is decompressed

How small does the file get?

Lossy

Usually much smaller than lossless can manage

Lossless

Smaller than the original, but usually not as small as lossy

What happens to quality?

Lossy

Some quality is lost

Lossless

No quality is lost

Computer Science · Compression

Which type suits which file?

Which type of compression suits each kind of file?

Still to sort

Lossy (0)

Removing detail people are unlikely to notice is acceptable for a much smaller file.

Where the line is: Choose lossy only when losing a little detail does no harm.

Lossless (0)

The file must be recovered exactly.

Where the line is: Choose lossless when losing even a small amount of data would corrupt the file or change its meaning.

6 of 6 still to sort.

Pick a file, then the type of compression that suits it.

Computer Science · Compression

Which idea is closest to yours?

Which of these is closest to what you think right now?
How sure are you?

Computer Science · Exam practice

Write it, then mark it

A video of a school concert is going to be streamed to parents. Explain why lossy compression could be used for this file. [4 marks]

0 words · your answer stays on this page and is not sent anywhere.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Same file, less data: and the one question that tells lossy from lossless.

What you need to know

  • Data compression reduces the size of a file, so fewer bits are needed to store or send it.
  • The trick is to represent the same file using less data: write repeated patterns more efficiently, or remove data that is not needed.
  • Have a goYour mate Sam says compression just squashes the bits closer together so the file fits in a smaller space. Is Sam right?

    No. Compression represents the same file using less data, so fewer bits are needed.

    Nothing is physically squashed: patterns are written more efficiently, or unneeded data is removed.

  • A smaller file takes up less storage space, so more files fit on the same device.
  • A smaller file transfers more quickly over a network or the internet, because fewer bits are sent. It also uses less bandwidth.
  • Have a goThe same video is sent twice over one connection: once as it is, once compressed. Which finishes first, and why?

    The compressed one, because fewer bits have to be sent.

    Transfer time follows the number of bits sent, and fewer bits also means less bandwidth used.

  • A compressed file normally has to be decompressed, meaning expanded back into a usable form, before you can open it.
  • There are two types of compression: lossy and lossless.
  • Lossless reduces file size without permanently losing any data, so decompressing rebuilds the original exactly.
  • Lossy permanently removes some of the data, so the original cannot be recovered exactly.
  • Have a goA photo is saved with lossy compression, then decompressed. Will it be exactly the same as the original?

    No. Some data was permanently removed.

    Decompressing expands the file but cannot restore data that lossy compression removed.

  • Lossy usually makes a file much smaller than lossless can, but some quality is lost.
  • Lossy suits photographs, sound and video. Lossless suits text documents, program files and spreadsheets.

The big picture

Compression stores the same file using less data. Lossless compression can be undone to give back the original exactly; lossy compression permanently removes some data, so it cannot.

Key points

1Compression means representing the same file using less data, so fewer bits are needed.
2Smaller files use less storage, transfer more quickly and use less bandwidth.
3Compressed files normally need decompressing before they can be used.
4Lossless can be reconstructed exactly. Lossy permanently removes some data, so it cannot.
5Lossy suits files where unnoticed detail can go. Lossless suits files that must be exact.

Worked example

Problem

A school librarian wants to shrink two files before emailing them: a recording of an assembly and a spreadsheet of library loans. Which type of compression should each file use, and what happens when the files are opened?

⚠ Watch out

Mixing up which type loses data. Lossy is the one that loses it for good; lossless never does, so its decompressed file is exactly the original.

🧠

Memory hook

Lossy loses data for good. Lossless loses nothing, so it rebuilds exactly.

✓

Check yourself

A photographer compresses a photograph with lossy compression and a report with lossless. Explain what happens to the data in each file, and say which one can be recovered exactly.

Flashcards

(12)
What is data compression?
The process of reducing the size of a file, so fewer bits are needed to store or send it.
What is the principle behind compression?
Represent the same file using less data: encode repeated or predictable patterns more efficiently, or remove data that is not needed.
Why does compression help with storage?
The file takes up less storage space, so more files can be kept on the same device.
Why does compression speed up transfers?
Fewer bits have to be sent, so the file transfers more quickly and uses less bandwidth.
What normally has to happen to a compressed file before you can use it?
It must be decompressed: expanded back into a usable form.
What are the two types of compression?
Lossy and lossless.
The one question that separates lossy from lossless?
Can the original be recovered exactly? Lossless: yes. Lossy: no.
What does lossy compression do to the data?
It permanently removes some of it.
What does lossless compression do to the data?
Reduces file size without permanently losing any data, so the original can be reconstructed exactly.
Which type usually gives the much smaller file, and what is the price?
Lossy. The price is that some quality is lost.
Which files suit lossy compression, and why is that acceptable?
Photographs, sound and video. Detail people are unlikely to notice can go for a much smaller file.
Which files suit lossless compression, and why?
Text documents, program files and spreadsheets. Losing even a little data would corrupt the file or change its meaning.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More Eduqas GCSE Computer Science topics

See the full Eduqas Computer Science curriculum →

How this lesson was checked. This Eduqas GCSE Computer Science (specification C500QS)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 16 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.