aimnova.
DashboardMy LearningPaper MasteryStudy Plan

Aimnova site navigation

Stay in the loop

Get the latest study resources and updates

New features, study tips and exam insights — straight to your inbox.

IB Diploma

  • IB Past Papers
  • IB Study Notes
  • IB Question Bank
  • IB Mock Exams
  • IB Revision

IB Subjects

  • IB Math AA
  • IB Math AI
  • IB Economics
  • IB Business Management
  • IB Physics
  • IB Biology
  • View all IB subjects→

IB Past Papers

  • IB Math AA HL Past Papers
  • IB Math AA SL Past Papers
  • IB Math AI HL Past Papers
  • IB Math AI SL Past Papers
  • IB Economics HL Past Papers
  • IB Economics SL Past Papers
  • IB ESS Past Papers
  • View all past papers→

Study Resources

  • Study Notes
  • Question Bank
  • Mock Exams
  • Flashcards
  • Revision Guide
  • Exam Skills
  • Command Terms
  • Grade Calculator
  • Exam Timetable 2026

Aimnova

  • Features
  • Pricing
  • For Schools
  • For Parents
  • About Us
  • Blog
  • Contact
aimnova.

AI-powered study platform for smarter revision, past-paper analysis and examiner-style feedback.

TermsPrivacyCookies·© 2026 Aimnova. All rights reserved.8afc4e3

Aimnova is not affiliated with or endorsed by the International Baccalaureate Organization (IB).

NotesComputer ScienceTopic 1.1Compression
Back to Computer Science Topics
1.1.83 min read

Compression

IB Computer Science • Unit 1

Exam preparation

Practice the questions examiners actually ask

Our question bank mirrors real IB exam papers. Practice under timed conditions and track your progress across topics.

Start Practicing

Contents

  • Making a file smaller
  • Lossless — nothing is thrown away
  • Lossy — detail is discarded
  • Exam-style question
The big idea: Compression stores the same thing in fewer bits.

Smaller files take up less room and travel faster over a network — which is why every photo, song and video you meet has been compressed.
Why it is possible at all: Because real files repeat themselves. A photo of a sky has thousands of almost identical blue pixels in a row.

Anything that repeats can be written down more briefly than spelling it out.

Free preview

This is the free notes preview

You're reading the free notes. Aimnova Pro unlocks the full study experience — and you can try it with your first topic free to keep:

  • FlashcardsLock in vocabulary and key terms with spaced repetition.
  • Practice questionsAnswer exam-style questions and get instant AI marking.
  • Mock exams & past-paper vaultSit full mocks and see exactly how examiners award marks.
  • Personalised study planA daily plan built around your exam date and weak areas.
Start Studying Free Full access to Aimnova Pro · cancel anytime
Run-length encoding: Instead of storing every pixel, store how many in a row and what colour.

Six white pixels become "6 white". Expand it again and you get all six back, exactly.

One row of an image: 20 values become 5 count-and-colour pairs, and every original pixel can be recovered.

Interactive diagram

Explore the labelled diagram, charts and maps for this topic in full study mode.

Claim your free topic
What lossless means: The original can be rebuilt perfectly. Nothing has been discarded — only written more briefly.

Essential for text, code and spreadsheets, where one wrong character matters.

Learn what examiners really want

See exactly what to write to score full marks. Our AI shows you model answers and the key phrases examiners look for.

Try AI Feedback FreeYour first topic is free to keep • No credit card required
Throw away what nobody notices: Lossy compression permanently removes detail people are unlikely to miss — slight colour differences, sounds too quiet to hear behind louder ones.

It saves far more room, but the original is gone for good.

Lossless

  • Original rebuilt exactly
  • Saves less space
  • Text, code, spreadsheets, ZIP, PNG
  • Run-length encoding is one method

Lossy

  • Original cannot be recovered
  • Saves much more space
  • Photos, music, video — JPEG, MP3
  • Transform coding is the usual method
Transform coding, briefly: The method behind JPEG and MP3. It converts the data into a form that separates detail people notice from detail they do not, then keeps the first and discards the second.

How this is tested — you must say WHAT each method does to the data and match it to a file type. It comes up two ways:

Paper 1 Section A

  • Describe compression, or contrast lossy with lossless, 2-4 marks
  • Explain run-length encoding with an example
  • Choose a method for a stated kind of file

Paper 1 Section B — case study

  • Recommend compression for the case study's files
  • Justify it from what those files are used for
The classic trap: Saying lossy "makes files smaller" and lossless "keeps quality". Both make files smaller. The difference is whether the original can be rebuilt exactly — say that.
IB-style questionExplain[4 marks]

A company stores scanned contracts and promotional photographs. Explain which type of compression suits each, justifying your choices.

Model answer plan

See the mark-by-mark plan — for / against / judgement, with marking guidance — in study mode.

Claim your free topic

Try an IB Exam Question — Free AI Feedback

Test yourself on Compression. Write your answer and get instant AI feedback — just like a real IB examiner.

the term data compression. [1 mark]

Related Computer Science Topics

Continue learning with these related topics from the same unit:

1.1.1CPU components
1.1.2The GPU
1.1.4Primary memory
1.1.5Fetch–decode–execute
View all Computer Science topics

Improve your exam technique

Command terms, paper structure, and mark-scheme tips for Computer Science

Previous
1.1.7Secondary storage
Next
Cloud services1.1.9

20 exam-style questions ready for you

Students who practice on Aimnova improve their scores by 15% on average. Get instant feedback that shows exactly how to improve your answers.

Practice Now — FreeView All Computer Science Topics