Gray codes for \(A\)-free strings
The electronic journal of combinatorics, Tome 3 (1996) no. 1
For any $q \geq 2$, let $\Sigma_{q}=\{0,\ldots,q\!-\!1\}$, and fix a string $A$ over $\Sigma_{q}$. The $A$-free strings of length $n$ are the strings in $\Sigma_{q}^n$ which do not contain $A$ as a contiguous substring. In this paper, we investigate the possibility of listing the $A$-free strings of length $n$ so that successive strings differ in only one position, and by $\pm 1$ in that position. Such a listing is a Gray code for the $A$-free strings of length $n$. We identify those $q$ and $A$ such that, for infinitely many $n \geq 0$, a Gray code for the $A$-free strings of length $n$ is prohibited by a parity problem. Our parity argument uses techniques similar to those of Guibas and Odlyzko (Journal of Combinatorial Theory A 30 (1981) pp. 183–208) who enumerated the $A$-free strings of length $n$. When $q$ is even, we also give the complementary positive result: for those $A$ for which an infinite number of parity problems do not exist, we construct a Gray code for the $A$-free strings of length $n$ for all $n \geq 0$.
@article{10_37236_1241,
author = {Matthew B. Squire},
title = {Gray codes for {\(A\)-free} strings},
journal = {The electronic journal of combinatorics},
year = {1996},
volume = {3},
number = {1},
doi = {10.37236/1241},
zbl = {0849.94021},
url = {http://geodesic.mathdoc.fr/articles/10.37236/1241/}
}
Matthew B. Squire. Gray codes for \(A\)-free strings. The electronic journal of combinatorics, Tome 3 (1996) no. 1. doi: 10.37236/1241
Cité par Sources :