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 · 4d ago
Underwater robot tracks sperm whale conversations in real time
thedebuglife · Hacker News · 5d ago
Linking spatial biology and clinical histology via Haiku
Yan Cui, Jacob S. Leiby, Wenhui Lei, Dokyoon Kim, Yanxiang Deng, Aaron T. Mayer, Zhenqin Wu, Alexandro E. Trevino, Zhi Huang · ArXiv cs.LG · 3d ago
CGM-JEPA: Learning Consistent Continuous Glucose Monitor Representations via Predictive Self-Supervised Pretraining
Hada Melino Muhammad, Zechen Li, Flora Salim, Ahmed A. Metwally · ArXiv cs.LG · 3d ago
CellxPert: Inference-Time MCMC Steering of a Multi-Omics Single-Cell Foundation Model for In-Silico Perturbation
Andac Demir, Erik W. Anderson, Jeremy L. Jenkins, Srayanta Mukherjee · ArXiv q-bio · 3d ago