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.

Slides:



Advertisements
Similar presentations
P, NP, NP-Complete Problems
Advertisements

Constraint Satisfaction Introduction to Artificial Intelligence COS302 Michael L. Littman Fall 2001.
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.
NP-Completeness: Reductions
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
CPSC 322, Lecture 14Slide 1 Local Search Computer Science cpsc322, Lecture 14 (Textbook Chpt 4.8) February, 3, 2010.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
Constraint Satisfaction Problems
NP-Complete Problems Problems in Computer Science are classified into
Chapter 11 Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
Black-box (oracle) Feed me a weighted graph G and I will tell you the weight of the max-weight matching of G.
Objectives: Set up a Linear Programming Problem Solve a Linear Programming Problem.
Warm Up 1) Is (-3, 4) a solution to the system? 2)Solve the system by graphing y = -2x + 5 2y = x - 2.
Themes of Presentations Rule-based systems/expert systems (Catie) Software Engineering (Khansiri) Fuzzy Logic (Mark) Configuration Systems (Sudhan) *
© J. Christopher Beck Lecture 13: Modeling in Constraint Programming.
1 3-COLOURING: Input: Graph G Question: Does there exist a way to 3-colour the vertices of G so that adjacent vertices are different colours? 1.What could.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 33.
Solving Quadratics. Methods for Solving Quadratics Graphing Factoring Square Root Method Completing the Square Quadratic Formula.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Fall 2006 Jim Martin.
Aim: How do we multiply monomials and polynomials?
5.2: Solving Systems of Equations using Substitution
Complete Graphs A complete graph is one where there is an edge between every two nodes A C B G.
Principles of Intelligent Systems Constraint Satisfaction + Local Search Written by Dr John Thornton School of IT, Griffith University Gold Coast.
Design and Analysis of Algorithms - Chapter 101 Our old list of problems b Sorting b Searching b Shortest paths in a graph b Minimum spanning tree b Primality.
Similarity in CBR (Cont’d) Sources: –Chapter 4 – –
“One ring to rule them all” Analogy (sort of) Lord of The Rings Computational Complexity “One problem to solve them all” “my preciousss…”
9.2 Compound Sentences Standard 5.0, 24.0 Standard 5.0, 24.0 Two Key Terms Two Key Terms.
Solving BCSP using GA and PBIL Constraint Satisfaction Problem Group Sana Benhamida Andrea Roli Belgasem Ali Problem leader J.V.Hemert Jorge Tavares Group.
Warm-Up Let A = {0,1,3,8}, B = {2,4,5,6,7,9}, and C = {0,1,8}. 4 minutes Find the following sets.
GRAPHING RELATIONSHIPS For each graph, determine the graphing relationship and record it on a white board.
BIL 472 SADI EVREN SEKER Constraint Satisfaction.
CSC 413/513: Intro to Algorithms
Constraint Satisfaction Problems/Programming ZUI 2012/2013.
Alternative Search Formulations and Applications
Cse 150, Fall 2012Gary Cottrell: Many slides borrowed from David Kriegman! Constraint Satisfaction Problems Introduction to Artificial Intelligence CSE.
EXAMPLE FORMULA DEFINITION 1.
NP-Completeness (2) NP-Completeness Graphs 4/13/2018 5:22 AM x x x x x
1-4 Solving Inequalities
Richard Anderson Lectures NP-Completeness
Richard Anderson Lecture 26 NP-Completeness
Solve Linear Systems by Graphing
Constraint Satisfaction Problems (CSPs)
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
Richard Anderson Lecture 26 NP-Completeness
Constraint Satisfaction Problem
CS 188: Artificial Intelligence
NP-Completeness Yin Tat Lee
Solve a system of linear equation in two variables
NP-Completeness (2) NP-Completeness Graphs 11/23/2018 2:12 PM x x x x
Richard Anderson Lecture 25 NP-Completeness
Biointelligence Lab School of Computer Sci. & Eng.
2.6 Graphing linear Inequalities in 2 Variables
Richard Anderson Lecture 29 NP-Completeness
Chapter 8 NP and Computational Intractability
Richard Anderson Lecture 28 NP Completeness
What Color is it?.
Biointelligence Lab School of Computer Sci. & Eng.
NP-Completeness Yin Tat Lee
Constraint satisfaction problems
Objectives Identify solutions of linear equations in two variables.
NP-Completeness Yin Tat Lee
CSE 589 Applied Algorithms Spring 1999
Warm-Up # 28 Write an equation for the blue line.
Our old list of problems
NP-Completeness (2) NP-Completeness Graphs 7/9/2019 6:12 AM x x x x x
Constraint satisfaction problems
Presentation transcript:

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 values from a set (e.g., {yellow, white, black, red, …}) Definition. A constraint formula is a collection of constraints. Definition. Given a constraint formula is there an instantiation of the variables that makes the formula true Example: ( x = y)  ( x  z)  (y  z) Definition. Constraint-SAT: given a constraint formula, is there an instantiation of the variables that makes the conjunction true?

Example of a CSP Problem 8-queens problem:  Put 8 queens in a chess board such that no queen is threatening another queen Modeling the 8-queens problem as a CSP problem:  Make 8 variables, one for every queen: Q 1, Q 2, …, Q 8  Assume that each variable can take a value T[1,1]…T[8,8]  Constraints: homework. See slide 4 T[1,1] T[8,8]

Graph Coloring Given a graph, we want to: 1.Assign a color to each node 2.No two nodes that are connected have the same color assigned to them 3.We want to use the minimum number of colors possible that satisfiers 1 and 2

Homework Part I: Nov. 15 CSE 435: Write the constraints for the 8-queen problem. To make things easier use more expressive constraints:   i  j : Q 4 = A[i,j]   k if Q 3 = A[i,j] then k  j CSE 335: write pseudo-code of program that receives Q 1,…,Q 8 and checks if it solves the 8-queen problem CSE 435:  Formulate Graph coloring as a decision problem  Show that Constraint-SAT can be polynomially transformed into Graph Coloring (that is, we can transform constraint-SAT into a Graph coloring problem, and this transformation can be done in polynomialm time)