Skip to content
EntityQ45285· pop 24· linked from 96 articles

克努斯-莫里斯-普拉特算法

Sign in to save

Also known as Knuth–Morris–Pratt string searching algorithm, KMP algorithm, Knuth-Morris-Pratt algorithm

string searching algorithm

Wikidata facts

Show 3 more facts
publication date
1970-00-00
discoverer or inventor
Vaughan Ronald Pratt
time of discovery or invention
1970-00-00
Sources (1)

via Wikidata · CC0

Article · 中文

在计算机科学中,Knuth-Morris-Pratt字符串查找算法(简称为KMP算法)可在一个字符串S内查找一个词W的出现位置。一个词在不匹配时本身就包含足够的信息来确定下一个匹配可能的开始位置,此算法利用这一特性以避免重新检查先前配對的字符。 这个算法由高德纳和在1974年构思,同年也独立地设计出该算法,最终三人于1977年联合发表。

Abstract from DBpedia / Wikipedia · CC BY-SA