Hashes and collisions
Posted Nov 7, 2003 10:54 UTC (Fri) by
nowster (subscriber, #67)
In reply to:
An attempt to backdoor the kernel by hingo
Parent article:
An attempt to backdoor the kernel
Even with a good hash function, you need to build in the ability to handle collisions. Consider the following problem:
How many people do you have to have in a room before you have a better than 50% chance that two of them share the same birthday (ignoring the year)?
The answer is surprisingly low (23). This is known as the Birthday Paradox. The probability of a collision approaches "evens" when (very) approximately sqrt(total_number_of_slots) hash slots have been used. Collisions are possible (but very rare) even with just two hash entries.
(
Log in to post comments)