Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs1 Foundations of Constraint Processing CSCE421/821, Fall 2004:

Slides:



Advertisements
Similar presentations
Hybrid BDD and All-SAT Method for Model Checking Orna Grumberg Joint work with Assaf Schuster and Avi Yadgar Technion – Israel Institute of Technology.
Advertisements

Non-Binary Constraint Satisfaction Toby Walsh Cork Constraint Computation Center.
Interchangeability in Constraint Programming Shant Karakashian, Robert J. Woodward, Berthe Y. Choueiry, Steven D. Prestwich and Eugene C. Freuder 1.
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
Foundations of Constraint Processing More on Constraint Consistency 1 Foundations of Constraint Processing CSCE421/821, Spring
Outline Interchangeability: Basics Robert Beyond simple CSPs Relating & Comparing Interchangeability Shant Compacting the Search Space – AND/OR graphs,
Foundations of Constraint Processing, Spring 2008 April 16, 2008 Tree-Structured CSPs1 Foundations of Constraint Processing CSCE421/821, Spring 2008:
Query Evaluation. An SQL query and its RA equiv. Employees (sin INT, ename VARCHAR(20), rating INT, age REAL) Maintenances (sin INT, planeId INT, day.
A First Practical Algorithm for High Levels of Relational Consistency Shant Karakashian, Robert Woodward, Christopher Reeson, Berthe Y. Choueiry & Christian.
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.
1 Refining the Basic Constraint Propagation Algorithm Christian Bessière and Jean-Charles Régin Presented by Sricharan Modali.
Foundations of Constraint Processing, Spring 2008 Evaluation to BT SearchApril 16, Foundations of Constraint Processing CSCE421/821, Spring 2008:
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
Anagh Lal Monday, April 14, Chapter 9 – Tree Decomposition Methods Anagh Lal CSCE Advanced Constraint Processing.
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 Evaluation to BT Search 1 Foundations of Constraint Processing CSCE421/821, Spring
Foundations of Constraint Processing, Fall 2005 Sep 20, 2005BT: A Theoretical Evaluation1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Cache Conscious Indexing for Decision-Support in Main Memory Pradip Dhara.
Hierarchical Constraint Satisfaction in Spatial Database Dimitris Papadias, Panos Kalnis And Nikos Mamoulis.
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables,
Constraint Systems Laboratory March 26, 2007Reeson–Undergraduate Thesis1 Using Constraint Processing to Model, Solve, and Support Interactive Solving of.
5/6/2004J.-H. R. Jiang1 Functional Dependency for Verification Reduction & Logic Minimization EE290N, Spring 2004.
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:
Applying Constraint Satisfaction Techniques to AI Planning Problems Daniel Buettner Constraint Systems Laboratory Department of Computer Science and Engineering.
CONSTRAINT PROGRAMMING Computer Science Seminar April 9 th, 2004 Kerem Kacel.
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
Problem Solving with Constraints Lookahead Schemas 1 Foundations of Constraint Processing CSCE496/896, Fall
Constraint Systems Laboratory Presented by: Robert J. Woodward, Amanda Swearngin 1 Berthe Y. Choueiry 2 Eugene C. Freuder 3 1 ESQuaReD Laboratory, University.
CS4432: Database Systems II Query Processing- Part 2.
CP Summer School Modelling for Constraint Programming Barbara Smith 3. Symmetry, Viewpoints.
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 2012 Odds and Ends: Modeling Examples & Graphical Representations 1Odds & Ends Foundations of Constraint Processing.
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.
Foundations of Constraint Processing Constraint Graphical Models 1Odds & Ends Foundations of Constraint Processing CSCE421/821, Fall
Tractable Symmetry Breaking for CSPs with Interchangeable Values P. Van Hentenryck, P. Flener, J. Pearson and M. Agren IJCAI 2003 Presented by: Shant Karakashian.
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
1 Minggu 6, Pertemuan 12 Query Processing Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0.
Hybrid BDD and All-SAT Method for Model Checking
Structure-Based Methods Foundations of Constraint Processing
A First Practical Algorithm for High Levels of Relational Consistency
Empirical Comparison of Preprocessing and Lookahead Techniques for Binary Constraint Satisfaction Problems Zheying Jane Yang & Berthe Y. Choueiry Constraint.
Database Management Systems (CS 564)
Sidharth Mishra Dr. T.Y. Lin CS 257 Section 1 MH 222 SJSU - Fall 2016
CSPs and Relational DBs
Foundations of Constraint Processing
Structure-Based Methods Foundations of Constraint Processing
Problem Solving with Constraints
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Foundations of Constraint Processing All questions to Piazza
Evaluation of (Deterministic) BT Search Algorithms
Lookahead Schemas Foundations of Constraint Processing
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
Foundations of Constraint Processing All questions to Piazza
Evaluation of (Deterministic) BT Search Algorithms
Problem Solving with Constraints
Problem Solving with Constraints
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Presentation transcript:

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs1 Foundations of Constraint Processing CSCE421/821, Fall 2004: Anagh Lal Avery Hall, Room 123D Interchangeability in CSPs

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs2 Outline Exploiting problem structure Interchangeability: Introduction Interchangeability: Types Search with Interchangeability Non-binary CSPs: Challenges and approach Databases: Challenges and approach

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs3 Exploit problem structure Declared symmetries [Glaisher 1874; Ellman 1993] –Applies to specific class of problems –Requires that a user or designer know the structure of the problem Discover symmetries –Solver discovers symmetries called interchangeability –Symmetry detection partitions the domain of variables

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs4 Idea V3V3 {c, d, e, f } {d} {a, b, d}{a, b, c} V4V4 V2V2 V1V1 Consider V 2 Domain value Consistent with c V 3 (a, b, d) V 4 (a, b) d V 3 (a, b) V 4 (a, b, c) e,f V 3 (a, b, d) V 4 (a, b, d)

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs5 Interchangeability: Basics Two interchangeable values of a variable behave in the same way –Globally (likely intractable) or –Locally (tractable) Interchangeable values are redundant Interchangeable values can be placed in a bundle and treated as a single value { c d e, f } V2V2

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs6 Advantages Cluster or club together values e and f to form a bundle. Search effort reduces –Fewer nodes are visited Solutions produced may represent more than one solution –Solution space is compacted. ce, fd d V1V1 V2V2 S cefd d V1V1 V2V2 S

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs7 Full Interchangeability Full Interchangeability (FI) –All constraints constraints are considered Even when they do not apply to the variable –Two values of a variable are Full Interchangeable if on replacing one with the other gives another solution –Computing FI requires finding all solutions V3V3 {c, d, e, f } {d} {a, b, d}{a, b, c} V4V4 V2V2 V1V1

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs8 Neighborhood Interchangeability Restricted to neighborhood of a variable Easier to compute NI than FI Compute bundles and store for use during search V3V3 {c, d, e, f } {d} {a, b, d}{a, b, c} V4V4 V2V2 V1V1

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs9 Computing NI Discrimination Tree (DT) –Data structure for computing bundles of a variable. Only the constraints that apply to the variable are considered Requires an ordering of values to be followed

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs10 Building the DT Let us work with an example on the board.

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs11 Static versus Dynamic NI Static: Bundles computed prior to search Dynamic: Bundles computed during search S cd, e, f d V1V1 V2V2 Dynamic bundling Static bundling ce, fd d V1V1 V2V2 S cefd d V1V1 V2V2 S

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs12 Finding all solutions Dynamic bundling has strong results –Guaranteed no more expensive than forward checking –Guaranteed no more expensive than static bundling –Guaranteed to produce larger bundles than static bundling

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs13 Finding one solution Traditionally dynamic bundling was thought to be an overkill for finding one solution Theoretical claims can not be made Show empirically that dynamic bundling is effective for finding one solution also

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs14 Extending to non-binary Now we start getting into my work, finally! Non-binary CSP: CSP with at least one constraint of arity greater than 2. Many problems modeled more naturally by non-binary constraints –Theoretically all non-binary CSPs can be decomposed to binary –Binary version may not be a good choice all the time

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs15 Non-binary CSPs Informal introduction Representation C4C4 {1, 2, 3, 4, 5, 6} {1, 2, 3} C2C2 C1C1 C3C3 Constraint Variable

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs16 The Challenges Constraints of different arities cause problems –Not possible to make one composite DT like structure –Comparing different length tuples (set of variable-value pairs) is awkward Handling “Partially instantiated” constraints

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs17 Bundling non-binary CSPs Data structure used: non-binary Discrimination Tree (DT) For bundling nb-CSP variables –Create a non-binary DT for each constraint that applies to the variable Note difference from binary: All constraints were in one DT –Intersect the bundles from all the nb-DTs to get the bundles

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs18 The reason behind the gains A no-good is a partial instantiation that does not lead to a solution When search with bundling BTs on a no good a larger search space is eliminated Of course, the same logic applies to a solution bundle {1, 2} {3} {1, 2} {1, 3} {3} No-good bundle V D C A B Solution bundle

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs19 Some results # NV in DynBndl # NV in FC First Bundle Size Tightness n = 20, a = 10 p 2 = 0.25 c 3 = 3 c 4 = 2

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs20 Some results [2] 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]

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs21 Moving on to databases Observations – The gains due to dynamic bundling are more for larger domain sizes –For finding all solutions bundling is always better –Bundling produces compact solution spaces Deduction –Lets try it in Databases

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs22 Database facts & challenges Database is about I/O, CPU comparisons don’t matter Data does not fit in memory Memory efficiency is key to database algorithms Database query processing algorithms provide an iterator interface to the query engine Dynamic bundling as is, does not fit!!

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs23 How did we handle it for DB A new bundling algorithm –No DTs –Sort constraints (the tables of the DB), use the structure introduced by sorting to detect bundles Model search with bundling to fit the framework of query processing algorithms (join algorithm, in particular)

Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs24 Partition Unequal partitions Symmetric partitions Bundle {1, 5} R1 A B C Current bundle of R1.A = {1, 5} Computing a bundle of R1.A