String-Matching Automata

For a given pattern P, we can define its string-matching automata:

The transition function chooses the next state to maintain the invariant:

tex2html_wrap_inline448

after scanning in the first i characters, the state number is the longest prefix of P that is also a suffix of tex2html_wrap_inline454 .


next up previous
Next: Finite-Automaton-Matcher Up: STRING MATCHING WITH FINITE Previous: The Suffix-Function