.net 中的 HashTable/Dictionary 实现选择什么类型的冲突解决方案?
众所周知,冲突解决有两种经典策略:单独链接和开放寻址。
我想知道.net 中的哈希表/字典选择了哪一个。
还是使用了其他策略?
As we know there are 2 classical strategies to collision resolution: Separate chaining and Open addressing.
I'm wondering which one was chosen for HashTable/Dictionary in .net.
Or there were used some other strategy?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
MSDN 上的这篇论文对此进行了全部描述:数据结构的广泛检查使用C#2.0
请记住,仅第一句话是我自己的:-)
It's all described in this paper on the MSDN : An Extensive Examination of Data Structures Using C# 2.0
Remember only the first sentence is my own :-)
这实际上是一个非常有趣的问题;我刚刚发表了一篇博客文章< /a> 了解
Dictionary
是如何在幕后实现的。我可能会在稍后的文章中介绍Hashtable
。That's actually a really interesting question; I've just done a blog post on how
Dictionary
is implemented behind-the-scenes. I may coverHashtable
in a later one.