作者:7777-丿M | 来源:互联网 | 2023-05-19 17:48
ImtryingtodoaHashtablewithlinearprobinginsertion.我正在尝试使用线性探测插入来执行哈希表。Thesizeofthet
I'm trying to do a Hash table with linear probing insertion.
我正在尝试使用线性探测插入来执行哈希表。
The size of the table is 11, my hash function is, h(k) = k mod 11, and what i want to do is.
表的大小是11,我的哈希函数是,h(k)= k mod 11,我想要做的是。
Insert(15,c) Insert(4,a) Insert(26,b) Delete(15) Insert(5,d) Insert(4,e)
插入(15,c)插入(4,a)插入(26,b)删除(15)插入(5,d)插入(4,e)
Here is my solution but it aint right.
这是我的解决方案,但它没有权利。
It is supposed to be like this, can someone explain why?
它应该是这样的,有人能解释为什么吗?
2 个解决方案