Lecture5 - CSP
Lecture5 - CSP
Domains:
Explicit:
Domains:
Constraints:
Implicit:
Explicit:
Constraint Graphs
Constraint Graphs
Continuous variables
E.g., start/end times for Hubble Telescope observations
Linear constraints solvable in polynomial time by LP methods
(see cs170 for a bit of this theory)
Varieties of Constraints
Varieties of Constraints
Unary constraints involve a single variable (equivalent to
reducing domains), e.g.:
Ordering:
Which variable should be assigned next?
In what order should its values be tried?
NT Q
WA
SA
NSW
V
NT Q
WA
SA
NSW
V
NT Q
WA SA
NSW
V
To apply to CSPs:
Take an assignment with unsatisfied constraints
Operators reassign variable values
No fringe! Live on the edge.
To apply to CSPs:
Take an assignment with unsatisfied constraints
Operators reassign variable values
No fringe! Live on the edge.
The same appears to be true for any randomly-generated CSP except in a narrow
range of the ratio
Summary: CSPs
CSPs are a special kind of search problem:
States are partial assignments
Goal test defined by constraints
Basic solution: backtracking search
Speed-ups:
Ordering
Filtering
Structure