Three haystacks; the middle one is spotlit with a glowing needle inside it An illustration showing three haystacks. The left and right haystacks are dim. The center haystack is illuminated by a spotlight from above, with a glowing needle visible inside it, representing hashing finding the right bucket immediately. bucket 0 bucket 4 hash(key) → 2 bucket 2
"Hashing transforms the problem of finding a needle in a haystack into merely knowing which haystack to look in."

on hashing  ·  data structures