ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
AhoCorasick.h

The search of many patterns at once, beyond the book. More...

Files

file  ADS/string/AhoCorasick.h
 The search of many patterns at once, beyond the book: the automaton of Aho and Corasick of a set of patterns \( P_0 , \ldots , P_{k-1} \) of \( M \) bytes in all finds all their occurrences in a text \( T \) of \( n \) bytes in one scan, \( O( n + \mathit{occ} ) \) time.

Classes

class  ADS::AhoCorasick
 the automaton of Aho and Corasick of a set of patterns More...

Detailed description

The search of many patterns at once, beyond the book.

The definitions, the invariants and the costs of the area are in Theory of strings.