English

Shuffle squares and ordered nest-free graphs

Combinatorics 2025-12-02 v2

Abstract

A shuffle square is a word consisting of two shuffled copies of the same word. For instance, the Turkish word ikilikli\mathtt{\color{red}{ik}\color{blue}{i}\color{red}{li}\color{blue}{kli}} (binary in English) is a shuffle square, as it can be split into two copies of the word ikli\mathtt{ikli}. We explore a representation of shuffle squares in terms of \emph{ordered nest-free graphs} and demonstrate the usefulness of this approach by applying it to several families of binary words. Among others, we characterize shuffle squares with four and five runs, as well as shuffle squares with all 1\mathtt1-runs of length one (and with the 1\mathtt1's alternating between the two copies). In our main result we provide quite general sufficient conditions for a binary word not to be a shuffle square. In particular, it follows that binary words of the type (1001)n(\mathtt{1001})^n, nn odd, are not shuffle squares. We complement it by showing that all other words whose every 1\mathtt{1}-run has length one or two, while every 0\mathtt{0}-run has length two, are shuffle squares. We also provide a counterexample to a believable stipulation that binary words of the form 1m0m21m4\mathtt1^{m}\mathtt0^{m-2}\mathtt1^{m-4}\cdots, mm odd, are far from being shuffle squares (the distance measured by the minimum number of letters one has to delete in order to turn a word into a shuffle square).

Cite

@article{arxiv.2503.22043,
  title  = {Shuffle squares and ordered nest-free graphs},
  author = {Jarosław Grytczuk and Bartłomiej Pawlik and Andrzej Ruciński},
  journal= {arXiv preprint arXiv:2503.22043},
  year   = {2025}
}

Comments

31 pages, 21 figures

R2 v1 2026-06-28T22:37:29.840Z