Incremental computation of the set of period sets
Abstract
Overlaps between words are crucial in many areas of computer science, such as code design, stringology, and bioinformatics. A self overlapping word is characterized by its periods and borders. A period of a word is the starting position of a suffix of that is also a prefix , and such a suffix is called a border. Each word of length, say , has a set of periods, but not all combinations of integers are sets of periods. Computing the period set of a word takes linear time in the length of . We address the question of computing, the set, denoted , of all period sets of words of length . Although period sets have been characterized, there is no formula to compute the cardinality of (which is exponential in ), and the known dynamic programming algorithm to enumerate suffers from its space complexity. We present an incremental approach to compute from , which reduces the space complexity, and then a constructive certification algorithm useful for verification purposes. The incremental approach defines a parental relation between sets in and , enabling one to investigate the dynamics of period sets, and their intriguing statistical properties. Moreover, the period set of a word is the key for computing the absence probability of in random texts. Thus, knowing is useful to assess the significance of word statistics, such as the number of missing words in a random text.
Cite
@article{arxiv.2410.12077,
title = {Incremental computation of the set of period sets},
author = {Eric Rivals},
journal= {arXiv preprint arXiv:2410.12077},
year = {2025}
}
Comments
21 pages, 4 figures, 5 algorithms, 27 references, 1 related resource on Zenodo, 6 appendices; accepted for publication at 50th conference SOFSEM 2025