Eduqas A-Level Computer Science A500QS
Data Structures: Arrays, Records and Hash Tables
Stacks, Queues, Linked Lists and Trees
Boolean Logic and Simplification
Algorithms, Pseudo-Code and Programming Constructs
Variables, Scope, Parameters and Identifiers
Recursion and Modular Programming
Sorting Algorithms
Searching and Shortest-Path Algorithms
Big O Notation and Algorithm Efficiency
Validation, Verification and Testing
Data Compression
Programming Paradigms and Computer Languages
Systems Analysis, Maintenance and Documentation
System Design and Human-Computer Interaction
Software Engineering Tools and Translators
Computing, Society and the Law
Computer Architecture, the Processor and Assembly Language
Input, Output and Secondary Storage
Networks, Protocols and the Internet
Data Transmission and Network Performance
Number Systems and Binary Arithmetic
Data Types, Characters and Floating Point
Files, Records and File Organisation
Databases, Normalisation and Entity Modelling
SQL, Big Data and Distributed Systems
The Operating System and Its Modes
Interrupts, Memory Management and Scheduling
Types of Software System
Data Security, Cryptography and Attack
Data Compression
- 7 subtopics
- 21 things to know
- Component 1
What Data Compression covers
Data Compression is examined in Component 1, Programming and System Development. It covers what data compression is and why it is used, lossless compression, lossy compression, run-length encoding, dictionary and Huffman coding, measuring compression: ratio and saving percentage and choosing a compression method.
The 7 subtopics
Each one has its own page.
- What data compression is and why it is usedData compression, two reasons a file is compressed before storage and two reasons a file is compressed before transmission.Open →
- Lossless compressionLossless compression and two file types that must be compressed losslessly.Open →
- Lossy compressionLossy compression, two media types normally compressed lossily and lossy image format and a lossy audio format.Open →
- Run-length encodingHow run-length encoding works, data does run-length encoding compress well and data does run-length encoding compress badly.Open →
- Dictionary and Huffman codingPrinciple of dictionary compression, widely used dictionary compression algorithm and principle of Huffman coding.Open →
- Measuring compression: ratio and saving percentageFormula for compression ratio, formula for saving percentage and compression time.Open →
- Choosing a compression methodFirst question to ask when choosing a compression method and one factor besides ratio and time when choosing a format.Open →
What you need to know
Answer each one before you reveal it.
Why does random data resist compression, and where is lossless compression essential?
Define lossy compression.
Explain how run-length encoding works.
Explain the principle of dictionary compression.
State the formula for compression ratio.
State the first question to ask when choosing a compression method.
Define data compression.
Define lossless compression.
Name two media types normally compressed lossily.
Is run-length encoding lossless or lossy?
Name a widely used dictionary compression algorithm.
A 200 MB file compresses to 50 MB. State the compression ratio.
Which method suits a scanned black-and-white document, and why?
State two reasons a file is compressed before storage.
State two file types that must be compressed losslessly.
Name a lossy image format and a lossy audio format.
Encode the string AAAABBBCCD using run-length encoding.
Why does a dictionary method suit natural language text?
State the formula for saving percentage.
Which method suits a photograph for a web page, and why?
Take Data Compression further
The same content, four other ways.
Commonly confused
Pairs that lose marks when they are blurred together.
Compression ratio vs Saving percentage
Compression ratio: dividing the original size by the compressed size. Saving percentage: stating the proportion of the original removed.
Run-length encoding vs Huffman coding
Run-length encoding: replacing a run of identical values with a count. Huffman coding: giving frequent symbols shorter codes.
Dictionary compression vs Huffman coding
Dictionary compression: replacing a repeated sequence with a reference. Huffman coding: shortening individual symbols by frequency.
Questions from this topic
Each one with the model answer underneath.
- 1
Define data compression.
Model answer
Data compression is the process of re-encoding a file so that it occupies fewer bits than the original. The encoding removes redundancy rather than meaning.
- 2
State two reasons a file is compressed before storage.
Model answer
Compression lets more files fit in the same storage. The cost of that storage falls in proportion.
- 3
State two reasons a file is compressed before transmission.
Model answer
A smaller file takes less time to send over a given bandwidth. Less of the network's capacity is occupied while it travels.
- 4
What is redundancy in a data file?
Model answer
Redundancy is any part of a file that carries no information a decoder needs. Repeated bytes and predictable patterns are both forms of redundancy.
- 5
Explain why an uncompressed bitmap contains a great deal of redundancy.
Model answer
An uncompressed bitmap stores a full colour value for every pixel. Large areas of one colour therefore repeat the same value thousands of times.
- 6
What is a codec?
Model answer
A codec is the pair of algorithms that compresses data and decompresses it again. The name is short for coder-decoder.
What is inside Levo
Six ways to work the same material.
Data Compression revision questions
- What does Data Compression cover in Eduqas A-Level Computer Science?
- 7 subtopics: what data compression is and why it is used, lossless compression, lossy compression, run-length encoding, dictionary and huffman coding, measuring compression: ratio and saving percentage and choosing a compression method. Each one has its own page with questions and model answers.
- How is Data Compression organised?
- By the Eduqas A500QS specification, subtopic by subtopic, so it matches the order you are taught it in.
Every question in Data Compression, on a schedule.
Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.
Or £46 a year, about £3.83 a month. Cancel anytime.