paper

Swapping Compatible Words

arXiv:2610.31967

Abstract

In 1981 Guibas and Odlyzko showed that the set of all words of a given length that avoid a given word , and the set of all words of length that avoid a given word , have the same cardinality if and only if and have the same self-border lengths. Carrigan et.~ al.~ ask in if there is a ``natural'' bijection between and . This paper makes partial progress toward answering that question. We provide such a bijection by imposing additional conditions on and , but we also obtain a stronger conclusion: there is a ``natural'' bijection from the set of all finite words to itself that swaps and in each word , meaning that has a or at a given position iff has, repectively, a or a at that same position. An algorithm is given for converting into .