Why is data compressed, and when should you use lossy rather than lossless compression?
The purpose of compression, the difference between lossy and lossless compression, and how to choose the appropriate type for a given scenario.
An Eduqas GCSE Computer Science answer on why data is compressed and the difference between lossy and lossless compression, including run-length encoding and how to choose the right type for a given scenario.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
Eduqas wants you to explain why data is compressed and the difference between lossy and lossless compression, and to choose the right type for a scenario. You should also be able to describe run-length encoding as one lossless method. The contrast and the scenario choice are the marks.
Why compress data
Lossy compression
Lossless compression
Run-length encoding
Try this
Q1. State one reason a file might be compressed before sending it over the internet. [1 mark]
- Cue. To reduce its size so it transfers faster and uses less bandwidth.
Q2. State the key difference between lossy and lossless compression. [2 marks]
- Cue. Lossy permanently removes data and cannot fully restore the original; lossless removes no data and the original can be reconstructed exactly.
Q3. Name one type of file for which lossless compression must be used. [1 mark]
- Cue. A text document, spreadsheet or program/executable file (any one).
Exam-style practice questions
Practice questions written in the style of WJEC Eduqas exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
Eduqas Component 1, 20224 marksExplain the difference between lossy and lossless compression, and give a suitable use for each.Show worked answer →
Lossy (up to 2 marks): some data is permanently removed to make the file much smaller, so the original cannot be fully restored; the loss is chosen to be hard for people to notice. Suitable use: streaming or storing music (MP3) or photos (JPEG), where a small quality drop is acceptable.
Lossless (up to 2 marks): no data is lost, so the original can be reconstructed exactly, usually with a smaller reduction in size. Suitable use: text documents, spreadsheets or program files (ZIP, PNG), where every bit must be recovered.
Markers reward the "permanently removed, cannot restore" versus "no loss, can restore exactly" contrast, plus a sensible use for each.
Eduqas Component 1, 20233 marksDescribe how run-length encoding compresses data, and state one type of data for which it works well.Show worked answer →
Run-length encoding (up to 2 marks): it replaces runs of the same repeated value with a single value and a count of how many times it repeats, so a long run of identical data is stored much more compactly. For example a row of 20 identical white pixels is stored as "white, 20" rather than listing all 20.
Works well (1 mark): on data with long runs of repetition, such as simple images with large areas of one colour (icons, logos). It is lossless, so the original is fully restored.
Markers reward the value-plus-count idea and a data type with lots of repetition.
Related dot points
- Number systems: binary, denary and hexadecimal, and how to convert between all three, including why hexadecimal is used as a shorthand for binary.
An Eduqas GCSE Computer Science answer on the binary, denary and hexadecimal number systems and how to convert between all three, with worked place-value methods and the reason hexadecimal is a useful shorthand for binary.
- The units of data (bit, nibble, byte, kilobyte, megabyte, gigabyte, terabyte), how images are stored as pixels (resolution and colour depth), how sound is sampled (sample rate and bit depth), and calculating file sizes.
An Eduqas GCSE Computer Science answer on the units of data, how images (resolution and colour depth) and sound (sample rate and bit depth) are represented in binary, and full worked calculations of image and sound file sizes.
- How text is represented using character sets, the ASCII character set, the need for and nature of Unicode, and how a character maps to a binary code.
An Eduqas GCSE Computer Science answer on how text is stored in binary using character sets, the 7-bit ASCII set, why Unicode was needed to support many languages, and how a character maps to a binary code.
- Cloud storage and its advantages and disadvantages, and the characteristics and uses of embedded systems compared with general-purpose computers.
An Eduqas GCSE Computer Science answer on cloud storage (what it is, its advantages and disadvantages) and embedded systems (their characteristics, why they suit one dedicated task, and how they differ from general-purpose computers).
- LANs and WANs and the benefits and drawbacks of networking, and the bus, star and mesh network topologies with their advantages and disadvantages.
An Eduqas GCSE Computer Science answer on LANs and WANs, the benefits and drawbacks of networking, and the bus, star and mesh topologies with the advantages and disadvantages of each.
Sources & how we know this
- WJEC Eduqas GCSE Computer Science specification (from 2016) — Eduqas (2020)