arXiv · cs/0501073
Optimal Union-Find in Constraint Handling Rules
Abstract
Constraint Handling Rules (CHR) is a committed-choice rule-based language that was originally intended for writing constraint solvers. In this paper we show that it is also possible to write the classic union-find algorithm and variants in CHR. The programs neither compromise in declarativeness nor efficiency. We study the time complexity of our programs: they match the almost-linear complexity of the best known imperative implementations. This fact is illustrated with experimental results.
Explore related subjects
Keep this discovery
Tom Schrijvers, Thom Fruehwirth. 2005-01-25. Optimal Union-Find in Constraint Handling Rules. https://arxiv.org/abs/cs/0501073
Cite the original work for its findings. Save a collection to share your selection of sources.