3 ms·
Question, what do you do if there is a collision? I saw the github table also mentioned collisions
by xkcd1963 1y ago
Question, what do you do if there is a collision? I saw the github table also mentioned collisions
- lights0123 1y agoThey're extremely common in hashtables. You follow standard open addressing or separate chaining procedures: https://en.m.wikipedia.org/wiki/Hash_collision https://en.m.wikipedia.org/wiki/Hash_collision
- LoganDark 1y agoNon-mobile link: https://en.wikipedia.org/wiki/Hash_collision https://en.wikipedia.org/wiki/Hash_collision
- saagarjha 1y agoFall back on secondary hashes or do probing
- meindnoch 1y agoOpen any data structures textbook and look for "hash map" in the table of contents.