哈希冲突的解决
有两种办法
1.拉链法,其实就是把冲突的对象放入一个单链表中,java中的hashmap就是使用的这种办法
2.开地址法 就是通过一定的算法二次指定位置
https://blog.csdn.net/lyp_558/article/details/49499035
哈希冲突的解决
有两种办法
1.拉链法,其实就是把冲突的对象放入一个单链表中,java中的hashmap就是使用的这种办法
2.开地址法 就是通过一定的算法二次指定位置
https://blog.csdn.net/lyp_558/article/details/49499035
unsigned int MAX = 32; // 2的5次方 unsigned int index = 31; index = (index + 100) % MAX; printf ("inde