Generating key points…
Answers are grounded in this paper and cite their sources.
Gao, Kitaev, Steiner and Zhang ask which extension preferences make a greedy construction produce a universal cycle for permutations. For \(n≥2\), the answer gives exact tests for any initial pattern and any realised stream of extension ranks. If the same priority list is used at every step, its final rank and the initial pattern alone determine whether the algorithm visits every permutation. The cyclic tests then determine whether that order can be realised around a circle and whether cutting the greedy word itself gives a universal cycle. The minimum alphabet is a separate question in the original paper. Gao, Kitaev, Steiner and Zhang, §4.1, final paragraph, accepted manuscript p. 11 Set \(m=n-1\) and \(N=n!\). The pattern of a window is the permutation obtained by replacing its entries by their ranks, with rank \(1\) assigned to the smallest. The state is the pattern of the current \(m\)-letter suffix, and the seed \(ρ\) is the initial state. From a state \(v\), appending a letter of rank \(r∈\{1,…,n\}\) in the resulting \(n\)-letter window, then dropping the first letter and reducing, gives the next state \(F_r(v)\). Each labelled edge \((v,r)\) represents one \(n\)-permutation. Edges with the same endpoints retain their distinct labels. The algorithm chooses an unused edge from the current state and stops when none is available. A universal linear word visits each of the \(N\) patterns once. A universal cycle has each pattern once among its \(N\) circular windows. Every stream that gives a universal linear word from \(ρ\) can be constructed by choosing one last outgoing edge at every state other than \(ρ\), so that repeatedly following these edges leads to \(ρ\) from every such state. These edges form a spanning tree directed towards the seed. At each nonseed state, put its chosen edge last and order the other \(n-1\) edges arbitrarily. At the seed, use any ordering of its \(n\) edges. Start at \(ρ\) and take the next edge in the local queue on each visit. This uses all \(N\) edges and returns to \(ρ\). Conversely, reading off the local orders from any complete stream recovers its queues and its tree uniquely. The correspondence uses the classical last-exit construction. It classifies the stream realised by an adaptive policy at a given seed. A fixed table of state-dependent priorities can realise any one of the classified streams. Van Aardenne-Ehrenfest and de Bruijn, §6 The same condition counts the admissible queue choices. Let \( Q_v\) be the allowed set of complete local queues at state \(v\), and let \(wv,r\) count its queues ending in rank \(r\). The directed matrix-tree theorem gives the exact number of choices producing a universal linear word from \(ρ\) as \[| Q_ρ| L(ρ), Lv,u=δv,u∑ᵣ₌₁ⁿwv,r-∑r:F_r(v)=uwv,r. \] Here the rows and columns of \(L\) are indexed by states, \(δv,u\) equals \(1\) for \(v=u\) and \(0\) otherwise, and \(L(ρ)\) deletes the seed row and column. The empty determinant is \(1\). With unrestricted queues, the count is the number of labelled trees directed towards \(ρ\) multiplied by \(n!((n-1)!)(n-1)!-1\). For a complete stream, write the linear word as \(x_1,…,xN+m\). Its first and last \(m\) positions have pattern \(ρ\). Write \(L_j\) and \(R_j\) for the positions of the \(j\)th smallest values in those two blocks, respectively, for \(1≤ j≤ m\). Form a directed graph on the linear positions by drawing an arrow from the smaller to the larger entry for each adjacent pair in the rank order of each length-\(n\) window. These arrows enforce all the comparisons in the windows. The prescribed window order admits a cyclic labelling if and only if, for every \(j\), neither \(L_j\) can reach \(R_j\) nor \(R_j\) can reach \(L_j\) along the arrows. To obtain the labels, identify each \(R_j\) with \(L_j\), topologically sort the resulting circular comparison graph, and assign the distinct integers \(1,…,N\) in that order. The circular comparison graph is classical. The equal-rank reachability criterion tests it directly on the linear word. Albert and West, §1, printed p. 41 The reachability test takes \(O(nN)\) time once the ranked windows are available. At every position keep the least rank reachable in each boundary block, counting the position itself if it belongs to that block and using \(+∞\) when no such rank is reachable. In reverse topological order, take the componentwise minima over each position and its successors. The minimum for the opposite block must exceed \(j\) at each \(L_j\) and \(R_j\). If the cycle must use the first \(N\) greedy integers and preserve the prescribed window order, substitute \(xL_j\) for \(xR_j\) in the last \(m\) windows and check that every adjacent-in-rank comparison still holds. This is necessary and sufficient and costs \(O(n^2)\) comparisons once the word and window ranks are available. If any window order is allowed, reduce the new \(m\) wrap windows and compare their set of patterns with the set of the old last \(m\) patterns. Equality is necessary and sufficient, since the first \(N-m\) windows already supply all other patterns exactly once. This costs \(O(n^2log n)\) comparisons. Standardising the retained integers preserves both tests. The original paper's Theorem 2.4 establishes ordered truncation for its own construction. For \(n=3\), the increasing seed and priority list \((1,3,2)\) give the complete rank stream \((1,1,3,3,2,2)\) and admit a cyclic labelling. The greedy integers are \((7,8,2,1,3,6,4,5)\). The first wrap window after cutting is \((3,6,7)\), of pattern \(123\), whereas the prescribed window \((3,6,4)\) has pattern \(132\). Both new wrap windows have pattern \(123\), so this cut fails even when their order is unrestricted. Gao, Kitaev, Steiner and Zhang, Theorem 2.4 For a fixed priority list, let \(r\) be its last rank and put \(a=r-1\), \(b=n-r\). The last edge at every nonseed state is then given by the same map \(F_r\). To describe this map, colour the \(a\) smallest entries of a state \( L\) and the \(b\) largest \( H\). Each step rotates the colour word one position to the left. The appended entry takes the dropped entry's colour and is the largest in the new \( L\) group or the smallest in the new \( H\) group, according to that colour. The retained entries keep their colours and relative order. Thus a state in which the \( L\) subsequence is increasing and the \( H\) subsequence is decreasing stays in that class. For each colour word there is exactly one such state, obtained by filling its \( L\) slots with \(1,…,a\) and its \( H\) slots with \(m,m-1,…,a+1\), in position order. For any starting state and any integer \(0≤ t≤ m\), its state after \(t\) steps belongs to this class exactly when the suffix of the original state after the first \(t\) positions has its original \( L\) entries increasing and its original \( H\) entries decreasing. The first such \(t\) gives the transient depth, which is at most \(m-1\). The attracting cycles are precisely the binary necklaces of length \(m\) with \(a\) letters \( L\), where words differing by rotation belong to the same necklace. A necklace with \(\) distinct rotations gives a cycle of length \(\) reached from exactly \( a!b!\) starting states. For any integer \(j≥1\), put \(g=(m,j)\). The number of states fixed by \(F_r^j\) is \({g}{a/(m/g)}\) if \(m/g\) divides \(a\), and zero otherwise. The fixed list gives a complete tour exactly when \(F_r\) has a single cycle and the seed is on it. For \(r=1\) the only eligible seed is decreasing, and for \(r=n\) it is increasing. For \(1<r<n\) with \(r=2\) or \(r=n-1\), the eligible seeds are exactly the interleavings of \((1,…,r-1)\) and \((n-1,n-2,…,r)\) that preserve the order in each list. These cases are counted once each when they coincide. Every other final rank fails to complete the tour from every seed. There are \(2n(n-1)!\) successful priority-list and seed pairs for \(n≥4\), eight for \(n=3\), and two for \(n=2\). From the increasing seed the eligible final ranks are \(n-1,n\) for \(n≥4\), \(2,3\) for \(n=3\), and either rank for \(n=2\). The boundary tests apply to each complete tour. Alternating globally between the smallest and largest available ranks is a step-dependent policy. From the increasing seed, either starting choice stops after five patterns at \(n=3\). At \(n=4\), both starting choices visit all \(24\) patterns and admit cyclic relabelling, while each literal cut gives only \(22\) distinct patterns.
No takes yet. Share an insight, caveat, or question.
Zixuan He (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: