data-structures - 当实际哈希冲突超过 sizeof(Neighborhood) 时,Hopscotch 哈希表中会发生什么?

标签 data-structures hash hashtable hash-collision hopscotch-hashing

相关链接:http://en.wikipedia.org/wiki/Hopscotch_hashing

Hopscotch 哈希表看起来很棒,但我还没有在文献中找到这个问题的答案:如果我的邻域大小为 N 并且(由于渎职或非常糟糕的运气)我插入了 N+1 个元素,这些元素都哈希到相同的确切值?

最佳答案

article据说需要调整表的大小:

Finally, notice that if more than a constant number of items are hashed by h into a given bucket, the table needs to be resized. Luckily, as we show, for a universal hash function h, the probability of this type of resize happening given H = 32 is 1/32!.

关于data-structures - 当实际哈希冲突超过 sizeof(Neighborhood) 时,Hopscotch 哈希表中会发生什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16762411/

相关文章:

mysql - 如何在又高又窄的MySQL表中存储答案

java - 如何在 Java 中使二叉搜索树成为完整的二叉搜索树?

android - 客户信息中的 Magento 密码哈希

javascript - 使用 URL 中没有 # 的 anchor 滚动

javascript - 使用 Javascript 将哈希表结果转换为字符串

python - 用 Python 表示图(数据结构)

algorithm - 如何找到最大公共(public)子树

powershell - 使用哈希表的多列输出

perl - 子程序返回值(作为数组)可以用在 Perl 的散列声明中吗?

python - 找到具有最低分数的所需项目的集合