Back to Data Storage And Compression

Oak National Academy

Lessons written by expert teachers in England, each with slides, a video and quizzes.

Their topic:
Data compression
For your topic:
Data Storage And Compression · Computer Science - 4CP0

Use these lessons alongside our lesson note, which covers your syllabus in full.

What this covers in your syllabus

3 lessons from Oak National Academy

Lesson 1 of 3 · GCSE level, ages 14 to 16

Lossy and lossless compression

By the end: I can compare lossy and lossless data compression.

Key learning points

  1. Data compression is either lossy and lossless.
  2. Lossy data compression permanently removes some data to reduce file size.
  3. Lossless compression reduces file size without losing any data.

Keywords

lossy
a compression method where data is permanently lost during the process
lossless
a compression method where no data is permanently lost during the process
quality
how good, reliable or suitable something is for its intended purpose

A common mistake

Mistake: Lossy compression always results in a poor quality file that is not as usable as the original version.

In fact: Lossy compression removes data that is considered unnecessary or less noticeable, which may not impact the perceived quality of the file, especially to the human eye or ear.

Check what you learned

From Oak National Academy's exit quiz. Choose every answer that is right.

Why might lossy compression be used instead of lossless compression?
What is one advantage of lossless compression?
Does lossy compression always result in a poor-quality file?
Which compression method is reversible?

A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0. Read the licence

Lesson 2 of 3 · GCSE level, ages 14 to 16

Measurements of storage

By the end: I can define different storage units and convert between them.

Key learning points

  1. Data in computer systems is represented and stored as binary (0s and 1s).
  2. Storage units can be converted.
  3. Different files take up different amounts of storage.
  4. Knowing file sizes helps manage storage space efficiently.

Keywords

bit
a binary digit, the basic unit of data within a computer system that has the value 0 or 1
byte
a group of 8 bits
number prefixes
a word used in front of a number to represent a multiple of that number

A common mistake

Mistake: Bits and bytes are the same thing. They all refer to binary numbers.

In fact: A bit is the smallest unit of data. A byte is a group of 8 bits and is used to summarise larger sequences of bits in a more convenient way.

Check what you learned

From Oak National Academy's exit quiz. Choose every answer that is right.

What is binary used for in computing?
What does a number prefix represent in computing?
What is the purpose of knowing file sizes?

A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0. Read the licence

Lesson 3 of 3 · GCSE level, ages 14 to 16

Run length encoding

By the end: I can describe and use run length encoding to compress data.

Key learning points

  1. Run length encoding is a lossless data compression technique that reduces the size of repeating sequences of data.
  2. Run length encoding uses the concept of redundancy to reduce file size.
  3. Redundancy is about the repetitive information within a data set, which can be removed without losing essential meaning.
  4. Run length encoding may not always reduce file size and may not be suitable for all applications.

Keywords

run length encoding
a common type of lossless compression
data pattern
a recurring trend, relationship, or structure found within a set of data
redundancy
repeated or extra data that isn’t needed

A common mistake

Mistake: Run length encoding always reduces file size.

In fact: Run length encoding only works well when data has long repeated patterns. If data is random or has frequent changes, RLE may not reduce the file size and can even make it bigger. For example, compressing "HELLO" with RLE results in "1H1E2L1O".

Check what you learned

From Oak National Academy's exit quiz. Choose every answer that is right.

What type of compression is run length encoding?
What is redundancy in a data set?
When does run length encoding work best?
Which of the following is an example of run length encoding?
Does run length encoding always reduce file size?

A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0. Read the licence

The wording comes from each publisher. The layout and the links to your syllabus are ours.