看板 Grad-ProbAsk 關於我們 聯絡資訊
題目原文如下: 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
jhnny:作成節點陣列? 03/26 22:39
vitomsn:那不是處理溢位用的方法嗎?有碰撞不一定有溢位產生,碰撞 03/27 13:41
vitomsn:是運算完在相同bucket內,如果bucket內slot夠多就無溢位 03/27 13:42
vitomsn:有人知道這題該怎麼解決嗎?還是是我觀念有錯誤? 03/27 13:43
dsom:the question asked "how likely" not "how possible"! 04/19 14:33