Overview
Commentz-Walter is a multiple pattern matching method for multiple string matching. It works by combining Boyer-Moore style shifts with trie-based pattern matching.
Commentz-Walter addresses multiple string matching by combining Boyer-Moore style shifts with trie-based pattern matching.
Compact metadata for implementation and discovery.
Commentz-Walter is a multiple pattern matching method for multiple string matching. It works by combining Boyer-Moore style shifts with trie-based pattern matching.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n + m)
Worst
O(n + m)
Space
O(n + m)
Show combining Boyer-Moore style shifts with trie-based pattern matching on a small multiple string matching example.
Commentz-Walter operates in O(n + m) time and O(n + m) space within the Multiple Pattern Matching family. Often compared with Bit-Parallel Levenshtein and Shift-And Algorithm.
What each reference supports for this entry.
String-matching reference for Commentz-Walter multiple-pattern matching and Boyer-Moore style shifts.
Good next jumps from the relationship graph, ranked for useful discovery.
Commentz-Walter and Aho-Corasick are multiple-pattern matching algorithms with different shift/automaton behavior.
Commentz-Walter combines multiple-pattern matching with Boyer-Moore style shift ideas.