English

Star transposition Gray codes for multiset permutations

Combinatorics 2022-01-05 v3 Discrete Mathematics

Abstract

Given integers k2k\geq 2 and a1,,ak1a_1,\ldots,a_k\geq 1, let a:=(a1,,ak)\boldsymbol{a}:=(a_1,\ldots,a_k) and n:=a1++akn:=a_1+\cdots+a_k. An a\boldsymbol{a}-multiset permutation is a string of length nn that contains exactly aia_i symbols ii for each i=1,,ki=1,\ldots,k. In this work we consider the problem of exhaustively generating all a\boldsymbol{a}-multiset permutations by star transpositions, i.e., in each step, the first entry of the string is transposed with any other entry distinct from the first one. This is a far-ranging generalization of several known results. For example, it is known that permutations (a1==ak=1a_1=\cdots=a_k=1) can be generated by star transpositions, while combinations (k=2k=2) can be generated by these operations if and only if they are balanced (a1=a2a_1=a_2), with the positive case following from the middle levels theorem. To understand the problem in general, we introduce a parameter Δ(a):=n2max{a1,,ak}\Delta(\boldsymbol{a}):=n-2\max\{a_1,\ldots,a_k\} that allows us to distinguish three different regimes for this problem. We show that if Δ(a)<0\Delta(\boldsymbol{a})<0, then a star transposition Gray code for a\boldsymbol{a}-multiset permutations does not exist. We also construct such Gray codes for the case Δ(a)>0\Delta(\boldsymbol{a})>0, assuming that they exist for the case Δ(a)=0\Delta(\boldsymbol{a})=0. For the case Δ(a)=0\Delta(\boldsymbol{a})=0 we present some partial positive results. Our proofs establish Hamilton-connectedness or Hamilton-laceability of the underlying flip graphs, and they answer several cases of a recent conjecture of Shen and Williams. In particular, we prove that the middle levels graph is Hamilton-laceable.

Keywords

Cite

@article{arxiv.2108.07465,
  title  = {Star transposition Gray codes for multiset permutations},
  author = {Petr Gregor and Arturo Merino and Torsten Mütze},
  journal= {arXiv preprint arXiv:2108.07465},
  year   = {2022}
}
R2 v1 2026-06-24T05:10:41.205Z