Work

The exact alphabet size for the prescribed greedy permutation cycle

Year: 2026
Type: preprint
Abstract: A universal word for permutations of order \(n\) contains each of the \(n!\) relative orders exactly once among its consecutive length-\(n\) windows. In a universal cycle the windows also wrap around the end. Gao, Kitaev, Steiner and Zhang asked how few distinct ordered letters can realise the window patterns of their preferred-smallest greedy word \(\Pi'_n\) and its prescribed circular order \(\Pi_n\). The two minimum alphabet sizes are equal for every \(n\ge2\). Writing their common value as \(h_n\), the exact recurrence below gives \(h_2,\ldots,h_8=2,6,14,49,314,1721,16020\). At order four, the reported value 13 applies to the circular example printed in the source. The prescribed greedy order requires 14. Gao, Kitaev, Steiner and Zhang, §4.1, physical pp. 10–11, including Figure 1 Put \(m=n-1\) and \(N=n!\). The linear word has \(N+m\) positions and the cycle has \(N\). In either form, draw an arrow from the smaller letter to the larger whenever the two positions share a length-\(n\) window. The source gives the linear minimum as the height of this comparison order. A directed path forces as many distinct letters as it has vertices, and labelling each position by the longest path ending there, counted in vertices, realises all required comparisons. The same labelling rule applies to an acyclic circular comparison graph. The source's Theorem 2.4 identifies the circular comparisons by matching position \(N+i\) with position \(i\) for \(1\le i\le m\). For the preferred-smallest construction, the initial and final \(m\) positions each form an increasing chain with no arrow leading out of it. Identifying the two chains preserves the maximum path length, since a path entering the common chain can finish on the original chain through which it entered. The result fixes both the increasing start and the preferred-smallest rule. Choosing a different preference order is a separate question in §4.1. Gao, Kitaev, Steiner and Zhang, §2.2, Theorem 2.4 and §4.1 To compute \(h_n\) from \(n\), start with the reduced state \(12\cdots m\), where reduction replaces entries by their ranks within the state, with rank 1 smallest. On the \(j\)th visit to a state, counting its first visit as 1, insert the new position at rank \(j\) among the \(n\) positions in the new window. Drop the oldest position and reduce the remaining \(m\) positions to obtain the next state. This is the source's rank rule, which produces \(N\) windows. Gao, Kitaev, Steiner and Zhang, §2.2, physical pp. 6–7 Give each comparison arrow weight 1. Add a lower sentinel \(\bot\) with a weight-1 arrow to each position, an upper sentinel \(\top\) with a weight-0 arrow from each position, and a weight-0 arrow from \(\bot\) to \(\top\). Keep a matrix \(D\) whose entry \(D_{uv}\) is the greatest path weight from \(u\) to \(v\) in the processed prefix. Its endpoints are the latest \(m\) positions and the two sentinels, and paths may pass through any processed position. Empty paths have weight 0 and unreachable pairs have entry \(-\infty\). Initially index the increasing positions by \(1,\ldots,m\) and write \(0=\bot\). Set \(D_{ij}=j-i\) for \(0\le i\le j\le m\), \(D_{i,\top}=m-i\) for \(0\le i\le m\), and \(D_{\top,\top}=0\). All other entries start at \(-\infty\). For the new position \(x\), let \(\ell\) and \(h\) be its immediate lower and upper neighbours in the window's value order, using \(\bot\) or \(\top\) at the corresponding end. The two arrows \(\ell\to x\) of weight 1 and \(x\to h\) of weight \(w\) suffice to retain the maximum path weights. Here \(w=0\) when \(h=\top\) and \(w=1\) otherwise. For every pair of old endpoints \(u,v\), use the old entries simultaneously to compute \[\begin{aligned} D'_{uv}&=\max\{D_{uv},D_{u\ell}+1+w+D_{hv}\},\\ D'_{ux}&=D_{u\ell}+1,\qquad D'_{xv}=w+D_{hv},\qquad D'_{xx}=0. \end{aligned} \] Adding a finite weight to \(-\infty\) gives \(-\infty\). Delete the row and column of the oldest position after each update. Its contribution to paths survives in the retained entries, and it shares no window with any future position. After \(N\) updates, \(D_{\bot,\top}=h_n\). The computation uses \(O(n^2 n!)\) arithmetic operations and \(O(n^2)\) storage for the distances, in addition to the greedy visit table of at most \((n-1)!\) counters. To obtain an actual optimal relabelling, retain the comparison graph and assign each position its longest-path weight from \(\bot\). At order four, the first differing window starts at position 15, using one-based indexing. The reduced state \(213\) occurs at steps 10, 15 and 18 in both sequences. At step 15 its second visit requires the last letter to have rank 2, giving the pattern \(3142\). The printed example gives it rank 3, producing \(2143\). The two patterns are exchanged at steps 15 and 18. The printed sequence remains a universal cycle and has comparison height 13. In the prescribed greedy order, the positions \(13,16,19,18,15,12,9,6,7,5,4,1,2,3\) carry the increasing values \(1,5,7,8,9,19,20,21,22,23,24,25,26,27\) in the greedy linear word. Each successive pair of positions is at most three places apart, so all 14 letters are compulsory in either geometry. The recurrence gives the matching upper bound. Gao, Kitaev, Steiner and Zhang, §2.1, physical p. 5, and §4.1, physical pp. 10–11
Author: He, Zixuan
Language: English
Open Access status: green
OpenAlex ID: W7242500261
Cites:
Cited by:
Related to: