开发者

How do I write a hashcode to minimise collisions?

开发者 https://www.devze.com 2023-01-17 18:59 出处:网络
I know the ideal hashcode algorithm is a research area, but what sensible things can I do to minimise collisions 开发者_Go百科and why do they work?

I know the ideal hashcode algorithm is a research area, but what sensible things can I do to minimise collisions 开发者_Go百科and why do they work?

For example, I've seen hashcode functions that make use of prime numbers, but I'm not clear on what the benefit is...

0

精彩评论

暂无评论...
验证码 换一张
取 消