by bytehamster · 1y ago · 0 comments
About false positive checks, I think you misunderstand what a perfect hash function does.
That's always the case when dealing with you academics.
We dont care how you define your costs when we laugh about that. In reality you have to load the keys, the data structures and check for existance. You even discard the existance checks, by omitting the false-positive checks. Checking against a non-existing key will lead to a hit in your check. Only very rarely you know in advance if your key is in the set