Counting hash collisions with the birthday paradox

·Matt Might··

The birthday paradox observes that in a room of 23 people, the odds that at least two people share a birthday is 50% The same logic that drives matching birthdays also drives the probability that one can find collisions with a hash function. In other words, if you have a uniform hashing function that outputs a value between 1 and 365 for any input, the probability that two hashes would collide in a set of 23 values is also 50% Another useful calculation is the expected number of collisions for a...

Read full article →

Related Articles

Does Employment Slow Cognitive Decline? Evidence from Labor Market Shocks
littlexsparkee · Hacker News · 16d ago
Group averages obscure how an individual's brain controls behavior: study
hhs · Hacker News · 20d ago
Underwater robot tracks sperm whale conversations in real time
thedebuglife · Hacker News · 17d ago
Researchers print structural colour with an inkjet printer
zeristor · Hacker News · 18d ago
Urban Birds Are Rising Earlier Because of Traffic Noise (2013)
thunderbong · Hacker News · 17d ago