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?

Make it your own, then 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:

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

How to reference these.

Frequently asked questions

Is this a good maths EPQ idea?

It can be. We rate it Solid: it needs some new maths learned on your own. Use a truncated hash in code so collisions happen in seconds.

What maths does this EPQ use?

It builds on these A Level topics: Probability; Exponentials and logarithms. You would learn: Hash functions; Approximations using eˣ; Square-root attacks.

Next step

Turn this idea into your own title, then check it in two minutes.

Check your title

Plan your timeline · How it is marked · Dissertation structure

Revising A Level Maths too? A free account saves your practice and progress. Join free · Sign in

Similar ideas

All maths and computer science ideas · all 93 ideas

Your EPQ must be your own work. 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.