Abstract
This paper presents two efficient concurrent-read concurrent-write parallel algorithms that find all palindromes in a given string:
-
1.
An O(log n) time, n-processor algorithm over general alphabets. In case of constant size alphabets the algorithm requires only n/log n processors, and thus achieves an optimal-speedup.
-
2.
An O(log log n) time, n log n/loglog n-processor algorithm over general alphabets. This is the fastest possible time with the number of processors used.
These new results improve on the known parallel palindrome detection algorithms by using smaller auxiliary space and either by making fewer operations or by achieving a faster running time.
Partially supported by NSF Grants CCR-89-00305 and CCR-92-01078, by NATO Grant CRG 900293 and by the National Research Council of Italy.
Partially supported by the European Research Consortium for Informatics and Mathematics postdoctoral fellowship. Part of this work was done while visiting at the Institut National de Recherche en Informatique et en Automatique, Rocquencourt, France.
Partially supported by NSF Grants CCR-90-14605 and CISE Institutional Infrastructure Grant CDA-90-24735.
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
A. Apostolico, D. Breslauer, and Z. Galil. Optimal Parallel Algorithms for Periods, Palindromes and Squares. In Proc. 19th International Colloquium on Automata, Languages, and Programming, pages 296–307. Springer-Verlag, Berlin, Germany, 1992.
V.L. Arlazarov, E.A. Dinic, M.A. Kronrod, and I.A. Faradzev. On economic construction of the transitive closure of a directed graph. Soviet Math. Dokl., 11:1209–1210, 1970.
R.P. Brent. Evaluation of general arithmetic expressions. J. Assoc. Comput. Mach., 21:201–206, 1974.
D. Breslauer and Z. Galil. An optimal O(loglog n) time parallel string matching algorithm. SIAM J. Comput., 19(6):1051–1058, 1990.
D. Breslauer and Z. Galil. Finding all Periods and Initial Palindromes of a String in Parallel. Technical Report CUCS-017-92, Computer Science Dept., Columbia University, 1992.
S.A. Cook. Linear time simulation of deterministic two-way pushdown automata. In Information Processing 71, pages 75–80. North Holland Publishing Co., Amsterdam, the Netherlands, 1972.
M. Crochemore and W. Rytter. Usefulness of the Karp-Miller-Rosenberg algorithm in parallel computations on strings and arrays. Theoret. Comput. Sci., 88:59–82, 1991.
F.E. Fich, R.L. Ragde, and A. Wigderson. Relations between concurrent-write models of parallel computation. In Proc. 3rd ACM Symp. on Principles of Distributed Computing, pages 179–189, 1984.
M.J. Fischer and M.S. Paterson. String matching and other products. In R.M. Karp, editor, Complexity of Computation, pages 113–125. American Mathematical Society, Prividence, RI., 1974.
Z. Galil. Two fast simulations which imply some fast string matching and palindrome-recognition algorithms. Inform. Process. Lett., 4(4):85–87, 1976.
Z. Galil. Palindrome Recognition in Real Time by a Multitape Turing Machine. J. Comput. System Sci., 16(2):140–157, 1978.
Z. Galil. Optimal parallel algorithms for string matching. Inform. and Control, 67:144–157, 1985.
Z. Galil and J. Seiferas. A Linear-Time On-Line Recognition Algorithm for “Palstar”. J. Assoc. Comput. Mach., 25(1):102–111, 1978.
Z. Kedem, G.M. Landau, and K. Palem. Optimal parallel suffix-prefix matching algorithm and applications. Manuscript, 1988.
D.E. Knuth, J.H. Morris, and V.R. Pratt. Fast pattern matching in strings. SIAM J. Comput., 6:322–350, 1977.
R.C. Lyndon and M.P. Schutzenberger. The equation a m = b n c p in a free group. Michigan Math. J., 9:289–298, 1962.
G. Manacher. A new Linear-Time “On-Line” Algorithm for Finding the Smallest Initial Palindrome of a String. J. Assoc. Comput. Mach., 22, 1975.
A.O. Slisenko. Recognition of palindromes by multihead Turing machines. In V.P. Orverkov and N.A. Sonin, editors, Problems in the Constructive Trend in Mathematics VI (Proceedings of the Steklov Institute of Mathematics, No. 129), pages 30–202. Academy of Sciences of the USSR, 1973. English Translation by R.H. Silverman, pp. 25–208, Amer. Math. Soc., Providence, RI, 1976.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1994 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Apostolico, A., Breslauer, D., Galil, Z. (1994). Parallel detection of all palindromes in a string. In: Enjalbert, P., Mayr, E.W., Wagner, K.W. (eds) STACS 94. STACS 1994. Lecture Notes in Computer Science, vol 775. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-57785-8_166
Download citation
DOI: https://doi.org/10.1007/3-540-57785-8_166
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-57785-0
Online ISBN: 978-3-540-48332-8
eBook Packages: Springer Book Archive