Skip to main content

Maths and computer science · Solid · Dissertation or artefact

How compression makes files smaller: a maths EPQ idea

A title to start from

How can a file be made smaller without losing anything, and what is the limit?

A starting point, not your title. Change the case, the data or the comparison until it is yours, then agree it with your supervisor. Check your title.

Why it works as an EPQ

Huffman coding is a short algorithm with a proof of optimality, and entropy gives a clear limit to test against.

Scope and difficulty

Solid. Solid. Huffman coding and entropy on texts you choose.

The maths

Builds on these A Level topics: Probability · Exponentials and logarithms.

You would learn:

Learning maths beyond the course is expected in a maths EPQ, but you must understand and explain everything you use.

One possible plan

  1. Build Huffman codes by hand for small texts.
  2. Calculate the entropy and compare average code length with it.
  3. Implement it and test on English text, code and random data.
  4. Judge why some files barely compress.

Pitfalls

Where to start reading

Prefer books, lecture notes, journal articles and official data to a single website, and record every source as you read (how to reference).

Making something? Read the artefact guide first: an artefact still needs a research-based written report.

Similar ideas

All maths and computer science ideas · all 93 ideas

Your EPQ must be your own work. These pages coach: ideas, structure, checklists and planning. Submitting text, proofs, code or analysis written by someone else or by an AI tool as your own is malpractice. How to use help and AI honestly.

The Extended Project Qualification is offered by several awarding bodies, including AQA, Pearson Edexcel, OCR and WJEC/Eduqas. A Level Math Revision is independent and is not affiliated with or endorsed by any awarding body or university. Summaries of the rules are in our own words: your school and your board's specification have the final say. Every idea here is our own.