An Improved Algorithm for Maintaining Arc Consistency in Dynamic Constraint Satisfaction Problems Pavel Surynek Czech Technical University Prague

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

Constraint Satisfaction Patrick Prosser. An Example, Exam Timetabling Someone timetables the exams We have a number of courses to examine how many? Dept.
1 Today’s class Interleaving backtracking and consistency checking Variable-ordering heuristics Value-ordering heuristics Intelligent backtracking Marie.
Constraint Satisfaction Problems
Planning II: Partial Order Planning
Constraint Systems Laboratory February 18, 2009 CSP Modeling Examples CSP: Examples Industrial applications: scheduling, resource allocation, product configuration,
Maintaining Arc Consistency We have a constraint graph G of variables X 1,...X n, and constraint relations {X i  X j}, and each Xi has a value set V (X.
Constraint Based Reasoning over Mutex Relations in Graphplan Algorithm Pavel Surynek Charles University, Prague Czech Republic.
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
CIS Intro to AI 1 Interpreting Line Drawings & Constraint Satisfaction II Mitch Marcus CIS 391 – Fall 2008.
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
Artificial Intelligence Constraint satisfaction problems Fall 2008 professor: Luigi Ceccaroni.
CSP Yaron Kassner Winter Reminder Arc Consistency: the domains of pairs of variables are consistent. k-consistency: the domains of every k variables.
Maintaining Arc-consistency over Mutex Relations in Planning Graphs during Search Pavel Surynek Roman Barták Charles University, Prague Czech Republic.
Session B Wrap-up Summary and Commentary Roman Barták Charles University (Czech Republic)
1 Motivation Problem formulation should change to accommodate changes in real world! Some examples: delayed trains, flights, … broken machines, ill workers,
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.
4 Feb 2004CS Constraint Satisfaction1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3.
On-The-Fly Resolve Trace Minimization Ohad Shacham and Karen Yorav IBM Haifa Research Laboratory.
CPSC 322, Lecture 12Slide 1 CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12 (Textbook Chpt ) January, 29, 2010.
Artificial Intelligence Constraint satisfaction Chapter 5, AIMA.
Constraint Satisfaction Problems
Jean-Charles REGIN Michel RUEHER ILOG Sophia Antipolis Université de Nice – Sophia Antipolis A global constraint combining.
Constraint Satisfaction Problem Solving Chapter 5.
Chapter 5 Outline Formal definition of CSP CSP Examples
Distributed Scheduling. What is Distributed Scheduling? Scheduling: –A resource allocation problem –Often very complex set of constraints –Tied directly.
Constraint Satisfaction Problems
Slide 1 CSPs: Arc Consistency & Domain Splitting Jim Little UBC CS 322 – Search 7 October 1, 2014 Textbook §
CP Summer School Modelling for Constraint Programming Barbara Smith 1.Definitions, Viewpoints, Constraints 2.Implied Constraints, Optimization,
Constraint Satisfaction Problem:  Used to model constrained combinatorial problems  Important real-world applications: hardware & software verification,
I am Patrick Prosser I am a senior lecturer at Glasgow (and Strathclyde till mid April) I teach algorithms & data structures in java I am a member of.
Constraint Satisfaction Read Chapter 5. Model Finite set of variables: X1,…Xn Variable Xi has values in domain Di. Constraints C1…Cm. A constraint specifies.
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
Constraint Satisfaction CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
The Scientific Method. The Basic Steps l State the problem l Form a hypothesis l Test the hypothesis l Draw conclusions.
Solving Problems by searching Well defined problems A probem is well defined if it is easy to automatically asses the validity (utility) of any proposed.
Chapter 5 Constraint Satisfaction Problems
Principles of Intelligent Systems Constraint Satisfaction + Local Search Written by Dr John Thornton School of IT, Griffith University Gold Coast.
Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer.
Artificial Intelligence Tutorials
Maintaining Arc Consistency (MAC) MAC is the same as Back-tracking, but with calls to AC-3 interleaved... function Backtracking-Search(csp) returns.
An Introduction to Artificial Intelligence Lecture 5: Constraint Satisfaction Problems Ramin Halavati In which we see how treating.
CHAPTER 5 SECTION 1 – 3 4 Feb 2004 CS Constraint Satisfaction 1 Constraint Satisfaction Problems.
Monte-Carlo based Expertise A powerful Tool for System Evaluation & Optimization  Introduction  Features  System Performance.
Arc Consistency CPSC 322 – CSP 3 Textbook § 4.5 February 2, 2011.
1 Implicant Expansion Methods Used in The BOOM Minimizer Petr Fišer, Jan Hlavička Czech Technical University, Karlovo nám. 13, Prague 2
Making Path-Consistency Stronger for SAT Pavel Surynek Faculty of Mathematics and Physics Charles University in Prague Czech Republic.
An Exact Algorithm for Difficult Detailed Routing Problems Kolja Sulimma Wolfgang Kunz J. W.-Goethe Universität Frankfurt.
Constraint Satisfaction Problems/Programming ZUI 2012/2013.
Roman Barták (Charles University in Prague, Czech Republic) ACAT 2010.
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
Constraint Satisfaction Problem
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Bo Wang1, Yingfei Xiong2, Zhenjiang Hu3, Haiyan Zhao1,
Chapter 3: Finite Constraint Domains
Running example The 4-houses puzzle:
Heuristic Ordering for Asynchronous Backtracking
Support for Managing Design-Time Decisions
Constraints and Search
at Glasgow (and Strathclyde till mid April)
Constraint satisfaction problems
Constraint Graph Binary CSPs
Constraint satisfaction problems
Presentation transcript:

An Improved Algorithm for Maintaining Arc Consistency in Dynamic Constraint Satisfaction Problems Pavel Surynek Czech Technical University Prague Roman Barták Charles University Prague

Problem area Real world = dynamic world practical problems change continuously difficult to capture by static formulation solution must reflect that changes Dynamic CSP A CSP from which constraints can be retracted or to which constraints can be added in arbitrary order.

Existing approaches to DCSPs Search for robust solution the solution is still valid for the problem after a small change Reconstruction of the solution the solution is locally repaired after a change Minimal perturbation problems solutions minimizing that local repair Reusing the reasoning process our approach: maintaining arc consistency

Why dynamic arc consistency ? Arc consistency simplifies the problem Interactive problems Interactive preparation of consistent a problem peptide synthesis determination of RNA structures timetabling Search algorithms Decision = addition of a constraint Undoing decision = retraction of a constraint

Current situation DnAC-4 (filtration based on AC-4) quite fast large memory consumption DnAC-6 (filtration based on AC-6) so far fastest algorithm for maintaining AC large memory consumption complicated data structures AC|DC (filtration based on AC-3) simple low memory consumption slow AC3.1|DC (filtration based on AC-3.1) fast larger memory consumption uses additional data structures no additional data structures

3 phases of constraint retraction Initialization phase restores values deleted by the retracted constraint from domains of its variables when propagating through it for the first time Propagation phase restores values that can be added due to previous domain extensions (like reverted AC) Filtration phase removes inconsistent values (standard AC)

A new algorithm AC|DC-2i Record information during addition of constraints via AC-3 justifications (like DnACs, neighbor in which lost all supports) and value removal time Restore only most promising values use removal times and justifications to identify values to restore new support in justification variable that was deleted before restored value Optionally use AC-3.1  AC3.1|DC-2i

B:2342/D 6 3/D 9 Constraint addition by AC|DC-2i E: B=D (1) C=D (3) A<C (2) C≠E (4) order number when the constraint is added A:2343 justification for value removal Variable Time 4/C 2 Justifications and removal times are recorded during addition of constraints by AC-3 C:12341/A 3 2/A 4 3/E 7 D:12341/B 1 2/C 5 3/C 8

B:242/D 6 3/D 9 Constraint retraction by AC|DC-2i E: B=D (1) C=D (3) A<C (2) C≠E (4) D:24 1/B 1 C:124 A:23434/C 2 1/A 3 2/A 4 2/C 5 3/E 7 3/C 8 Constraint A<C is removed from the problem Initialization:restore values deleted when propagating A<C Constraint A<C is removed from the problem Propagation:domain extensions are propagated Filtration:remove inconsistent values (re-establish AC) 1/D 10

Experimental results Runtime comparison of retraction from a consistent state RCSP(100,50,0.5,p 2 )

Experimental results Runtime of constraint addition RCSP(100,50,0.5,p 2 )

Experimental results Memory consumption Domain size (d) Tightness of constraints (100*p 2 ) 71%79%84%87%89%90%91%92% DnAC-62MB4MB6MB7MB9MB10MB12MB13MB AC|DC<1MB AC3.1|DC2MB3MB5MB 7MB 9MB10MB AC|DC-2i<1MB AC3.1|DC-2i2MB3MB5MB 7MB 9MB10MB RCSP(100,d,0.5,p 2 )

Conclusions New algorithm for maintaining arc consistency AC|DC-2i practical time of constraint retraction better than DnAC-6 (so far fastest) low memory consumption (like simple AC|DC) Optionally use AC-3.1  AC3.1|DC-2i improves time of constraint addition larger memory consumption