Compact Representations of Cooperative Path-Finding as SAT Based on Matchings in Bipartite Graphs Pavel Surynek presented by Filip Dvořák Faculty of Mathematics.

Slides:



Advertisements
Similar presentations
Discrete Mathematics University of Jazeera College of Information Technology & Design Khulood Ghazal Connectivity Lecture _13.
Advertisements

Time-Space Tradeoffs in Resolution: Superpolynomial Lower Bounds for Superlinear Space Chris Beck Princeton University Joint work with Paul Beame & Russell.
Cpt S 223 – Advanced Data Structures Graph Algorithms: Introduction
Constraint Based Reasoning over Mutex Relations in Graphplan Algorithm Pavel Surynek Charles University, Prague Czech Republic.
1 Matching Polytope x1 x2 x3 Lecture 12: Feb 22 x1 x2 x3.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
On the Boundary of Planning and Scheduling: A Study Roman Barták Charles University, Prague
Solving Difficult SAT Instances Using Greedy Clique Decomposition Pavel Surynek Faculty of.
1 NP-completeness Lecture 2: Jan P The class of problems that can be solved in polynomial time. e.g. gcd, shortest path, prime, etc. There are many.
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Graphs Graphs are the most general data structures we will study in this course. A graph is a more general version of connected nodes than the tree. Both.
February 23, 2015CS21 Lecture 201 CS21 Decidability and Tractability Lecture 20 February 23, 2015.
1 Polynomial Church-Turing thesis A decision problem can be solved in polynomial time by using a reasonable sequential model of computation if and only.
Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT.
1 Polynomial Church-Turing thesis A decision problem can be solved in polynomial time by using a reasonable sequential model of computation if and only.
1 Polynomial Church-Turing thesis A decision problem can be solved in polynomial time in a reasonable sequential model of computation if and only if it.
Solving Partial Order Constraints for LPO termination.
Lists A list is a finite, ordered sequence of data items. Two Implementations –Arrays –Linked Lists.
Reduction Techniques Restriction Local Replacement Component Design Examples.
SAT-Based Decision Procedures for Subsets of First-Order Logic
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
Using Search in Problem Solving
Coloring Algorithms and Networks. Coloring2 Graph coloring Vertex coloring: –Function f: V  C, such that for all {v,w}  E: f(v)  f(w) Chromatic number.
F INDING P LANS FOR R EARRANGING R OBOTS IN  - LIKE E NVIRONMENTS Pavel Surynek Charles University in Prague Faculty of Mathematics and Physics The Czech.
Physical Mapping of DNA Shanna Terry March 2, 2004.
The Theory of NP-Completeness 1. What is NP-completeness? Consider the circuit satisfiability problem Difficult to answer the decision problem in polynomial.
Nattee Niparnan. Easy & Hard Problem What is “difficulty” of problem? Difficult for computer scientist to derive algorithm for the problem? Difficult.
All that remains is to connect the edges in the variable-setters to the appropriate clause-checkers in the way that we require. This is done by the convey.
Computer Science 112 Fundamentals of Programming II Introduction to Graphs.
Design Techniques for Approximation Algorithms and Approximation Classes.
Introduction to Job Shop Scheduling Problem Qianjun Xu Oct. 30, 2001.
MCS 312: NP Completeness and Approximation algorithms Instructor Neelima Gupta
Tractable Class of a Problem of Goal Satisfaction in Mutual Exclusion Network Pavel Surynek Faculty of Mathematics and Physics Charles University, Prague.
Lecture 2: General Problem-Solving Methods. Greedy Method Divide-and-Conquer Backtracking Dynamic Programming Graph Traversal Linear Programming Reduction.
Techniques for Proving NP-Completeness Show that a special case of the problem you are interested in is NP- complete. For example: The problem of finding.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View BDDs.
1 Chapter 8 NP and Computational Intractability Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
1 Chapter 8 NP and Computational Intractability Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
Conformant Probabilistic Planning via CSPs ICAPS-2003 Nathanael Hyafil & Fahiem Bacchus University of Toronto.
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
Outline Intro to Representation and Heuristic Search Machine Learning (Clustering) and My Research.
NP-Complete problems.
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
Domain-Dependent View of Multiple Robots Path Planning Pavel Surynek Charles University, Prague Czech Republic.
Graphs A graphs is an abstract representation of a set of objects, called vertices or nodes, where some pairs of the objects are connected by links, called.
1 Directed Graphs Chapter 8. 2 Objectives You will be able to: Say what a directed graph is. Describe two ways to represent a directed graph: Adjacency.
Chapter 10: Trees A tree is a connected simple undirected graph with no simple circuits. Properties: There is a unique simple path between any 2 of its.
Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT.
28.
Making Path-Consistency Stronger for SAT Pavel Surynek Faculty of Mathematics and Physics Charles University in Prague Czech Republic.
CSC 413/513: Intro to Algorithms
SAT Solving As implemented in - DPLL solvers: GRASP, Chaff and
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Tommy Messelis * Stefaan Haspeslagh Burak Bilgin Patrick De Causmaecker Greet Vanden Berghe *
Roman Barták (Charles University in Prague, Czech Republic) ACAT 2010.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Graphs. Representations of graphs : undirected graph An undirected graph G have five vertices and seven edges An adjacency-list representation of G The.
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Planning as Satisfiability
(xy)(yz)(xz)(zy)
Watermarking of SAT Using Combinatorial Isolation Lemmas
CS154, Lecture 16: More NP-Complete Problems; PCPs
ICS 353: Design and Analysis of Algorithms
Richard Anderson Lecture 25 NP-Completeness
CSE 6408 Advanced Algorithms.
Graphs G = (V, E) V are the vertices; E are the edges.
CS154, Lecture 16: More NP-Complete Problems; PCPs
Richard Anderson Lecture 27 Survey of NP Complete Problems
Instructor: Aaron Roth
Presentation transcript:

Compact Representations of Cooperative Path-Finding as SAT Based on Matchings in Bipartite Graphs Pavel Surynek presented by Filip Dvořák Faculty of Mathematics and Physics Charles University in Prague Czech Republic ICTAI 2014, Limassol, Cyprus

Cooperative Path-Finding (CPF) Pavel Surynek  agents can move only  each agent needs to relocate itself  initial and goal location  Physical limitations  agents must not collide with each other  must avoid obstacles  Abstraction  environment – undirected graph G=(V,E) vertices V – locations in the environment edges E – passable region between neighboring locations  agents – items placed in vertices at most one agents per vertex at least one vertex empty to allow movements A B abstraction ICTAI 2014

CPF Formally Pavel Surynek  A quadruple (G, A, α 0, α + ), where  G=(V,E) is an undirected graph  A = {a 1,a 2,...,a μ }, where μ<|V| is a set of agents  α 0 : A  V is an initial arrangement of agents uniquely invertible function  α + : A  V is a goal arrangement of agents uniquely invertible function  Time is discrete – time steps  Moves/dynamicity  depends on the model  agent moves into unoccupied neighbor no other agent is entering the same target  sometimes train-like movement is allowed only the leader needs to enter unoccupied vertex 123 all moves at once ICTAI 2014

Solution to CPF Pavel Surynek  Solution of (G, A, α 0, α + )  sequence of arrangements of agents  (i+1)-th arrangement obtained from i-th by legal moves  the first arrangement determined by α 0  the last arrangement determined by α + all the agents in their goal locations The length of solution sequence = makespan  optimal/sub-optimal makespan v1v1 v2v2 v3v3 v5v5 v4v4 v8v8 v7v α0α0 α+α+ v6v6 v9v9 v1v1 v2v2 v3v3 v5v5 v4v4 v8v8 v7v7 2 3 v6v6 v9v9 1 [v 1, v 4, v 7, v 8, v 9, v 9, v 9 ] [v 2, v 2, v 1, v 4, v 7, v 8, v 8 ] [v 3, v 3, v 3, v 2, v 1, v 4, v 7 ] makespan= Time step: Solution of an instance of cooperative path-finding on a graph with A={1,2,3} ICTAI 2014

Motivation for CPF Pavel Surynek  Container rearrangement (agent = container)  Heavy traffic (agent = automobile (in jam))  Data transfer (agent = data packet)  Ship avoidance (agent = ship) ICTAI 2014

CPF as SAT Pavel Surynek  SAT = propositional satisfiability  a formula φ over 0/1 (false/true) variables  Is there a valuation under which φ evaluates to 1/true? NP-complete problem  SAT solving and CPF  powerful SAT solvers MiniSAT, clasp, glucose, glue-MiniSAT, crypto-MiniSAT, … intelligent search, learning, restarts, heuristics, …  CPF  SAT all the advanced techniques accessed almost for free  Translation  given a CPF Σ=(G, A, α 0, α + ) and a makespan η  construct a formula φ satisfiable iff Σ has a solution of makespan η (x ∨¬ y) ∧ ( ¬ x ∨ y) Satisfied for x = 1, y = 1 (x ∨¬ y) ∧ ( ¬ x ∨ y) Satisfied for x = 1, y = 1 ICTAI 2014

MATCHING Encoding of CPF (1) Pavel Surynek  How to encode a question if there is a solution of makespan η?  Build time expansion network  Represent arrangements of agents at steps 1,2…,η  step 1 … α 0  step η … α +  Encode dynamicity of CPF  consecutive arrangements must be obtainable by valid moves  Decompose encoding into two parts  MATCHING Encoding  (i) vertex occupancy by anonymous agents  occupied vertices in consecutive arrangements form a matching  (ii) mapping of agents to vertices  the same agent must be located at both ends of an edge traversed by anonymous agents ICTAI 2014

MATCHING Encoding of CPF (2) Pavel Surynek  A matching induced by movement of agents between i-th and (i+1)-th time step ICTAI 2014 [A,i] [B,i] [C,i] [D,i] [E,i] [A,i+1] [B,i+1] [C,i+1] [D,i+1] [E,i+1] A B C D E a1a1 a2a2 a3a3 A B C D E a1a1 a2a2 a3a3 i-th step (i+1)-th step a1a1 a2a2 a3a3 a1a1 a2a2 a3a3

MATCHING Encoding of CPF (3) Pavel Surynek  A series of matchings corresponding to a solution of CPF of a given makespan  existence of a series of matchings is a necessary condition for existence of a solution ICTAI 2014

MATCHING Encoding of CPF (4) Pavel Surynek  Agents are anonymous within the matching model  like a piece of commodity (water)  an agent at the beginning of a path (initial agent) may not correspond to the agent at the end (goal agent)  Map distinguishable agents to anonymous ones (to water)  if an edge is selected to the matching then the same agent must be located at both ends  distinguishable agents follow paths found by commodity (water) ICTAI 2014

MATCHING Encoding of CPF (5) Pavel Surynek  Propositional representation  (i) vertex occupancy by anonymous agents  a single propositional variable for occupied vertex/edge at a time step  used for the most of constraints regarding validity of a move  simple representation  (ii) vertex occupancy by distinguishable agents  agent located in a vertex at a time is expressed by a bit vector  anonymous occupancy at both ends of a selected edge imply equality between agents located its vertices  equality between bit vectors ICTAI 2014

Encoding Size Evaluation Pavel Surynek  Comparison with previous encodings  INVERSE [Surynek, PRICAI 2012]  based on bit-vectors  comparison with domain independent SATPlan [Kautz, Selman, 1999] and SASE encoding [Huang, Chen, Zhang, 2010]  ALL-DIFFERENT [Surynek, ICTAI 2012]  based on bit-vectors and all-different constraint ICTAI 2014 Setup: 4-connected grid, random initial arrangement and goal, 20% obstacles 16 time steps 32 time steps

Runtime Evaluation Pavel Surynek  Comparison with previous encodings + A*-based ID+OD [Standley, IJCAI 2011]  same setup as in the size evaluation |agents| ICTAI 2014 |agents|

Conclusions and Observations Pavel Surynek  CPF as SAT  Advantages  search techniques  advanced search techniques from SAT solvers accessed  modularity  exchangeable modules – SAT solver, encoding  Disadvantages  energy extensive solutions  agents move too much  MATCHING Encoding  space efficient  small number of variables and clauses  time efficient  can be solved faster than previous encodings  SAT-based approach with MATCHING encoding outperforms A*-based approach ICTAI 2014