A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables,

Slides:



Advertisements
Similar presentations
Non-Binary Constraint Satisfaction Toby Walsh Cork Constraint Computation Center.
Advertisements

Foundations of Constraint Processing More on Constraint Consistency 1 Foundations of Constraint Processing CSCE421/821, Spring
1 Restart search techniques for Employee Timetabling Problems Amnon Meisels And Eliezer Kaplansky Ben-Gurion University.
Outline Interchangeability: Basics Robert Beyond simple CSPs Relating & Comparing Interchangeability Shant Compacting the Search Space – AND/OR graphs,
A First Practical Algorithm for High Levels of Relational Consistency Shant Karakashian, Robert Woodward, Christopher Reeson, Berthe Y. Choueiry & Christian.
A Partial Taxonomy of Substitutability & Interchangeability Shant Karakashian Robert J. Woodward Berthe Y. Choueiry Steven D. Prestwich Eugene C. Freuder.
Foundations of Constraint Processing, Fall 2005 October 21, 2005CSPs and Relational DBs1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Constraint Processing Techniques for Improving Join Computation: A Proof of Concept Anagh Lal & Berthe Y. Choueiry Constraint Systems Laboratory Department.
Foundations of Constraint Processing, Spring 2008 Evaluation to BT SearchApril 16, Foundations of Constraint Processing CSCE421/821, Spring 2008:
Constraint Systems Laboratory Oct 21, 2004Guddeti: MS thesis defense1 An Improved Restart Strategy for Randomized Backtrack Search Venkata P. Guddeti Constraint.
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.
CPSC 322, Lecture 12Slide 1 CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12 (Textbook Chpt ) January, 29, 2010.
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables,
 i may require adding new constraints, except for… o i =1  domain filtering o i =   constraint filtering Robert Woodward & Berthe Y. Choueiry Constraint.
Foundations of Constraint Processing Evaluation to BT Search 1 Foundations of Constraint Processing CSCE421/821, Spring
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.
Foundations of Constraint Processing, Fall 2005 Sep 20, 2005BT: A Theoretical Evaluation1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Constraint Systems Laboratory October 2 nd, 2005Zheng – DocProg CP’051 Applying Structural Decomposition Methods to Crossword Puzzle Problems Student:
Hierarchical Constraint Satisfaction in Spatial Database Dimitris Papadias, Panos Kalnis And Nikos Mamoulis.
1.A finer version of PPC. 2.Cheaper than PPC and F-W. 3.Guarantees the minimal network. 4.Automatically decomposes the graph into its bi-connected components:
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.
Constraint Systems Laboratory December 9, 2005ISI AI Seminar Series1 Symmetry Detection in Constraint Satisfaction Problems & its Application in Databases.
Constraint Systems Laboratory April 21, 2005Lal: M.S. thesis defense1 Neighborhood Interchangeability (NI) for Non-Binary CSPs & Application to Databases.
Constraint Systems Laboratory 11/22/2005Zheng – Comprehensive1 Survey of Techniques for Detecting and Exploiting Symmetry in Constraint Satisfaction Problems.
Foundations of Constraint Processing, Fall 2004 November 18, 2004More on BT search1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
Constraint Satisfaction Problem:  Used to model constrained combinatorial problems  Important real-world applications: hardware & software verification,
Because the localized R(*,m)C does not consider combinations of relations across clusters, propagation between clusters is hindered. Synthesizing a global.
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
Constraint Systems Laboratory 11/26/2015Zhang: MS Project Defense1 OPRAM: An Online System for Assigning Capstone Course Students to Sponsored Projects.
Conformant Probabilistic Planning via CSPs ICAPS-2003 Nathanael Hyafil & Fahiem Bacchus University of Toronto.
Constraint Systems Laboratory Presented by: Robert J. Woodward, Amanda Swearngin 1 Berthe Y. Choueiry 2 Eugene C. Freuder 3 1 ESQuaReD Laboratory, University.
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.
Quality of LP-based Approximations for Highly Combinatorial Problems Lucian Leahu and Carla Gomes Computer Science Department Cornell University.
Maximum Density Still Life Symmetries and Lazy Clause Generation Geoffrey Chu, Maria Garcia de la Banda, Chris Mears, Peter J. Stuckey.
Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
Robust Planning using Constraint Satisfaction Techniques Daniel Buettner and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science.
Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction 1 Foundations of Constraint Processing CSCE421/821, Spring 2009.
Eliminating non- binary constraints Toby Walsh Cork Constraint Computation Center.
Chapter 5 Team Teaching AI (created by Dewi Liliana) PTIIK Constraint Satisfaction Problems.
ERA on an over-constrained problem A Constraint-Based System for Hiring & Managing Graduate Teaching Assistants Ryan Lim, Praveen Venkata Guddeti, and.
Shortcomings of Traditional Backtrack Search on Large, Tight CSPs: A Real-world Example Venkata Praveen Guddeti and Berthe Y. Choueiry The combination.
1 Overview of Query Evaluation Chapter Outline  Query Optimization Overview  Algorithm for Relational Operations.
Problem Solving with Constraints CSPs and Relational DBs1 Problem Solving with Constraints CSCE496/896, Fall
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
Robert Glaubius and Berthe Y. Choueiry
Empirical Comparison of Preprocessing and Lookahead Techniques for Binary Constraint Satisfaction Problems Zheying Jane Yang & Berthe Y. Choueiry Constraint.
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
CSPs and Relational DBs
Foundations of Constraint Processing
Problem Solving with Constraints
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Evaluation of (Deterministic) BT Search Algorithms
Constraints and Search
Evaluation of (Deterministic) BT Search Algorithms
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Constraint Satisfaction Problems & Its Application in Databases
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Evaluation of (Deterministic) BT Search Algorithms
Problem Solving with Constraints
Problem Solving with Constraints
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Presentation transcript:

A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables, and a set of constraints restricting the allowable combinations of values for variables, where the task is to find a solution (i.e., an assignment of a value to each variable satisfying all constraints), or to find all such solutions. Dynamic Bundling for Non-binary CSPs and Databases Anagh Lal and Berthe Y. Choueiry Constraint Systems Laboratory Computer Science & Engineering University of Nebraska-Lincoln alal, S cd, e, f d V1V1 V2V2 Dynamic bundling [1] : Interchangeability sets are updated during search Static bundling [3] : Interchangeability sets are computed before search ce, fd d V1V1 V2V2 S Search without bundling cefd d V1V1 V2V2 S 1.Interchangeability: An algorithm for computing interchangeability in non-binary CSPs. 2.Dynamic bundling: Integration of the above with backtrack search for solving non-binary CSPs. 3.Modeling: A new representation of a database join-query as a CSP. 4. A new sorting-based bundling algorithm. 5. A new sort-merge join algorithm for producing bundled tuples. Contributions C4C4 {1, 2, 3, 4, 5, 6} {1, 2, 3} C2C2 C1C1 C3C3 Constraint Variable Non-binary CSP (nb-CSP) SELECT R1.A,R1.B,R1.C FROM R1,R2 WHERE R1.A=R2.A AND R1.B=R2.B AND R1.C=R2.C Result: 10 tuples in 3 nested tuples  Use new join algorithm when materializing join queries  Exploit bundled results in data-analysis/data-mining packages  Assist in query size estimation  Improve accuracy of sampling operators Interchangeability is about finding values that are equivalent in all solutions of a CSP [2]. Full Interchangeability (FI): d, e, and f can be swapped for V 2 in any solution. Neighborhood Interchangeability (NI): finds e and f but misses d. It efficiently approximates FI. Dynamic bundling is guaranteed never less efficient than non-bundling and static bundling [1]. Interchangeability & Bundling Modeling the join query as a CSP Attributes  variables Attribute values  domains Relations  relational constraints Join conditions  join-condition constraints Dynamic Bundling for Databases Dynamic bundling = Search + dynamic interchangeability 1.Dynamic bundling was thought to be an overkill and not practical. We show it is worthwhile:  Finding all solutions: theoretically best  Finding first solutions: empirical evidence –Bundles solutions –Bundles no-goods (i.e., bundles of inconsistent partial solutions) 2.We exploit nb-DTs in Forward Checking (FC) 3.Search with dynamic bundling yields families of robust and compact solutions. Experiments : Compare the performance of search in FC and DynBndl using dynamic least domain as a variable ordering strategy. For low tightness values:  FBS is large: 1200 solutions in 1 bundle  However, the cost of DynBndl (CPU time) exceeds the gains due to savings in nodes visited. Around phase-transition (most critical region):  DynBundl shows considerable improvement in #NV and CPU time  FBS remains significant in most data-sets. For the data-set shown, DynBndl produces 26 robust solutions in less time than FC needs to produce 1 solution. Effect of domain size:  Gains of DynBndl increase with domain size.  Idea: Explore the use of DynBndl in databases where large domains are typical. Relational constraint Join-condition constraint R1.AR1.BR1.C R2.AR2.BR2.C R1 R2 Sorting-based bundling algorithm Sort-merge join algorithm based on dynamic bundling  Computes the join by finding all solutions of the CSP using DynBndl.  Reduces number of tuples compared in the main memory.  Is memory efficient and produces compacted results, saving –I/O for the next operator and –disk space (and network bandwidth in distributed databases). Experiments  Real-world problem: 3 relations; 4 attributes; largest table: 300 tuples –Compaction rate achieved: 2.26 (69 tuples in 32 nested tuples)  Random data-set: Relations with same schema as example; each relation: 10’000 tuples; memory size: 4’000 tuples; page size 200 tuples. –Compaction rate achieved: 1.48 Task: Join query V3V3 {d} {a, b, d}{a, b, c} {c, d, e, f} V4V4 V2V2 V1V1 Binary CSP Partition Unequal partitions Symmetric partitions Bundle for R1.A: {1, 5} R1 A B C Choueiry, B.Y., Davis, A.M.: Dynamic bundling: Less Effort for More Solutions. SARA Freuder, E.C.: Eliminating Interchangeable Values in Constraint Satisfaction Problems. AAAI Haselböck, A: Exploiting Interchangeabilities in Constraint Satisfaction Problems. IJCAI Lal, A., Choueiry, B.Y., Freuder, E.C.: Neighborhood Interchangeability and Dynamic Bundling for Non-Binary Finite CSPs. CSCLP Lal, A., Choueiry, B.Y.: Constraint Processing Techniques for Improving Join Computation. CDB 04. {1, 2} {3} {1, 2} {1, 3} {3} No-good bundle V D C A B Solution bundle Constraint Satisfaction Problems {c, d, e, f } V3V3 {d} {a, b, d}{a, b, c} V4V4 V2V2 V1V1 Bundling is about exploiting interchangeability relations in backtrack search to produce robust, multiple solutions. This research is supported by a Maude Hammond Fling Faculty Research Fellowship and NSF CAREER Award # Experiments were conducted utilizing the Research Computing Facility of the University of Nebraska-Lincoln # NV in DynBndl # NV in FC First Bundle Size Tightness n = 20, a = 10 p 2 = 0.25 c 3 = 3 c 4 = DynBndl FC n = 20, a = 10 p 2 = 0.25 c 3 = 3 c 4 = 2 Tightness Overhead due to large FBS (upto 1200) at low tightness Maximum gains occur around phase- transition area CPU time [ms] Dynamic Bundling for Non-Binary CSPs Interchangeability in non-binary CSPs We show how to compute NI for non-binary constraints by [4]: 1.Building a data-structure, called the non-binary discrimination tree (nb- DT), determines the NI sets of a variable given a constraint that applies to the variable. 2.Intersecting the NI sets from the nb-DTs of a set of constraints yields the domain partition of the variable given the constraints.  Tests carried out on random CSPs  Parameters: n (number of variables), a (domain size), p 2 (proportion of binary constraints), c 3 / c 4 (number of ternary / quaternary constraints).  Criteria: FBS (First Bundle Size), CPU time, number of nodes visited (NV), and number of constraint checks.  partitions domains in a memory efficient manner.  fits into the iterator model of databases and produces one bundle at a time. Future Research Directions References