01
Knuth, Morris, and Pratt: Linear-Time String Matching Without Backtracking
The Knuth-Morris-Pratt algorithm preprocesses a pattern so mismatches reuse information already learned, avoiding backtracking through the text and guaranteeing linear-time exact matching.
↗