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 条
[21]   CLASS OF ALGORITHMS WHICH REQUIRE NON-LINEAR TIME TO MAINTAIN DISJOINT SETS [J].
TARJAN, RE .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1979, 18 (02) :110-127
[22]  
WILF HS, 1989, CBMS55 SIAM