Skip to main content

Maths and computer science · Solid · Dissertation

Hash collisions and the birthday problem: a maths EPQ idea

A title to start from

How likely are two different files to share a hash, and what does the birthday problem say about security?

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

The birthday problem gives a precise estimate you can test on a deliberately small hash.

Scope and difficulty

Solid. Solid. Use a truncated hash in code so collisions happen in seconds.

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. Derive the collision probability and the √N rule of thumb.
  2. Truncate a hash to a few bits and count collisions.
  3. Compare with the theory.
  4. Judge what hash length is needed and why.

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).

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.