Why all hash functions are “broken”? Explain.

Technology CommunityCategory: Hash TablesWhy all hash functions are “broken”? Explain.
VietMX Staff asked 3 years ago

The pigeonhole principle says that try as hard as you will you can not fit more than 2 pigeons in 2 holes (unless you cut the pigeons up). Similarly you can not fit 2^128 + 1 numbers in 2^128 slots. All hash functions result in a hash of finite size, this means that you can always find a collision if you search through “finite size” + 1 sequences. It’s just not feasible to do so.