On the Maximal Number of Cubic Subwords in a String

  • Authors:
  • Marcin Kubica;Jakub Radoszewski;Wojciech Rytter;Tomasz Waleń

  • Affiliations:
  • Department of Mathematics, Computer Science and Mechanics, University of Warsaw, Warsaw, Poland;Department of Mathematics, Computer Science and Mechanics, University of Warsaw, Warsaw, Poland;Department of Mathematics, Computer Science and Mechanics, University of Warsaw, Warsaw, Poland and Faculty of Mathematics and Informatics, Copernicus University, Toruń, Poland;Department of Mathematics, Computer Science and Mechanics, University of Warsaw, Warsaw, Poland

  • Venue:
  • Combinatorial Algorithms
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

We investigate the problem of the maximum number of cubic subwords (of the form www) in a given word. We also consider square subwords (of the form ww). 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 xx such that x is not a primitive word (nonprimitive squares) in a word of length n is exactly $\left\lfloor \frac{n}{2}\right\rfloor - 1$, and the maximum number of subwords of the form x k , for k 驴 3, is exactly n 驴 2. In particular, the maximum number of cubes in a word is not greater than n 驴 2 either. Using very technical properties of occurrences of cubes, we improve this bound significantly. We show that the maximum number of cubes in a word of length n is between $\frac{45}{100}\;n$ and $\frac{4}{5}\;n$.