Minimum common alphabet for multidimensional permutation cycles
How many ordered letters are needed to realise every multidimensional permutation in a single cycle? Kitaev and Qiu asked for the minimum size of an alphabet shared across all rows. The minimum can be computed exactly for every order and dimension by counting closed walks whose overlaps preserve the actual letters. Kitaev and Qiu, §3 concluding paragraph, printed p. 319, accepted PDF p. 10 For integers \(n,d\ge 2\), the cycle has \(r=d-1\) rows and \(N=(n!)^r\) columns. Each window of \(n\) consecutive columns, including windows that wrap around, must have distinct letters within each row. Replacing each letter by its rank within that row of the window, with rank 1 for the smallest, gives a tuple of \(r\) permutations. Each tuple must appear exactly once. The alphabet size counts distinct scalar letters across all rows. Independently relabelling the ordered letters of each row preserves every pattern, so a bound of \(a\) letters per row is equivalent to a common alphabet \([a]=\{1,\ldots,a\}\). For a candidate integer \(a\ge n\), take as vertices the arrays with \(r\) rows and \(n-1\) columns whose entries lie in \([a]\) and are distinct within each row. Every allowed \(n\)-column window gives a directed edge from its first \(n-1\) columns to its last \(n-1\) columns. Give that edge the colour of its tuple of row permutations. Write \(\mathcal C=S_n^r\) for the set of colours, where \(S_n\) is the set of permutations of \(1,\ldots,n\). For \(S\subseteq\mathcal C\), let \(A_a(S)\) be the adjacency matrix whose entry at a pair of vertices counts the directed edges between them with colours in \(S\). The exact number of valid cyclic arrays over \([a]\), with a specified column origin, is \[C_{n,r}(a)=\sum_{S\subseteq\mathcal C}(-1)^{N-|S|}\operatorname{tr}\!\left(A_a(S)^N\right). \] Here \(|S|\) is the number of colours in \(S\), and the trace sums the diagonal entries. The trace counts closed walks of length \(N\) with a specified start. Matching actual letters makes each such walk a cyclic array, with the first column of each successive vertex supplying one column of the array. Inclusion–exclusion cancels walks that miss a colour. A walk of length \(N\) that uses all \(N\) colours uses each exactly once. Kitaev and Qiu's Theorem 2.6 supplies a cycle with at most \(N\) letters per row, so \(C_{n,r}(N)>0\). A cycle over \([a]\) is also a cycle over \([a+1]\), and therefore the minimum is \[h(n,d)=n+\sum_{a=n}^{N-1}\left\lfloor\frac{1}{1+C_{n,r}(a)}\right\rfloor. \] The floor rounds down, contributing 1 precisely when the count is zero. Equivalently, binary search on \(n\le a\le N\) finds the first positive count. Each count uses \(2^N\) colour subsets and matrices of dimension \(V=[a(a-1)\cdots(a-n+2)]^r\). Building edge lists and using dense matrix powering takes \(O(2^N(V^3\log N+V(a-n+1)^r))\) integer arithmetic operations per tested alphabet size. To construct a cycle at that size, select one edge of each colour so that the selected indegree equals the selected outdegree at every vertex and the incident vertices form a connected graph after directions are forgotten. These conditions are necessary and sufficient for a closed tour using each selected edge once. Reading the first columns of its successive vertices gives the cycle. With only \(n\) letters, advancing a window forces the incoming letter in each row to equal the outgoing one. The row therefore repeats with period \(n\), allowing at most \(n\) distinct window patterns in the whole array. Thus \(h(n,d)\ge n+1\) whenever \((n!)^r>n\). At order two, the single row \(01\) attains \(h(2,2)=2\). For any \(r\ge2\), list the \(2^r\) binary vectors cyclically in adjacent complementary pairs. In each coordinate interpret a 1 as an increase from the current position to the next and a 0 as a decrease. Draw an arrow from the required smaller position to the larger one. Both signs occur, and a run of either sign has length at most two. The resulting directed graph is acyclic and every directed path visits at most three positions. Assign each position the number of vertices in a longest path ending there, counting the position itself. These labels realise the prescribed comparisons using three letters shared across the rows. Together with the lower bound this gives \(h(2,d)=3\) for every \(d\ge3\). At order three, \(h(3,d)=4\) for every \(d\ge2\). The following two circular rows on \(\{0,1,2,3\}\) supply the construction for arbitrary dimension: \[\begin{aligned} &012032103201201321321302102301203123,\\ &013012310213021301320321032130120132. \end{aligned} \] Their 36 windows use all 36 pairs of row patterns exactly once. Let \(H\) be the directed graph formed by those window edges on their actual two-column overlaps. It is balanced and strongly connected. The two-column overlaps agree at zero-based starting columns \(1\) and \(33\), and also at \(14\) and \(17\). These repeats give closed walks of lengths \(32\) and \(3\), alongside the full walk of length \(36\). Their greatest common divisor is 1, so \(H\) has period one. Consequently, between any pair of its vertices there are walks of every sufficiently large length. This is the property that lets several copies take steps in synchrony. For \(r=2k\) use \(k\) copies of \(H\), taking one edge in every copy at each step. For \(r=2k+1\) include the one-row overlap graph of the cycle \(012032\), using just that graph when \(k=0\). Each product edge combines the colours of its factors, giving one edge per full tuple of row patterns. The product is balanced and strongly connected. In the odd case, the walks available between fixed endpoints in the one-row factor can be made arbitrarily long by looping, so the two-row factors can match their length. A tour using every product edge once produces the required cycle on four letters, and the general lower bound rules out three. At other orders the same construction applies if the chosen alphabet supports both a two-row selection with one edge per colour that is balanced, strongly connected and of period one, and a one-row universal cycle. Johnson's Theorem 1 already gives \(h(n,2)=n+1\) for every \(n\ge3\). For \(n\ge4\) and \(d\ge3\), the arithmetic formula gives the minimum for each specified pair. Whether \(n+1\) always suffices in that range remains open here. Johnson, Theorem 1 The alphabet question concerns full-width windows. Kitaev and Qiu's follow-up treats a different window-width requirement. For products, the coprime-length repetition construction of Diaconis and Graham requires coprime factor lengths, whereas the one-row cycles here all have length \(n!\). Their constructions using long blocks of equal symbols also face the distinct-letter condition in every row window. Kitaev and Qiu, shortened-width follow-up · Diaconis and Graham, §§2–3
Authors
- Zixuan He
Institutions
- University of Glasgow (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24797020
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint