Constraint Graph Binary CSPs

Slides:



Advertisements
Similar presentations
and 6.855J Modified Label Correcting Algorithm.
Advertisements

Constraint Satisfaction Problems Russell and Norvig: Chapter
1 Today’s class Interleaving backtracking and consistency checking Variable-ordering heuristics Value-ordering heuristics Intelligent backtracking Marie.
DIRECTIONAL ARC-CONSISTENCY ANIMATION Fernando Miranda 5986/M
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.
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
1 Constraint Satisfaction Problems. 2 Intro Example: 8-Queens Generate-and-test: 8 8 combinations.
CIS Intro to AI 1 Interpreting Line Drawings & Constraint Satisfaction II Mitch Marcus CIS 391 – Fall 2008.
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.
MBD and CSP Meir Kalech Partially based on slides of Jia You and Brian Williams.
Classical Planning via Plan-space search COMP3431 Malcolm Ryan.
EMIS 8374 Vertex Connectivity Updated 20 March 2008.
Nov Properties of Tree Convex Constraints Authors: Yuanlin Zhang & Eugene C. Freuder Presentation by Robert J. Woodward CSCE990 ACP, Fall 2009.
Search: Representation and General Search Procedure Jim Little UBC CS 322 – Search 1 September 10, 2014 Textbook § 3.0 –
CPSC 322, Lecture 4Slide 1 Search: Intro Computer Science cpsc322, Lecture 4 (Textbook Chpt ) January, 12, 2009.
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
Search: Representation and General Search Procedure CPSC 322 – Search 1 January 12, 2011 Textbook § 3.0 –
Anagh Lal Monday, April 14, Chapter 9 – Tree Decomposition Methods Anagh Lal CSCE Advanced Constraint Processing.
CPSC 322, Lecture 12Slide 1 CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12 (Textbook Chpt ) January, 29, 2010.
CPSC 322, Lecture 13Slide 1 CSPs: Arc Consistency & Domain Splitting Computer Science cpsc322, Lecture 13 (Textbook Chpt 4.5,4.8) February, 02, 2009.
©2007 Tarik Hadzic1 Lecture 11: Consistency Techniques 1. Arc Consistency 2. Directional Consistency 3. Generalized Arc Consistency Efficient AI Programming.
CS460 Fall 2013 Lecture 4 Constraint Satisfaction Problems.
Jean-Charles REGIN Michel RUEHER ILOG Sophia Antipolis Université de Nice – Sophia Antipolis A global constraint combining.
Constraint Satisfaction Problems Russell and Norvig: Chapter 3, Section 3.7 Chapter 4, Pages Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/home.htm.
Constraint Propagation (Where a better exploitation of the constraints further reduces the need to make decisions) R&N: Chap. 5 + Chap. 24, p
Advanced Constraint Processing, Fall 2009 An Efficient Consistency Algorithm for the Temporal Constraint Satisfaction Problem Berthe Y. Choueiry & Lin.
Graphs & Recursion Chapter 2 Highlights. Graphs Used to model relationships Includes –Set of vertices (nodes) –Set of edges that connect the nodes Example.
& 6.855J & ESD.78J Algorithm visualizations Modified Label Correcting Algorithm.
Slide 1 CSPs: Arc Consistency & Domain Splitting Jim Little UBC CS 322 – Search 7 October 1, 2014 Textbook §
Lecture 10 The Label Correcting Algorithm.
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.
Computer Science CPSC 322 Lecture 13 Arc Consistency (4.5, 4.6 ) Slide 1.
Constraint Satisfaction CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
1 CS B551: Elements of Artificial Intelligence Instructor: Kris Hauser
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 6 Binary CSP.
Chapter 5 Constraint Satisfaction Problems
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. Circular Linked List In a circular linked list, the last node contains a pointer to the first node of the list. In a circular linked list,
Arc Consistency CPSC 322 – CSP 3 Textbook § 4.5 February 2, 2011.
Constraint Propagation influenced by Dr. Rina Dechter, “Constraint Processing”
Arc Consistency and Domain Splitting in CSPs CPSC 322 – CSP 3 Textbook Poole and Mackworth: § 4.5 and 4.6 Lecturer: Alan Mackworth October 3, 2012.
Constraint Satisfaction Problems Rich and Knight: 3.5 Russell and Norvig: Chapter 3, Section 3.7 Chapter 4, Pages Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/home.htm.
CHAPTER 10.1 BINARY SEARCH TREES    1 ACKNOWLEDGEMENT: THESE SLIDES ARE ADAPTED FROM SLIDES PROVIDED WITH DATA STRUCTURES AND ALGORITHMS.
Constraint Satisfaction Problems/Programming ZUI 2012/2013.
Constraint Propagation CS121 – Winter Constraint Propagation2 Constraint Propagation … … is the process of determining how the possible values of.
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Computer Science cpsc322, Lecture 13
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Quiz Feb Inf. Search & CSP.
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Constraint Propagation
Computer Science cpsc322, Lecture 13
EMIS 8374 Node Splitting updated 27 January 2004
Graphplan/ SATPlan Chapter
كلية المجتمع الخرج البرمجة - المستوى الثاني
Heap Sort CSE 2011 Winter January 2019.
Running example The 4-houses puzzle:
Depth-First Searches Introduction to AI.
ELECTRICAL CIRCUITS AND CONSTRUCTIONS An electrical circuit is a network consisting of a closed loop, giving a return path for the current 2.
EMIS 8374 Search Algorithms Updated 9 February 2004
Graphplan/ SATPlan Chapter
Arc Consistency – AC-1 PROCEDURE AC-1(Z, D, C) BEGIN
Graphplan/ SATPlan Chapter
Heaps By JJ Shepherd.
CS203 Lecture 14.
EMIS 8374 Search Algorithms Updated 12 February 2008
Consistency algorithms
Depth-First Searches.
Presentation transcript:

Constraint Graph Binary CSPs If all the constraints of a CSP affect two variables The variables and constraints can be represented in a constraint graph (constraint network) nodes represent variables edges represent constraints 1 2 3 4 5 6 G5BAIP AI Programming

Arc Consistency Algorithms AC-1 algorithm Any value removed from a variable All constraints in the constraint graph are re-checked 1 2 3 4 5 6 G5BAIP AI Programming

Arc Consistency Algorithms AC-3 algorithm Any value removed from a variable Only affected constraints are re-checked 1 2 3 4 5 6 G5BAIP AI Programming

Arc Consistency Algorithms AC-4 algorithm Any value v removed from a variable Only those values that are supported of affected variables are re-checked b v 1 2 3 4 5 a 6 G5BAIP AI Programming

Correction of Lecture Slide In slide 12, the condition of while loop was corrected as follows PROCEDURE AC-3(Z, D, C) BEGIN Achieve node consistency Construct the constraint list Q WHILE (Q is not empty) Delete item xy from Q; IF Revise(xy, (Z,D,C)) THEN Update Q to include item zx UNTIL NOT Changed Return (Z, D, C) END PROCEDURE AC-3(Z, D, C) BEGIN Achieve node consistency Construct the constraint list Q WHILE (Q is not empty) Delete item xy from Q; IF Revise(xy, (Z,D,C)) THEN Update Q to include item zx Return (Z, D, C) END G5BAIP AI Programming