[理工] [資結]-雜湊問題
Please put the following keys:69,106,68,29,118,99 into an open addressing
hash table by the hash function of h(X) = X mod 10, and the quadratic
probing function of F(i)=2*i^2.
請問這雜湊表的表示,當我做到118時,因為8那格已經被68佔據所以造成overflow
所以我將118帶入到F(i),但是算出來的值帶回去hash finction還是8的位置
不管在怎麼算下去都還是落到8那格,那答案應該怎麼寫?
寫118無法置入到雜湊表嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.170.126.179
→
02/24 14:18, , 1F
02/24 14:18, 1F
→
02/24 14:19, , 2F
02/24 14:19, 2F
推
02/24 14:44, , 3F
02/24 14:44, 3F
討論串 (同標題文章)