Shuffle squares and ordered nest-free graphs
Abstract
A shuffle square is a word consisting of two shuffled copies of the same word. For instance, the Turkish word redikblueiredlibluekli (binary in English) is a shuffle square, as it can be split into two copies of the word ikli. We explore a representation of shuffle squares in terms of 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-runs of length one (and with the 1'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, n odd, are not shuffle squares. We complement it by showing that all other words whose every 1-run has length one or two, while every 0-run has length two, are shuffle squares. We also provide a counterexample to a believable stipulation that binary words of the form 1m0m-21m-4·s, m 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).
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.