Constraint Satisfaction Problems
Constraint Satisfaction Problems
1
Constraint satisfaction problems (CSPs)
• Continuous variables
– e.g., start/end times for Hubble Space Telescope observations
– linear constraints solvable in polynomial time by LP
Varieties of constraints
• Unary constraints involve a single variable,
– e.g., SA ≠ green
• Symmetry breaking
Structured CSPs
Tree-structured CSPs
Algorithm for tree-structured CSPs
Nearly tree-structured CSPs
• Algorithm: solve for all solutions of each subproblem. Then, use the tree-
structured algorithm, treating the subproblem solutions as variables for those
subproblems.
• O(ndw+1) where w is the treewidth (= one less than size of largest subproblem)
• Finding a tree decomposition of smallest treewidth is NP-complete, but good
heuristic methods exists
References
• Tuomas Sandholm, “Constraint Satisfaction Problems,
Carnegie Mellon University, Computer Science
Department”
• Russell & Norvig “Artificial Intelligence: A Modern
Approach”