Aho-Corasick · One Pass, Many Patterns
unseel.com · Trie + failure links · O(n + m + z)
Patterns {he, she, his, hers}
Matches 0
Stage trie built
Trie node
Active state
Failure link
Match
Unseel.com · Aho-Corasick