An explicit universal cycle for the (n-1)-permutations of an n-set
An explicit universal cycle for the (n-1)-permutations of an n-set
复制标题
n 集的 (n-1) 排列的显式通用循环
DOI:
10.1145/1798596.1798598
复制
发表时间:
2007
期刊:
影响因子:
--
通讯作者:
A. Williams
中科院分区:
文献类型:
--
作者:
F. Ruskey;A. Williams
We show how to construct an <i>explicit</i> Hamilton cycle in the directed Cayley graph &Cayrarr;({σ<sub><i>n</i></sub>, σ<sub><i>n</i>−1</sub>}: S<sub><i>n</i></sub>), where σ<sub><i>k</i></sub> is the rotation (1 2 &cdots; <i>k</i>). The existence of such cycles was shown by Jackson [1996] but the proof only shows that a certain directed graph is Eulerian, and Knuth [2005] asks for an explicit construction. We show that a simple recursion describes our Hamilton cycle and that the cycle can be generated by an iterative algorithm that uses <i>O</i>(<i>n</i>) space. Moreover, the algorithm produces each successive edge of the cycle in constant time; such algorithms are said to be <i>loopless</i>. Finally, our Hamilton cycle can be used to construct an explicit universal cycle for the (<i>n</i>−1)-permutations of a <i>n</i>-set, or as the basis of an efficient algorithm for generating every <i>n</i>-permutation of an <i>n</i>-set within a circular array or linked list.