计算机科学 > 数据结构与算法
[提交于 2026年3月30日]
标题:Constant delay Gray code enumeration of ideals and antichains in posets
查看中文 PDF 查看原文 PDF EasyResearch 阅读摘要:We present an algorithm that enumerates all ideals of an input poset with constant delay in Gray code order, i.e., such that consecutively visited ideals differ in at most three elements. This answers a long-standing open problem posed by Pruesse and Ruskey, and improves upon previous algorithms by Pruesse and Ruskey, Squire, Habib, Medina, Nourine and Steiner, as well as Abdo. Using the same techniques, we also obtain an algorithm that enumerates all antichains of an input poset with constant delay such that successively visited antichains differ in at most three elements. As a key technical ingredient, we introduce a new potential-based analysis framework for recursive algorithms, which we call the Pyramid method. We show that this method subsumes the Push-out method of Uno. Beyond the present application, the Pyramid method is a general framework to analyze recursive algorithms and may thus be of independent interest.
提交历史
来自:Sofia Brenner[v1] 2026年3月30日 星期一 07:30:52 UTC