N Model problem ä specify in terms of constraints on acceptable solutions ä define variables (denotations) and domains ä define constraints in some language.

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

Constraint Programming Peter van Beek University of Waterloo.
Foundations of Constraint Processing Lookahead Schemas 1 Foundations of Constraint Processing CSCE421/821, Spring
Maintaining Arc Consistency We have a constraint graph G of variables X 1,...X n, and constraint relations {X i  X j}, and each Xi has a value set V (X.
Lecture 11 Last Time: Local Search, Constraint Satisfaction Problems Today: More on CSPs.
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
Artificial Intelligence Constraint satisfaction problems Fall 2008 professor: Luigi Ceccaroni.
CSP Yaron Kassner Winter Reminder Arc Consistency: the domains of pairs of variables are consistent. k-consistency: the domains of every k variables.
Constraint Processing and Programming Introductory Exemple Javier Larrosa.
Constraint Satisfaction Problems. Constraint satisfaction problems (CSPs) Standard search problem: – State is a “black box” – any data structure that.
4 Feb 2004CS Constraint Satisfaction1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3.
Constraint Satisfaction CSE 473 University of Washington.
Artificial Intelligence Constraint satisfaction Chapter 5, AIMA.
Constraint Satisfaction Problems
Constraint Satisfaction
Constraint Networks ( slides courtesy of Natalia Flerova, based on slides courtesy of Rina Dechter)
Constraint Satisfaction Problem Solving Chapter 5.
General search strategies: Look-ahead Chapter 5 Chapter 5.
ICS-270A:Notes 6: 1 Notes 6: Constraint Satisfaction Problems ICS 270A Spring 2003.
Constraint Satisfaction Problems
Constraint Satisfaction Problems
Constraint Satisfaction Read Chapter 5. Model Finite set of variables: X1,…Xn Variable Xi has values in domain Di. Constraints C1…Cm. A constraint specifies.
Chapter 5 Section 1 – 3 1.  Constraint Satisfaction Problems (CSP)  Backtracking search for CSPs  Local search for CSPs 2.
Constraint Satisfaction CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Artificial Intelligence CS482, CS682, MW 1 – 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis,
Problem Solving with Constraints Lookahead Schemas 1 Foundations of Constraint Processing CSCE496/896, Fall
1 Constraint Satisfaction Problems Soup Total Cost < $30 Chicken Dish Vegetable RiceSeafood Pork Dish Appetizer Must be Hot&Sour No Peanuts No Peanuts.
Chapter 5: Constraint Satisfaction ICS 171 Fall 2006.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Fall 2006 Jim Martin.
CSC 423 ARTIFICIAL INTELLIGENCE Constraint Satisfaction Problems.
1 Chapter 5 Constraint Satisfaction Problems. 2 Outlines  Constraint Satisfaction Problems  Backtracking Search for CSPs  Local Search for CSP  The.
Chapter 5 Constraint Satisfaction Problems
Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer.
Maintaining Arc Consistency (MAC) MAC is the same as Back-tracking, but with calls to AC-3 interleaved... function Backtracking-Search(csp) returns.
An Introduction to Artificial Intelligence Lecture 5: Constraint Satisfaction Problems Ramin Halavati In which we see how treating.
1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3 Grand Challenge:
CHAPTER 5 SECTION 1 – 3 4 Feb 2004 CS Constraint Satisfaction 1 Constraint Satisfaction Problems.
Constraint Propagation influenced by Dr. Rina Dechter, “Constraint Processing”
1. 2 Outline of Ch 4 Best-first search Greedy best-first search A * search Heuristics Functions Local search algorithms Hill-climbing search Simulated.
Computing & Information Sciences Kansas State University Friday, 08 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 7 of 42 Friday, 08 September.
Chapter 5 Team Teaching AI (created by Dewi Liliana) PTIIK Constraint Satisfaction Problems.
EXAMPLE: MAP COLORING. Example: Map coloring Variables — WA, NT, Q, NSW, V, SA, T Domains — D i ={red,green,blue} Constraints — adjacent regions must.
Lecture 5: Constraint Satisfaction Problems
Constraint Satisfaction CSE 473 University of Washington.
1 CSC 384 Lecture Slides (c) , C. Boutilier and P. Poupart CSC384: Lecture 16  Last time Searching a Graphplan for a plan, and relaxed plan heuristics.
CS 171: Intro to AI Discussion Week 2 Jan 15 th 2016.
1 Constraint Satisfaction Problems (CSP). Announcements Second Test Wednesday, April 27.
CS 561, Session 8 1 This time: constraint satisfaction - Constraint Satisfaction Problems (CSP) - Backtracking search for CSPs - Local search for CSPs.
Constraint Programming
Constraint Satisfaction Problems (CSPs)
Constraint Satisfaction Problems Lecture # 14, 15 & 16
Constraint Satisfaction
An Empirical Study of the Performance
Constraint Satisfaction
Constraint Satisfaction Problem
Empirical Comparison of Preprocessing and Lookahead Techniques for Binary Constraint Satisfaction Problems Zheying Jane Yang & Berthe Y. Choueiry Constraint.
Constraint Propagation
Foundations of Constraint Processing
Chapter 3: Finite Constraint Domains
Notes 6: Constraint Satisfaction Problems
Foundations of Constraint Processing All questions to Piazza
Constraints and Search
Chapter 5: General search strategies: Look-ahead
Constraint Satisfaction Problems. A Quick Overview
Foundations of Constraint Processing All questions to Piazza
Constraint Satisfaction Problems
CS 8520: Artificial Intelligence
Constraint Satisfaction Problems
Presentation transcript:

n Model problem ä specify in terms of constraints on acceptable solutions ä define variables (denotations) and domains ä define constraints in some language n Solve model ä define search space / choose algorithm –incremental assignment / backtracking search –complete assignments / stochastic search ä design/choose heuristics n Verify and analyze solution Constraint-based problem solving

Example: n-queens Place n-queens on an n  n board so that no pair of queens attacks each other

Example: 4-queens x1 x1 x2x2 x3 x3 x4 x4 Variables: x 1, x 2, x 3, x 4 Domains: {1, 2, 3, 4} Constraints: x i  x j and | x i - x j |  | i - j |

Example: 4-queens One solution: x 1  2 x 2  4 x 3  1 x 4  x1 x1 x2x2 x3 x3 x4 x4 Q Q Q Q

Search tree for 4-queens x1 x1 x2x2 x3 x3 x4 x (1,1,1,1)(4,4,4,4)(2,4,1,3)(3,1,4,2)

Specification of backtracking Invariant:1  i, j  c, ( x i, x j ) is consistent x1 x1 x c-1 xc xc x c+1 xn xn currentpastfuture

Backtracking (BT) {2}{5} {1,...,6} x1 x1 x5 x5 x6x6 x4 x4 x2x2 Q Q x1 x1 x5 x5 x6x6 x3 x3 x4 x4 x2x2 x3 x3

Enforcing arc-consistency {a, b, c} < xi xi xj xj

Specification of forward checking Invariant:1  i  c, c  j  n, ( x i, x j ) is arc-consistent x1 x1 x c-1 xc xc x c+1 xn xn currentpastfuture

Forward checking (FC) Q Q x1 x1 x5 x5 x6x6 x3 x3 x4 x4 x2x {2}{5} x1 x1 x5 x5 x6x6 x4 x4 x2x2 {1,2,3,4,5,6} x3 x3

Forward checking (FC) Q Q x1 x1 x5 x5 x6x6 x3 x3 x4 x4 x2x {2}{5} x1 x1 x5 x5 x6x6 x4 x4 x2x2 {1, 3} x3 x3 {1, 4, 6} {1, 3, 4} {3, 4, 6}

Forward checking {2}{5} Q Q Q {3} {1,4,6} {1,3,4} {3,4,6} x1 x1 x5 x5 x6x6 x3 x3 x4 x4 x2x x1 x1 x5 x5 x6x6 x3 x3 x4 x4 x2x2 1

Specification of maintaining arc consistency Invariant:1  i  c, c  j, k  n, ( x j, x k ) is arc-consistent x1 x1 x c-1 xc xc x c+1 xn xn currentpastfuture ( x i, x j ) is arc-consistent,

Maintaining arc consistency (MAC) Q Q {2}{5} x1 x1 x5 x5 x6x6 x4 x4 x2x2 {1,2,3,4,5,6} x3 x3 {1,2,3,4,5,6}{1,2,3,4,5,6} 1 2a x1 x1 x5 x5 x6x6 x3 x3 x4 x4 x2x2 1a

Maintaining arc consistency (MAC) Q Q {2}{5} x1 x1 x5 x5 x6x6 x4 x4 x2x2 {1} x3 x3 { } {4} {6} 1 2a x1 x1 x5 x5 x6x6 x3 x3 x4 x4 x2x2

Enforcing path-consistency < {a, b, c} xi xi xj xj xk xk < <

Some history n Informal statement ä Golomb & Baumert (1965), Mackworth (1977), Lauriere (1978) n Algorithms ä Gaschnig (1978) backtracking algorithm with arc consistency ä McGregor (1979) backtracking algorithm with arc consistency, backtracking algorithm with forward checking ä Haralick & Elliott (1980) forward checking ä Nadel (1989) backtracking with partial arc consistency n Experiments ä McGregor (1979), Haralick & Elliott (1980), Gaschnig (1978), Nadel (1989), Sabin & Freuder (1994)