Routing Few Robots in a Crowded Network
Abstract
In Graph Coordinated Motion Planning, we are given a graph some of whose vertices are occupied by robots, and we are asked to route marked robots to their destinations while avoiding collisions and without exceeding a given budget on the number of robot moves. We continue the recent investigation of the problem [ICALP 2024], focusing on the parameter that captures the task of routing a small number of robots in a possibly crowded graph. We prove that the problem is W[1]-hard parameterized by even for , but fixed-parameter tractable parameterized by plus the treedepth of . We complement the latter algorithm with an NP-hardness reduction which shows that both parameters are necessary to achieve tractability.
Keywords and phrases:
graph coordinated motion planning, parameterized complexity, treedepthFunding:
Argyrios Deligkas: UKRI EPSRC grant EP/X039862/1.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Parameterized complexity and exact algorithmsEditors:
Pat Morin and Eunjin OhSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
In many diverse settings, we are faced with the task of efficiently routing a set of marked robots through an environment while avoiding collisions (both between the marked robots themselves and with other robots that may be present). While the meaning of “efficient” is context-dependent, the two most-studied efficiency measures are the makespan (optimizing the amount of time) and the energy (optimizing the total amount of movement). In this article, we investigate the latter measure and consider the graph-theoretic setting studied in previous works [26, 13, 16, 7, 14, 17, 8]. More specifically, our article employs the problem definition from the recent ICALP paper on the topic [7]111See also the discussion of related work at the end of this section and the formal definitions in Section 2.:
Intuitively, each marked robot is provided with an origin and a destination , while the free robots in only have origins but no destinations; these typically represent movable obstacles or robots without specified destinations. At each time step, we can move one222When minimizing energy, the considered serial motion model is equivalent to the parallel one without cyclical moves. robot from its current position to a neighboring unoccupied vertex, and a schedule is a sequence of moves that delivers all marked robots to their destinations.
While GCMP is in NP [32, 7], it remains NP-hard when restricted to the instances where (which we call GCMP1) [26], or where (which generalizes the ()-puzzle) [27, 9]. The authors of the preceding work [7] investigated the parameterized complexity of GCMP with respect to the two most natural parameterizations of the problem: the total number of robots and the budget . In particular, they showed that:
-
1.
GCMP1 is fixed-parameter tractable w.r.t. ;
-
2.
GCMP is fixed-parameter tractable w.r.t. plus the treewidth of ; and
-
3.
GCMP w.r.t. is W[1]-hard (and also in XP due to a trivial brute-force algorithm), but becomes fixed-parameter tractable when the input graphs have bounded local treewidth.
In this article, we take a refined look at the problem’s parameterized complexity by considering the number of marked robots as the parameter. We believe this perspective to be natural, as it better captures the setting where we need to navigate a small number of marked robots through a congested environment that may contain a large number of movable obstacles or other free robots. Given the NP-hardness of GCMP1, we cannot hope for tractability when parameterizing by alone. Our primary goal is to understand which additional restrictions (more specifically parameterizations) allow us to solve instances of GCMP with possibly many robots, but only few marked robots.
Contributions.
A natural first question in this line of enquiry is whether GCMP is fixed-parameter tractable w.r.t. . We note that the reduction underlying the aforementioned W[1]-hardness result for GCMP [7, Theorem 4] requires a large number of marked robots and completely breaks if we attempt to restrict . Nevertheless, as our first result, we provide a new, multi-layered reduction which strengthens the previous lower bound:
Theorem 1.
GCMP1 is W[1]-hard when parameterized by .
Intuitively, Theorem 1 can be seen as ruling out a uniformly polynomial algorithm for routing a single robot even if the budget is bounded by a constant.
The alternative to restricting is to aim for tractability by combining with natural graph-structural restrictions; this is the approach which yielded the bulk of the algorithmic contributions in several recent articles on the problem and its variants [13, 16, 7, 14, 17, 8]. Given the prominence of the graph parameter treewidth, a first question that arises here concerns the complexity of GCMP when parameterized by plus the treewidth of . Unfortunately, progress here seems difficult: the polynomial-time algorithm for GCMP1 on trees is highly non-trivial [26], and whether this result can be lifted to routing two marked robots on trees is a long-standing open question in the field. In other words, even an XP-algorithm for GCMP parameterized by in the special case of treewidth would be a breakthrough.
Instead, here we propose using a stronger restriction on –notably, its treedepth. Like treewidth, treedepth is a fundamental graph parameter that has close connections to the theory of sparsity [25] and has found applications as a parameter in a number of settings, ranging from space-efficient algorithms [24] through integer programming [20], model checking [19] and graph drawing [1, 3]. As our main algorithmic contribution, we prove:
Theorem 2.
GCMP is fixed-parameter tractable when parameterized by the number of marked robots plus the treedepth of the input graph.
The proof of Theorem 2 is non-trivial and does not directly follow from any of the previously developed techniques for treedepth-based algorithms on their own. For the proof, we partition instances of interest into three groups and provide different fixed-parameter algorithms for each of the three groups:
-
1.
Instances where the number of free vertices is small. Here, our main contribution is a structural result showing that every YES-instance admits a schedule whose length is bounded by a function of the combination of , the treedepth and the number of free vertices. Towards this, we show that such an instance has an optimal schedule in which at least one robot never moves from its initial position and moreover, such an “irrelevant” robot can be computed in FPT-time. We then show how this fact can be used to design a reduction rule that ultimately produces a graph of bounded size without affecting the solution size.
-
2.
Instances where is small.333To provide intuition, we use “small” and “large” to indicate whether or not a value is upper-bounded by a specific function of the parameter. This is by far the simplest case, as it follows by directly adapting the previous algorithm for GCMP parameterized by on graphs of bounded local treewidth [7, Theorem 5].
-
3.
Instances where both and the number of free vertices are large. This case is handled by providing a constructive procedure which correctly solves every instance of GCMP. The challenge here lies in the fact that if we do not outright reject the instance, then our procedure must terminate within at most steps on all graphs of bounded treedepth, including those where the walks used by the marked robots may overlap in complicated ways.
At this point, it is natural to ask whether Theorem 2 is tight in the sense of requiring both treedepth and to achieve tractability. On one hand, one can exclude fixed-parameter algorithms, as well as XP-algorithms, for GCMP w.r.t. alone due to the known NP-hardness of GCMP1. However, none of the existing lower bounds rule out such algorithms when parameterized by treedepth alone. As our final result, we close this gap by establishing:
Theorem 3.
GCMP is NP-hard even when restricted to planar graphs with treedepth at most nine.
Theorem 3 implies that neither of the two parameters in our main algorithmic result can be dropped, and is obtained via a reduction from 3D-Matching that is entirely different from the one in Theorem 1 and complements other known lower bounds for coordinated motion planning on treelike graphs [16, 17].
Further Related Work.
Coordinated motion planning problems – sometimes also called multirobot pathfinding or robot routing problems – have been extensively studied by several research communities, including computational geometry [2, 31, 21] and artificial intelligence [4, 30, 29, 22]. The energy-minimization variant of the problem (i.e., the one considered in this article) also featured in the Third Computational Geometry Challenge at SoCG 2021 [15].
While the classical complexity of several variants of coordinated motion planning was settled already in the ’90s [26], there has been a recent concentrated effort to obtain a deeper understanding of these problems via the lens of parameterized complexity. Apart from the previously mentioned work on GCMP [7], recent advances include a parameterized study of the setting with fast robots [14], fixed-parameter algorithms on solid grids [13], parameterized lower bounds for tree-like and other well-structured graphs [16, 17] and fixed-parameter approximation algorithms on trees [8]. We remark that the latter three articles primarily consider the task of makespan minimization in the parallel motion setting, which exhibits different complexity-theoretic behavior than the energy minimization setting targeted in our work. For instance, determining the existence of a schedule of constant makespan is NP-hard even when restricted to solid grid graphs [13], but schedules involving constant energy can be computed in polynomial time (and this can even be lifted to fixed-parameter tractability on graph classes of bounded local treewidth [7, Theorem 5]).
2 Preliminaries
All graphs considered in this paper are undirected and simple. We assume familiarity with standard graph-theoretic concepts and terminology [10] as well as with basic notions in parameterized complexity, including fixed-parameter tractability and W[1]-hardness [6, 11, 18]. For a subgraph of a graph and two vertices , we denote by the length of a shortest path in between and . For , we let and denote the sets and , respectively.
Treewidth and Treedepth.
Treewidth is a fundamental graph parameter which can be seen as a measure of how similar a graph is to a tree; trees have treewidth , while the complete -vertex graph has treewidth . A formal definition of treewidth will not be necessary to obtain our results; however, we will make use of Courcelle’s Theorem [5], which essentially says that problems expressible in a certain fragment of logic can be solved efficiently on graphs of bounded treewidth. Hence, we proceed by defining our other parameter of interest.
Definition 4 (Forest embedding and treedepth).
A forest embedding of a graph is a pair , where is a rooted forest and is a bijective function, such that for each , either is a descendant of , or is a descendant of . The depth of the forest embedding is the number of vertices in the longest root-to-leaf path in . The treedepth of a graph , denoted by , is the minimum over the depths of all possible forest embeddings of . When is connected, is a tree and we call it a tree embedding.
Below, we state three facts about treedepth which will be useful for our considerations.
Proposition 5 ([25]).
The treewidth of a graph is at most its treedepth.
Proposition 6 ([25]).
For a graph and any vertex , it holds that , where are the connected components of .
Proposition 7 ([25]).
For a graph , the maximum distance between any two vertices in is at most .
Problem Definition.
In our problems of interest, we are given an undirected graph and a set of robots where is partitioned into two sets and . Each , has a starting vertex and a destination vertex in and each is associated only with a starting vertex . We refer to the elements in the set as terminals. The set contains robots that have specific destinations they must reach, whereas is the set of remaining “free” robots. We assume that all the ’s are pairwise distinct and that all the ’s are pairwise distinct. A vertex is free at time step if no robot is located at at time step ; otherwise, is occupied. We use a discrete time frame , , to reference the sequence of moves of the robots and in each time step , exactly one robot moves from its current vertex to an adjacent free vertex.
A route for robot is a tuple of vertices in such that (i) and if and (ii) , either or . Put simply, corresponds to a “walk” in , with the exception that consecutive vertices in may be identical (representing waiting time steps), in which begins at its starting vertex at time step , and if then reaches its destination vertex at time step . Two routes and , where , are non-conflicting if , . Otherwise, we say that and conflict. Intuitively, two routes conflict if the corresponding robots are at the same vertex at the end of a time step.
A schedule S for is a set of pairwise non-conflicting routes , during a time interval such that at every time step , exactly one robot moves; i.e., there is with route such that and for every other robot with route , it holds . The (traveled) length of a route (or its associated robot) within S is the number of time steps such that . The total traveled length of a schedule is the sum of the lengths of its routes; this value is often called the energy in the literature (e.g., see [15]).
We denote by GCMP1 the restriction of GCMP to instances where . We remark that even though GCMP is stated as as a decision problem, all the algorithms provided in this paper are constructive and can output a corresponding schedule (when it exists).
3 The Hardness Results
In this section, we establish our lower bounds. We start by excluding algorithms for GCMP parameterized by treedepth alone: See 3
Next, we will prove that GCMP is W[1]-hard when parameterized by the energy even when we have only one marked robot, i.e., GCMP1. Hence, our results show that in order to derive any positive results it is necessary to combine the structural parameters of the graph and the number of marked robots.
To prove the W[1]-hardness for GCMP1, we provide a parameterized reduction from the W[1]-complete problem Multicolored Clique (MCC) parameterized by the number of colors. We describe the reduction here.
Theorem 1. [Restated, see original statement.]
GCMP1 is W[1]-hard when parameterized by .
Towards a proof for Theorem 1, we construct an instance of GCMP1 given an instance of MCC. Let consist of and a partitioning of into disjoint subsets. From this we construct an instance of GCMP1 that is a YES-instance if and only if there is a clique of size in . Furthermore, is bounded by a function of .
The main idea of the construction is to force , the only robot with a destination, to gradually choose “lanes” to traverse on his path from to . Every lane corresponds to exactly one vertex in . The construction and the precise selection of the budget force (i) the robot to choose exactly one lane (and thus vertex) of each color and (ii) the existence of an edge between any two vertices corresponding to chosen lanes. The combination of (i) and (ii) implies a -clique in . For an intuitive understanding of the reduction, see Figures 1(a) and 2 which illustrate the full construction through a simple example.
For the remainder of this section, we call a path empty (resp. full) if it consists solely of free (resp. occupied) vertices. We say we connect two disjoint sets of vertices and with a full (or empty) path of length , if we create a new path and connect (with an edge) to the vertices in and connect to the vertices in . The sets and are the endpoints of . If an endpoint is a singleton , we may directly refer to as the endpoint instead. We proceed with a formalization of the gadgets used in the reduction.
Decision Component.
Intuitively, the decision component is the part of the construction where will choose the aforementioned lanes, and it is depicted in reference to Figure 1(b). Let a lane be a full path of length . For each color , the component contains an induced subgraph called a layer consisting of many vertex-disjoint lanes – one for each vertex in .
The reason each lane has length precisely is that each vertex on it will be used to check adjacency between the vertex it represents in and a chosen vertex in one of the remaining colors. To facilitate this intuition, we use the following indexing for the individual vertices over the layers and lanes. Refer to Figure 1(b) for visual aid. For with and , we define as follows:
-
if , then is the -st vertex in the -th lane of the -th layer, and
-
if , then is the -th vertex in the -th lane of the -th layer.
Connect to each with an edge. For , connect and with an empty path of length . are the tiny separators. Let be the -th layer and let be the graph induced on all lanes of all layers. We add two more sets of paths, the clear paths and the return paths.
Create for every a free vertex . Then connect to with a full path of length . The set of all constitutes the clear paths. We define .
For every edge with , connect and with a full path of length . The set constitutes the return paths. Let the decision component be .
Separator Component.
The separator component is an empty path of length . The first vertex is connected to all vertices in . We further partition into and .
Test Component.
Connect and with a full path of length . Connect vertices in with vertices in and with full paths consisting of vertices, the so-called test paths. To define how the test paths are connected to the remainder of the graph, partition into the following sequence of consecutive subpaths: , , , , , …, , , .
-
1.
consists of a single vertex and is connected to with a test path.
-
2.
For each , we set (hence is empty and only listed for uniformity) and let . For , connect and with a test path.
-
3.
For each , we set and let . For each , we connect and with a test path.
-
4.
We set and let . Connect and with a test path. Then for , connect and with a test path.
Finally, subdivide every edge in , times. The vertices created in the subdivisions should not hold robots. The resulting path is the test component . Note that for , the vertex is incident to a clear path if . Otherwise it is incident to a test path. We set , where the terms have the values shown in Table 1. This completes the description of the reduction.
| Budget | Value | Use |
|---|---|---|
| Move from onto . | ||
| Move from onto . | ||
| Shift over clear paths. | ||
| Shift over return paths. | ||
| Shift over test paths. |
4 Fixed-Parameter Tractability Parameterized by Treedepth
In this section, we establish the following theorem:
Theorem 2. [Restated, see original statement.]
GCMP is fixed-parameter tractable when parameterized by the number of marked robots plus the treedepth of the input graph.
The proof of Theorem 2 is based on a win-win argument that distinguishes whether or not the number of free vertices in the underlying graph is upper-bounded by a function of the treedepth . We will assume henceforth that the underlying graph in the problem instance is connected; otherwise, the problem can be solved on each connected component separately.
4.1 The Case of Few Free Vertices
The main goal of this subsection is to prove the following lemma. Recall that denotes the number of marked robots, i.e., those in .
Lemma 8.
Let be an instance of GCMP where has treedepth at most and there are at most free vertices. If there is a schedule for , then there is an optimal schedule that uses energy at most for some computable function . Moreover, an optimal schedule (if it exists) can be computed in time .
In what follows, let be an instance of GCMP. We assume that robots are the marked robots. Let be a schedule for . A vertex set is said to be fully blocked in at time step if at the end of this time step, every vertex in is occupied by a robot from .
Definition 9 (Configurations).
A pseudo-configuration for is a pair where is a tuple of vertices and is a vertex set. Let . A configuration for is a pseudo-configuration where (i) , (ii) and (iii) . We say that a configuration is the starting configuration if for each , is the starting vertex of and is the set of starting vertices of the robots in . We say that a configuration is a destination configuration if for each , is the destination vertex of the robot .
The intuitive meaning of a configuration is that at any time step, a configuration precisely describes the positions of the robots in using the tuple and the positions of the robots in (which are essentially indistinguishable from each other) are given by the set . Naturally, we do not want two robots to occupy the same vertex of , hence we require that . Moreover, note that since we do not care about the destinations of the robots in , there could be multiple destination configurations.
Definition 10 (Moves between configurations).
We say that there is a move from a configuration to a configuration if:
-
either and and differ at exactly one index and ; or
-
and 444The symmetric difference is defined as: . has exactly two vertices and .
In the above definition, the first condition corresponds to moving exactly one of the robots in from the vertex to the vertex along an edge, and the second condition corresponds to moving one of the robots in between the vertices and while the rest remain stationary.
Definition 11 (Induced configurations).
Given a schedule for the instance , we define the configuration induced by at each time step in the natural way, that is, it is the tuple where is the vertex occupied by robot at time step and the robots in occupy exactly the vertices in at the same time step.
Definition 12 (Legal sequences).
A sequence of configurations is called legal if: (i) is the starting configuration; and (ii) is a destination configuration; and (iii) for every , there is a move from to .
Observation 13.
Suppose that a schedule for the instance takes time steps. For each , let denote the configuration induced by at time step . Then, is a legal sequence of configurations. Conversely, from every legal sequence of configurations , one can obtain a schedule for where the configuration induced by at time step is precisely .
We say that a legal sequence of configurations is optimal if its length is one plus the number of time steps in an optimal schedule.
Definition 14.
Consider two disjoint vertex sets and and a bijection . The bijection is defined as follows. For every , (i) if , then , (ii) if , then , and (iii) , otherwise.
The function above simply swaps the vertices of with the vertices of while keeping the remaining vertices the same. In what follows (Definition 15 to Lemma 17), fix a legal sequence of configurations for the instance .
Definition 15.
Consider two disjoint vertex sets and and a bijection . The operation of applying the bijection to from time step onwards involves defining a new sequence of pseudo-configurations as follows. For every , set . For every , (i) set ; and (ii) for every , set .
In words, mimics exactly, except that from time step onward, any vertex in (respectively, ) is swapped with its image (pre-image) under .
Applying the bijection to does not necessarily yield a sequence of configurations in general. However, we will demonstrate that when and the sets are chosen carefully, the pseudo-configurations in are in fact, configurations – this will be useful for our analysis.
Definition 16.
Let . We say that a pair of connected components and of are strongly isomorphic with respect to if there is a bijection such that is an isomorphism from to , and moreover, for every and , if and only if . We drop the explicit reference to if it is clear from the context. We also say that is a witness for and being strongly isomorphic.
Lemma 17.
Let and consider a pair of connected components and of that are disjoint from the set of terminals of . Suppose that and are strongly isomorphic with respect to , witnessed by . Suppose also that at time step , and are fully blocked in and both components are disjoint from the terminals of . Let denote the sequence of pseudo-configurations obtained by applying the bijection to from time step onward. Then, the following hold:
-
1.
The length of is the same as that of .
-
2.
The sequence is a legal sequence of configurations.
Lemma 18.
Let be an instance of GCMP with at most free vertices. Consider a set in and a set of connected components of such that:
-
they are pairwise strongly isomorphic with respect to ;
-
; and
-
is fully blocked at time step 0 and disjoint from the terminals of .
If there is a schedule for , then there is an optimal schedule in which is fully blocked at every time step.
The most important consequence of Lemma 18 can be easily summarized in the following, which enables us to remove an “irrelevant” vertex without affecting an optimal schedule.
Corollary 19.
Let be an instance of GCMP. Suppose there is a vertex that remains occupied at every time step of an optimal schedule by a robot . Then the energy used by an optimal schedule for is the same as the energy used by an optimal schedule for . Moreover, given an optimal schedule for , one for can be produced in polynomial time.
We next argue that if the graph is sufficiently large, then an irrelevant vertex can be found efficiently.
Lemma 20.
There are computable functions and an algorithm that, given a connected graph , a tree embedding of of depth at most and a number , runs in time and if has more than vertices, then it produces a set and a set of components of that are pairwise strongly isomorphic with respect to .
We are now ready to prove the main result of this subsection.
Proof of Lemma 8. .
We may assume that is connected. Otherwise, at most of the connected components of can contain a robot from and we simply multiply the bound obtained for a connected graph by a factor of . Consider a tree embedding of of depth . This can be computed in time [28, 23].
Let . If has more than vertices, then by Lemma 20, in time , we can compute a set and a set of components of that are pairwise strongly isomorphic with respect to . Since is chosen to be large enough compared to and , we may assume without loss of generality that is fully blocked at time step 0 and is also disjoint from the terminals of .
By Lemma 18 and Corollary 19, deleting the vertices in (and the robots occupying them) leads to a strictly smaller, equivalent instance. We repeat this exhaustively until we obtain an instance where the graph has at most vertices. Moreover, obtaining an optimal schedule (if one exists) for can be done by a brute-force computation on . Since we may assume that configurations do not repeat in an optimal schedule, the number of possible legal sequences is bounded by , where is the number of possible configurations, which is clearly bounded by a function of .
4.2 The Case of Many Free Vertices
We begin by noting that if , where is any computable function of and , then the problem is FPT. This follows by an adaptation of the proof of [7, Theorem 5]:
Lemma 21.
GCMP is FPT parameterized by .
Since, it is well know that , we get the following corollary.
Corollary 22.
GCMP is FPT parameterized by .
By Corollary 22 and Lemma 8, we may assume in what follows that both the budget and the number of free vertices are “large”. We start by establishing the following structural “subgraph-freeing” lemma:
Lemma 23.
Let be a connected subgraph in a connected graph , where has treedepth and contains at least many free vertices. There exists a polynomial-time computable schedule of length at most that frees up all the vertices in .
We use the above lemma to resolve the special case of GCMP where , that is, GCMP1.
Lemma 24.
Given an instance of GCMP1 with , in polynomial time we can compute a schedule for with a total travel length of at most .
Proof.
Let be an instance of GCMP1 whose underlying graph is . Let be the only robot in , and let and be its starting and destination vertices, respectively. Let be a shortest path from to in . Let be the connected component of containing . If the number of free vertices in is at least , then we can apply Lemma 23 to to free up all the occupied vertices in . (Note that by Proposition 7.) Afterwards, we route from to . Suppose now that the number of free vertices in is smaller than . Since , there is a connected component in other than that contains a free vertex; let be a free vertex in , and let be a shortest path from to in . Note again that by Proposition 7. Moreover, cuts from . We shift all robots, including , on by one vertex towards . We obtain a new instance with the same underlying graph , where the starting vertex of robot is a neighbor of . Moreover, is a cut-vertex between and , and hence this operation increases the distance between the starting vertex and the destination vertex of . We repeat the above argument on . Note that every time we are unable to free the chosen path for , the distance between its source and destination in the current instance increases by one from the previous iteration. Since the shortest path between any two vertices in has length at most , we repeat this operation polynomially-many times, afterwards, we can free an - path, and the total length traveled is at most .
We now show how the above lemma can be employed for routing all robots with destinations, in the case where both the budget and the number of free vertices are large. Before doing that in Lemma 26, we first establish the following auxiliary result:
Lemma 25.
Let be a connected graph and such that . Then there exists a separator of size at most and a set of many connected components of such that, for all , it holds that and . Moreover, we can compute and in FPT time parameterized by .
Lemma 26.
Given an instance of GCMP with , in FPT-time parameterized by we can compute a schedule for with a total travel length of at most .
Proof.
Note that , and hence by Lemma 25, we can find a set of vertices of size at most and a family of connected components in such that, for all , it holds that and . Without loss of generality, we can assume that, for all , does not contain a starting vertex or a destination vertex of any robot in .
Our goal is to navigate, one-by-one, the robots in to such that, when we navigate to , the robots are already in components and we perform the navigation in ; so none of the robots move when we navigate robot . Notice that the graph is connected, as each of the components provides the same connectivity as outside of , and that is connected to start with. Hence, has at least many free vertices, and we can navigate to using Lemma 24 with total travel length at most during this computation. However, there is one caveat. If during the execution of the schedule computed by Lemma 24, a robot , for , enters , we stop the execution of the schedule at that point and swap the names of robots and . That is, robot will be in , and hence we manged to navigate a robot (that has not been navigated before) to , and robot will be navigated at a later point.
When all robots in are in , we compute a minimum Steiner tree of in . We can compute a minimum Steiner tree in a graph in FPT-time parameterized by the number of terminals [12]. Moreover, since a shortest path between any two vertices in a graph of treedepth has length at most and we are connecting many terminals, it is easy to see that (as we can connect one terminal to the remaining ones by shortest paths), which is less than . We apply Lemma 23 to in . This frees all vertices of with a schedule of total travel length at most . Finally, we navigate the robots in inside , one by one, to their destinations in the right order. This can done by choosing the robot whose destination in is the farthest from , and navigating it to its destination in . Note that the treedepth is closed under taking induced subgraphs and has treedepth at most as well. Hence, during this final navigation each robot in does at most many moves. Hence, the total length of the schedule is at most .
Proof of Theorem 2.
5 Concluding Remarks
The algorithms and lower bounds presented in this paper provide novel insights into the complexity of GCMP, specifically targeting the natural case where we need to route a small number of robots through a complicated environment. Nevertheless, we believe it is important to conclude by highlighting the prominent gaps in our understanding of the problem’s complexity which remain unresolved. Even in the special case where , the fixed-parameter tractability of planar GCMP when parameterized by the number of robots remains open; here, the planar case is interesting not only because of the many usage scenarios where planar environments occur, but also because it would represent a natural generalization of the fixed-parameter tractability of the problem on solid grids [13]. In a similar vein, one might wonder whether GCMP parameterized by is fixed-parameter or at least XP-tractable on trees – while highly non-trivial, a natural starting point in this direction is to target a polynomial-time algorithm solving the case with two marked robots on trees, which would generalize the classical algorithm for routing a single marked robot [26].
References
- [1] Michael J. Bannister, Sergio Cabello, and David Eppstein. Parameterized complexity of 1-planarity. J. Graph Algorithms Appl., 22(1):23–49, 2018. doi:10.7155/JGAA.00457.
- [2] Bahareh Banyassady, Mark de Berg, Karl Bringmann, Kevin Buchin, Henning Fernau, Dan Halperin, Irina Kostitsyna, Yoshio Okamoto, and Stijn Slot. Unlabeled multi-robot motion planning with tighter separation bounds. In SoCG, volume 224, pages 12:1–12:16, 2022. doi:10.4230/LIPICS.SOCG.2022.12.
- [3] Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, and Martin Nöllenburg. Parameterized algorithms for queue layouts. J. Graph Algorithms Appl., 26(3):335–352, 2022. doi:10.7155/JGAA.00597.
- [4] Eli Boyarski, Ariel Felner, Roni Stern, Guni Sharon, David Tolpin, Oded Betzalel, and Solomon Eyal Shimony. ICBS: Improved conflict-based search algorithm for multi-agent pathfinding. In IJCAI, pages 740–746, 2015. URL: http://ijcai.org/Abstract/15/110.
- [5] Bruno Courcelle. The monadic second-order logic of graphs. i. recognizable sets of finite graphs. Inf. Comput., 85(1):12–75, 1990. doi:10.1016/0890-5401(90)90043-H.
- [6] Marek Cygan, Fedor V. Fomin, Lukasz Kowalik, Daniel Lokshtanov, Dániel Marx, Marcin Pilipczuk, Michal Pilipczuk, and Saket Saurabh. Parameterized Algorithms. Springer, 2015. doi:10.1007/978-3-319-21275-3.
- [7] Argyrios Deligkas, Eduard Eiben, Robert Ganian, Iyad Kanj, and M. S. Ramanujan. Parameterized algorithms for coordinated motion planning: Minimizing energy. In Karl Bringmann, Martin Grohe, Gabriele Puppis, and Ola Svensson, editors, 51st International Colloquium on Automata, Languages, and Programming, ICALP 2024, July 8-12, 2024, Tallinn, Estonia, volume 297 of LIPIcs, pages 53:1–53:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPICS.ICALP.2024.53.
- [8] Argyrios Deligkas, Eduard Eiben, Robert Ganian, Iyad Kanj, and Ramanujan Sridharan. Parameterized algorithms for multiagent pathfinding on trees. In Proceedings of the 2025 International Conference on Autonomous Agents and Multiagent Systems, AAMAS 2025, 2025. to appear.
- [9] Erik D. Demaine and Mikhail Rudoy. A simple proof that the ()-puzzle is hard. Theoretical Computer Science, 732:80–84, 2018.
- [10] Reinhard Diestel. Graph Theory, 4th Edition, volume 173 of Graduate texts in mathematics. Springer, 2012.
- [11] Rodney G. Downey and Michael R. Fellows. Fundamentals of Parameterized Complexity. Texts in Computer Science. Springer, 2013. doi:10.1007/978-1-4471-5559-1.
- [12] Stuart E. Dreyfus and Robert A. Wagner. The steiner problem in graphs. Networks, 1(3):195–207, 1971. doi:10.1002/NET.3230010302.
- [13] Eduard Eiben, Robert Ganian, and Iyad Kanj. The parameterized complexity of coordinated motion planning. In SoCG, volume 258, pages 28:1–28:16, 2023. doi:10.4230/LIPICS.SOCG.2023.28.
- [14] Eduard Eiben, Robert Ganian, Iyad Kanj, and Ramanujan Sridharan. A minor-testing approach for coordinated motion planning with sliding robots. In SoCG, 2025. doi:10.4230/LIPIcs.SoCG.2025.44.
- [15] Sándor P. Fekete, Phillip Keldenich, Dominik Krupke, and Joseph S. B. Mitchell. Computing coordinated motion plans for robot swarms: The CG: SHOP challenge 2021. ACM Journal on Experimental Algorithmics, 27:3.1:1–3.1:12, 2022. doi:10.1145/3532773.
- [16] Foivos Fioravantes, Dusan Knop, Jan Matyás Kristan, Nikolaos Melissinos, and Michal Opler. Exact algorithms and lowerbounds for multiagent path finding: Power of treelike topology. In Michael J. Wooldridge, Jennifer G. Dy, and Sriraam Natarajan, editors, Thirty-Eighth AAAI Conference on Artificial Intelligence, pages 17380–17388. AAAI Press, 2024. doi:10.1609/aaai.v38i16.29686.
- [17] Foivos Fioravantes, Dusan Knop, Jan Matyás Kristan, Nikolaos Melissinos, and Michal Opler. Exact algorithms for multiagent path finding with communication constraints on tree-like structures. In AAAI, 2025. to appear. doi:10.48550/arXiv.2412.08556.
- [18] Jörg Flum and Martin Grohe. Parameterized Complexity Theory, volume XIV of Texts in Theoretical Computer Science. An EATCS Series. Springer, Berlin, 2006. doi:10.1007/3-540-29953-X.
- [19] Fedor V. Fomin, Pierre Fraigniaud, Pedro Montealegre, Ivan Rapaport, and Ioan Todinca. Distributed model checking on graphs of bounded treedepth. In Dan Alistarh, editor, 38th International Symposium on Distributed Computing, DISC 2024, October 28 to November 1, 2024, Madrid, Spain, volume 319 of LIPIcs, pages 25:1–25:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPICS.DISC.2024.25.
- [20] Robert Ganian and Sebastian Ordyniak. The complexity landscape of decompositional parameters for ILP. Artif. Intell., 257:61–71, 2018. doi:10.1016/J.ARTINT.2017.12.006.
- [21] Paul Liu, Jack Spalding-Jamieson, Brandon Zhang, and Da Wei Zheng. Coordinated motion planning through randomized -Opt (CG challenge). In SoCG, volume 189, pages 64:1–64:8, 2021. doi:10.4230/LIPICS.SOCG.2021.64.
- [22] Hang Ma, Craig Tovey, Guni Sharon, TK Kumar, and Sven Koenig. Multi-agent path finding with payload transfers and the package-exchange robot-routing problem. In AAAI, volume 30(1), 2016.
- [23] Wojciech Nadara, Michal Pilipczuk, and Marcin Smulewicz. Computing treedepth in polynomial space and linear FPT time. In Shiri Chechik, Gonzalo Navarro, Eva Rotenberg, and Grzegorz Herman, editors, 30th Annual European Symposium on Algorithms, ESA 2022, September 5-9, 2022, Berlin/Potsdam, Germany, volume 244 of LIPIcs, pages 79:1–79:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPICS.ESA.2022.79.
- [24] Jesper Nederlof, Michal Pilipczuk, Céline M. F. Swennenhuis, and Karol Wegrzycki. Hamiltonian cycle parameterized by treedepth in single exponential time and polynomial space. SIAM J. Discret. Math., 37(3):1566–1586, 2023. doi:10.1137/22M1518943.
- [25] Jaroslav Nesetril and Patrice Ossona de Mendez. Sparsity - Graphs, Structures, and Algorithms, volume 28 of Algorithms and combinatorics. Springer, 2012. doi:10.1007/978-3-642-27875-4.
- [26] Christos H. Papadimitriou, Prabhakar Raghavan, Madhu Sudan, and Hisao Tamaki. Motion planning on a graph (extended abstract). In STOC, pages 511–520, 1994. doi:10.1109/SFCS.1994.365740.
- [27] Daniel Ratner and Manfred Warmuth. The ()-puzzle and related relocation problems. Journal of Symbolic Computation, 10(2):111–137, 1990.
- [28] Felix Reidl, Peter Rossmanith, Fernando Sánchez Villaamil, and Somnath Sikdar. A faster parameterized algorithm for treedepth. In Javier Esparza, Pierre Fraigniaud, Thore Husfeldt, and Elias Koutsoupias, editors, Automata, Languages, and Programming - 41st International Colloquium, ICALP 2014, Copenhagen, Denmark, July 8-11, 2014, Proceedings, Part I, volume 8572 of Lecture Notes in Computer Science, pages 931–942. Springer, 2014. doi:10.1007/978-3-662-43948-7_77.
- [29] Pavel Surynek. An optimization variant of multi-robot path planning is intractable. In Proceedings of the AAAI conference on artificial intelligence, volume 24(1), pages 1261–1263, 2010. doi:10.1609/AAAI.V24I1.7767.
- [30] Glenn Wagner and Howie Choset. Subdimensional expansion for multirobot path planning. Artificial Intelligence, 219:1–24, 2015. doi:10.1016/J.ARTINT.2014.11.001.
- [31] Hyeyun Yang and Antoine Vigneron. A simulated annealing approach to coordinated motion planning (CG challenge). In Kevin Buchin and Éric Colin de Verdière, editors, SoCG, volume 189, pages 65:1–65:9, 2021. doi:10.4230/LIPICS.SOCG.2021.65.
- [32] Jingjin Yu and Daniela Rus. Pebble motion on graphs with rotations: Efficient feasibility tests and planning algorithms. In WAFR, volume 107 of Springer Tracts in Advanced Robotics, pages 729–746, 2014. doi:10.1007/978-3-319-16595-0_42.
