English

Maximum Number of Distinct and Nonequivalent Nonstandard Squares in a Word

Discrete Mathematics 2016-04-11 v1 Formal Languages and Automata Theory

Abstract

The combinatorics of squares in a word depends on how the equivalence of halves of the square is defined. We consider Abelian squares, parameterized squares, and order-preserving squares. The word uvuv is an Abelian (parameterized, order-preserving) square if uu and vv are equivalent in the Abelian (parameterized, order-preserving) sense. The maximum number of ordinary squares in a word is known to be asymptotically linear, but the exact bound is still investigated. We present several results on the maximum number of distinct squares for nonstandard subword equivalence relations. Let SQAbel(n,σ)\mathit{SQ}_{\mathrm{Abel}}(n,\sigma) and SQAbel(n,σ)\mathit{SQ}'_{\mathrm{Abel}}(n,\sigma) denote the maximum number of Abelian squares in a word of length nn over an alphabet of size σ\sigma, which are distinct as words and which are nonequivalent in the Abelian sense, respectively. For σ2\sigma\ge 2 we prove that SQAbel(n,σ)=Θ(n2)\mathit{SQ}_{\mathrm{Abel}}(n,\sigma)=\Theta(n^2), SQAbel(n,σ)=Ω(n3/2)\mathit{SQ}'_{\mathrm{Abel}}(n,\sigma)=\Omega(n^{3/2}) and SQAbel(n,σ)=O(n11/6)\mathit{SQ}'_{\mathrm{Abel}}(n,\sigma) = O(n^{11/6}). We also give linear bounds for parameterized and order-preserving squares for alphabets of constant size: SQparam(n,O(1))=Θ(n)\mathit{SQ}_{\mathrm{param}}(n,O(1))=\Theta(n), SQop(n,O(1))=Θ(n)\mathit{SQ}_{\mathrm{op}}(n,O(1))=\Theta(n). The upper bounds have quadratic dependence on the alphabet size for order-preserving squares and exponential dependence for parameterized squares. As a side result we construct infinite words over the smallest alphabet which avoid nontrivial order-preserving squares and nontrivial parameterized cubes (nontrivial parameterized squares cannot be avoided in an infinite word).

Keywords

Cite

@article{arxiv.1604.02238,
  title  = {Maximum Number of Distinct and Nonequivalent Nonstandard Squares in a Word},
  author = {Tomasz Kociumaka and Jakub Radoszewski and Wojciech Rytter and Tomasz Waleń},
  journal= {arXiv preprint arXiv:1604.02238},
  year   = {2016}
}

Comments

Preliminary version appeared at DLT 2014