ParentFull threadckuehne·Well, there is perfect hashing [1]. Of course it does only work under several assumptions. And you pay for it in terms of time it takes to construct the hash function or in terms of space.[1] http://en.wikipedia.org/wiki/Perfect_hash_functionView on HN