$$ O(nm_1+ nm_2 + ... + nm_p) \ = O(n\sum_{i=1}^{p}m_i) $$
Preprocessing for calculating Trie(patterns)
Pattern Matching
Finally, the total time complexity is
Preprocessing for calculating SuffixTrie(text) using all the suffixes of the text
Pattern Matching
Finally, the total time complexity is
Preprocessing for calculating SuffixArray(text)
Pattern Matching
Finally, the total time complexity is
greatly reduced memory complexity
TBD