Commentz-Walter Algorithm (Multiple String Search String Search)
Jump to navigation
Jump to search
Time Complexity
$O(mn)$
Space Complexity
$O(km)$ words
(Derived: Number of states of the automaton that is created)
Description
Automaton-based, constructs a converse state machine from the given patterns
Approximate?
Exact
Randomized?
No, deterministic
Model of Computation
Word RAM
Year
1979
Reference
https://link-springer-com.ezproxy.canberra.edu.au/chapter/10.1007/3-540-09510-1_10