[問題] 95中正資結(hashing問題)

看板Grad-ProbAsk作者 (rr)時間17年前 (2009/03/26 12:36), 編輯推噓1(104)
留言5則, 3人參與, 最新討論串1/1
題目原文如下: If a hash function assigns 20 keys to random positions in a hash table of size 500, about how likely is it that there will be no collisions? 我不懂的地方是 實在是想不出來用哪種hash function 可以創出一個不會碰撞 的情形? 麻煩請各位先進指教一下,感謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.192.82.138

03/26 22:39, , 1F
作成節點陣列?
03/26 22:39, 1F

03/27 13:41, , 2F
那不是處理溢位用的方法嗎?有碰撞不一定有溢位產生,碰撞
03/27 13:41, 2F

03/27 13:42, , 3F
是運算完在相同bucket內,如果bucket內slot夠多就無溢位
03/27 13:42, 3F

03/27 13:43, , 4F
有人知道這題該怎麼解決嗎?還是是我觀念有錯誤?
03/27 13:43, 4F

04/19 14:33, , 5F
the question asked "how likely" not "how possible"!
04/19 14:33, 5F
文章代碼(AID): #19omPG3S (Grad-ProbAsk)