Hostname: page-component-7479d7b7d-767nl Total loading time: 0 Render date: 2024-07-13T20:12:41.895Z Has data issue: false hasContentIssue false

Producing all ideals of a forest, functionally

Published online by Cambridge University Press:  27 August 2003

JEAN-CHRISTOPHE FILLIÂTRE
Affiliation:
Laboratoire de Recherche en Informatique, Université Paris Sud, 91405 Orsay Cedex, France (e-mail: Jean-Christophe.Filliatre@lri.fr)
FRANÇOIS POTTIER
Affiliation:
INRIA Rocquencourt, B.P. 105, 78153 Le Chesnay Cedex, France (e-mail: Francois.Pottier@inria.fr)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the ‘Save PDF’ action button.

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.

Type
FUNCTIONAL PEARL
Copyright
2003 Cambridge University Press
Submit a response

Discussions

No Discussions have been published for this article.