Efficient loopless generation of Gray codes for k-ary trees

被引:22
作者
Xiang, LM
Ushijima, K
Tang, CJ
机构
[1] Kyushu Univ, Dept Comp Sci & Commun Engn, Higashi Ku, Fukuoka 8128581, Japan
[2] Sichuan Univ, Dept Comp Sci, Chengdu 610064, Sichuan, Peoples R China
关键词
combinatorial problems; Gray codes; k-ary trees; loopless generation;
D O I
10.1016/S0020-0190(00)00139-3
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Vajnovszki recently developed a loopless algorithm [Inform. Process. Lett. 68 (1998) 113] to enumerate Gray codes for binary trees, and then Korsh and Lafollette gave a loopless algorithm [Inform. Process. Lett 70 (1999) 7] to generate Gray codes for k-ary trees. In this paper, another loopless algorithm is presented to list Gray codes for k-ary trees more efficiently in both space and time than the two former algorithms, and the algorithm is also conceptually simpler than the predecessors. Based on the algorithm, Gray codes for k-ary trees with n internal nodes (n greater than or equal to 2 and k > 3) can be generated in at least 2(2(n-1)) different ways easily. (C) 2000 Elsevier Science B.V. All rights reserved.
引用
收藏
页码:169 / 174
页数:6
相关论文
共 15 条
[1]  
Gill Williamson S., 1985, COMBINATORICS COMPUT
[2]   Loopless generation of Gray codes for k-ary trees [J].
Korsh, JE ;
LaFollette, P .
INFORMATION PROCESSING LETTERS, 1999, 70 (01) :7-11
[3]   Shifts and loopless generation of k-ary trees [J].
Korsh, JF ;
Lipschutz, S .
INFORMATION PROCESSING LETTERS, 1998, 65 (05) :235-240
[4]   LOOPLESS GENERATION OF K-ARY TREE SEQUENCES [J].
KORSH, JF .
INFORMATION PROCESSING LETTERS, 1994, 52 (05) :243-247
[5]   ON ROTATIONS AND THE GENERATION OF BINARY-TREES [J].
LUCAS, JM ;
VANBARONAIGIEN, DR ;
RUSKEY, F .
JOURNAL OF ALGORITHMS, 1993, 15 (03) :343-366
[6]   ENUMERATING, RANKING AND UNRANKING BINARY-TREES [J].
PALLO, JM .
COMPUTER JOURNAL, 1986, 29 (02) :171-175
[7]  
Ruskey F., 1987, C NUMER, V59, P313
[8]   On the loopless generation of binary tree sequences [J].
Vajnovszki, V .
INFORMATION PROCESSING LETTERS, 1998, 68 (03) :113-117
[9]   A loopless Gray-code algorithm for listing k-ary trees [J].
van Baronaigien, DR .
JOURNAL OF ALGORITHMS, 2000, 35 (01) :100-107
[10]   A LOOPLESS ALGORITHM FOR GENERATING BINARY-TREE SEQUENCES [J].
VANBARONAIGIEN, DR .
INFORMATION PROCESSING LETTERS, 1991, 39 (04) :189-194