Download PDF

19th Workshop on (Constraint) Logic Programming, Date: 2005/02/21 - 2005/02/23, Location: Ulm, Germany

Publication date: 2005-01-01
Volume: 2005-01 Pages: 135 - 146
Publisher: Universität Ulm, Germany

19th Workshop on (Constraint) Logic Programming

Author:

Schrijvers, Tom
Frühwirth, Thom ; Wolf, A ; Frühwirth, T ; Meister, M

Abstract:

CHR (Constraint Handling Rules) is a committed-choice rulebased language that was originally intended for writing constraint solvers. Over time, CHR is used more and more as a general-purpose programming language. In companion paper [12] we show that it is possible to write the classic union-find algorithm and variants in CHR with bestknown time complexity, which is believed impossible in Prolog. In this paper, using CHR analysis techniques, we study logical correctness and confluence of these programs. We observe the essential destructive update of the algorithm which makes it non-logical.