xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hash
- 字串編碼!!
- 這裡使用 Rabin-Karp rolling hash
- 字串 長度
- 假設質數 ,
- 記得都要取模
- 前綴hash值:
- 然後,
- 某一段的hash:
補:HASH碰撞機率
- 生日問題~
- 推導過程超出高中數學範圍,在此忽略
- 碰撞機率概算公式:(為字串數量,為可能值得數量 空間 值域大小)
Trie
- 就是字典樹~
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 圖片來源:https://github.com/Vercaca/Trie
- 實做遇到困難可以相互討論一下喔~