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

Choosing an Order for Joins
Interchangeability in Constraint Programming Shant Karakashian, Robert J. Woodward, Berthe Y. Choueiry, Steven D. Prestwich and Eugene C. Freuder 1.
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
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.
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,
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.
 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.
A New Efficient Algorithm for Solving the Simple Temporal Problem Lin Xu & Berthe Y. Choueiry Constraint Systems Laboratory University of Nebraska-Lincoln.
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables,
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.
Support: UCARE grant awarded to Chris Reeson & CAREER Award # from the National Science Foundation. To the public: –Illustrate the power of CP For.
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.
Distributed Scheduling. What is Distributed Scheduling? Scheduling: –A resource allocation problem –Often very complex set of constraints –Tied directly.
Consistency Methods for Temporal Reasoning Lin XU Constraint Systems Laboratory Advisor: Dr. B.Y. Choueiry April, 2003 Supported by a grant from NASA-Nebraska,
Foundations of Constraint Processing, Fall 2004 November 18, 2004More on BT search1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
Query Processing Presented by Aung S. Win.
Constraint Satisfaction Problem:  Used to model constrained combinatorial problems  Important real-world applications: hardware & software verification,
SDQ for data set 5 (500 runs, 5 mins each) PDF for relative solution size for data set 5 (500 runs, 5 mins each) Statistics of solution size (500 runs,
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.
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.
Constraints and Search Toby Walsh Cork Constraint Computation Centre (4C) Logic & AR Summer School, 2002.
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.
ERA on an over-constrained problem A Constraint-Based System for Hiring & Managing Graduate Teaching Assistants Ryan Lim, Praveen Venkata Guddeti, and.
Tractable Symmetry Breaking for CSPs with Interchangeable Values P. Van Hentenryck, P. Flener, J. Pearson and M. Agren IJCAI 2003 Presented by: Shant Karakashian.
853 instances from the 2008 CP Solver Competition. Real full lookahead cl+proj-wR(*,m)C, which enforces R(*, m)C on each cluster, adds projection of constraints.
Shortcomings of Traditional Backtrack Search on Large, Tight CSPs: A Real-world Example Venkata Praveen Guddeti and Berthe Y. Choueiry The combination.
Problem Solving with Constraints CSPs and Relational DBs1 Problem Solving with Constraints CSCE496/896, Fall
BAHIR DAR UNIVERSITY Institute of technology Faculty of Computing Department of information technology Msc program Distributed Database Article Review.
Consistency Methods for Temporal Reasoning
A First Practical Algorithm for High Levels of Relational Consistency
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 and Relational DBs
Problem Solving with Constraints
Evaluation of (Deterministic) BT Search Algorithms
Constraints and Search
Evaluation of (Deterministic) BT Search Algorithms
Constraint Satisfaction Problems & Its Application in Databases
Evaluation of (Deterministic) BT Search Algorithms
Problem Solving with Constraints
Problem Solving with Constraints
A Qualitative Analysis of Search Behavior: A Visual Approach
Reformulating the Dual Graphs of CSPs
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. Neighborhood Interchangeability and Dynamic Bundling for Non-binary CSPs 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.Experiments demonstrating the benefits of dynamic bundling  Finding multiple, robust solutions.  Decreasing computational cost of search. 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 identifies values 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. Interchangeability & Bundling Modeling the join query as a CSP Attributes  variables Attribute values  domains Relations  relational constraints Join conditions  join-condition constraints Dynamic Bundling in Databases [4] Experiments : FC versus DynBndl 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  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  Compaction rate achieved in a real-world problem:  Compaction rate achieved on a random data-set: 1.48 (10’000 tuples; memory size: 4’000 tuples; page size 200 tuples). Task: Join query V3V3 {d} {a, b, d}{a, b, c} {c, d, e, f} V4V4 V2V2 V1V1 Binary CSP 1.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.: 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 This research was supported by a Maude Hammond Fling Faculty Research Fellowship, National Science Foundation CAREER Award # , and Science Foundation Ireland Grant 00/PI.I/C075. Experiments were conducted utilizing the Research Computing Facility of the University of Nebraska-Lincoln. Dynamic Bundling for Non-Binary CSPs Interchangeability in non-binary CSPs We show how to compute NI for non-binary constraints by: 1.Building the non-binary discrimination tree, nb-DT(V, C), a data- structure that determines the NI sets of a variable V given a constraint C defined on V. 2.Intersecting the NI sets from the nb-DTs of a set of constraints, which yields the domain partition of the variable V given the constraints.  Tested random CSPs, Model B, 1000 instances per sample  Criteria: FBS (First Bundle Size), CPU time, number of nodes visited (NV), and number of constraint checks.  Statistical tools: ANOVA and t-distribution for confidence intervals.  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 Anagh Lal and Berthe Y. Choueiry Constraint Systems Laboratory University of Nebraska-Lincoln Eugene C. Freuder Constraint Computation Center University College Cork Dynamic bundling (DynBndl) was thought to be an overkill. We show DynBndl is worthwhile for:  Finding all solutions: theoretically best  Finding first solutions: empirical evidence Because DynBndl:  Bundles solutions  Bundles no-goods (i.e., bundles of inconsistent partial solutions). Constraint Ratio p 2 c3c3 c 4 CR CR CR CR High tightness  Problems mostly unsolvable.  Minimal bundling overhead. Phase transition  Multiple solutions exist.  Maximum no-good bundling yields max savings in CPU time, NV, & CC. Low tightness  Large FBS: 33 at t = 0.35 (2254 in Dataset #13).  Small bundling overhead. Varying tightness Increasing domain size Tightness n=20 a=15 CR=CR Time [sec] #NV, hundreds t FBS #NV CPU time DynBndl FC DynBndl FC CRFBSCPU improvement % a=10a=15a=10a=15 CR CR CR CR Bundling Bundling = Search + neighborhood interchangeability [3] bundling Dynamic bundling = Search + dynamic NI [1] Increasing a, we note in the phase- transition area:  FBS increases (more chances for symmetry).  CPU time decreases (better no-good bundling). The benefits of DynBndl increase with increasing domain size: Use DynBndl in database applications where large domains are typical. Partition Unequal partitions Symmetric partitions Bundle for R1.A: {1, 5} R1 A B C