General search strategies: Look-ahead Chapter 5 Chapter 5.

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

Slides by Peter van Beek Edited by Patrick Prosser.
Constraint Satisfaction Problems Russell and Norvig: Chapter
Foundations of Constraint Processing Lookahead Schemas 1 Foundations of Constraint Processing CSCE421/821, Spring
This lecture topic (two lectures) Chapter 6.1 – 6.4, except
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
This lecture topic (two lectures) Chapter 6.1 – 6.4, except 6.3.3
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 Satisfaction problems (CSP)
Review: Constraint Satisfaction Problems How is a CSP defined? How do we solve CSPs?
Lecture 5: Constraint Satisfaction
1 Directional consistency Chapter 4 ICS-179 Spring 2010 ICS Graphical models.
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
CS460 Fall 2013 Lecture 4 Constraint Satisfaction Problems.
Constraint Satisfaction
Foundations of Constraint Processing, Fall 2005 Sep 20, 2005BT: A Theoretical Evaluation1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
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.
CS121 Heuristic Search Planning CSPs Adversarial Search Probabilistic Reasoning Probabilistic Belief Learning.
Chapter 5 Outline Formal definition of CSP CSP Examples
MAC and Combined Heuristics: Two Reasons to Forsake FC (and CBJ?) on Hard Problems Christian Bessière and Jean-Charles Régin Presented by Suddhindra Shukla.
Distributed Scheduling. What is Distributed Scheduling? Scheduling: –A resource allocation problem –Often very complex set of constraints –Tied directly.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 2 Ryan Kinworthy CSCE Advanced Constraint Processing.
ICS-270A:Notes 6: 1 Notes 6: Constraint Satisfaction Problems ICS 270A Spring 2003.
Constraint Satisfaction Problems
1 Constraint Satisfaction Problems Slides by Prof WELLING.
Relaxation and Hybrid constraint processing Different relaxation techniques Some popular hybrid techniques.
Artificial Intelligence CS482, CS682, MW 1 – 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis,
N Model problem ä specify in terms of constraints on acceptable solutions ä define variables (denotations) and domains ä define constraints in some language.
Constraint Satisfaction Problems Chapter 6. Review Agent, Environment, State Agent as search problem Uninformed search strategies Informed (heuristic.
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.
Constraint Networks Overview. Suggested reading Russell and Norvig. Artificial Intelligence: Modern Approach. Chapter 5.
Constraint Satisfaction CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Searching by Constraint CMSC Artificial Intelligence January 24, 2008.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Problem Solving with Constraints Lookahead Schemas 1 Foundations of Constraint Processing CSCE496/896, Fall
Chapter 5: Constraint Satisfaction ICS 171 Fall 2006.
1 Chapter 5 Constraint Satisfaction Problems. 2 Outlines  Constraint Satisfaction Problems  Backtracking Search for CSPs  Local Search for CSP  The.
CSC 8520 Spring Paula Matuszek CS 8520: Artificial Intelligence Search 3: Constraint Satisfaction Problems Paula Matuszek Spring, 2013.
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.
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.
CS 175 Project in AI. 2 Lectures: ICS 180 Tuesday, Thursday Hours: am Discussion: DBH 1300 Wednesday Hours: pm Instructor: Natalia.
Constraint Propagation influenced by Dr. Rina Dechter, “Constraint Processing”
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.
Constraint Satisfaction Problems (CSPs)
Constraint Satisfaction Problems Lecture # 14, 15 & 16
Constraint Satisfaction
Empirical Comparison of Preprocessing and Lookahead Techniques for Binary Constraint Satisfaction Problems Zheying Jane Yang & Berthe Y. Choueiry Constraint.
Constraint Propagation
Notes 6: Constraint Satisfaction Problems
Constraint Satisfaction Problems
Foundations of Constraint Processing All questions to Piazza
Constraints and Search
Chapter 5: General search strategies: Look-ahead
Foundations of Constraint Processing All questions to Piazza
Constraint Satisfaction Problems
Presentation transcript:

General search strategies: Look-ahead Chapter 5 Chapter 5

The search space A tree of all partial solutions A partial solution: (a1,…,aj) satisfying all relevant constraints The size of the underlying search space depends on: Variable ordering Level of consistency possessed by the problem

Search space and the effect of ordering

Dependency on consistency level After arc-consistency z=5 and l=5 are removed After path-consistency R’_zx R’_zy R’_zl R’_xy R’_xl R’_yl

Dependency on consistency level After arc-consistency z=5 and l=5 are removed After path-consistency R’_zx R’_zy R’_zl R’_xy R’_xl R’_yl

The effect of higher consistency on search

Cost of node’s expansion Number of consistency checks for toy problem: For d1: 19 for R, 43 for R’ For d2: 91 on R and 56 on R’ Reminder:

Backtracking Search for a Solution

Backtracking Search for a single Solution

Backtracking Search for *All* Solutions

For all tasks Time: O(exp(n)) Space: linear

A graph coloring problem

Backtracking search

Backtracking Complexity of extending a partial solution: Complexity of consistent O(e log t), t bounds tuples, e constraints Complexity of selectvalue O(e k log t)

Improving backtracking Before search: (reducing the search space) Arc-consistency, path-consistency Variable ordering (fixed) During search : Look-ahead schemes: value ordering, variable ordering (if not fixed) Look-back schemes: Backjump Constraint recording Dependency-directed backtacking

Look-ahead: value orderings Intuition: Choose value least likely to yield a dead-end Approach: apply propagation at each node in the search tree Forward-checking (check each unassigned variable separately Maintaining arc-consistency (MAC) (apply full arc-consistency) Full look-ahead One pass of arc-consistency (AC-1) Partial look-ahead directional-arc-consistency

Generalized look-ahead

Forward-checking on graph coloring

Forward-checking example

Forward-checking Complexity of selectValue-forward-checking at each node:

Arc-consistency look-ahead (Gashnig, 1977) Applies full arc-consistency on all un- instantiated variables following each value assignment to the current variable. Complexity: If optimal arc-consistency is used: What is the complexity overhead when AC-1 is used at each node?

MAC: maintaining arc-consistency (Sabin and Freuder 1994) Perform arc-consistency in a binary search tree: Given a domain X={1,2,3,4} the algorithm assign X=1 (and apply arc- consistency) and if x=1 is pruned, it applies arc-consistency to X={2,3,4} If no inconsistency a new variable is selected (not necessarily X)

Arc-consistency look-ahead: (maintaining arc-consistency MAC)

Full and partial look-ahead Full looking ahead: Make one pass through future variables (delete, repeat-until) Partial look-ahead: Applies (similar-to) directional arc-consistency to future variables. Complexity: also More efficient than MAC

Example of partial look-ahead

Branching-ahead: Dynamic Value Ordering Rank order the promise in non-rejected values Rank functions MC (min conflict) MD (min domain) SC (expected solution counts) MC results (Frost and Dechter, 1996) SC – currently shows good performance using IJGP (Kask, Dechter and Gogate, 2004)

Dynamic value ordering (LVO) Use constraint propagation to rank order the promise in non- rejected values. Example: look-ahead value ordering (LVO) is based of forward- checking propagation LVO uses a heuristic measure to transform this information to ranking of the values Empirical work shows the approach is cost-effective only for large and hard problems. MC (min-conflict), MD (min-domain) ES (expected solutions). MC was best empirically (Frost and Dechter 1996)

Branching-ahead: Dynamic Variable Ordering (DVO) Following constraint propagation, choose the most constrained variable Intuition: early discovery of dead-ends Highly effective: the single most important heuristic to cut down search space Most popular with FC Dynamic search rearrangement (Bitner and Reingold, 1975) (Purdon,1983)

Look-ahead: variable ordering Dynamic search rearangement (Bitner and Reingold, 1975)(Purdon,1983): Choose the most constrained variable Intuition: early discovery of dead-ends

DVO

Example: DVO with forward checking (DVFC)

Algorithm DVO (DVFC)

Implementing look-aheads Cost of node generation should be reduced Solution: keep a table of viable domains for each variable and each level in the tree. Space complexity Node generation = table updating

The cycle-cutset effect A cycle-cutset is a subset of nodes in an undirected graph whose removal results in a graph with no cycles A constraint problem whose graph has a cycle-cutset of size c can be solved by partial look-ahead in time

Extension to stronger look-ahead Extend to path-consistency or i-consistency or generalized-arc-consistency

Look-ahead for SAT: DPLL (Davis-Putnam, Logeman and Laveland, 1962)

Example of DPLL