On the Computational Complexity of Multi- Agent Pathfinding on Directed Graphs Albert-Ludwigs-Universität Freiburg Bernhard Nebel University of Freiburg, Germany ICAPS 2020
Multi-Agent Path Finding Given : A set of agents A , an undirected, simple graph G = ( V , E ), an initial state modelled by an injective function α 0 : A → V and a goal state modelled by another injective function α ∗ : A → V . Question : Can α 0 be transformed into α ∗ by movements of single agents without collisions? v 1 v 2 v 3 v 4 Can we find a plan to move the square agent S to v 3 and the circle agent C to v 2 ? Yes, we can! ICAPS 2020 Bernhard Nebel – diMAPF 2 / 9
Computational properties of MAPF Deciding MAPF plan existence can be solved in O ( n 3 ) time and the plan length can be bounded by O ( n 3 ) movement actions (Kornhauser, Miller & Spirakis 84). Finding a shortest plan is NP-hard (Goldreich 84, Ratner & Warmuth 86). A number of variations of the problem (e.g. parallel movements) have been studied and a number of algorithms have been devised since then. Open problem since 1984: What is the computational complexity of MAPF on directed graphs ( diMAPF )? ICAPS 2020 Bernhard Nebel – diMAPF 3 / 9
Special case of diMAPF diMAPF solvability is a polynomial problem on strongly bi-connected directed graphs, provided there are at least 2 unoccupied nodes (Botea, Bonusi & Surynek 18, Botea, & Surynek 15). The authors plan to extend their analysis to other classes of digraphs. ICAPS 2020 Bernhard Nebel – diMAPF 4 / 9
Complications with DAGs In undirected graphs and strongly bi-connected graphs, one can sort of restore a partial state after some agents have been moved to some other places. There are no dead ends for solvable instances. In DAGs you can easily fail! v 1 v 2 v 3 v 4 Order matters! You need to look into the future. ICAPS 2020 Bernhard Nebel – diMAPF 5 / 9
A lower bound for diMAPF Theorem diMAPF solvability is NP-hard. Proof sketch. collector clause evaluator v T v c 2 : c 2 3 v c 1 : c 1 x ′ 3 v x 3 : x 3 v x ′ 3 : x ′ 3 v F Reduction from 3SAT. 3 v T v x ′ 2 : x ′ 2 2 Example reduction for 1 : x ′ v x ′ x ′ 2 v x 2 : x 2 1 ( x 1 ∨ x 2 ∨¬ x 3 ) ∧ ( ¬ x 1 ∨ v F 2 x 2 ∨ x 3 ): v T 1 x ′ 1 v x 1 : x 1 v F 1 x 1 x 2 x 3 c 1 c 2 f 1 f 2 f 3 f 4 f 5 f 6 v 4 v 8 v 9 v 10 v 11 v 1 : f 1 v 2 : f 2 v 3 : f 3 v 5 : f 4 v 6 : f 5 v 7 : f 6 sequencer ICAPS 2020 Bernhard Nebel – diMAPF 6 / 9
An upper bound for diMAPF On DAGs, only polynomially many moves in each plan are possible, i.e., diMAPF on DAGs is NP-complete. On digraphs with cycles, however, one could generate exponentially many different configurations, so membership in NP is not obvious. Theorem diMAPF solvability on general directed graphs is in PSPACE. Proof sketch. diMAPF solvability can be understood as a special case of plan existence for propositional STRIPS. ICAPS 2020 Bernhard Nebel – diMAPF 7 / 9
A conditional upper bound for diMAPF Cycles in digraphs are the culprits that stop us from proving membership in NP. Hypothesis (Short solution hypothesis) Solution length for diMAPF on strongly connected digraphs is polynomial. Theorem diMAPF solvability is NP-complete, provided the short solution hypothesis is true. Proof sketch. Each agent can only enter a strongly connected component once, and leave it once. So if there are short solutions for all strongly connected components, there will be one for the overall graph. ICAPS 2020 Bernhard Nebel – diMAPF 8 / 9
Conclusion Identified problem that is open since more than 35 years (but did anybody notice that it was open?) Demonstrated that a Kornhauser-style algorithm for directed graphs is impossible. Results generalize to variations with parallel moves. Open problem: Is the short solution hypothesis true? ICAPS 2020 Bernhard Nebel – diMAPF 9 / 9
Recommend
More recommend