Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究用于来自 CLRS 的字符串匹配的 Rabin-karp 算法,其中模块化算法用于我没有研究过的哈希,所以我不明白 (7 – 3·3)·10 + 2 (mod 13) 评估为 8 (mod 13)
(7 – 3·3)·10 + 2 (mod 13) 计算结果为 8 (mod 13)
因为 7 - 9 = 11,而不是 -2。