NIST

Morris-Pratt algorithm

(algorithm)

Definition: (no definition here, yet, but you can help.)

Generalization (I am a kind of ...)
string matching algorithm.

Implementation

Christian Charras' and Thierry Lecroq's explanation, visualization, references, and implementation (C).

More information

James H. Morris, Jr., and Vaughan R. Pratt, A linear pattern-matching algorithm, Technical Report 40, University of California, Berkeley, 1970.


Go to the Dictionary of Algorithms and Data Structures home page.

If you have suggestions, corrections, or comments, please get in touch with Paul Black.

Entry modified 5 February 2007.
HTML page formatted Wed Mar 13 12:42:46 2019.

Cite this as:
"Morris-Pratt algorithm", in Dictionary of Algorithms and Data Structures [online], Paul E. Black, ed. 5 February 2007. (accessed TODAY) Available from: https://www.nist.gov/dads/HTML/morrispratt.html