Aho-Corasick algorithm

ID: aho-corasick-algorithm

The Aho-Corasick algorithm matches multiple patterns in a string using a trie equipped with failure links. After preprocessing the patterns, it scans the input while reporting every pattern ending at each position.

New to topics? Read the docs here!