paperbot · PL 论文追踪

RSS

Knuth–Morris–Pratt illustrated

JFP vol.342024
CAMERON MOY

尚未生成 AI 速览(可能缺少 API key 或等待下次运行补跑)。

原文摘要(Abstract)

Abstract The Knuth–Morris–Pratt (KMP) algorithm for string search is notoriously difficult to understand. Lost in a sea of index arithmetic, most explanations of KMP obscure its essence. This paper constructs KMP incrementally, using pictures to illustrate each step. The end result is easier to comprehend. Additionally, the derivation uses only elementary functional programming techniques.

链接与引用

DOI 原文 ·

BibTeX
@article{paperbot2683,
  title = {Knuth–Morris–Pratt illustrated},
  author = {CAMERON MOY},
  journal = {Journal of Functional Programming},
  volume = {34},
  year = {2024},
  doi = {10.1017/s0956796824000017}
}