Constraint Programming viewed as Rule-based Programming

03/24/2000
by   Krzysztof R. Apt, et al.
0

We study here a natural situation when constraint programming can be entirely reduced to rule-based programming. To this end we explain first how one can compute on constraint satisfaction problems using rules represented by simple first-order formulas. Then we consider constraint satisfaction problems that are based on predefined, explicitly given constraints. To solve them we first derive rules from these explicitly given constraints and limit the computation process to a repeated application of these rules, combined with labeling.We consider here two types of rules. The first type, that we call equality rules, leads to a new notion of local consistency, called rule consistency that turns out to be weaker than arc consistency for constraints of arbitrary arity (called hyper-arc consistency in MS98b). For Boolean constraints rule consistency coincides with the closure under the well-known propagation rules for Boolean constraints. The second type of rules, that we call membership rules, yields a rule-based characterization of arc consistency. To show feasibility of this rule-based approach to constraint programming we show how both types of rules can be automatically generated, as CHR rules of fruhwirth-constraint-95. This yields an implementation of this approach to programming by means of constraint logic programming. We illustrate the usefulness of this approach to constraint programming by discussing various examples, including Boolean constraints, two typical examples of many valued logics, constraints dealing with Waltz's language for describing polyhedral scenes, and Allen's qualitative approach to temporal logic.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/08/1999

Automatic Generation of Constraint Propagation Algorithms for Small Finite Domains

We study here constraint satisfaction problems that are based on predefi...
research
06/24/2017

Justifications in Constraint Handling Rules for Logical Retraction in Dynamic Algorithms

We present a straightforward source-to-source transformation that introd...
research
06/30/2000

Constraint compiling into rules formalism constraint compiling into rules formalism for dynamic CSPs computing

In this paper we present a rule based formalism for filtering variables ...
research
04/05/2013

Pattern-Based Constraint Satisfaction and Logic Puzzles

Pattern-Based Constraint Satisfaction and Logic Puzzles develops a pure ...
research
07/18/2023

Rule-based Graph Repair using Minimally Restricted Consistency-Improving Transformations

Model-driven software engineering is a suitable method for dealing with ...
research
10/02/2019

Boosting Image Recognition with Non-differentiable Constraints

In this paper, we study the problem of image recognition with non-differ...
research
06/06/2023

Explainable AI using expressive Boolean formulas

We propose and implement an interpretable machine learning classificatio...

Please sign up or login with your details

Forgot password? Click here to reset