尚未生成 AI 速览(可能缺少 API key 或等待下次运行补跑)。
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 原文 ·
@article{paperbot2683,
title = {Knuth–Morris–Pratt illustrated},
author = {CAMERON MOY},
journal = {Journal of Functional Programming},
volume = {34},
year = {2024},
doi = {10.1017/s0956796824000017}
}