Artificial Intelligence
|
|
- Delphia Wilcox
- 5 years ago
- Views:
Transcription
1 Artificial Intelligence Constraint Satisfaction Vibhav Gogate The University of Texas at Dallas Some material courtesy of Rina Dechter, Alex Ihler and Stuart Russell
2 Constraint Satisfaction Problems The constraint network model Variables, domains, constraints, constraint graph, solutions Examples: graph-coloring, 8-queen, cryptarithmetic, crossword puzzles, vision problems,scheduling, design The search space and naive backtracking, The constraint graph Maybe: Consistency enforcing algorithms arc-consistency, AC-1,AC-3 Next time: Backtracking strategies Forward-checking, dynamic variable orderings Special case: solving tree problems Local search for CSPs 2
3 3
4 Constraint Satisfaction Example: map coloring Variables - countries (A,B,C,etc.) Values - colors (e.g., red, green, yellow) Constraints: A B, A D, D E, etc. 4
5 Constraint Satisfaction Example: map coloring Variables - countries (A,B,C,etc.) Values - colors (e.g., red, green, yellow) Constraints: A B, A D, D E, etc. A red red green green yellow yellow B green yellow red yellow green red 5
6 Constraint Satisfaction Example: map coloring Variables - countries (A,B,C,etc.) Values - colors (e.g., red, green, yellow) Constraints: A B, A D, D E, etc. A red red green green yellow yellow B green yellow red yellow green red A B C D G E F 6
7 7
8 8
9 9
10 Sudoku Each row, column and major block must be alldifferent Well posed if it has unique solution: 27 constraints 10
11 Sudoku Each row, column and major block must be alldifferent Well posed if it has unique solution: 27 constraints 11
12 Sudoku Each row, column and major block must be alldifferent Well posed if it has unique solution: 27 constraints 12
13 Sudoku Each row, column and major block must be alldifferent Well posed if it has unique solution: 27 constraints 13
14 Sudoku Each row, column and major block must be alldifferent Well posed if it has unique solution: 27 constraints 14
15 Sudoku Each row, column and major block must be alldifferent Well posed if it has unique solution: 27 constraints 15
16 Sudoku Each row, column and major block must be alldifferent Well posed if it has unique solution: 27 constraints 16
17 Sudoku Each row, column and major block must be alldifferent Well posed if it has unique solution: 27 constraints 17
18 Sudoku Each row, column and major block must be alldifferent Well posed if it has unique solution: 27 constraints 18
19 Sudoku Constraint propagation Each row, column and major block must be alldifferent Well posed if it has unique solution: 27 constraints 19
20 Sudoku Constraint propagation Variables: 81 slots Domains = {1,2,3,4,5,6,7,8,9} Constraints: 27 not-equal Each row, column and major block must be alldifferent Well posed if it has unique solution: 27 constraints 20
21 A network of binary constraints Variables X 1,,X n X 1 Domains D 1,,D n sets of discrete values, X 5 X 2 Binary constraints R ij X 4 X 3 represent the list of allowed pairs of values; R ij µ D i D j Constraint graph: A node for each variable and an arc for each constraint Solution: An assignment of a value to each variable such that no constraint is violated. A network of constraints represents the relation of all solutions. 22
22 Varieties of constraints Unary constraints involve a single variable, e.g., SA green Binary constraints involve pairs of variables, e.g., SA WA Higher-order constraints involve 3 or more variables, e.g., cryptarithmetic column constraints 23
23 Cryptarithmetic Each letter represents a different digit They should satisfy the addition constraint
24 Cryptarithmetic Each letter represents a different digit They should satisfy the addition constraint
25 Examples Cryptarithmetic: SEND+MORE = MONEY n-ueens Crossword puzzles Graph coloring Vision problems Scheduling Assignment (who teaches what); timetable (where & when) Transportation scheduling, factory assembly, etc.
26 Example 1: The 4-queen problem Place 4 ueens on a chess board of 4x4 such that no two queens reside in the same row, column or diagonal. Domains: D i {1,2,3,4 }. Standard CSP formulation of the problem: Variables: each row is a variable. X 1 X 2 X 3 X Constraints: There are 4 ( 2 ) = 6 constraints involved: X 1 31
27 Example 1: The 4-queen problem Place 4 ueens on a chess board of 4x4 such that no two queens reside in the same row, column or diagonal. Domains: D i {1,2,3,4 }. Standard CSP formulation of the problem: Variables: each row is a variable. X 1 X 2 X 3 X Constraints: There are ( 2 ) R 12 {(1,3)(1,4)(2,4)(3,1)(4,1)(4,2)} = 6 constraints involved: X 1 32
28 Example 1: The 4-queen problem Place 4 ueens on a chess board of 4x4 such that no two queens reside in the same row, column or diagonal. Domains: D i {1,2,3,4 }. Standard CSP formulation of the problem: Variables: each row is a variable. X 1 X 2 X 3 X Constraints: There are ( 2 ) R 12 {(1,3)(1,4)(2,4)(3,1)(4,1)(4,2)} = 6 constraints involved: R 1 13 {(1,2)(1,4)(2,1)(2,3)(3,2)(3,4)(4,1)(4,3)} X 33
29 Example 1: The 4-queen problem Place 4 ueens on a chess board of 4x4 such that no two queens reside in the same row, column or diagonal. Domains: D i {1,2,3,4 }. Standard CSP formulation of the problem: Variables: each row is a variable. X 1 X 2 X 3 X Constraints: There are ( 2 ) R 12 {(1,3)(1,4)(2,4)(3,1)(4,1)(4,2)} R 13 {(1,2)(1,4)(2,1)(2,3)(3,2)(3,4)(4,1)(4,3)} R 14 {(1,2)(1,3)(2,1)(2,3)(2,4)(3,1)(3,2)(3,4)(4,2)(4,3)} R 23 {(1,3)(1,4)(2,4)(3,1)(4,1)(4,2)} R 24 {(1,2)(1,4)(2,1)(2,3)(3,2)(3,4)(4,1)(4,3)} R 34 {(1,3)(1,4)(2,4)(3,1)(4,1)(4,2)} = 6 constraints involved: X 1 34
30 Example 1: The 4-queen problem Place 4 ueens on a chess board of 4x4 such that no two queens reside in the same row, column or diagonal. Domains: D i {1,2,3,4 }. Standard CSP formulation of the problem: Variables: each row is a variable. X 1 X 2 X 3 X Constraints: There are ( 2 ) R 12 {(1,3)(1,4)(2,4)(3,1)(4,1)(4,2)} R 13 {(1,2)(1,4)(2,1)(2,3)(3,2)(3,4)(4,1)(4,3)} R 14 {(1,2)(1,3)(2,1)(2,3)(2,4)(3,1)(3,2)(3,4)(4,2)(4,3)} R 23 {(1,3)(1,4)(2,4)(3,1)(4,1)(4,2)} R 24 {(1,2)(1,4)(2,1)(2,3)(3,2)(3,4)(4,1)(4,3)} R 34 {(1,3)(1,4)(2,4)(3,1)(4,1)(4,2)} = 6 constraints involved: Constraint Graph : X 1 35
31 Example 1: The 4-queen problem Place 4 ueens on a chess board of 4x4 such that no two queens reside in the same row, column or diagonal. Domains: D i {1,2,3,4 }. Standard CSP formulation of the problem: Variables: each row is a variable. X 1 X 2 X 3 X Constraints: There are ( 2 ) R 12 {(1,3)(1,4)(2,4)(3,1)(4,1)(4,2)} R 13 {(1,2)(1,4)(2,1)(2,3)(3,2)(3,4)(4,1)(4,3)} R 14 {(1,2)(1,3)(2,1)(2,3)(2,4)(3,1)(3,2)(3,4)(4,2)(4,3)} R 23 {(1,3)(1,4)(2,4)(3,1)(4,1)(4,2)} R 24 {(1,2)(1,4)(2,1)(2,3)(3,2)(3,4)(4,1)(4,3)} R 34 {(1,3)(1,4)(2,4)(3,1)(4,1)(4,2)} = 6 constraints involved: Constraint Graph : X 1 X 3 X 2 X 4 36
32 37
33 38
34 The search space 39
35 The search space Definition: given an ordering of the variables a state: is an assignment to a subset of variables that is consistent. Operators: add an assignment to the next variable that does not violate any constraint. Goal state: a consistent assignment to all the variables. X 1,...,X n 40
36 41
37 42
38 43
39 44
40
41 Dependence on variable ordering 46
42 Recap Constraint Satisfaction problem (e.g., map coloring) Variables: (regions of a map) Domains: values that the variables can take (colors) Constraints: Restrictions on values that can be assigned simultaneously Backtracking search a state is an assignment to a subset of variables that is consistent. Operators: add an assignment to the next variable that does not violate any constraint. DFS in this state-space Select an unassigned variable and assign a value to it!!
43
44 Which variable to choose next?
45 Which variable to choose next?
46 In What order should a variable s values be tried?
47 Can we detect failures early?
48
49
50
51 Also called consistency enforcement techniques
52 Consistency enforcement Consistency enforcement techniques Arc-consistency (Waltz, 1972) Path-consistency (Montanari 1974, Mackworth 1977) I-consistency (Freuder 1982) Transform the network into smaller and smaller networks. 57
53
54
55
56
57
58 Arc-consistency 1 X, Y, Z, T 3 X Y Y = Z T Z X T X 1, 2, 3 Y 1, 2, 3 1, 2, 3 1, 2, 3 T Z = 63
59 Arc-consistency 1 X, Y, Z, T 3 X Y Y = Z T Z X T X 1, 2, 3 Y 1, 2, 3 1, 2, 3 1, 2, 3 T Z = 64
60 Arc-consistency 1 X, Y, Z, T 3 X Y Y = Z T Z X T X 1, 2, 3 Y 1, 2, 3 1, 2, 3 1, 2, 3 T Z = 65
61 Arc-consistency 1 X, Y, Z, T 3 X Y Y = Z T Z X T X 1, 2, 3 Y 1, 2, 3 1, 2, 3 1, 2, 3 T Z = 66
62 Arc-consistency 1 X, Y, Z, T 3 X Y Y = Z T Z X T X 1, 2, 3 Y 1, 2, 3 1, 2, 3 1, 2, 3 T Z = 67
63 Arc-consistency 1 X, Y, Z, T 3 X Y Y = Z T Z X T X 1, 2, 3 Y 1, 2, 3 1, 2, 3 1, 2, 3 T Z = 68
64 Arc-consistency 1 X, Y, Z, T 3 X Y Y = Z T Z X T X T Y Z = 69
65 Arc-consistency 1 X, Y, Z, T 3 X Y Y = Z T Z X T X T Y Incorporated into backtracking search Z = 70
66
67
68
69
70
71
72
73
74
75 Propositional Satisfiability Example: party problem If Alex goes, then Becky goes: A! B (or, : A Ç B) If Chris goes, then Alex goes: C! A (or, : C Ç A ) uery: Is it possible that Chris goes to the party but Becky does not? is the proposition = { : A Ç B, : C Ç A, : B, C} satsifiable? 80
76 Unit Propagation Arc-consistency for cnfs. Involve a single clause and a single literal Example: (A, : B, C) ^ (B)! (A,C) 81
77 Look-ahead for SAT (Davis-Putnam, Logeman and Laveland, 1962) 82
78 Look-ahead for SAT: DPLL example: (~A B) (~C A) (A B D) (C) (Davis-Putnam, Logeman and Laveland, 1962) Backtracking look-ahead with Unit propagation= Generalized arc-consistency Only enclosed area will be explored with unit-propagation 83
79 GSAT local search for SAT (Selman, Levesque and Mitchell, 1992) 1. For i=1 to MaxTries 2. Select a random assignment A 3. For j=1 to MaxFlips 4. if A satisfies all constraint, return A 5. else flip a variable to maximize the score 6. (number of satisfied constraints; if no variable 7. assignment increases the score, flip at random) 8. end 9. end Greatly improves hill-climbing by adding restarts and sideway moves 84
80 With probability p WalkSAT (Selman, Kautz and Cohen, 1994) Adds random walk to GSAT: random walk flip a variable in some unsatisfied constraint With probability 1-p perform a hill-climbing step Randomized hill-climbing often solves large and hard satisfiable problems 85
81 More Stochastic Search Simulated annealing: A method for overcoming local minimas Allows bad moves with some probability: With some probability related to a temperature parameter T the next move is picked randomly. Theoretically, with a slow enough cooling schedule, this algorithm will find the optimal solution. But so will searching randomly. Breakout method (Morris, 1990): adjust the weights of the violated constraints 86
Lecture 9: Search 8. Victor R. Lesser. CMPSCI 683 Fall 2010
Lecture 9: Search 8 Victor R. Lesser CMPSCI 683 Fall 2010 ANNOUNCEMENTS REMEMBER LECTURE ON TUESDAY! EXAM ON OCTOBER 18 OPEN BOOK ALL MATERIAL COVERED IN LECTURES REQUIRED READINGS WILL MOST PROBABLY NOT
More informationImproving Repair-based Constraint Satisfaction Methods by Value Propagation
From: AAAI-94 Proceedings. Copyright 1994, AAAI (www.aaai.org). All rights reserved. Improving Repair-based Constraint Satisfaction Methods by Value Propagation Nobuhiro Yugami Yuiko Ohta Mirotaka Nara
More informationLocal and Stochastic Search
RN, Chapter 4.3 4.4; 7.6 Local and Stochastic Search Some material based on D Lin, B Selman 1 Search Overview Introduction to Search Blind Search Techniques Heuristic Search Techniques Constraint Satisfaction
More informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 32. Propositional Logic: Local Search and Outlook Martin Wehrle Universität Basel April 29, 2016 Propositional Logic: Overview Chapter overview: propositional logic
More informationIntroduction to Arti Intelligence
Introduction to Arti Intelligence cial Lecture 4: Constraint satisfaction problems 1 / 48 Constraint satisfaction problems: Today Exploiting the representation of a state to accelerate search. Backtracking.
More informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 8. Satisfiability and Model Construction Davis-Putnam-Logemann-Loveland Procedure, Phase Transitions, GSAT Joschka Boedecker and Wolfram Burgard and Bernhard Nebel
More informationFinding optimal configurations ( combinatorial optimization)
CS 1571 Introduction to AI Lecture 10 Finding optimal configurations ( combinatorial optimization) Milos Hauskrecht milos@cs.pitt.edu 539 Sennott Square Constraint satisfaction problem (CSP) Constraint
More informationThe Wumpus Game. Stench Gold. Start. Cao Hoang Tru CSE Faculty - HCMUT
The Wumpus Game Stench Stench Gold Stench Start 1 The Wumpus Game Stench in the square containing the wumpus and in the directly adjacent squares in the squares directly adjacent to a pit Glitter in the
More informationConstraint Satisfaction Problems
Constraint Satisfaction Problems Chapter 5 AIMA2e Slides, Stuart Russell and Peter Norvig, Completed by Kazim Fouladi, Fall 2008 Chapter 5 1 Outline CSP examples Backtracking search for CSPs Problem structure
More informationReasoning with Deterministic and Probabilistic graphical models Class 2: Inference in Constraint Networks Rina Dechter
Reasoning with Deterministic and Probabilistic graphical models Class 2: Inference in Constraint Networks Rina Dechter Road Map n Graphical models n Constraint networks Model n Inference n Search n Probabilistic
More informationLogic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Dieter Fox, Henry Kautz )
Logic in AI Chapter 7 Mausam (Based on slides of Dan Weld, Stuart Russell, Dieter Fox, Henry Kautz ) Knowledge Representation represent knowledge in a manner that facilitates inferencing (i.e. drawing
More informationConstraint Satisfaction
Constraint Satisfaction CS 486/686 May 16, 2006 University of Waterloo 1 Outline What are CSPs? Standard search and CSPs Improvements Backtracking Backtracking + heuristics Forward checking 2 Introduction
More informationConstraint satisfaction search. Combinatorial optimization search.
CS 1571 Introduction to AI Lecture 8 Constraint satisfaction search. Combinatorial optimization search. Milos Hauskrecht milos@cs.pitt.edu 539 Sennott Square Constraint satisfaction problem (CSP) Objective:
More informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 31. Propositional Logic: DPLL Algorithm Malte Helmert and Gabriele Röger University of Basel April 24, 2017 Propositional Logic: Overview Chapter overview: propositional
More informationPhase Transitions and Local Search for k-satisfiability
Phase Transitions and Local Search for k-satisfiability Pekka Orponen (joint work with many others) Department of Information and Computer Science Helsinki University of Technology TKK Outline Part I:
More informationChapter 7 Propositional Satisfiability Techniques
Lecture slides for Automated Planning: Theory and Practice Chapter 7 Propositional Satisfiability Techniques Dana S. Nau University of Maryland 12:58 PM February 15, 2012 1 Motivation Propositional satisfiability:
More informationConstraint Satisfaction Problems - CSP. March 23, 2017
Constraint Satisfaction Problems - CSP March 23, 2017 Examples of Applications 8-puzzle blocks world (e.g.: Hanoi tower) n-queens cryptarithmetic missionaires and cannibals solitaire many others... n-queens
More informationWhat we will try to do...
Constraint Satisfaction Problems (CSP) (Where we postpone making difficult decisions until they become easy to make) R&N: Chap. 5 Slides from Jean-Claude Latombe at Stanford University (used with permission)
More informationChapter 6 Constraint Satisfaction Problems
Chapter 6 Constraint Satisfaction Problems CS5811 - Artificial Intelligence Nilufer Onder Department of Computer Science Michigan Technological University Outline CSP problem definition Backtracking search
More informationConstraint Satisfaction [RN2] Sec [RN3] Sec Outline
Constraint Satisfaction [RN2] Sec 5.1-5.2 [RN3] Sec 6.1-6.3 CS 486/686 Lecture 4: Jan 12, 2012 University of Waterloo 1 Outline What are CSPs? Standard search and CSPs Improvements Backtracking Backtracking
More informationOutline What are CSPs? Standard search and CSPs Improvements. Constraint Satisfaction. Introduction. Introduction
Constraint Satisfaction CS 86/686 May 6, 006 University of Waterloo Outline What are CSPs? Standard search and CSPs Improvements acktracking acktracking + heuristics Forward checking Introduction In the
More informationAn instance of SAT is defined as (X, S)
SAT: Propositional Satisfiability 22c:45 Artificial Intelligence Russell & Norvig, Ch. 7.6 Validity vs. Satisfiability Validity: A sentence is valid if it is true in every interpretation (every interpretation
More informationChapter 7 R&N ICS 271 Fall 2017 Kalev Kask
Set 6: Knowledge Representation: The Propositional Calculus Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask Outline Representing knowledge using logic Agent that reason logically A knowledge based agent Representing
More informationCOMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning
COMP219: Artificial Intelligence Lecture 20: Propositional Reasoning 1 Overview Last time Logic for KR in general; Propositional Logic; Natural Deduction Today Entailment, satisfiability and validity Normal
More informationConstraint Satisfaction 101
Constraint Satisfaction 101 Berthe Y. Choueiry (Shu-we-ri) Nov 14, 2006 Constraint Satisfaction 101 1 Constraint Processing Constraint Satisfaction Computational problem Constraint Satisfaction Problem
More information&hod I: Escaping F!rom Escal inima
From: AAAI-93 Proceedings. Copyright 1993, AAAI (www.aaai.org). All rights reserved. &hod I: Escaping F!rom Escal inima Paul Morris Intelli Corp 1975 El Camino Real West Mountain View, CA 94040 morris@intellicorp.com
More informationPlanning as Satisfiability
Planning as Satisfiability Alan Fern * Review of propositional logic (see chapter 7) Planning as propositional satisfiability Satisfiability techniques (see chapter 7) Combining satisfiability techniques
More informationStochastic Local Search
Stochastic Local Search International Center for Computational Logic Technische Universität Dresden Germany Stochastic Local Search Algorithms Uninformed Random Walk Iterative Improvement Local Minima
More informationChapter 7 Propositional Satisfiability Techniques
Lecture slides for Automated Planning: Theory and Practice Chapter 7 Propositional Satisfiability Techniques Dana S. Nau CMSC 722, AI Planning University of Maryland, Spring 2008 1 Motivation Propositional
More informationLocal Search & Optimization
Local Search & Optimization CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2017 Soleymani Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter 4 Outline
More informationMethods for finding optimal configurations
CS 1571 Introduction to AI Lecture 9 Methods for finding optimal configurations Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Search for the optimal configuration Optimal configuration search:
More informationAutomated Program Verification and Testing 15414/15614 Fall 2016 Lecture 3: Practical SAT Solving
Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 3: Practical SAT Solving Matt Fredrikson mfredrik@cs.cmu.edu October 17, 2016 Matt Fredrikson SAT Solving 1 / 36 Review: Propositional
More informationCS 4700: Artificial Intelligence
CS 4700: Foundations of Artificial Intelligence Fall 2017 Instructor: Prof. Haym Hirsh Lecture 14 Today Knowledge Representation and Reasoning (R&N Ch 7-9) Prelim, Statler Auditorium Tuesday, March 21
More informationLogic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz )
Logic in AI Chapter 7 Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz ) 2 Knowledge Representation represent knowledge about the world in a manner that
More informationLocal Search & Optimization
Local Search & Optimization CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2018 Soleymani Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter 4 Some
More informationProbabilistic Analysis of Local Search and NP-Completeness Result for Constraint Satisfaction
Probabilistic Analysis of Local Search and NP-Completeness Result for Constraint Satisfaction (Extended Abstract) Hoong Chuin LAU Dept. of Computer Science, Tokyo Institute of Technology 2-12-1 Ookayama,
More informationPROBLEM SOLVING AND SEARCH IN ARTIFICIAL INTELLIGENCE
Artificial Intelligence, Computational Logic PROBLEM SOLVING AND SEARCH IN ARTIFICIAL INTELLIGENCE Lecture 4 Metaheuristic Algorithms Sarah Gaggl Dresden, 5th May 2017 Agenda 1 Introduction 2 Constraint
More informationPrice: $25 (incl. T-Shirt, morning tea and lunch) Visit:
Three days of interesting talks & workshops from industry experts across Australia Explore new computing topics Network with students & employers in Brisbane Price: $25 (incl. T-Shirt, morning tea and
More informationUnsatised Variables in Local Search. Department of AI Mechanized Reasoning Group. University of Edinburgh IRST, Trento &
Unsatised Variables in Local Search Ian P. Gent Toby Walsh Department of AI Mechanized Reasoning Group University of Edinburgh IRST, Trento & 80 South Bridge, Edinburgh DIST, University of Genoa, United
More informationCS 4100 // artificial intelligence. Recap/midterm review!
CS 4100 // artificial intelligence instructor: byron wallace Recap/midterm review! Attribution: many of these slides are modified versions of those distributed with the UC Berkeley CS188 materials Thanks
More informationMin-Max Message Passing and Local Consistency in Constraint Networks
Min-Max Message Passing and Local Consistency in Constraint Networks Hong Xu, T. K. Satish Kumar, and Sven Koenig University of Southern California, Los Angeles, CA 90089, USA hongx@usc.edu tkskwork@gmail.com
More informationAnalysis of Random Noise and Random Walk Algorithms for Satisfiability Testing
Analysis of Random Noise and Random Walk Algorithms for Satisfiability Testing Bhaskar Krishnamachari 1,XiXie 1,BartSelman 2, and Stephen Wicker 1 1 School of Electrical Engineering Cornell University,
More informationA.I.: Beyond Classical Search
A.I.: Beyond Classical Search Random Sampling Trivial Algorithms Generate a state randomly Random Walk Randomly pick a neighbor of the current state Both algorithms asymptotically complete. Overview Previously
More informationCS 380: ARTIFICIAL INTELLIGENCE
CS 380: ARTIFICIAL INTELLIGENCE PROBLEM SOLVING: LOCAL SEARCH 10/11/2013 Santiago Ontañón santi@cs.drexel.edu https://www.cs.drexel.edu/~santi/teaching/2013/cs380/intro.html Recall: Problem Solving Idea:
More informationAn Introduction to SAT Solving
An Introduction to SAT Solving Applied Logic for Computer Science UWO December 3, 2017 Applied Logic for Computer Science An Introduction to SAT Solving UWO December 3, 2017 1 / 46 Plan 1 The Boolean satisfiability
More informationPhase Transitions and Computational Complexity Bart Selman
Phase Transitions and Computational Complexity Bart Selman BS - 08/95 1 Computational Challenges In AI Many core computer science problems have been shown to be computationally intractable. We have results
More informationGenerating Hard Satisfiable Formulas by Hiding Solutions Deceptively
Journal of Artificial Intelligence Research 28 (2007) 107-118 Submitted 9/05; published 2/07 Generating Hard Satisfiable Formulas by Hiding Solutions Deceptively Haixia Jia Computer Science Department
More informationAdvanced Satisfiability
Advanced Satisfiability Mausam (Based on slides of Carla Gomes, Henry Kautz, Subbarao Kambhampati, Cristopher Moore, Ashish Sabharwal, Bart Selman, Toby Walsh) Why study Satisfiability? Canonical NP complete
More informationArtificial Intelligence
Torralba and Wahlster Artificial Intelligence Chapter 11: Propositional Reasoning, Part II 1/69 Artificial Intelligence 11. Propositional Reasoning, Part II: SAT Solvers How to Efficiently Think About
More informationPengju
Introduction to AI Chapter04 Beyond Classical Search Pengju Ren@IAIR Outline Steepest Descent (Hill-climbing) Simulated Annealing Evolutionary Computation Non-deterministic Actions And-OR search Partial
More informationSummary. Local Search and cycle cut set. Local Search Strategies for CSP. Greedy Local Search. Local Search. and Cycle Cut Set. Strategies for CSP
Summary Greedy and cycle cut set Greedy... in short G.B. Shaw A life spent doing mistakes is not only more honorable, but more useful than a life spent doing nothing Reminder: Hill-climbing Algorithm function
More informationLogic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz )
Logic in AI Chapter 7 Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz ) 2 Knowledge Representation represent knowledge about the world in a manner that
More informationRelaxed Random Search for Solving K-Satisfiability and its Information Theoretic Interpretation
Relaxed Random Search for Solving K-Satisfiability and its Information Theoretic Interpretation Amirahmad Nayyeri Department of Science, Division of Computer Science Salman Farsi University of Kazerun
More informationON SIMPLE BUT HARD RANDOM INSTANCES OF PROPOSITIONAL THEORIES AND LOGIC PROGRAMS
University of Kentucky UKnowledge University of Kentucky Doctoral Dissertations Graduate School 2011 ON SIMPLE BUT HARD RANDOM INSTANCES OF PROPOSITIONAL THEORIES AND LOGIC PROGRAMS Gayathri Namasivayam
More informationTitle: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)
B.Y. Choueiry 1 Instructor s notes #12 Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) Introduction to Artificial Intelligence CSCE 476-876, Fall 2018 URL: www.cse.unl.edu/ choueiry/f18-476-876
More informationCS 188: Artificial Intelligence Spring 2007
CS 188: Artificial Intelligence Spring 2007 Lecture 8: Logical Agents - I 2/8/2007 Srini Narayanan ICSI and UC Berkeley Many slides over the course adapted from Dan Klein, Stuart Russell or Andrew Moore
More informationPruning Search Space for Weighted First Order Horn Clause Satisfiability
Pruning Search Space for Weighted First Order Horn Clause Satisfiability Naveen Nair 123, Anandraj Govindan 2, Chander Jayaraman 2, Kiran TVS 2, and Ganesh Ramakrishnan 21 1 IITB-Monash Research Academy,
More informationAUTOMATED REASONING. Agostino Dovier. Udine, October 2, Università di Udine CLPLAB
AUTOMATED REASONING Agostino Dovier Università di Udine CLPLAB Udine, October 2, 2017 AGOSTINO DOVIER (CLPLAB) AUTOMATED REASONING UDINE, OCTOBER 2, 2017 1 / 28 COURSE PLACEMENT International Master Degree
More informationSatisfiability and SAT Solvers. CS 270 Math Foundations of CS Jeremy Johnson
Satisfiability and SAT Solvers CS 270 Math Foundations of CS Jeremy Johnson Conjunctive Normal Form Conjunctive normal form (products of sums) Conjunction of clauses (disjunction of literals) For each
More informationThe Constrainedness Knife-Edge. Toby Walsh. APES Group. Glasgow, Scotland.
Abstract A general rule of thumb is to tackle the hardest part of a search problem rst. Many heuristics therefore try to branch on the most constrained variable. To test their eectiveness at this, we measure
More informationBreaking Local Symmetries in Quasigroup Completion Problems
Breaking Local Symmetries in Quasigroup Completion Problems Ruben Martins and Inês Lynce IST/INESC-ID, Technical University of Lisbon, Portugal {ruben,ines}@sat.inesc-id.pt Abstract. Symmetry breaking
More informationTowards Efficient Sampling: Exploiting Random Walk Strategies
Towards Efficient Sampling: Exploiting Random Walk Strategies Wei Wei, Jordan Erenrich, and Bart Selman Department of Computer Science Cornell University Ithaca, NY 14853 {weiwei, erenrich, selman}@cs.cornell.edu
More informationSatisifiability and Probabilistic Satisifiability
Satisifiability and Probabilistic Satisifiability Department of Computer Science Instituto de Matemática e Estatística Universidade de São Paulo 2010 Topics Next Issue The SAT Problem The Centrality of
More informationLocal Search (Greedy Descent): Maintain an assignment of a value to each variable. Repeat:
Local Search Local Search (Greedy Descent): Maintain an assignment of a value to each variable. Repeat: I I Select a variable to change Select a new value for that variable Until a satisfying assignment
More informationExploiting a Theory of Phase Transitions in Three-Satisability. Problems. David M. Pennock and Quentin F. Stout. University ofmichigan
Exploiting a Theory of Phase Transitions in Three-Satisability Problems David M. Pennock and Quentin F. Stout Electrical Engineering and Computer Science Department University ofmichigan Ann Arbor, MI
More informationHeuristics for Efficient SAT Solving. As implemented in GRASP, Chaff and GSAT.
Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT. Formulation of famous problems as SAT: k-coloring (1/2) The K-Coloring problem: Given an undirected graph G(V,E) and a natural
More informationMethods for finding optimal configurations
S 2710 oundations of I Lecture 7 Methods for finding optimal configurations Milos Hauskrecht milos@pitt.edu 5329 Sennott Square S 2710 oundations of I Search for the optimal configuration onstrain satisfaction
More informationConsistency algorithms
Consistency algorithms Chapter SQ 00 rc-consistency X, Y, Z, T X Y Y = Z T Z X T X,, Y,,,,,, T = Z SQ 00 rc-consistency X, Y, Z, T X Y Y = Z T Z X T X T Y Z = SQ 00 rc-consistency Sound < < Incomplete
More informationAdvanced Artificial Intelligence, DT4048
Advanced Artificial Intelligence, DT4048 Part 5 Boolean Satisfiability Federico Pecora federico.pecora@oru.se Center for Applied Autonomous Sensor Systems (AASS) Örebro University, Sweden What is Boolean
More informationLogical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5
rtificial Intelligence Topic 12 Logical Inference Reading: Russell and Norvig, Chapter 7, Section 5 c Cara MacNish. Includes material c S. Russell & P. Norvig 1995,2003 with permission. CITS4211 Logical
More informationIntroduction to Solving Combinatorial Problems with SAT
Introduction to Solving Combinatorial Problems with SAT Javier Larrosa December 19, 2014 Overview of the session Review of Propositional Logic The Conjunctive Normal Form (CNF) Modeling and solving combinatorial
More information1. Tony and his three best friends (Steven, Donna, and Randy) were each at a different table.
Question 1 (Class) Variables T 1, T 2, T 3, T 4 where T i {S D R T, F B A P} Constraints - 1. Tony and his three best friends (Steven, Donna, and Randy) were each at a different table. 2. There s only
More informationLogic and Inferences
Artificial Intelligence Logic and Inferences Readings: Chapter 7 of Russell & Norvig. Artificial Intelligence p.1/34 Components of Propositional Logic Logic constants: True (1), and False (0) Propositional
More informationConsistency algorithms. Chapter 3
Consistency algorithms Chapter Fall 00 Consistency methods pproximation of inference: rc, path and i-consistecy Methods that transform the original network into tighter and tighter representations Fall
More informationAnnouncements. Solution to Assignment 3 is posted Assignment 4 is available. c D. Poole and A. Mackworth 2017 CPSC 322 Lecture 8 1 / 25
Announcements Solution to Assignment 3 is posted Assignment 4 is available c D. Poole and A. Mackworth 2017 CPSC 322 Lecture 8 1 / 25 Review: So far... Constraint satisfaction problems defined in terms
More informationA Random Jump Strategy for Combinatorial Search
A Random Jump Strategy for Combinatorial Search Hantao Zhang Computer Science Department The University of Iowa Iowa City, IA 52242 hzhang@cs.uiowa.edu December 3, 2001 Abstract Recent work on the combinatorial
More informationInterleaved Alldifferent Constraints: CSP vs. SAT Approaches
Interleaved Alldifferent Constraints: CSP vs. SAT Approaches Frédéric Lardeux 3, Eric Monfroy 1,2, and Frédéric Saubion 3 1 Universidad Técnica Federico Santa María, Valparaíso, Chile 2 LINA, Université
More information3 Propositional Logic
3 Propositional Logic 3.1 Syntax 3.2 Semantics 3.3 Equivalence and Normal Forms 3.4 Proof Procedures 3.5 Properties Propositional Logic (25th October 2007) 1 3.1 Syntax Definition 3.0 An alphabet Σ consists
More informationStatistical Analysis of Backtracking on. Inconsistent CSPs? Irina Rish and Daniel Frost.
Statistical Analysis of Backtracking on Inconsistent CSPs Irina Rish and Daniel Frost Department of Information and Computer Science University of California, Irvine, CA 92697-3425 firinar,frostg@ics.uci.edu
More informationAdvanced Satisfiability
Advanced Satisfiability Mausam (Based on slides of Carla Gomes, Henry Kautz, Subbarao Kambhampati, Cristopher Moore, Ashish Sabharwal, Bart Selman, Toby Walsh) Why study Satisfiability? Canonical NP complete
More informationThe core of solving constraint problems using Constraint Programming (CP), with emphasis on:
What is it about? l Theory The core of solving constraint problems using Constraint Programming (CP), with emphasis on: l Modeling l Solving: Local consistency and propagation; Backtracking search + heuristics.
More informationValue-Ordering and Discrepancies. Ciaran McCreesh and Patrick Prosser
Value-Ordering and Discrepancies Maintaining Arc Consistency (MAC) Achieve (generalised) arc consistency (AC3, etc). If we have a domain wipeout, backtrack. If all domains have one value, we re done. Pick
More informationPropositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel
Propositional Logic Methods & Tools for Software Engineering (MTSE) Fall 2017 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/
More informationCounting CSP Solutions Using Generalized XOR Constraints
Counting CSP Solutions Using Generalized XOR Constraints Carla P. Gomes and Willem-Jan van Hoeve and Ashish Sabharwal and Bart Selman Department of Computer Science Cornell University, Ithaca NY 14853-7501,
More informationPractical SAT Solving
Practical SAT Solving Lecture 1 Carsten Sinz, Tomáš Balyo April 24, 2017 NSTITUTE FOR THEORETICAL COMPUTER SCIENCE KIT University of the State of Baden-Wuerttemberg and National Laboratory of the Helmholtz
More informationLocal Search and Optimization
Local Search and Optimization Outline Local search techniques and optimization Hill-climbing Gradient methods Simulated annealing Genetic algorithms Issues with local search Local search and optimization
More informationConstraint sat. prob. (Ch. 6)
Constraint sat. prob. (Ch. 6) ypes of constraints ry to do this job problem with: J1, J2 and J3 Jobs cannot overlap J3 takes 3 time units J2 takes 2 time units J1 takes 1 time unit J1 must happen before
More informationSearch and Lookahead. Bernhard Nebel, Julien Hué, and Stefan Wölfl. June 4/6, 2012
Search and Lookahead Bernhard Nebel, Julien Hué, and Stefan Wölfl Albert-Ludwigs-Universität Freiburg June 4/6, 2012 Search and Lookahead Enforcing consistency is one way of solving constraint networks:
More informationNP-complete problems. CSE 101: Design and Analysis of Algorithms Lecture 20
NP-complete problems CSE 101: Design and Analysis of Algorithms Lecture 20 CSE 101: Design and analysis of algorithms NP-complete problems Reading: Chapter 8 Homework 7 is due today, 11:59 PM Tomorrow
More informationCS 730/830: Intro AI. 2 handouts: slides, asst 5. Wheeler Ruml (UNH) Lecture 10, CS / 19. What is KR? Prop. Logic. Reasoning
CS 730/830: Intro AI 2 handouts: slides, asst 5 Wheeler Ruml (UNH) Lecture 10, CS 730 1 / 19 History of Logic Advice Taker The PSSH Introduction to Knowledge Representation and Wheeler Ruml (UNH) Lecture
More informationStudies in Solution Sampling
Studies in Solution Sampling Vibhav Gogate and Rina Dechter Donald Bren School of Information and Computer Science, University of California, Irvine, CA 92697, USA. {vgogate,dechter}@ics.uci.edu Abstract
More informationLocal search algorithms. Chapter 4, Sections 3 4 1
Local search algorithms Chapter 4, Sections 3 4 Chapter 4, Sections 3 4 1 Outline Hill-climbing Simulated annealing Genetic algorithms (briefly) Local search in continuous spaces (very briefly) Chapter
More informationThe Story So Far... The central problem of this course: Smartness( X ) arg max X. Possibly with some constraints on X.
Heuristic Search The Story So Far... The central problem of this course: arg max X Smartness( X ) Possibly with some constraints on X. (Alternatively: arg min Stupidness(X ) ) X Properties of Smartness(X)
More informationLecture 2 Propositional Logic & SAT
CS 5110/6110 Rigorous System Design Spring 2017 Jan-17 Lecture 2 Propositional Logic & SAT Zvonimir Rakamarić University of Utah Announcements Homework 1 will be posted soon Propositional logic: Chapter
More informationChapter 4 Beyond Classical Search 4.1 Local search algorithms and optimization problems
Chapter 4 Beyond Classical Search 4.1 Local search algorithms and optimization problems CS4811 - Artificial Intelligence Nilufer Onder Department of Computer Science Michigan Technological University Outline
More informationCS:4420 Artificial Intelligence
CS:4420 Artificial Intelligence Spring 2018 Propositional Logic Cesare Tinelli The University of Iowa Copyright 2004 18, Cesare Tinelli and Stuart Russell a a These notes were originally developed by Stuart
More informationModern WalkSAT algorithms
Modern WalkSAT algorithms J. Rosti Summary of workshop presentation Special research course T-79.7003, Autumn 2007 Phase Transitions in Optimization Problems ABSTRACT In this workshop presentation summary
More information22c:145 Artificial Intelligence
22c:145 Artificial Intelligence Fall 2005 Informed Search and Exploration III Cesare Tinelli The University of Iowa Copyright 2001-05 Cesare Tinelli and Hantao Zhang. a a These notes are copyrighted material
More informationIntroduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010
Introduction to Artificial Intelligence Propositional Logic & SAT Solving UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Today Representation in Propositional Logic Semantics & Deduction
More information