Empirical Comparison of Preprocessing and Lookahead Techniques for Binary Constraint Satisfaction Problems Zheying Jane Yang & Berthe Y. Choueiry Constraint.

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

Slides by Peter van Beek Edited by Patrick Prosser.
Non-Binary Constraint Satisfaction Toby Walsh Cork Constraint Computation Center.
Constraint Satisfaction Problems Russell and Norvig: Chapter
Foundations of Constraint Processing Lookahead Schemas 1 Foundations of Constraint Processing CSCE421/821, Spring
1 Today’s class Interleaving backtracking and consistency checking Variable-ordering heuristics Value-ordering heuristics Intelligent backtracking Marie.
Interactive Configuration
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
Foundations of Constraint Processing More on Constraint Consistency 1 Foundations of Constraint Processing CSCE421/821, Spring
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables {A,B,C,…}, a set of domain values for these variables,
Constraint Processing Techniques for Improving Join Computation: A Proof of Concept Anagh Lal & Berthe Y. Choueiry Constraint Systems Laboratory Department.
1 Refining the Basic Constraint Propagation Algorithm Christian Bessière and Jean-Charles Régin Presented by Sricharan Modali.
An Empirical Study of the Performance of Preprocessing and Look-ahead Techniques for Solving Finite Constraint Satisfaction Problems Zheying Jane Yang.
An Approximation of Generalized Arc-Consistency for Temporal CSPs Lin Xu and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science.
Improving Backtrack Search For Solving the TCSP Lin Xu and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science and Engineering.
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables,
Foundations of Constraint Processing, Fall 2005 November 16, 2005nFCi1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
 i may require adding new constraints, except for… o i =1  domain filtering o i =   constraint filtering Robert Woodward & Berthe Y. Choueiry Constraint.
Solvable problem Deviation from best known solution [%] Percentage of test runs ERA RDGR RGR LS Over-constrained.
Efficient Techniques for Searching the Temporal CSP Lin Xu and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science and Engineering.
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables,
Cut-and-Traverse: A new Structural Decomposition Method for CSPs Yaling Zheng and Berthe Y. Choueiry Constraint Systems Laboratory Computer Science & Engineering.
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.
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 2004 November 18, 2004More on BT search1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
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
CSC 423 ARTIFICIAL INTELLIGENCE Constraint Satisfaction Problems.
Chapter 5 Constraint Satisfaction Problems
Constraint Systems Laboratory R.J. Woodward 1, S. Karakashian 1, B.Y. Choueiry 1 & C. Bessiere 2 1 Constraint Systems Laboratory, University of Nebraska-Lincoln.
Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer.
Robust Planning using Constraint Satisfaction Techniques Daniel Buettner and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science.
Eliminating non- binary constraints Toby Walsh Cork Constraint Computation Center.
Shortcomings of Traditional Backtrack Search on Large, Tight CSPs: A Real-world Example Venkata Praveen Guddeti and Berthe Y. Choueiry The combination.
Constraint Satisfaction Problems/Programming ZUI 2012/2013.
Where are the hard problems?. Remember Graph Colouring? Remember 3Col?
Where are the hard problems?
Modelling and Solving Configuration Problems on Business
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Consistency Methods for Temporal Reasoning
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
An Empirical Study of the Performance
Constraint Satisfaction
Robert Glaubius and Berthe Y. Choueiry
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Constraints and Search
Foundations of Constraint Processing
CSP Search Techniques Backtracking Forward checking
More on Constraint Consistency
Constraint Satisfaction Problems
Foundations of Constraint Processing All questions to Piazza
Evaluation of (Deterministic) BT Search Algorithms
More on Constraint Consistency
Lookahead Schemas Foundations of Constraint Processing
Constraints and Search
Chapter 5: General search strategies: Look-ahead
Evaluation of (Deterministic) BT Search Algorithms
Constraint Satisfaction Problems & Its Application in Databases
Artificial Intelligence
Foundations of Constraint Processing All questions to Piazza
Evaluation of (Deterministic) BT Search Algorithms
CS 8520: Artificial Intelligence
Revisiting Neighborhood Inverse Consistency on Binary CSPs
A Qualitative Analysis of Search Behavior: A Visual Approach
Revisiting Neighborhood Inverse Consistency on Binary CSPs
Constraint Satisfaction Problems
Reformulating the Dual Graphs of CSPs
Presentation transcript:

Empirical Comparison of Preprocessing and Lookahead Techniques for Binary Constraint Satisfaction Problems Zheying Jane Yang & Berthe Y. Choueiry Constraint Systems Laboratory • Department of Computer Science and Engineering, University of Nebraska-Lincoln • {zyang|choueiry}@cse.unl.edu Abstract Results:preprocessing Constraint Satisfaction Problems (CSPs) are in general NP-complete. They are usually solved using backtrack (BT) search, which is an exponential-time procedure. Constraint Processing explores several approaches to improve the performance of BT search, such as: Constraint propagation as a preprocessing step to search filters the CSP and reduces its size without losing solutions. Lookahead techniques intertwine constraint propagation with search. Ordering heuristics during search (i.e., Dynamic Variable Ordering (DVO) to direct search as quickly as possible towards a solution. Several propagation & lookahead techniques are known in the literature. The goal of this research is to verify empirically the results claimed by the community and find the best combinations on randomly generated problems. Our results disprove some widely believed but imprecise claims. We make explicit the rare conditions under which AC2001 [1] (a preprocessing technique) outperforms AC3 [2], and Maintaining Arc Consistency (MAC) [3] (a lookahead strategy) outperforms Forward-Checking (FC) [4]. We also show that the cost of Neighborhood Inverse Consistency (NIC) [5] (NIC) is prohibitive. Figure1 illustrates the cost the preprocessing techniques by showing the number of constraints checks for filtering the CSP. Although not shown here, AC2001 is more costly that AC3 in terms of CPU time. NIC is consistently more costly (in terms of constraint checks and CPU time) than any arc-consistency algorithm (i.e., both AC3 & AC2001). For high values of constraint probabilities, the cost of NIC becomes prohibitive. For low values of constraint probability (i.e., sparse CSPs), NIC is preferable to any arc-consistency algorithm (i.e., both AC3 & AC2001). Definitions A CSP is defined as a set of variables and their domain and a set of constraint that restrict the acceptable combinations of values to variables. A solution is an assignment that satisfies all constraints. We focus on finite and binary CSPs. Arc consistency: arc (Vi, Vj) is arc consistent if xDi yDj such that (x,y) is allowed by constraint Cij, and vice versa. Constraint propagation: arc consistency is achieved by repeatedly deleting every value from each domain Di that fails this condition, until quiescence. Neighborhood inverse consistency (NIC): Ensures the a given value for a variable appears in at least one solution of the sub-problem induced by the variable and its neighborhood. Search is required to achieve NIC. We test Forward Checking (FC) with DVO and Maintaining Arc Consistency (MAC) with DVO. Forward Checking (FC): A partial lookahead strategy that ensures arc-consistency between a current variable and each of the future variables with which it shares a constraint. Maintaining Arc Consistency (MAC): A full lookahead strategy that ensures arc-consistency among all future variables. Figure 2 illustrates the effectiveness of the preprocessing techniques tested by showing the CSP size after filtering. NIC reduces the search space significantly more than any arc-consistency algorithm (i.e., both AC3 & AC2001). Preprocessing We test 5 preprocessing (PPi) aglorithms: We test 2 lookahead strategies: Results: search PP1 = AC3 PP2 = AC2001 PP3 = NIC_FC_DVO PP4 = NIC_(MAC_DVO_AC3) PP5 = NIC_(MAC_DVO_AC2001) Forward checking Maintaining Arc Consistency Figure 3 illustrates the cost of solving the CSP using the hybrid search strategies tested We order the variables dynamically according to the least domain heuristic. Search strategies We generate seven hybrid search strategies (Sj), combining the above 5 preprocessing algorithms, 2 lookahead strategies and a dynamic variable ordering heuristic (DVO): S1 = PP1 + FC_DVO S2 = PP1 + (MAC_DVO_AC3) S3 = PP2 + FC S4 = PP2 + (MAC_DVO_AC2001) S5 = PP3 + FC_DVO S6 = PP4 + (MAC_DVO_AC3) S7 = PP5 + (MAC_DVO_AC2001) FC_DVO MAC_DVO AC3 AC2001 NIC  Preprocessing Search Table 1, Search strategic tested FC-based hybrids outperform MAC-based hybrids, regardless of the techniques used in preprocessing. MAC-based algorithms perform consistently poorly where it matters most, around the peak of the phase transition. Experiments We designed a generator for random binary CSPs that guarantees the existence of at least one solution. We generated over 3000 problem instances. All problems have 50 variables and a domain size of 10. We vary of constraint probability between 0.05 and 0.3. For each probability value, we vary constraint tightness between 0.05 and 0.95. We measured the number of constraint checks and the CPU time. We averaged the results over 30 instances per point. Lessons Unless the constraint graph is very sparse and the constraints are very loose, we should use FC and avoid MAC. When constraint checks is a cheap operation and the constraint graph is sparse, we should use NIC, otherwise, FC is sufficient. The best overall combination is strategy S5: For preprocessing: NIC combined with FC For search: FC combined with DVO References [1] C. Bessière & J.-Ch. Régin, Refining the Basic Constraint Propagation Algorithm, pages 309-315, IJCAI 2001. [2] A.K. Mackworth and E.C. Freuder. The complexity of some polynomial network consistency algorithms for constraint satisfaction problems, pages 65-74, Artificial Intelligence, 1985. [3] D, Sabin and E.C. Freuder. Contradicting conventional wisdom in constraint satisfaction, pages 125-129, ECAI94. [4] R.M. Haralick and G.l. Elliott. Increasing tree search efficiency for constraint satisfaction problem, pages 268-277, Artificial Intelligence, 1980. [5] E.C. Freuder & C. Elfe, Neighborhood Inverse Consistency Preprocessing, pages 201-208, AAAI 1996. Acknowledgment Experiments were carried out on Prairiefire.unl.edu