TOPICS
Search

Glushkov's L/X Problem


Glushkov's L/X problem (Glushkov 1968) asks for the largest number of moves needed to rearrange a permutation of n>=2 objects using two operations. The operation L shifts the list cyclically one place to the left, and X exchanges its first two positions. Each operation costs one move. A right shift therefore costs n-1 applications of L, rather than one move. The problem is the directed graph diameter of the Cayley graph of the symmetric group S_n generated by these two operations. With the convention D(1)=0, the diameters for n=1, 2, ... begin 0, 1, 2, 6, 11, 18, 25, 35, 45, 58, 71, ... (OEIS A039745).

Uskov et al. (2026) reported the exact formula

 D(n)={(3n^2-8n+9)/4   for n odd; (3n^2-8n+12)/4   for n even
(1)

for every n>=5. For example, D(5)=11, D(6)=18, D(7)=25, and D(8)=35. Their Lean development proves the existence of a word within the stated upper bound for every permutation, together with a matching lower bound. The authors report Codex assistance with the proof and formalization. As of Oct. 25, 2026, the public project reported build and axiom checks, but independent specialist verification had not been reported.


See also

Cayley Graph, Graph Diameter, Symmetric Group

Explore with Wolfram|Alpha

References

Glushkov, V. M. "Completeness of a System of Operations in Digital Computers." Cybernetics 4, 1-4, 1968. https://doi.org/10.1007/BF01073731.Uskov, S.; Chervov, A.; Levkovich-Maslyuk, F.; Litvak, I.; and Smolensky, A. "Glushkov's L/X Problem: Exact Directed Diameter of the Symmetric Group in Lean 4." Oct. 22, 2026. https://github.com/snow-ghost/glushkov-lx-lean/tree/b4d2cb2a736b6657f6ccdf77ab818fca319f2462.Sloane, N. J. A. Sequence A039745 in "The On-Line Encyclopedia of Integer Sequences."

Cite this as:

Weisstein, Eric W. "Glushkov's L/X Problem." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/GlushkovsLXProblem.html

Subject classifications