Lyndon Words, the Three Squares Lemma, and Primitive Squares
Discrete Mathematics
2020-07-23 v2
Abstract
We revisit the so-called "Three Squares Lemma" by Crochemore and Rytter [Algorithmica 1995] and, using arguments based on Lyndon words, derive a more general variant which considers three overlapping squares which do not necessarily share a common prefix. We also give an improved upper bound of on the maximum number of (occurrences of) primitively rooted squares in a string of length , also using arguments based on Lyndon words. To the best of our knowledge, the only known upper bound was , where is the golden ratio, reported by Fraenkel and Simpson [TCS 1999] obtained via the Three Squares Lemma.
Cite
@article{arxiv.2006.13576,
title = {Lyndon Words, the Three Squares Lemma, and Primitive Squares},
author = {Hideo Bannai and Takuya Mieno and Yuto Nakashima},
journal= {arXiv preprint arXiv:2006.13576},
year = {2020}
}