A GRAY CODE FOR THE IDEALS OF A FOREST POSET

被引:25
作者
KODA, Y
RUSKEY, F
机构
[1] Department of Computer Science, University of Victoria, Victoria
关键词
D O I
10.1006/jagm.1993.1044
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We present two algorithms for listing all the ideals of a forest poset. These algorithms generate ideals in a gray code manner; that is, consecutive ideals differ by exactly one element. Both algorithms use storage O(n), where n is the number of elements in the poset. On each iteration, the first algorithm does a partial traversal of the current ideal being listed and runs in time O(nN), where N is the number of ideals of the poset. The second algorithm mimics the first, but it eliminates the traversal and runs in time O(N). This algorithm has the property that the amount of computation between successive ideals is O(1); such algorithms are said to be loopless. © 1993 Academic Press, Inc.
引用
收藏
页码:324 / 340
页数:17
相关论文
共 22 条
[1]  
BEYER T, 1989, UNPUB CONSTANT AVERA
[2]   EFFICIENT GENERATION OF BINARY REFLECTED GRAY CODE AND ITS APPLICATIONS [J].
BITNER, JR ;
EHRLICH, G ;
REINGOLD, EM .
COMMUNICATIONS OF THE ACM, 1976, 19 (09) :517-521
[3]  
COFFMAN EG, OPERATING SYSTEMS TH, P94
[4]  
Dershowitz N., 1975, BIT (Nordisk Tidskrift for Informationsbehandling), V15, P158, DOI 10.1007/BF01932689
[5]   LOOPLESS ALGORITHMS FOR GENERATING PERMUTATIONS, COMBINATIONS, AND OTHER COMBINATORIAL CONFIGURATIONS [J].
EHRLICH, G .
JOURNAL OF THE ACM, 1973, 20 (03) :500-513
[6]  
FILL JA, 1977, SOLUTIONS MANUAL COM
[7]   LISTING AND COUNTING SUBTREES OF EQUAL SIZE OF A BINARY-TREE [J].
HIKITA, T .
INFORMATION PROCESSING LETTERS, 1983, 17 (04) :225-229
[8]   CIRCULAR CUTS IN A NETWORK [J].
HU, TC ;
RUSKEY, F .
MATHEMATICS OF OPERATIONS RESEARCH, 1980, 5 (03) :422-434
[9]   MONOTONICITY OF THE MEAN ORDER OF SUBTREES [J].
JAMISON, RE .
JOURNAL OF COMBINATORIAL THEORY SERIES B, 1984, 37 (01) :70-78
[10]   ON THE AVERAGE NUMBER OF NODES IN A SUBTREE OF A TREE [J].
JAMISON, RE .
JOURNAL OF COMBINATORIAL THEORY SERIES B, 1983, 35 (03) :207-223