Lyndon Words, the Three Squares Lemma, and Primitive Squares

preprint2020arXivOpen access

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 nlog⁡2nn\log_2 n on the maximum number of (occurrences of) primitively rooted squares in a string of length nn, also using arguments based on Lyndon words. To the best of our knowledge, the only known upper bound was nlog⁡ϕn≈1.441nlog⁡2nn \log_ϕn \approx 1.441n\log_2 n, where ϕϕ is the golden ratio, reported by Fraenkel and Simpson [TCS 1999] obtained via the Three Squares Lemma.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.