String-Matching with Finite Automata (Single String Search String Search)

From Algorithm Wiki
Jump to navigation Jump to search

Time Complexity

$O(mn)$

Space Complexity

$O(m)$ words

(Derived: $O(m)$ states in the DFA)

Description

Approximate?

Exact

Randomized?

No, deterministic

Model of Computation

Word RAM

Year

1940

Reference

-