5 ms·
> We built hash tables by converting strings to integers and then using modulus What's wrong with that?
by bitkrieg 12y ago
> We built hash tables by converting strings to integers and then using modulus
What's wrong with that?
- Taek 12y agohttps://programmers.stackexchange.com/questions/49550/which-hashing-algorithm-is-best-for-uniqueness-and-speed https://programmers.stackexchange.com/questions/49550/which-... We were essentially doing the lose-lose algorithm. It's a functioning hash table but there's a lot of room for improvement.
- bitkrieg 12y agoAh, ok. Using something like loose-loose as hash function is indeed a terrible idea.