Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
layoutIfNeeded
· 6y ago · 0 comments
Interesting. Where does 3 come from for the number of hash functions? Why not 4 or 5?
Comments
[–]
fixf
6y ago
The minimum number motivated to work is also the cheapest. 2 was simply deemed insecure.
[–]
thomasmg
6y ago
No, actually 2 would also work. It's just that 3 hash functions needs the least space for some reason (less than 2, less than 4 or more).
[–]
fixf
6y ago
Well met, and thanks for identifying the solution using overhead.
[–]
layoutIfNeeded
OP
6y ago
Insecure? What does that mean in the context of a read-only data structure?
[–]
fixf
6y ago
Good point, loose language on my part. I am thinking of false positives or collision. The required statistical properties aren't met.