Title :
Optimally fast parallel algorithms for preprocessing and pattern matching in one and two dimensions
Author :
Cole, Richard ; Crochemore, Maxime ; Galil, Zvi ; Gasieniec, Leszek ; Eariharan, R. ; Muthukrishnan, S. ; Park, Kunsoo ; Rytter, Wojciech
Author_Institution :
Courant Inst. of Math. Sci., New York, NY, USA
Abstract :
All algorithms below are optimal alphabet-independent parallel CRCW PRAM algorithms. In one dimension: Given a pattern string of length m for the string-matching problem, we design an algorithm that computes a deterministic sample of a sufficiently long substring in constant time. This problem used to be a bottleneck in the pattern preprocessing for one- and two-dimensional pattern matching. The best previous time bound was O(log2 m/log log m). We use this algorithm to obtain the following results. 1. Improving the preprocessing of the constant-time text search algorithm from O(log2 m/log log m) to n(log log m), which is now best possible. 2. A constant-time deterministic string-matching algorithm in the case that the text length n satisfies n=Ω(m1+ε) for a constant ε>0. 3. A simple probabilistic string-matching algorithm that has constant time with high probability for random input. 4. A constant expected time Las-Vegas algorithm for computing the period of the pattern and all witnesses and thus string matching itself, solving the main open problem remaining in string matching
Keywords :
parallel algorithms; pattern matching; probability; string matching; Las-Vegas algorithm; constant-time text search algorithm; optimally fast parallel algorithms; parallel CRCW PRAM algorithms; pattern matching; preprocessing; probabilistic string-matching algorithm; time bound; Data structures; Educational institutions; Parallel algorithms; Pattern matching; Phase change random access memory; Runtime; Text processing;
Conference_Titel :
Foundations of Computer Science, 1993. Proceedings., 34th Annual Symposium on
Conference_Location :
Palo Alto, CA
Print_ISBN :
0-8186-4370-6
DOI :
10.1109/SFCS.1993.366862