An optimalO(log logn)-time CRCW-PRAM algorithm for computing all period lengths of a string is presented. Previous parallel algorithms compute the period only if it is shorter than half of the length of the string. The algorithm can be used to find all initial palindromes of a string in the same time and processor bounds. Both algorithms are the fastest possible over a general alphabet. We derive a lower bound for finding initial palindromes by modifying a known lower bound for finding the period length of a string [9]. Whenp processors are available the bounds become (Formula presented).
CITATION STYLE
Apostolico, A., Breslauer, D., & Galil, Z. (1992). Optimal parallel algorithms for periods, palindromes and squares. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 623 LNCS, pp. 296–307). Springer Verlag. https://doi.org/10.1007/3-540-55719-9_82
Mendeley helps you to discover research relevant for your work.