University of Calgary
Rob Kremer
Search Samples:
Constrain Satisfaction


CPSC 433: Artificial Intelligence

Department of Computer Science
Computer
Science

Problem Description:

A constraint satisfaction problem (CSP) consists of
a set X = {X1,…,Xn} of variables over some finite, discrete-valued domains D = {D1,…,Dn} and
a set of constraints C = {C1,…,Cm}. Each constraint Ci is a relation over the domains of a subset of the variables, i.e.? Ci = Ri(Xi,1,…,Xi,k)?where the relation Ri describes every value-tuple in Di,1×…×Di,k that fulfills the constraint.
The problem is to find a value for each Xj (out of its ?Dj) that fulfills all Ci.

Give a fully-specified formal model and process for an arbitrary CSP.

Also give a fully-specified formal search instance for the following two problems:

X = {X1,X2}?
   D1 = {1,2,3}
   D2 = {1,2,3,4}
?C = {C1,C2,C3}
?  C1: X1 + X2 ≤ 4
  C2: X1 + X2 ≥ 3
  C3: X1 ≥ 2

X = {X1,X2,X3}
?  D1 = D2 = D3 = {true, false}?
C = {C1,C2,C3}?
   C1: X1 ∨ ¬X2 ∨ X3
   C2: ¬X1 ∨ X3
   C3: ¬X2 ∨ ¬X3



UofC
CPSC 433: Artificial Intelligence
Department of Computer Science

Last updated 2013-08-31 00:00
Rob Kremer