Knuth–Morris–Pratt algorithm

string searching algorithm
Place exact_string_matching_algorithm Q45285
Press Enter · cited answer in seconds

Knuth–Morris–Pratt algorithm

Summary

Knuth–Morris–Pratt algorithm is an exact string-matching algorithm[1]. It draws 538 Wikipedia views per month (exact_string_matching_algorithm category, ranking #1 of 6).[2]

Key Facts

  • Knuth–Morris–Pratt algorithm is credited with the discovery of Donald Knuth[3].
  • Knuth–Morris–Pratt algorithm is credited with the discovery of James H. Morris[4].
  • Knuth–Morris–Pratt algorithm is credited with the discovery of Vaughan Ronald Pratt[5].
  • Knuth–Morris–Pratt algorithm's instance of is recorded as exact string-matching algorithm[6].
  • Donald Knuth is named after Knuth–Morris–Pratt algorithm[7].
  • James H. Morris is named after Knuth–Morris–Pratt algorithm[8].
  • Vaughan Ronald Pratt is named after Knuth–Morris–Pratt algorithm[9].
  • Knuth–Morris–Pratt algorithm's time of discovery or invention is recorded as +1970-00-00T00:00:00Z[10].
  • Knuth–Morris–Pratt algorithm's publication date is recorded as +1977-00-00T00:00:00Z[11].
  • Knuth–Morris–Pratt algorithm's publication date is recorded as +1970-00-00T00:00:00Z[12].
  • Knuth–Morris–Pratt algorithm's Freebase ID is recorded as /m/01lksg[13].
  • Knuth–Morris–Pratt algorithm's described by source is recorded as Fast Pattern Matching in Strings[14].
  • Knuth–Morris–Pratt algorithm's described by source is recorded as A linear pattern-matching algorithm[15].
  • Knuth–Morris–Pratt algorithm's Dictionary of Algorithms and Data Structures ID is recorded as kmp[16].
  • Knuth–Morris–Pratt algorithm's Dictionary of Algorithms and Data Structures ID is recorded as kpm[17].
  • Knuth–Morris–Pratt algorithm's Dictionary of Algorithms and Data Structures ID is recorded as KnuthPrattMorrisAlgorithm[18].
  • Knuth–Morris–Pratt algorithm's Dictionary of Algorithms and Data Structures ID is recorded as knuthMorrisPratt[19].
  • Knuth–Morris–Pratt algorithm's Microsoft Academic ID is recorded as 2780105799[20].

Body

Designation and Status

Knuth–Morris–Pratt algorithm's instance of is recorded as exact string-matching algorithm[6].

History and Context

Things named after include Donald Knuth[7], a mathematician[21], b. 1938[22], of United States[23], awarded the Guggenheim Fellowship[24], specialised in combinatorics[25]; James H. Morris[8], a computer scientist[26], b. 1941[27], of United States[28], awarded the ACM Fellow[29]; and Vaughan Ronald Pratt[9], a computer scientist[30], b. 1944[31], of Australia[32], awarded the ACM Fellow[33], specialised in computer science[34].

Why It Matters

Knuth–Morris–Pratt algorithm draws 538 Wikipedia views per month (exact_string_matching_algorithm category, ranking #1 of 6).[2] It has Wikipedia articles in 19 language editions, a strong signal of global cultural recognition.[35] It is known by 25 alternative names across languages and contexts.[36]

References

Programmatic citations — every numbered marker resolves to a verifiable graph row below.

Direct Wikidata claims

  1. [6] . wikidata.org.
  2. [3] . wikidata.org.
  3. [4] . wikidata.org.
  4. [5] . wikidata.org.
  5. [7] . wikidata.org.
  6. [8] . wikidata.org.
  7. [9] . wikidata.org.
  8. [10] . The Dangers of Computer-Science Theory. wikidata.org.
  9. [11] . wikidata.org.
  10. [12] . A linear pattern-matching algorithm. wikidata.org.
  11. [13] . Freebase Data Dumps. wikidata.org.
  12. [14] . wikidata.org.
  13. [15] . wikidata.org.
  14. [16] . wikidata.org.
  15. [17] . wikidata.org.
  16. [18] . wikidata.org.
  17. [19] . wikidata.org.
  18. [20] . wikidata.org.

Inline context (facts about related entities)

  1. [21] . Wikidata. wikidata.org. → on this site
  2. [22] . Wikidata. wikidata.org. → on this site
  3. [23] . Wikidata. wikidata.org. → on this site
  4. [24] . Wikidata. wikidata.org. → on this site
  5. [25] . Wikidata. wikidata.org. → on this site
  6. [26] . Wikidata. wikidata.org. → on this site
  7. [27] . Wikidata. wikidata.org. → on this site
  8. [28] . Wikidata. wikidata.org. → on this site
  9. [29] . Wikidata. wikidata.org. → on this site
  10. [30] . Wikidata. wikidata.org. → on this site
  11. [31] . Wikidata. wikidata.org. → on this site
  12. [32] . Wikidata. wikidata.org. → on this site
  13. [33] . Wikidata. wikidata.org. → on this site
  14. [34] . Wikidata. wikidata.org. → on this site

Class ancestry

  1. [1] . Wikidata. wikidata.org.

Aggregate / graph-position facts

  1. [2] . Wikimedia Foundation. dumps.wikimedia.org.
  2. [35] . Wikidata sitelinks. wikidata.org.
  3. [36] . Wikidata aliases. wikidata.org.

📑 Cite this page

Use these citations when quoting this entity in research, articles, AI prompts, or wherever provenance matters. We aggregate Wikidata + Wikipedia + authoritative open-data sources; the stitched, scored, cross-referenced view is what 4ort.xyz contributes.

APA 4ort.xyz Knowledge Graph. (2026). Knuth–Morris–Pratt algorithm. Retrieved May 3, 2026, from https://4ort.xyz/entity/knuth-morris-pratt-algorithm
MLA “Knuth–Morris–Pratt algorithm.” 4ort.xyz Knowledge Graph, 4ort.xyz, 3 May. 2026, https://4ort.xyz/entity/knuth-morris-pratt-algorithm.
BibTeX @misc{4ortxyz_knuth-morris-pratt-algorithm_2026, author = {{4ort.xyz Knowledge Graph}}, title = {{Knuth–Morris–Pratt algorithm}}, year = {2026}, url = {https://4ort.xyz/entity/knuth-morris-pratt-algorithm}, note = {Accessed: 2026-05-03}}
LLM prompt According to 4ort.xyz Knowledge Graph (aggregator of Wikidata, Wikipedia, and authoritative open-data sources): Knuth–Morris–Pratt algorithm — https://4ort.xyz/entity/knuth-morris-pratt-algorithm (retrieved 2026-05-03)

Canonical URL: https://4ort.xyz/entity/knuth-morris-pratt-algorithm · Last refreshed: