1 Binary C ONSTRAINT P ROCESSING Chapter 2 ICS-275A Fall 2007.

Slides:



Advertisements
Similar presentations
CONSTRAINT Networks Chapters 1-2
Advertisements

Verification/constraints workshop, 2006 From AND/OR Search to AND/OR BDDs Rina Dechter Information and Computer Science, UC-Irvine, and Radcliffe Institue.
Constraint Satisfaction Problems
Constraint Satisfaction Introduction to Artificial Intelligence COS302 Michael L. Littman Fall 2001.
Foundations of Constraint Processing Temporal Constraints Networks 1Topic Foundations of Constraint Processing CSCE421/821, Spring
Lecture 11 Last Time: Local Search, Constraint Satisfaction Problems Today: More on CSPs.
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
1 CMSC 471 Fall 2002 Class #6 – Wednesday, September 18.
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.
Constraint Optimization Presentation by Nathan Stender Chapter 13 of Constraint Processing by Rina Dechter 3/25/20131Constraint Optimization.
CPSC 322, Lecture 14Slide 1 Local Search Computer Science cpsc322, Lecture 14 (Textbook Chpt 4.8) February, 3, 2010.
CPSC 322, Lecture 11Slide 1 Constraint Satisfaction Problems (CSPs) Introduction Computer Science cpsc322, Lecture 11 (Textbook Chpt 4.0 – 4.2) January,
CONSTRAINT Networks Chapters 1-2 Compsci-275 Spring 2009 Spring
Anagh Lal Monday, April 14, Chapter 9 – Tree Decomposition Methods Anagh Lal CSCE Advanced Constraint Processing.
Artificial Intelligence Constraint satisfaction Chapter 5, AIMA.
University College Cork (Ireland) Department of Civil and Environmental Engineering Course: Engineering Artificial Intelligence Dr. Radu Marinescu Lecture.
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.
1 Consistency algorithms Chapter 3. Spring 2007 ICS 275A - Constraint Networks 2 Consistency methods Approximation of inference: Arc, path and i-consistecy.
M. HardojoFriday, February 14, 2003 Directional Consistency Dechter, Chapter 4 1.Section 4.4: Width vs. Local Consistency Width-1 problems: DAC Width-2.
Constraint Networks ( slides courtesy of Natalia Flerova, based on slides courtesy of Rina Dechter)
Constraint Satisfaction Problem Solving Chapter 5.
Intro to Discrete Structures
Constraint Satisfaction Definition. A constraint is a formula of the form: (x = y) (x  y) (x = red) (x  red) Where x and y are variables that can take.
CP Summer School Modelling for Constraint Programming Barbara Smith 1.Definitions, Viewpoints, Constraints 2.Implied Constraints, Optimization,
Artificial Intelligence CS482, CS682, MW 1 – 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis,
Slide 1 Constraint Satisfaction Problems (CSPs) Introduction Jim Little UBC CS 322 – CSP 1 September 27, 2014 Textbook §
April 10, 2002Applied Discrete Mathematics Week 10: Relations 1 Counting Relations Example: How many different reflexive relations can be defined on a.
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
© J. Christopher Beck Lecture 13: Modeling in Constraint Programming.
Constraint Satisfaction Basics strongly influenced by Rina Dechter, “Constraint Processing”, 2003.
Chapter 5 Section 1 – 3 1.  Constraint Satisfaction Problems (CSP)  Backtracking search for CSPs  Local search for CSPs 2.
Constraint Networks Overview. Suggested reading Russell and Norvig. Artificial Intelligence: Modern Approach. Chapter 5.
Constraint Satisfaction CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Artificial Intelligence CS482, CS682, MW 1 – 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis,
Chapter 5: Constraint Satisfaction ICS 171 Fall 2006.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Fall 2006 Jim Martin.
Constraint Satisfaction Basics strongly influenced by Dr. Rina Dechter: “Constraint Processing”
C ONSTRAINT Networks Chapters 1-2 Compsci-275 Fall
CS 175 Project in AI. 2 Lectures: ICS 180 Tuesday, Thursday Hours: am Discussion: DBH 1300 Wednesday Hours: pm Instructor: Natalia.
G51IAI Introduction to Artificial Intelligence
BIL 472 SADI EVREN SEKER Constraint Satisfaction.
Lecture 5: Constraint Satisfaction Problems
1 Constraint Satisfaction Problems (CSP). Announcements Second Test Wednesday, April 27.
Constraint Satisfaction Problems
Introduction to graphical models. Outline Course goals and policies Overview of graphical models, examples Constraint networks Probabilistic networks.
CMPT 463. What will be covered A* search Local search Game tree Constraint satisfaction problems (CSP)
Alternative Search Formulations and Applications
Cse 150, Fall 2012Gary Cottrell: Many slides borrowed from David Kriegman! Constraint Satisfaction Problems Introduction to Artificial Intelligence CSE.
CS 561, Session 8 1 This time: constraint satisfaction - Constraint Satisfaction Problems (CSP) - Backtracking search for CSPs - Local search for CSPs.
Constraint Satisfaction Problems (CSPs) Introduction
Constraint Satisfaction Problems (CSPs)
Constraint Satisfaction Problems (CSPs) Introduction
Constraint Satisfaction Problem
Lecture 7 Constraint Satisfaction Problems
CS 188: Artificial Intelligence
Computer Science cpsc322, Lecture 14
Relational Algebra 461 The slides for this text are organized into chapters. This lecture covers relational algebra, from Chapter 4. The relational calculus.
Constraint Propagation
Artificial Intelligence
Advanced consistency methods Chapter 8
Constraint satisfaction problems
Constraint Satisfaction
Directional consistency Chapter 4
Constraint Satisfaction Problems
Constraint satisfaction problems
Constraint Satisfaction Problems (CSP)
Consistency algorithms
Presentation transcript:

1 Binary C ONSTRAINT P ROCESSING Chapter 2 ICS-275A Fall 2007

2 Class 1 Constraint Networks The constraint network model Inference.

Spring Class description Instructor: Rina Dechter Days: Monday & Wednesday Time: 11: :20 pm 11: :00 pm (weeks 1,2) Class page:

Spring Text book (required) Rina Dechter, Constraint Processing, Morgan Kaufmann

Spring AB redgreen redyellow greenred greenyellow yellowgreen yellow red Example: map coloring Variables - countries (A,B,C,etc.) Values - colors (red, green, blue) Constraints: C A B D E F G A Constraint Networks A B E G D F C Constraint graph

Spring Example: map coloring Variables - countries (A,B,C,etc.) Values - colors (e.g., red, green, yellow) Constraints:ABCDE… red green red greenblue red blugregreenblue …………gre en …………red blu e red green red Constraint Satisfaction Tasks Are the constraints consistent? Find a solution, find all solutions Count all solutions Find a good solution

Spring Information as Constraints I have to finish my talk in 30 minutes 180 degrees in a triangle Memory in our computer is limited The four nucleotides that makes up a DNA only combine in a particular sequence Sentences in English must obey the rules of syntax Susan cannot be married to both John and Bill Alexander the Great died in 333 B.C.

Spring Constraint Network A constraint network is: R= (X,D,C) X variables D domain C constraints R expresses allowed tuples over scopes A solution is an assignment to all variables that satisfies all constraints (join of all relations). Tasks: consistency?, one or all solutions, counting, optimization

Spring Crossword puzzle Variables: x 1, …, x 13 Domains: letters Constraints: words from {HOSES, LASER, SHEET, SNAIL, STEER, ALSO, EARN, HIKE, IRON, SAME, EAT, LET, RUN, SUN, TEN, YES, BE, IT, NO, US}

Spring The N-queens constraint network. The network has four variables, all with domains Di = {1, 2, 3, 4}. (a) The labeled chess board. (b) The constraints between variables.

Spring Not all consistent instantiations are part of a solution: (a) A consistent instantiation that is not part of a solution. (b) The placement of the queens corresponding to the solution (2, 4, 1, 3). (c) The placement of the queens corresponding to the solution (3, 1, 4, 2).

Spring Configuration and design

Spring Configuration and design Want to build: recreation area, apartments, houses, cemetery, dump Recreation area near lake Steep slopes avoided except for recreation area Poor soil avoided for developments Highway far from apartments, houses and recreation Dump not visible from apartments, houses and lake Lots 3 and 4 have poor soil Lots 3, 4, 7, 8 are on steep slopes Lots 2, 3, 4 are near lake Lots 1, 2 are near highway

Spring Configuration and design Variables: Recreation, Apartments, Houses, Cemetery, Dump Domains: {1, 2, …, 8} Constraints: derived from conditions

Spring Huffman-Clowes junction labelings (1975)

Spring Figure 1.5: Solutions: (a) stuck on left wall, (b) stuck on right wall, (c) suspended in mid-air, (d) resting on floor.

Spring Sudoku Each row, column and major block must be alldifferent “Well posed” if it has unique solution: 27 constraints Constraint propagation Variables: 81 slots Domains = {1,2,3,4,5,6,7,8,9} Constraints: 27 not-equal

Spring Constraint graphs of the crossword puzzle and the 4-queens problem.

Spring Mathematical background Sets, domains, tuples Relations Operations on relations Graphs Complexity

Spring Two graphical views of relation R = {(black, coffee), (black, tea), (green, tea)}.

Spring Figure 2.4: The constraint graph and constraint relations of the scheduling problem example.

Spring Operations with relations Intersection Union Difference Selection Projection Join Composition

Spring Three relations.

Spring Figure 1.8: Example of set operations intersection, union, and difference applied to relations.

Spring selection, projection, and join operations on relations.

Spring Constraint’s representations Relation: allowed tuples Algebraic expression: Propositional formula: Semantics: by a relation

Spring Constraint Graphs: Primal, Dual and Hypergraphs A (primal) constraint graph: a node per variable arcs connect constrained variables. A dual constraint graph: a node per constraint’s scope, an arc connect nodes sharing variables =hypergraph

Spring Graph Concepts Reviews: Hyper Graphs and Dual Graphs A hypergraph Dual graphs A primal graph

Spring  = {(¬C), (A v B v C), (¬A v B v E), (¬B v C v D)}. Propositional Satisfiability

Spring Constraint graphs of 3 instances of the Radio frequency assignment problem in CELAR’s benchmark

Spring Figure 2.7: Scene labeling constraint network

Spring Figure 2.9: A combinatorial circuit: M is a multiplier, A is an adder.

Spring Two Primary Reasoning Methods Inference Variable elimination Tree-clustering Search Backtracking (conditioning) Hybrids of search and inference

Spring Properties of binary constraint networks: Equivalence and deduction with constraints (composition) A graph  to be colored by two colors, an equivalent representation  ’ having a newly inferred constraint between x1 and x3.

Spring Relations vs netwroks Can we represent the relations x1,x2,x3 = (0,0,0)(0,1,1)(1,0,1)(1,1,0) X1,x2,x3,x4 = (1,0,0,0)(0,1,0,0) (0,0,1,0)(0,0,0,1)

Spring Relations vs netwroksCan we represent Can we represent the relations x1,x2,x3 = (0,0,0)(0,1,1)(1,0,1)(1,1,0) X1,x2,x3,x4 = (1,0,0,0)(0,1,0,0) (0,0,1,0)(0,0,0,1) Most relations cannot be represented by networks: Number of relations 2^(k^n) Number of networks: 2^((k^2)(n^2))

Spring The minimal and projection networks The projection network of a relation is obtained by projecting it onto each pair of its variables (yielding a binary network). Relation = {(1,1,2)(1,2,2)(1,2,1)} What is the projection network? What is the relationship between a relation and its projection network? {(1,1,2)(1,2,2)(2,1,3)(2,2,2)}, solve its projection network?

Spring Projection network (continued) Theorem: Every relation is included in the set of solutions of its projection network. Theorem: The projection network is the tightest upper bound binary networks representation of the relation.

Spring Projection network

Spring The Minimal Network (partial order between networks)

Spring Figure 2.11: The 4-queens constraint network: (a) The constraint graph. (b) The minimal binary constraints. (c) The minimal unary constraints (the domains).

Spring Minimal network The minimal network is perfectly explicit for binary and unary constraints: Every pair of values permitted by the minimal constraint is in a solution. Binary-decomposable networks: A network whose all projections are binary decomposable The minimal network repesenst fully binary- decomposable networks. Ex: (x,y,x,t) = {(a,a,a,a)(a,b,b,b,)(b,b,a,c)} is binary representable but what about its projection on x,y,z?