Lyndon Words, the Three Squares Lemma, and Primitive Squares
Hideo Bannai, Takuya Mieno, and Yuto Nakashima

TL;DR
This paper generalizes the Three Squares Lemma using Lyndon words and improves the upper bound on the number of primitive squares in a string to n log_2 n, enhancing understanding of string combinatorics.
Contribution
It introduces a more general variant of the Three Squares Lemma and provides a tighter upper bound on primitive squares in strings, both based on Lyndon words.
Findings
Generalized the Three Squares Lemma with Lyndon words
Established an upper bound of n log_2 n for primitive squares
Improved upon the previous bound of approximately 1.441n log_2 n
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.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
