Kosaraju in "Computation of squares in a string" briefly described a linear-time algorithm for computing the minimal squares starting at each position in a word. Using the same construction of suffix trees, we generalize his result and describe in detail how to compute the minimal α power, with a period of length longer than s, starting at each position in a word w for arbitrary exponent α > 1 and integer s ≥ 0. The algorithm runs in O(α|w|2)-time for s = 0 and in O(|w |2)-time otherwise. We provide a complete proof of the correctness and computational complexity of the algorithm. The algorithm can be used to detect certain types of pseudo-patterns in words, which was our original goal in studying this generalization. © Springer-Verlag Berlin Heidelberg 2010.
CITATION STYLE
Xu, Z. (2010). A minimal periods algorithm with applications. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 6129 LNCS, pp. 51–62). https://doi.org/10.1007/978-3-642-13509-5_6
Mendeley helps you to discover research relevant for your work.