reformulating constraint satisfaction problems with
play

Reformulating Constraint Satisfaction Problems with Application to - PowerPoint PPT Presentation

Reformulating Constraint Satisfaction Problems with Application to Problems with Application to Geospatial Reasoning K. Bayer 1 M. Michalowski 2 B.Y. Choueiry 1,2 C.A. Knoblock 2 1 Constraint Systems Laboratory Constraint Systems Laboratory


  1. Reformulating Constraint Satisfaction Problems with Application to Problems with Application to Geospatial Reasoning K. Bayer 1 M. Michalowski 2 B.Y. Choueiry 1,2 C.A. Knoblock 2 1 Constraint Systems Laboratory Constraint Systems Laboratory University of Nebraska-Lincoln 2 Information Sciences Institute University of Southern California Supported by NSF CAREER Award #0133568 and AFOSR grants FA9550-04-1-0105 and FA9550-07-1-0416 Constraint Systems Laboratory 10/2/2007 SARA 2007 1

  2. Contributions • BID problem as a CSP [Michalowski & Knoblock, AAAI 05] – Improved constraint model – Showed original BID problem is in P – Custom solver • Four new reformulation techniques for CSPs 1. Query reformulation 2. Domain reformulation 3. Constraint relaxation 4 4. Reformulation via symmetry detection Reformulation via symmetry detection • Applying the reformulations to the BID problem Constraint Systems Laboratory 10/2/2007 SARA 2007 2

  3. Outline • Background • BID: CSP model & custom solver • Reformulation techniques q – Description – General use in CSPs – Application to BID – Evaluation on real-world BID data Evaluation on real world BID data • Conclusions & future work Constraint Systems Laboratory 10/2/2007 SARA 2007 3

  4. Abstraction & Reformulation Original problem Reformulated problem Reformulation technique q • Original formulation Original formulation • Reformulated formulation Reformulated formulation • Original query • Reformulated query … may be an approximation may be an approximation Original space Reformulated space Φ (S l ti Φ (Solutions( P o )) ( P )) Solutions( P o ) Solutions( P r ) Constraint Systems Laboratory 10/2/2007 SARA 2007 4

  5. Constraint Satisfaction Problems • Formulation : F = ( V, D, C ) – V = set of variables – D = set of their domains – C = set of constraints restricting the acceptable combination of C t f t i t t i ti th t bl bi ti f values for variables • Query: All solutions, a single solution, etc. < 2,4,6,9 3,5,7 • Solved with < < < < < – Constraint propagation 3,5,7 5,6,7,8 1,6,11 = = < – Search < < 1,2,10 8,9,11 • Term: variable-value pair (vvp) Constraint Systems Laboratory 10/2/2007 SARA 2007 5

  6. Issue: finding Ken’s house Google Maps Yahoo Maps Actual location Microsoft Live Local (as of November 2006) Constraint Systems Laboratory 10/2/2007 SARA 2007 6

  7. Building Identification (BID) problem • Layout: streets and buildings S1 S2 B2 B2 B1 B3 B4 = Building S3 = Corner building B6 B6 B7 B7 B10 B10 Si = Street B5 B8 B9 • Phone book Ph b k – Complete/incomplete S1#1, S1#4, S1#8, S2#7, S2#8, S3#1, – Assumption: all addresses in p S3#2, S3#3, S3#15, phone book must be used … Constraint Systems Laboratory 10/2/2007 SARA 2007 7

  8. Basic (address numbering) rules • Ordering – Numbers increase/decrease along a street g • Parity – Numbers on a given side of a street are odd/even Parity Ordering g B1 B3 Odd < < Even B1 B2 B3 B2 B4 Constraint Systems Laboratory 10/2/2007 SARA 2007 8

  9. Additional information Landmarks Landmarks Gridlines Gridlines 1600 Pennsylvania Avenue S1 #198 S1 #208 B1 B2 B1 B1 B2 B2 S1 Constraint Systems Laboratory 10/2/2007 SARA 2007 9

  10. Query 1. Given an address, what buildings could it be? 2. Given a building, what addresses could it have? = Building B ildi = Corner building S1 S2 S1#1,S1#4, B2 S1#8,S2#7, Si = Street S2#8,S3#1, S2#8 S3#1 B1 B1 B3 B3 B4 B4 S3#2,S3#3, S3 S3#15 S1#1, B6 B7 B10 S3#1, , B5 B8 S3#15 B9 Constraint Systems Laboratory 10/2/2007 SARA 2007 10

  11. Outline • Background • BID model & custom solver • Reformulation techniques q • Conclusions & future work Constraint Systems Laboratory 10/2/2007 10/2/2007 SARA 2007 11 11

  12. CSP model IncreasingEast S2 S2 • B1 B2 B1c • S1 • OddOnNorth • B2 B1 • Optional: grid constraints B5 B3 B4 Constraint Systems Laboratory 10/2/2007 SARA 2007 12

  13. Example constraint network Variable Ordering Constraint O Phone book Constraint Phone-book Constraint P B2-corner S1 S2 B1-corner B2 O O O IncreasingEast B1 B3 B4 P S3 S3 B3 P B6 B7 B10 B1 IncreasingNorth B5 B8 B2 B9 OddOnNorthSide O O O O S1#1 S1#4 S1#1,S1#4, B4 B4 B5 B5 B6 B6 = Building O S1#8,S2#7, = Corner building S2#8,S3#1, S3#2,S3#3, O B8 Si = Street B7 S3#15 B6-corner B9 OddOnEastSide O P B4-corner B8-corner Constraint Systems Laboratory 10/2/2007 SARA 2007 13

  14. Features of new model & solver • Improvement over previous work [Michalowski +, 05] • Model – Reflects topology – Reduces number of variables and constraint arity Reduces number of variables and constraint arity – Constraints can be declared locally & in restricted ‘contexts’ (feature important for Michalowski’s work) • Solver – Exploits structure of problem (backdoor variables) – Implements domains as (possibly infinite) intervals – Incorporates all reformulations (to be introduced) Constraint Systems Laboratory 10/2/2007 SARA 2007 14

  15. Outline • Background • BID model & custom solver • Reformulation techniques q – Query reformulation – AllDiff-Atmost & domain reformulation & – Constraint relaxation – Reformulation via symmetry detection Reformulation via symmetry detection • Conclusions & future work Constraint Systems Laboratory 10/2/2007 10/2/2007 SARA 2007 15 15

  16. Query in the BID • Problem: BID instances have many solutions B1 B2 B3 B4 2 4 6 8 B1 B2 B3 B4 2 4 8 10 2 4 8 12 Phone book: {4 8} Phone book: {4,8} 4 4 8 8 10 10 12 12 4 6 8 10 4 6 8 12 We only need to know which values (address) appear in at least one solution for a variable (building) Constraint Systems Laboratory 10/2/2007 SARA 2007 16

  17. Query reformulation Original BID Reformulated BID Query Query: Query: reformulation Find all solutions, , For each variable-value pair, p , Collect values for variables determine satisfiability Original query Reformulated query Single counting problem Many satisfiability problems All solutions Per-variable solution Exhaustive search One path p Impractical when there are many Costly when there are few solutions solutions Constraint Systems Laboratory 10/2/2007 SARA 2007 17

  18. Evaluations: real-world data from El Segundo [Shewale] Case study Phone book Number of… Completeness Buildings Corner buildings Blocks NSeg125-c 100.0% 125 17 4 NSeg125-i 45.6% NSeg206-c 100.0% 206 28 7 NSeg206-I 50.5% SSeg131-c 100.0% 131 131 36 36 8 8 SSeg131-i 60.3% SSeg178-c 100.0% 178 46 12 SSeg178-i g 65.6% Previous work did not scale up beyond 34 bldgs, 7 corner bldgs, 1 block Constraint Systems Laboratory 10/2/2007 SARA 2007 18

  19. Evaluation: query reformulation Incomplete phone book → many solutions → better performance Case study y Original query g q y New query [s] q y [ ] NSeg125-i >1 week 744.7 NSeg206-i >1 week 14,818.9 SSeg131 i SSeg131-i >1 week >1 week 66 901 1 66,901.1 SSeg178-i >1 week 119,002.4 Complete phone book → few solutions → worse performance Case study Original query [s] New query [s] NSeg125-c 1.5 139.2 NSeg206-c NS 206 20.2 20 2 4 971 2 4,971.2 SSeg131-c 1123.4 38,618.4 SSeg178-c 3291.2 117,279.1 Constraint Systems Laboratory 10/2/2007 SARA 2007 19

  20. Generalizing query reformulation • Relational ( i , m )-consistency, algorithm R( i , m )C – For every m constraints For every m constraints • Compute all solutions of length s m • To generate tuples of length i – Space: O ( d s ) p ( ) s s i i • Reformulated BID query is R(1,| C |)C • Query reformulation for Relational ( i , m )-consistency – For each combination of values for i variables • Try to extend to one solution of length s s – Space: O ( ( ) d i ), i < s i Constraint Systems Laboratory 10/2/2007 SARA 2007 20

  21. Outline • Background • BID model & custom solver • Reformulation techniques q – Query reformulation – AllDiff-Atmost & domain reformulation & – Constraint relaxation – Reformulation via symmetry detection Reformulation via symmetry detection • Conclusions & future work Constraint Systems Laboratory 10/2/2007 10/2/2007 SARA 2007 21 21

  22. Domain reformulation • Domains in the BID are large • Min/max value? [3,8] B1 B2 B3 B4 (0,245] ∞ (0, ) Phonebook = {3,8} • Enumerate? {1,2,3,…,8} B1 B2 B3 B4 Constraint Systems Laboratory 10/2/2007 SARA 2007 22

  23. AllDiff-Atmost constraint • AllDiff-Atmost( A , k , d ) – The variables in A can be assigned at most k values Th i bl i b i d t t k l A from the set d { High-end graphics card, Low-end graphics card, g p , Sound card, At most one 10MB ethernet card, network card 100MB ethernet card, 1GB ethernet card 1GB ethernet card, …} Three expansion slots Constraint Systems Laboratory 10/2/2007 SARA 2007 23

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend