为什么我们要尽量减少 hash 表中的冲突?

发布时间:2022-10-07 / 作者:清心寡欲

本文介绍了为什么我们要尽量减少 hash 表中的冲突?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I really don't get why we want to avoid "collisions" when using hash tables, in this case why don't we just use a map instead of applying the hash function? 对我来说,需要一个 hash 表是为了减少桶数,因此避免冲突是不合逻辑的。




暂无解决方案

[英文标题]Why we want to minimize collision in a hash table?


声明:本媒体部分图片、文章来源于网络,版权归原作者所有,如有侵权,请联系QQ:330946442删除。