Producing all ideals of a forest, functionally

Jean Christophe Filliâtre, François Pottier

Research output: Contribution to journalArticlepeer-review

Abstract

We present functional implementations of Koda and Ruskey's algorithm for generating all ideals of a forest poset as a Gray code. Using a continuation-based approach, we give an extremely concise formulation of the algorithm's core. Then, in a number of steps, we derive a first-order version whose efficiency is comparable to that of a C implementation given by Knuth.

Original languageEnglish
Pages (from-to)945-956
Number of pages12
JournalJournal of Functional Programming
Volume13
Issue number5
DOIs
Publication statusPublished - 1 Sept 2003
Externally publishedYes

Fingerprint

Dive into the research topics of 'Producing all ideals of a forest, functionally'. Together they form a unique fingerprint.

Cite this