6 ms·
By naively, you mean using a hash function that does not “scatter” the values properly, something like defining hash(n) = n, right?
by lakshayg 7y ago
By naively, you mean using a hash function that does not “scatter” the values properly, something like defining hash(n) = n, right?
- josephg 7y agoYes. hash(n) = n is fine in lots of cases, though its still vulnerable to the algorithmic complexity attacks as others mentioned in this thread.