Skip to content

Deterministic-Finite-Automaton

Linear algorithm using a deterministic finite state automaton recognizing all string whose suffix is equal to the pattern. Construction of the automaton can be done in O(m)O(m)-time.

Appeared in: