Earlier quoted context omitted.
> you only have one value that encodes to a certain hash value, right? Errr wrong. A perfect hash, yes. But they're never perfect. You have a collision domain and you hope that you don't have enough inputs to trigger a birthday paradox. Look at the pictures on the article. It's an outline of the shoe. That's your hash. ANY shoe with that general outline resolves to that same hash. If your input is objects found in th…
FYI (not because it’s particularly relevant to the sort of hashing that is being talked about, but because it’s a useful piece of info that might interest people, and corrects what I think is a misunderstanding in the parent comment): perfect hash functions are a thing, and are useful: https://en.wikipedia.org/wiki/Perfect_hash_function . So long as you’re dealing with a known, finite set of values, you can craft a u…
Thanks for the rust-phf link. I'm bookmarking for my next project!