Comment on Python code to solve xkcd 1313 by Peter NorvigComments−thewarrior12yCould this be used as an alternative to a bloom filter ?−gwern12yIf you know everything ahead of time, you could probably just use something like a https://en.wikipedia.org/wiki/Perfect_hash_function
Comments
Could this be used as an alternative to a bloom filter ?
If you know everything ahead of time, you could probably just use something like a https://en.wikipedia.org/wiki/Perfect_hash_function