Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "An Improved Algorithm for Maintaining Arc Consistency in Dynamic Constraint Satisfaction Problems Pavel Surynek Czech Technical University Prague"— Presentation transcript:

1 An Improved Algorithm for Maintaining Arc Consistency in Dynamic Constraint Satisfaction Problems Pavel Surynek Czech Technical University Prague pavel.surynek@seznam.cz Roman Barták Charles University Prague roman.bartak@mff.cuni.cz

2 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.

3 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

4 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

5 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

6 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)

7 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

8 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

9 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

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

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

12 Experimental results Memory consumption Domain size (d)2030405060708090 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 )

13 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


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

Similar presentations


Ads by Google