Generating key points…
Answers are grounded in this paper and cite their sources.
A de Bruijn cycle of order \(n\) on \(k\) symbols contains each length-\(n\) word exactly once as a cyclic window. A greedy generator chooses the next symbol by consulting the windows already visited. Can the current window alone determine the same choice? For every \(k≥2\) and \(n≥2\), it can for both generalised Prefer-same and Prefer-opposite. Each successor reproduces the specified greedy cycle, including its starting window, in \(O(k^2n^3)\) elementary operations on alphabet-sized words per symbol and with polynomial workspace. The same modular representation also gives a lexicographic-composition construction for every \(k≥2\) and \(n≥1\), with exact agreement with the Fredricksen–Kessler word on the binary alphabet. For the Prefer-same branch of Sala, Sawada and Alhakim's problem P2, set \(M=k-1\) and \(m=n-1\). The seed is \(I=(M-m,M-m+1,…,M)\), with letters reduced modulo \(k\). Mark it visited. At a suffix ending in \(s\), the greedy rule tries \(s,s-1,…,s-(k-1)\) in that order and takes the first choice that yields an unvisited window. This priority applies to every suffix. The successor below gives the same transitions. Section 12, p. 26, P2, Prefer-same branch · GreedySame in the authors' code For the Prefer-opposite branch of P2, mark the seed \(0^n\) visited, where \(y^a\) denotes \(a\) copies of the letter \(y\). The increments tried relative to the last letter of the suffix are normally \(1,2,…,k-1,0\). At a constant suffix \(y^m\) with \(y≠0\), the order is \(1,…,k-2,0,k-1\), with the initial range empty for \(k=2\). The successor reproduces this order, including the exceptional choice at positive constant suffixes. Section 12, p. 26, P2, Prefer-opposite branch · GreedyOpposite in the authors' code For all three constructions with \(n≥2\), start with the permutation \[R(x_0⋯ x_m)=x_1⋯ x_m\,(x_m+x_1-x_0). \] All letter arithmetic is modulo \(k\), with representatives \(0,…,M\). Under \(R\), the adjacent differences \(D_i=xᵢ₊₁-x_i\), \(0≤ i<m\), rotate by one position. Choose the least lexicographic rotation \(v\) in the digit order of the construction. If that rotation starts at position \(h\) of the window's difference word, its first letter at that phase is \(s=x_0+∑ᵢ₌₀ʰ⁻¹D_i\). Write \(d(v)\) for the shortest period of \(v\), \(σ(v)\) for the sum of the actual differences over one such period, and \(g(v)=(k,σ(v))\), with \((k,0)=k\). Successive visits to \(v\) advance the phase letter by \(σ(v)\). The rotation and the phase letter modulo \(g(v)\) thus identify an orbit of \(R\), of length \(d(v)k/g(v)\). This is the modular Lempel lift. The new choices specify where to join these orbits so that they give the required output order. For the two greedy successors, encode each difference \(D\) by its rank. Use \((-D) k\) for Prefer-same and \((D-1) k\) for Prefer-opposite, and compare rank digits in ascending order. In each case \(M^m\) is the root derivative in ranks. Call an orbit preferred if its phase letters include \(M\) for Prefer-same or \(0\) for Prefer-opposite. Use that letter as its reference phase. For a canonical rank word \(v≠ M^m\), let \(j\) be the last index with \(v_j<M\) and let \(b=v_j\). Write \(v[j← t]\) for replacement of digit \(j\) by \(t\). The two parent choices are \[ρ(v)=v[j← M], τ(v)=v[j← b+1]. \] In a preferred orbit the exit is the window \(m-j\) raw steps before its reference phase, where a raw step means applying \(R\). Change its first difference rank to \(M\) by changing only its first letter. The resulting window is its attachment in the preferred orbit of \(ρ(v)\). For a nonpreferred orbit with \(v≠ M^m\), scan the preferred orbit of \(τ(v)\) from the raw successor of its exit towards that exit. Use the earliest window with first rank \(b+1\) for which changing that rank to \(b\), with the suffix fixed, produces a window in the target nonpreferred orbit. The window before the change is the attachment and the window after it is the child's exit. If \(b+1=M\), require the attachment to come strictly after the preferred attachment of \(v\) in the same parent. For Prefer-same, stop before the parent's exit. If the parent is the root, use the seed \(I\) as its cut and the preferred attachment of \(v\), and scan from \(R(I)\) up to, but excluding, \(I\). For Prefer-opposite the scan may include the parent's exit, and the selected site lies strictly before it. For Prefer-opposite, each constant window \(y^n\) with \(y>0\) is a singleton orbit. Use \(y^n\) as its exit and attach it at \((y+1)y^m\). The singleton \(0^n\) is the root. For Prefer-same, the root is the orbit with actual difference \(+1\), and the preceding rules include the constant windows. To evaluate a successor, enumerate the \(k\) windows with the input window's suffix and test each for its orbit's selected exit. At each attachment, put the attachment window first and its child exits next, in the order of their first differences under the greedy priority for that suffix. Give each window in this list the raw successor \(R\) of the next window in the list, wrapping from the last back to the first. Windows outside such lists keep their own raw successor. All windows in a list share a suffix, so the reassignment gives a usable next letter. The scans inspect at most \(km\) parent windows per candidate, with direct rotation and period tests costing \(O(n^2)\) per scanned window. The joins put the outgoing windows at each suffix in the required greedy priority when the traversal is read just after the seed, with the seed last. Starting instead at the seed and emitting the first letter of each successive window gives the specified cycle. The least-rotation and earliest-attachment rules determine this order without maintaining the greedy history. Sala, Sawada and Alhakim's problem P5 asks whether Fredricksen and Kessler's binary lexicographic composition \(L_n\) extends to larger alphabets. The answer is a single recursive block construction and an equivalent suffix-local successor. For \(n=1\), use \(M(M-1)⋯0\). For \(n≥2\), take \(v\) to be the least rotation of the actual differences in the usual order \(0<⋯<M\). Label each orbit by \((v,r)\), where \(r\) is the greatest representative in its coset of \(σ(v)\), the subgroup of residues generated by \(σ(v)\). The phases run in order \(s=r+tσ(v)\) for \(t=0,…,k/g(v)-1\). At phase \(s\), the block read over one shortest derivative period is \[W(v,s)=(s+∑ᵢ₌₀q-1v_i)q=0ᵈ⁽ᵛ⁾⁻¹, \] where the sum is zero for \(q=0\). Section 12, p. 26, P5, on the construction \(L_n\) defined in §8 Starting at \((M^m,M)\), visit the phases of each orbit in the stated order. At phase \(s\), form candidate child words \(u\) by lowering one digit in the terminal run of \(M\)'s in \(v\). Keep those that are least rotations and for which \(s\) is the greatest representative in its coset of \(σ(u)\). Concatenate the outputs of \((u,s)\) in lexicographic order, then append \(W(v,s)\). Every descent adds one digit below \(M\), so the recursion terminates. It produces a word of length \(k^n\) whose cyclic windows exhaust all length-\(n\) words. For \(k=2\), the inherited identification of the binary joining rule with Fredricksen and Kessler's construction gives the exact written word \(L_n\), beginning with \(1^n0^n\). Fredricksen–Kessler, JCTA 22, pp. 17–30 For the equivalent local rule, test the \(k\) windows with the current suffix \(β\). Find each candidate's \(v,s\) as above and compute \(r=M-((M-s) g(v))\). For \(v≠ M^m\), let \(j\) be the last index where \(v_j<M\). A candidate is its orbit's selected exit exactly when its difference word is \(v\) rotated to start at \(j\) and its first letter is \(r-∑ᵢ₌ⱼᵐ⁻¹v_i\). Attach these exits to the window obtained by setting the first difference to \(M\) while keeping \(β\), and use the same cyclic reassignment, now ordering the exits by increasing first difference. Linear least-rotation and period calculations and the Euclidean gcd give \(O(k(n+log k))\) arithmetic and comparison operations on alphabet-sized words per symbol. To match the block construction's written start, take the root window of constant difference \(M\) with first letter \(M+m\) modulo \(k\), advance \(m\) times by the joined successor, and begin emitting first letters there.
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: