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:

$\phi(T_i) = \sigma(T_i)$

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


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