Алгоритм Колусси
Версия от 18:03, 14 мая 2014; Kabanov (обсуждение | вклад)
Содержание
Алгоритм
Псевдокод
Асимптотики
- partitions the set of pattern positions into two disjoint subsets; the positions in the first set are scanned from left to right and when no mismatch occurs the positions of the second subset are scanned from right to left;
- preprocessing phase in time and space complexity;
- searching phase in time complexity;
- performs text character comparisons in the worst case.