01 / The collection
Archive.
Notes, explorations, and things made along the way.
Personal notes & technical writingEnglish & 中文
All writing
Search & filter
1–2 of 2 articles
- 01 /
KMP
从朴素字符串匹配出发,解释失配后如何利用已匹配的前后缀避免文本指针回退,逐步推导 KMP 算法与 next 数组。
- 02 /
快速傅里叶变换优化字符串匹配
将字符串匹配转化为字符差的平方和判定,再通过前缀和与卷积加速计算。进一步讨论通配符情形,推导可用 FFT 求解的匹配公式。
You’ve reached the end of this collection.
Back to the top ↑