计算机科学 > 数据结构与算法
[提交于 2009年11月17日]
标题:A Minimal Periods Algorithm with Applications
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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 $k\geq2$ and integer $s\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.
提交历史
来自:Zhi Xu[v1] 2009年11月17日 星期二 17:34:23 UTC