On the maximal number of cubic subwords in a string
Marcin Kubica, Jakub Radoszewski, Wojciech Rytter, Tomasz Walen

TL;DR
This paper explores the maximum number of cubic subwords in a string, providing new bounds and exact counts for squares and cubes, advancing understanding of repetitive patterns in words.
Contribution
It introduces new bounds for the maximum number of cubic subwords, improving previous estimates and offering exact counts for certain types of squares and cubes.
Findings
Maximum number of nonprimitive squares is exactly ⌊n/2⌋ - 1.
Maximum number of subwords of the form x^k, k≥3, is exactly n-2.
Maximum number of cubes in a word of length n is between n/2 and 4n/5.
Abstract
We investigate the problem of the maximum number of cubic subwords (of the form ) in a given word. We also consider square subwords (of the form ). The problem of the maximum number of squares in a word is not well understood. Several new results related to this problem are produced in the paper. We consider two simple problems related to the maximum number of subwords which are squares or which are highly repetitive; then we provide a nontrivial estimation for the number of cubes. We show that the maximum number of squares such that is not a primitive word (nonprimitive squares) in a word of length is exactly , and the maximum number of subwords of the form , for , is exactly . In particular, the maximum number of cubes in a word is not greater than either. Using very technical properties of occurrences of…
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.
