Overview
Wu-Manber generalizes Boyer-Moore-style skipping to multiple patterns by hashing fixed-size blocks near the pattern suffix.
Searches for multiple patterns using block hashes and shift tables.
Compact metadata for implementation and discovery.
Wu-Manber generalizes Boyer-Moore-style skipping to multiple patterns by hashing fixed-size blocks near the pattern suffix.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n)
Worst
O(n * patterns)
Space
O(patterns)
shift = table[hash(text_block)]Skips ahead based on the hashed trailing block.
Show matched positions, dynamic-programming cells, or candidate buckets.
Wu-Manber should be used with the assumptions and tradeoffs of multi-Pattern Search in mind.
What each reference supports for this entry.
Original Wu-Manber reference for fast approximate multi-pattern matching.
Open sourcePattern-matching reference covering Wu-Manber approximate matching model, string similarity measure, or bit-parallel search strategy.
Good next jumps from the relationship graph, ranked for useful discovery.
Wu-Manber and Aho-Corasick both support multi-pattern matching.
Wu-Manber uses block-based skipping ideas related to Boyer-Moore-style search.