Simple Combinatorial Gray Codes Constructed by Reversing Sublists
Simple Combinatorial Gray Codes Constructed by Reversing Sublists
复制标题
由反转子表构造的简单组合格雷码
DOI:
10.1007/3-540-57568-5_250
复制
发表时间:
1993
期刊:
影响因子:
--
通讯作者:
F. Ruskey
中科院分区:
文献类型:
--
作者:
F. Ruskey
We present three related results about simple combinatorial Gray codes constructed recursively by reversing certain sublists. First, we show a bijection between the list of compositions of Knuth and the list of combinations of Eades and McKay. Secondly, we provide a short description of a list of combinations satisfying a more restrictive closeness criteria of Chase. Finally, we develop a new, simply described, Gray code list of the partitions of a set into a fixed number of blocks, as represented by restricted growth sequences. In each case the recursive definition of the list is easily translatable into an algorithm for generating the list in time proportional to the number of elements in the list; i.e., each object is produced inO(1) amortized time by the algorithm.