Added the Aho-Сorasiсk algorithm, which implements an effective search for all occurrences of all sample strings in a given string.
The task. The input receives several lines pattern [i] and line s. Our task is to find all possible occurrences of pattern [i] strings in s.
The essence of the algorithm is to use a data structure - suffix tree and build a finite deterministic automaton on it
Checklist
[x] An issue (#144) was first created before opening this pull request
Description
Added the Aho-Сorasiсk algorithm, which implements an effective search for all occurrences of all sample strings in a given string. The task. The input receives several lines pattern [i] and line s. Our task is to find all possible occurrences of pattern [i] strings in s.
The essence of the algorithm is to use a data structure - suffix tree and build a finite deterministic automaton on it
Checklist