Compression (CIE IGCSE Computer Science)

Revision Note

Test Yourself
Becci Peters

Expertise

Computer Science

Compression

Compression is reducing the size of a file. This is done to reduce the amount of storage space it takes up or to reduce the bandwidth when sending a file. There are 2 types of compression:

  • Lossless Compression:
    • A compression algorithm is used to  reduces the file size without permanently removing any data
    • Repeated patterns in the file are identified and indexed
    • The data is replaced with the index and positions stored
    • The number of times the pattern appears is also stored
    • Techniques like run-length encoding (RLE) and Huffman encoding are used
    • RLE replaces sequences of repeated characters with a code that represents the character and the number of times it is repeated
    • Huffman encoding replaces frequently used characters with shorter codes and less frequently used characters with longer codes

  • Lossy Compression:
    • Lossy compression reduces the file size by permanently removing some data from the file
    • This method is often used for images and audio files where minor details or data can be removed without significantly impacting the quality
    • Techniques like downsampling, reducing resolution or colour depth, and reducing the sample rate or resolution are used for lossy compression
    • The amount of data removed depends on the level of compression selected and can impact the quality of the final file

  • Overall:
    • Compression is necessary to reduce the size of large files for storage, transmission, and faster processing
    • The choice between lossy and lossless compression methods depends on the type of file and its intended use
    • Lossy compression is generally used for media files where minor data loss is acceptable while lossless compression is used for text, code, and archival purposes

You've read 0 of your 0 free revision notes

Get unlimited access

to absolutely everything:

  • Downloadable PDFs
  • Unlimited Revision Notes
  • Topic Questions
  • Past Papers
  • Model Answers
  • Videos (Maths and Science)

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

Becci Peters

Author: Becci Peters

Becci has been a passionate Computing teacher for over 9 years, teaching Computing across the UK helping to engage, interest and develop confidence in the subject at all levels. Working as a Head of Department and then as an educational consultant, Becci has advised schools in England, where her role was to support and coach teachers to improve Computing teaching for all. Becci is also a senior examiner for multiple exam boards covering GCSE & A-level. She has worked as a lecturer at a university, lecturing trainee teachers for Computing.