English

A Minimal Periods Algorithm with Applications

Data Structures and Algorithms 2015-05-14 v1

Abstract

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 in O(k|w|)-time the minimal k-th power, with period of length larger than s, starting at each position in a word w for arbitrary exponent k2k\geq2 and integer s0s\geq0. We provide the complete proof of correctness of the algorithm, which is somehow not completely clear in Kosaraju's original paper. The algorithm can be used as a sub-routine to detect certain types of pseudo-patterns in words, which is our original intention to study the generalization.

Keywords

Cite

@article{arxiv.0911.3355,
  title  = {A Minimal Periods Algorithm with Applications},
  author = {Zhi Xu},
  journal= {arXiv preprint arXiv:0911.3355},
  year   = {2015}
}

Comments

14 pages

R2 v1 2026-06-21T14:12:49.688Z