Computer Science GCSE
Data Compression
As computers have become more powerful we have started to save more and more data. Digital photographs, for example, used to be restricted by the secondary storage devices (such as floppy discs and memory cards) which were available. They had to be small in order to fit onto a floppy disc with 1.44MB capacity.
Storage has changed and storage memory and secondary storage devices have much greater capacities nowadays and are much cheaper. Network speeds are quicker as well, so we can transfer files quicker over networks such as the internet.
Even with cheap storage memory it is still useful to reduce the size of a file where possible. This allows, for example, a computer to process the data quicker and for web users to be able to download image or sound files much more quickly, particularly over slower mobile networks.
Reducing the size of a file is known as compressing it.
How compression works
The key things to make sure that you understand here are:
- what compression does to a file - including to the file size
- the differences between lossy and lossless compression
- how compression works for JPEG image files and MP3 audio files
- how Run-length Encoding works
This all links to an understanding of how files are stored and how file size and file transfer rates work.
Data Compression - key notes, including on Run Length Encoding (RLE)
Compression question - exam style question


Run Length Encoding is dealt with on Bitesize as well, although in relation to video files. There is a little more detail, linked to image files, on the Scottish Higher Bitesize page
(note: this is sixth for material!)
The Impacts of Data Compression
There are many obvious impacts of data compression - smaller files to transfer across networks, for example, or to store on mp3 devices or video devices.
There are other, wider, impacts as well though. This crosses over into the impacts of computing on society section of the syallabus.
The Impacts of MP3 Compression - a long, exam style question
Notes about the impacts of MP3 - to help with the question
BBC news article, July 2015 - it's illegal to rip copies of your own CDs or DVDs again...