Lookahead Schemas Foundations of Constraint Processing

Slides:



Advertisements
Similar presentations
Levels of Consistency Node Consistency (NC) Arc-consistency (AC) Path Consistency (PC) Generalised arc-consistency (GAC) Bounds consistency Inverse Path.
Advertisements

Foundations of Constraint Processing Lookahead Schemas 1 Foundations of Constraint Processing CSCE421/821, Spring
Arc consistency ac3, ac4, ac6/7/8. Di = {1,2,3,4,5} V1 V3 V2 V4 V4  V3 V1  V4  1 V4 + V2 = 5 V1  V2 V2  V3  6 AR33 figure 18, page 35 What can you.
Foundations of Constraint Processing Temporal Constraints Networks 1Topic Foundations of Constraint Processing CSCE421/821, Spring
Foundations of Constraint Processing, Fall 2005 September 11, 2005Backtracking1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
An Empirical Study of the Performance of Preprocessing and Look-ahead Techniques for Solving Finite Constraint Satisfaction Problems Zheying Jane Yang.
Foundations of Constraint Processing, Fall 2004 November 8, 2004Ordering heuristics1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
Foundations of Constraint Processing, Fall 2005 November 16, 2005nFCi1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Foundations of Constraint Processing, Fall 2005 November 16, 2005nFCi1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Foundations of Constraint Processing, Fall 2005 October 20, 2005Ordering heuristics1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Foundations of Constraint Processing, Fall 2005 Sep 20, 2005BT: A Theoretical Evaluation1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Constraint Systems Laboratory March 26, 2007Reeson–Undergraduate Thesis1 Using Constraint Processing to Model, Solve, and Support Interactive Solving of.
General search strategies: Look-ahead Chapter 5 Chapter 5.
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.
Foundations of Constraint Processing, Fall 2005 November 2, 2005Weak Commitment1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Foundations of Constraint Processing, Fall 2004 November 18, 2004More on BT search1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
Advanced Constraint Processing, Fall 2009 An Efficient Consistency Algorithm for the Temporal Constraint Satisfaction Problem Berthe Y. Choueiry & Lin.
Relaxation and Hybrid constraint processing Different relaxation techniques Some popular hybrid techniques.
N Model problem ä specify in terms of constraints on acceptable solutions ä define variables (denotations) and domains ä define constraints in some language.
Constraint Satisfaction CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Problem Solving with Constraints Lookahead Schemas 1 Foundations of Constraint Processing CSCE496/896, Fall
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.
Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
Foundations of Constraint Processing, Spring 2008 Feb 11, 2008 Ordering heuristics1 Foundations of Constraint Processing CSCE421/821, Spring 2008:
Fahiem Bacchus, University of Toronto CSC384: Intro to Artificial Intelligence  Backtracking Search (CSPs)  Chapter 5  5.3 talks about local search.
Structure-Based Methods Foundations of Constraint Processing
An Empirical Study of the Performance
Lecture 7 Constraint Satisfaction Problems
Problem Solving With Constraints
Empirical Comparison of Preprocessing and Lookahead Techniques for Binary Constraint Satisfaction Problems Zheying Jane Yang & Berthe Y. Choueiry Constraint.
Rationale & Strategies Foundations of Constraint Processing
Foundations of Constraint Processing
Extensions to BT Search Foundations of Constraint Processing
Extensions to BT Search Foundations of Constraint Processing
Constraints and Search
Path Consistency & Global Consistency Properties
Foundations of Constraint Processing
CSP Search Techniques Backtracking Forward checking
Consistency Algorithms Foundations of Constraint Processing
Structure-Based Methods Foundations of Constraint Processing
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Running example The 4-houses puzzle:
Structure-Based Methods Foundations of Constraint Processing
Foundations of Constraint Processing All questions to Piazza
Evaluation of (Deterministic) BT Search Algorithms
Rationale & Strategies Foundations of Constraint Processing
More on Constraint Consistency
Extensions to BT Search Foundations of Constraint Processing
Extensions to BT Search Foundations of Constraint Processing
Intelligent Backtracking Algorithms
Constraints and Search
Chapter 5: General search strategies: Look-ahead
Evaluation of (Deterministic) BT Search Algorithms
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Problem Solving With Constraints
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Artificial Intelligence
Rationale & Strategies Foundations of Constraint Processing
Foundations of Constraint Processing All questions to Piazza
Evaluation of (Deterministic) BT Search Algorithms
Consistency Algorithms Foundations of Constraint Processing
Foundations of Constraint Processing
Extensions to BT Search Foundations of Constraint Processing
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Rationale & Strategies Foundations of Constraint Processing
Presentation transcript:

Lookahead Schemas Foundations of Constraint Processing CSCE496/896, Fall 2011 www.cse.unl.edu/~choueiry/F11-496-896/ All questions to cse496cp@cse.unl.edu Berthe Y. Choueiry (Shu-we-ri) Avery Hall, Room 360 Tel: +1(402)472-5444

Outline Looking ahead Schemas Forward checking (FC) Directional Arc Consistency (DAC) Maintaining Arc Consistency (a.k.a. full arc-consistency)

Looking ahead Rationale: Techniques As decisions are made (conditioning), Revise the domain of future variables to propagate the effects of decisions i.e., eliminate inconsistent choices in future sub-problem Domain annihilation of a future variable avoids expansion of useless portions of the tree Techniques Partial: forward-checking (FC), directional arc-consistency (DAC) Full: Maintaining arc-consistency (MAC) Use: Revise(Vf, Vc), Vf future variable, Vc current variable

Revise(Vi,CVi,Vj)=Revise(Vi, Vj) Revise the domain of Vi Revising the domain of Vi given a constraint CVi,Vj on Vi (i.e., Vi  Scope(C)) General notation: Revise(Vi,CVi,Vj) In a binary CSP: Revise(Vi,CVi,Vj)=Revise(Vi, Vj)

Revise(Vi, Vj) NOTE: only DVi may be updated revised  nil  x  DVi found  nil  y  DVj If Check((Vi,x),(Vj,y)) Then Begin found  t Break End If found=nil Then Begin revised  t DVi  DVi \ {x} Return (revised)

Revise(Vi, Vj) Revise(Vi, Vj) revised  nil  x  Dvi  y  DVj If Check((Vi,x),(Vj,y)) Then Break() revised  t DVi  DVi \ {x} Return (revised) Simpler, equivalent code but not as obvious as the previous one

Domain filtering in lookahead Vc current variable Vf future variable {Vf} all future variables Revise(Vf, Vc) FC(Vc):  Vf  {Vf} connected to Vc Revise(Vf,Vc) If DVf ={} then return(nil)

Directional Arc Consistency Choose an ordering d, stick to it After instantiating a variable at level i, do the following For k from i to (n-1) in the ordering d Do If FC(Vk)=nil then Return(nil)

Maintaining Arc Consistency First, FC(Vc), If it does not fail, then, form a queue with all constraints (Vi,Vj) and (Vj,Vi) between future variables, and run AC AC-1 Q  {(Vi,Vj),(Vj,Vi), …, (Vk,Vm), (Vm,VK)} Change  true While Change Do Change  false For all (Va,Vb) in Q Do If Revise(Va,Vb) Then If Dom(Va) = Then Return (nil) Else Change  true

Look-ahead techniques: FC, DAC, MAC assumes a fixed variable ordering d MAC: does more pruning (search may visit fewer nodes) at the cost of more consistency checks FC(Vc) FC(Vc); While not failure: For the next Vf in the ordering d, FC(Vf) FC(Vc); AC({Vf}) FC(Vc); Repeat until quiescence or failure  Vf1,Vf2  {Vf}, Revise(Vf1,Vf2)

Terminology overload alert: FC FC is used to denote any of the following: a partial look-ahead schema a specific chronological backtrack search algorithm that uses the partial look-ahead schema Meaning is inferred from context Not a healthy situation, but a fact of reality Advice: state upfront the meaning of your terms and stick to them throughout your paper

(BT Search +) MAC vs. FC Reference: [Sabin & Freuder, ECAI94], [Bessière & Régin, CP97], [Sabin & Freuder, CP97], [Gent & Prosser, APES-20-2000], [Experiments by Lin XU, 2001], [Yang, MS thesis 2003] Results: (sketchy) Low tightness High tightness Low density (sparse) FC MAC High density (dense) Note: Results depend on Variable ordering (static vs. dynamic) Problem difficulty (positive relative to crossover point)