A Minor-Testing Approach for Coordinated Motion Planning with Sliding Robots
Abstract
We study a variant of the Coordinated Motion Planning problem on undirected graphs, referred to herein as the Coordinated Sliding-Motion Planning (CSMP) problem. In this variant, we are given an undirected graph , robots positioned on distinct vertices of , distinct destination vertices for robots , and . The problem is to decide if there is a serial schedule of at most moves (i.e., of makespan ) such that at the end of the schedule each robot with a destination reaches it, where a robot’s move is a free path (unoccupied by any robots) from its current position to an unoccupied vertex. The problem is known to be NP-hard even on full grids. It has been studied in several contexts, including coin movement and reconfiguration problems, with respect to feasibility, complexity, and approximation. Geometric variants of the problem, in which congruent geometric-shape robots (e.g., unit disk/squares) slide or translate in the Euclidean plane, have also been studied extensively.
We investigate the parameterized complexity of CSMP with respect to two parameters: the number of robots and the makespan . As our first result, we present a fixed-parameter algorithm for CSMP parameterized by . For our second result, we present a fixed-parameter algorithm parameterized by for the special case of CSMP in which only a single robot has a destination and the graph is planar. A crucial new ingredient for both of our results is that the solution admits a succinct representation as a small labeled topological minor of the input graph.
Keywords and phrases:
coordinated motion planning on graphs, parameterized complexity, topological minor testing, planar graphsFunding:
Robert Ganian: Projects No. 10.55776/Y1329 and 10.55776/COE12 of the Austrian Science Fund (FWF), Project No. 10.47379/ICT22029 of the Vienna Science Foundation (WWTF).Copyright and License:
![[Uncaptioned image]](x1.png)
2012 ACM Subject Classification:
Theory of computation Parameterized complexity and exact algorithmsEditors:
Oswin Aichholzer and Haitao WangSeries and Publisher:

1 Introduction
In the coordinated motion planning problem, we are given an integer , an undirected graph , robots positioned on distinct starting vertices of and distinct destination vertices for robots . In each step, one robot (or a subset of robots in other variants of the problem in which robots may move in parallel) may move from its current vertex to an adjacent unoccupied vertex. The goal is to decide if there is a schedule (i.e., a sequence of moves) of length at most , at the end of which each robot has reached its destination vertex without colliding with other robots along the way. The problem and its variants (including the common variant where ) have been extensively studied, with respect to various motion types and graph classes, due to their ubiquitous applications in artificial intelligence (planning), robotics, computational geometry and more generally theoretical computer science [17, 10, 6, 23, 34, 35, 36, 24, 37, 38, 3, 11, 16, 28, 31, 32, 33]. Moreover, it generalizes several well-known puzzles, including the famous ()-puzzle and the Rush-Hour puzzle. Most of these variants are NP-hard, including the aforementioned ()-puzzle [12, 29]. Due to its numerous applications, the coordinated motion planning problem on (full rectangular) grids was posed as the SoCG 2021 Challenge [18].
We consider a variant of the coordinated motion planning problem on undirected graphs in which robots move serially one at a time, and a robot’s move consists of a move along a free/unobstructed path (i.e., a path in which no other robot is located at the time of the move) as opposed to a single edge; we refer to such a move as a sliding move, analogous to the type of motion in geometric variants of the coordinated motion planning problem, where robots are geometric shapes (e.g., disks or rectangles) that move by translating/sliding in the plane. These geometric variants have been extensively studied since the 1980s [28, 24, 31, 32, 33]. The goal of this variant is to decide whether there is a schedule of makespan at most , where here the makespan of the schedule is simply the number of moves in it. We denote our general problem of interest as CSMP. We will also consider the special case of CSMP where is planar and – that is, only a designated robot has a destination and the remaining robots merely act as “blockers”. We refer to this special case as Planar-CSMP-1.
Contributions and Techniques.
We present a fixed-parameter algorithm for CSMP parameterized by the number of robots, and a fixed-parameter algorithm for Planar-CSMP-1 parameterized by the makespan . A crucial common ingredient for both results is showing that the solution to a problem instance admits a succinct representation, whose size is a function of the parameter, as a topological minor of the input graph. To the best of our knowledge, this is a novel approach in the context of coordinated motion planning problems.
CSMP.
Showing that the solution admits a succinct representation entails first bounding the makespan in an optimal solution by a function of the number of robots. Towards this end, we preprocess the graph by shortening (to ) sufficiently long paths comprising degree-2 vertices and focus on two cases. In one case, where the graph has bounded111In the rest of this description, we simply say bounded to refer to values bounded by a function of . treedepth, we show that the instance can be reduced iteratively without altering the solution. This reduction process ultimately results in an instance of bounded size, implying the existence of a solution with a bounded makespan.
In the other case, we use ideas from [10] to define a notion of havens, which are subgraphs of bounded size with the following property: if a robot has to pass through a haven, then with a bounded number of additional steps, we can enable it to pass through the haven regardless of the other robots in the haven (i.e., without collision), effectively “untangling” all the robots’ traversals within the haven. Building on this, we construct a schedule in which each robot interacts with only a bounded number of havens, ultimately leading to a bounded-makespan schedule.
After bounding the makespan in an optimal solution, we show that it essentially describes a graph of bounded size as a topological minor in the input graph. Here, we have to work with rooted topological minors since all robots have specified starting points and some have specified destinations. For us, the roots are just the starting and ending vertices, as we have boundedly-many roots. Towards our goal, we partition the vertices of the graph induced by the edges participating in an optimal solution into two sets: important and unimportant vertices. We show that the number of important vertices is bounded, and that the unimportant vertices form paths whose internal vertices have degree . This structure enables us to show that the graph induced by the edges in the solution (with terminals as roots) is a realization of some rooted graph with a bounded number of vertices as a topological minor in the input graph. We also prove the converse, namely that from any realization of as a topological minor in , one can obtain an optimal solution for the given instance. Towards proving this, we show that if a robot follows a path that is devoid of important vertices, then it slides on that path without stopping. Finally, we leverage known results on topological minor containment to verify the existence of the correct rooted graph.
Planar-CSMP-1.
It is easy to see here that the solution admits a succinct representation since the parameter itself is the makespan. The difficulty is that the number of robots in the instance can be very large compared to the parameter , and we cannot find a realization of the succinct solution which avoids the “blocker” robots that do not contribute to the realization. To cope with this hurdle, we exploit the planarity of the graph to reduce its diameter, thus reducing the instance to an instance on a graph with bounded treewidth. The fixed-parameter tractability of the problem will then follow from Courcelle’s Theorem [8, 2].
The heart of our reduction method is finding an “irrelevant edge” in the graph that can be safely contracted to produce an equivalent instance of the problem. While the method of finding an irrelevant edge and contracting it has been employed in several results in the literature to exclude large grids, thus reducing the treewidth of the graph, in our setting the grid approach seems unworkable. Instead, we show that a sufficiently-large component of free vertices (i.e., vertices with no blockers on them) must contain an irrelevant edge. We reduce all the cases to one where is formed by a skeleton consisting of a “long” path of degree-2 vertices (the degree is taken in ), plus a “small” number of additional vertices. We then show that if the instance is a YES-instance of the problem, then it admits a solution that interacts nicely with this skeleton, in the sense that we can identify a subgraph of the representation of the solution, i.e., a topological minor that is essentially a roadmap of the solution, separated from the rest of the solution by a small cut. We can enumerate each possible representation of the part of the solution that interacts with the skeleton, and for each possible representation, test whether it exists near the skeleton; if it does, we mark the vertices in the graph that realize this representation. Since the skeleton is long, the total number of marked vertices on the skeleton is small, and an edge with both endpoints unmarked – and hence can be contracted – must exist.
Related Work.
The CSMP problem, with , has been studied in [7] on several graph classes, and with respect to various settings, based on whether or not the destinations of the robots are distinguished (referred to as labeled or unlabeled). The graph classes that were considered include trees, grids, planar graphs, and general graphs, and it was shown that the problem is NP-hard even for (full rectangular) grids. Upper and lower bounds on the makespan of a solution, as well as computational complexity and approximation results, were derived for the various settings considered in [7].
A related problem to CSMP is that of moving unit disks (or objects [16]) in the plane, which has been studied in the context of reconfiguring/moving coins in the plane [1, 4], and was shown to be NP-hard [1]. We also mention the related work on coordinated pebble motion on graphs (and permutation groups), which was studied in [25] motivated by the work on the ()-puzzle. The variant of coordinated motion planning in which only one designated robot is required to reach its destination, that is , and each move is along a single edge, was studied as Graph Motion Planning with 1 Robot in [27].
Despite the tremendous amount of work on coordinated motion planning problems, not much work has been done from the parameterized complexity perspective. The work in [10] studied the parameterized complexity of the non-sliding version of CSMP, that is, where each motion step is along a single edge, parameterized by the makespan in the serial setting. Another recent work [17] studied the parameterized complexity of the classical coordinated motion planning problem on grids, presenting parameterized algorithms for various objective measures (makespan, travel length). The work in [20] established the W[1]-hardness of the classical coordinated motion planning problem parameterized by the makespan in the parallel motion setting, and also showed the NP-hardness of this problem on trees, among other results. Finally, the parameterized complexity of a geometric variant of the PSPACE-complete Rush-Hour problem, which itself was shown to be PSPACE-complete [21], was studied [19]; in particular, that problem was shown to be FPT when parameterized by either the number of robots (i.e., cars) or the number of moves.
2 Terminology and Problem Definition
We assume basic familiarity with parameterized complexity theory, including fixed-parameter tractability, parameterized reductions, and the class W[1] [15, 9]. We also assume knowledge of standard graph-theoretic notions such as planarity, graph diameter and vertex degree [13]. We write , where , for .
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; we will make use of the fact that every planar graph with diameter has treewidth at most [30, 5] and of Courcelle’s Theorem [8, 2], which in particular provides a linear-time procedure to identify vertex subsets satisfying properties definable in Monadic Second Order Logic (MSO) on graphs of constant treewidth. We also use the notion of treedepth [26].
Rooted graphs.
A rooted graph is a graph where some vertices are labeled – formally:
Definition 1 (Rooted graphs).
A rooted graph is a graph with a set of distinguished vertices called roots and a labeling . The set is the root set of , and the label set of is .
Definition 2 (Topological minors of rooted graphs [22]).
Let and be two rooted graphs with labelings and for their root sets. We say that is a topological minor of if there exist injective functions and such that
-
for every , the endpoints of are and ,
-
for every distinct , the paths and are internally vertex-disjoint,
-
there does not exist a vertex in the image of and an edge such that is an internal vertex on , and
-
for every , .
We say that is a realization of as a topological minor in . Moreover, the subgraph of induced by the union of the edges in the paths in for and the vertices in for is called a topological minor model of .
Note that for the above coincides with the usual definition of topological minors.
Proposition 3.
([22]) There is an algorithm that, given two rooted graphs and , runs in time for some computable function and decides whether is a topological minor of .
Problem Formalizations.
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. We assume that all the are pairwise distinct and that all the are pairwise distinct. We use a discrete time frame , , to reference the sequence of moves of the robots. In each time step , exactly one robot moves and the rest remain stationary.
In Coordinated Sliding-Motion Planning (CSMP), we are given a tuple , where and are as described in the last paragraph and . The goal is to decide whether there is a sequence of moves such that robots move serially one at a time, where a robot’s move consists of a move along a free/unobstructed path (i.e., a path in which no other robot is located at the time of the move), and such that each starts in at time step and each is positioned on at the end of time step . The second problem that we consider is a restriction of CSMP to the case where is planar and contains exactly one robot, referred to as the main robot. We refer to this restriction as Planar-CSMP-1, and for simplicity represent its instances as tuples of the form , where and are the starting and destination vertices of the main robot, respectively, and is the set of all robots.
We next introduce some notation that will be used in our technical sections. A route for robot is a tuple where each is a vertex in and each is a simple path in , such that (i) and if and (ii) , is a - path in (if , then is the singleton path comprising the same vertex).
Put simply, each corresponds to a “walk” in . If vertices of at two consecutive time steps and are identical, then is a waiting time step for the robot . Moreover, each begins at its starting vertex at time step , and if then is at its destination vertex at time step . Though we work with undirected graphs and the paths described above are undirected paths, each path has a natural starting vertex and ending vertex designated by the time step .
Definition 4.
Two routes and , where , are non-conflicting if , the path is disjoint from and the path is disjoint from . Otherwise, we say that and conflict.
In particular, in the above definition, for every and , .
A schedule S for is a set of pairwise non-conflicting routes , during a time interval , where exactly one robot moves in each time step. The number of moves in a route or the number of moves of its associated robot is the number of time steps such that . The total number of moves (or makespan) in a schedule is the sum of the number of moves in its routes. A schedule of minimum total moves is called an optimal schedule.
A vertex is occupied at time step if some robot is located at at time step ; otherwise, is said to be free (or unoccupied). If the time step is not specified, it is assumed to be time step (i.e., in the initial state). At each time step, a robot may either move to a different vertex, or stay at its current vertex. Finally, we always assume that the input graph is connected since otherwise, we can work on individual connected components.
Remarks on Feasibility and Constructiveness.
When only considering feasibility, CSMP is equivalent to the version where each move is along a single edge instead of an unobstructed path. Hence, feasibility testing is linear-time solvable [39, 10] and we can work under the assumption that every instance of CSMP is feasible (otherwise, we can reject the instance).
3 FPT Algorithm for CSMP Parameterized by the Number of Robots
In this section, we show that CSMP is FPT parameterized by the number of robots in the input. Note that we do not assume any restrictions on the input graph.
Our strategy has three high-level steps: (i) We first show that if a solution exists, then there is an optimal schedule whose makespan is bounded222We recall that by bounded, we mean “bounded by a function of the parameter” – in this case, .. (ii) We then show that such a solution is essentially a realization of a rooted graph of bounded size as a topological minor in a rooted graph obtained by assigning unique labels to the terminals in . We also prove the converse, that is, from any realization of as a topological minor in , one can obtain an optimal solution for the given instance. (iii) Finally, we leverage known results on topological minor containment to verify the existence of the correct rooted graph. Let us now give more detail on Steps (i) and (ii).
Step (i): To prove the existence of a solution with boundedly many moves, we preprocess the graph by applying a reduction rule that shortens degree-2 paths to a bounded length. This simplification allows us to focus on two cases for the graph (assuming it is connected):
Case (a): Bounded Treedepth. If the graph has bounded treedepth, we show that instances with bounded treedepth and a bounded number of robots can be reduced iteratively without altering the solution. This reduction process results in an instance of bounded size, implying the existence of a solution with a bounded makespan.
Case (b): Long Paths. Suppose every vertex is the endpoint of a sufficiently long path. We use ideas from [10] to define a suitable notion of havens for our setting; in particular, havens are subgraphs of bounded size that can efficiently handle collisions. Here, by the “efficient handling” of collisions, we mean that given any pair of “configurations” of robots in a haven, we can move the robots from one configuration to another without any conflicts using only boundedly many moves.
Thus, with a small number of time steps, a robot can pass through a haven without collision, regardless of other robots in the haven.
Building on this fact, we construct a schedule where each robot interacts with only a bounded number of havens. Within each haven, the number of moves used by a robot is bounded and we show that outside the havens, the robot only makes boundedly many moves as well. This yields a bound on the makespan of the schedule.
Step (ii): Consider the graph induced by the edges in the solution. We partition the vertices of this graph into two sets: important and unimportant vertices. The important vertices are those with degree at least three, the terminals, and any vertex where a robot waits at any time step.
We show that the number of important vertices is bounded by a function of (say, ). Moreover, by definition, the unimportant vertices form paths with only degree-2 vertices as internal vertices. Additionally, every robot that visits a vertex in such a path slides without stopping on any vertex of this path. This structure enables us to show that the graph induced by the edges in the solution (with terminals as roots) is a realization of some rooted graph with at most vertices as a topological minor in the input graph.
3.1 Bounding the Makespan in an Optimal Schedule
Our first task is to apply a reduction rule to the given instance that enforces useful structural properties on the graph without affecting the existence of a solution.
Reduction Rule 1.
Let be an instance of CSMP. If there is a path in such that every internal vertex of is disjoint from the set of terminals and has degree exactly two in , then shorten to length .
We say that an instance is irreducible if Reduction Rule 1 cannot be applied. In the rest of this section, we work with such instances. Our goal now is to show that every YES-instance has a schedule in which the makespan is bounded by a function of the number of robots.
Lemma 5.
Let be an instance of CSMP. If is a YES-instance, then has an optimal schedule with moves.
The proof strategy of Lemma 5 is as follows. We show that for a YES-instance, either the treedepth of the input graph is bounded or a certain locality property holds (roughly speaking, every vertex is sufficiently close to a vertex of degree at least three). We then show that in either case, there is a solution with boundedly-many moves. Specifically, when the treedepth is bounded, we show how to reduce the graph to a bounded-size graph without affecting the existence of a solution (thus implicitly bounding the makespan of an optimal solution) and otherwise, we show how the aforementioned locality property can be used along with a greedy strategy to produce a schedule with boundedly many moves (again, bounding the makespan of an optimal solution).
3.2 Succinct Representation of a Solution
In what follows, fix an optimal schedule for an instance . By Lemma 5, we may assume, without loss of generality, that S has length . We also assume that no robot moves in two consecutive time steps since otherwise, the movements of such a robot could be done in a single time step while the remaining robots wait. Moreover, we say that an edge of is traversed by S if there is an and a time step such that the path contains the edge . That is, some robot uses the edge in some time step . We denote by , the subgraph of induced by the edges traversed by S. For a time step , we denote by the subgraph of induced by the edges traversed by S up to time step . A vertex in is a waiting vertex within time interval if there is a robot and a time step such that is at at time steps and . We say that is a waiting vertex if it is a waiting vertex within some time interval. A vertex in is an intersection vertex within time interval if its degree in is at least three. We say that is an intersection vertex if it is an intersection vertex within some time interval. A vertex in is an important vertex within time interval if it is either a terminal vertex, or within time interval it is a waiting vertex or an intersection vertex. Otherwise, is unimportant within time interval . We say that is an important (unimportant) vertex if it is important (resp. unimportant) within some time interval.
Observation 6.
The number of waiting vertices within time interval is at most .
Observation 7.
The unimportant vertices within any time interval induce a disjoint union of paths and any endpoint of any of these paths has degree 2 in .
For a time step , we denote by , the set of all - paths of non-zero length such that and are distinct important vertices within time interval and every internal vertex of is an unimportant vertex within time interval .
For two paths and in , their crossing points are those vertices that have degree at least three in the graph induced by the edges in .
We say that S is a special schedule up to time step if, for every robot and such that moves in time step , the path has at most four crossing points with any path in where . Note that every schedule is trivially special at time step 1 since only a single path has been taken at this point. Moreover, has size at least one because a move has been made and so, has size at least one for every . We say that S is a special schedule if it is a special schedule up to the final time step.
We say that two schedules are equivalent at time step if the positions of all the robots at the end of time is the same in both schedules, that is, robot is on vertex after time step in one schedule if and only if the same happens in the other schedule. We say that two schedules are equivalent if they are equivalent at every time step. In particular, two equivalent schedules take the same number of time steps.
Lemma 8.
There is a solution that is a special schedule.
Henceforth, we assume that the solution S is a special schedule.
Lemma 9.
The number of important vertices in is bounded by .
3.3 Leveraging Succinct Representations and Topological Minor Containment
In what follows, fix a schedule for an instance .
We define the representation of S to be the rooted graph (denoted by ) whose vertices are the important vertices of , and in which there is an edge between two vertices and if and only if there is a - path in whose internal vertices have degree 2 in and are unimportant. Moreover, the terminals receive unique labels (assume that the terminals are labeled with for some ) and the remaining vertices receive the same label which is distinct from those of the terminals, say . An illustration is provided in Figure 1. From Lemma 9, we directly obtain:
Lemma 10.
If is a special schedule, then its representation has vertices.
For the graph , we let denote the rooted graph where the terminals get their unique labels and the rest of the vertices get a specific label , where is the number of terminals.
Lemma 11.
is a topological minor of and moreover, any realization of as a topological minor in implies a schedule with length at most that of S.
Theorem 12.
CSMP is fixed-parameter tractable parameterized by the number of robots.
Proof.
For a hypothetical optimal solution S, we guess (i.e., use brute-force branching to determine) the representation . By Lemmas 8 and 10, there are at most choices and these can be enumerated in FPT time. For each , we do the following:
-
1.
Decide whether the guess is feasible by brute-forcing over it. More precisely, we guess the configurations of the robots at each time step and verify that this guess corresponds to a set of non-conflicting routes with at most moves in total. Reject guesses that do not pass this check. Clearly, this step takes time for some computable function .
-
2.
If is not rejected, then invoke Proposition 3 to decide whether is a topological minor of and return “yes” if and only if at least one of the invocations returns “yes”.
4 An FPT Algorithm for Planar-CSMP-1 Parameterized by the Makespan
We start by giving a high-level description of the result. Our aim is to prove that Planar-CSMP-1 is fixed-parameter tractable parameterized by . The crux of our technique is showing that a sufficiently large component of free vertices must contain an edge that can be safely contracted. These contractions eventually result in bounding the size of each free component in the graph, and consequently the diameter and hence the treewidth of the graph (due to planarity). The fixed-parameter tractability of the problem will then be established using Courcelle’s Theorem [8, 2].
To show that each large component of free vertices contains an edge that can be safely contracted, we first show that this is the case unless is formed by a skeleton consisting of a sufficiently long path of degree-2 vertices (the degree is taken in ), plus a sufficiently small number of additional vertices. We then focus on the skeleton of this component. We show that if the instance is a YES-instance of the problem, then it admits a solution S that interacts “nicely” with this skeleton. Recall from the previous section that a solution can be succinctly represented as a rooted topological minor of size for some computable function . This is because at most robots move in the solution. Now, we can identify a subgraph S of the representation of the solution (i.e., a topological minor that is essentially a roadmap of the solution), that is separated from the rest of the solution by a small cut. The realization of this subgraph uses most of the skeleton and the remaining part of this realization consists of small subgraphs that are close to the skeleton. Therefore, we can assume that all edges in these parts of the subgraphs are realized by edges in the graph.
Thus, it suffices to enumerate each possible representation of the part of the solution that interacts with the skeleton (which can be done in FPT-time), and test whether it exists near the skeleton; if it does, we mark the vertices in the graph that realize this representation. Since the skeleton is long, the total number of marked vertices on the skeleton is small, and an edge with both endpoints unmarked that can be contracted must exist. We remark that in many of the arguments that we make, we rely on the crucial fact that, except for the main robot, the robots are “indistinguishable” from each other. We now proceed to the details.
Refer to a vertex on which a robot other than the main robot is located as a blocker vertex. Let the blocker-distance between a vertex and a vertex , denoted , be the minimum integer such that there is a - path in containing blocker vertices. The reason why the blocker-distance is relevant is that we show that vertices which have high blocker-distance from and can be removed from the graph. Observe that, for any two vertices , can be computed in polynomial time via, e.g., Dijkstra’s algorithm.
Let be an instance and let be the set of free vertices in . A free component is a connected component of . Free components will be central to our proof – in particular, observe that the blocker-distance between and is at most and we can safely remove all vertices from at blocker distance at least from . Hence, if there are no large free components, then the diameter of is bounded. As is planar, also its treewidth is bounded and we can use Courcelle’s Theorem [8, 2] to prove the following:
Lemma 13.
Planar-CSMP-1 can be solved in time , where is a computable function and is the size of the largest free component in the input instance .
The Structure of Free Components.
The following observation is straightforward:
Observation 14.
Let be a path of free vertices and let be arbitrary vertices on such that the subpath of between and has length at least . If there exists an - path whose internal vertices are disjoint from such that the number of blockers on is at most , then the instance is a YES-instance and we can output a solution for in polynomial time.
We refer to a path where the above observation does not result in solving the instance as a resilient path. In other words, a path is resilient if and only if for every pair of vertices in whose distance on is at least , there is no - path in with at most blockers. Our goal is to show that every “sufficiently large” free component contains a “still sufficiently long” path with certain special properties that, intuitively, allow the path to be “cleanly separated” from a hypothetical solution. This is formalized in the following definition and lemma, where the property of being “still sufficiently long” is given by the function .
Definition 15.
Let be a path in a free component with endpoints , . We say that is -clean if it satisfies the following conditions:
-
1.
every vertex in has degree precisely in ;
-
2.
;
-
3.
if admits a solution that intersects , then there are two vertices , each at distance at most from and , respectively, and a solution S for such that:
is a cut in between and the - subpath of ; we denote by the connected subgraph of that contains , and all the connected components of that do not contain or ; and
-
4.
is resilient.
Lemma 16.
There is a polynomial-time procedure which takes as input a free component in an instance such that , and either solves the instance, or outputs an instance equivalent to obtained by contracting an edge in , or outputs an -clean path in .
4.1 Finding Irrelevant Edges
For the following considerations, it will be useful to proceed with a fixed choice of and an -clean path . Next, we will show that we can make an even stronger assumption about the hypothetical solutions “passing through” .
Lemma 17.
Assume that admits a solution that intersects . Then there exist vertices , each at distance at most from and , respectively, and a solution for satisfying properties 3-4 in Definition 15, and furthermore satisfying the following property 5: .
For the following, we will refer to a solution satisfying properties 3-5 as -canonical, or simply -canonical in brief when the identities of and do not matter. From the properties of canonical solutions, we can directly establish the following:
Lemma 18.
Let be a -canonical solution. Then there is a -vertex rooted graph (with roots , and occupied), such that is a rooted topological minor of (with roots , and occupied) and there is a realization of that maps to . Moreover, waiting vertices are in and for every edge either is a single edge or a subpath of .
Crucially, below we provide a procedure that can efficiently test for as defined above.
Lemma 19.
Let be an -clean - path and let , be the vertices specified in property 3 of Definition 15. Let and be a connected -vertex rooted graph with roots , and “occupied’’ such that contains at most occupied vertices. There is a procedure which runs in time and either outputs a realization of which results in a subgraph such that:
-
separate from and , and
-
for every edge either is a single edge or a subpath of , or
correctly determines that no such exists.
Proof Sketch.
As the first step, we use the -cleanness of to establish that if exists, then it must have a “necklace-like” structure. In particular, such a must consist of the - subpath of along with at most connected subgraphs , each of size , each intersecting the - subpath of but otherwise being pairwise disjoint, and having pairwise distance at least on . We further may assume that are ordered based on their distance to .
With this knowledge, we exhaustively branch to consider every possible choice of rooted subgraphs (up to isomorphism) to construct a set of signatures of a hypothetical tuple ; crucially, the number of such signatures can be upper-bounded by . We can now show that to test whether there exists some tuple , it suffices to consider each signature individually and see if there is a “leftmost” matching that signature, i.e., a where the subgraphs are pushed as close to as possible (while adhering to the properties of the given signature). This then allows us to process the - subpath of from to and test, at each vertex , whether it could be the “first vertex” of . Once we find the leftmost such , we can jump ahead by and proceed to , and so forth.
A key point here is that since each of the subgraphs has bounded size, it suffices to perform each such test on the -neighborhood of . Since this graph is planar and has bounded diameter (by a function of ), it also has bounded treewidth [30, 5], thus allowing us to employ well-known subgraph-isomorphism testing algorithms [14] to determine whether each can indeed be part of a specified subgraph . We remark that performing this test on each vertex individually is critical: the subgraph of induced on the neighborhood of all of may have arbitrarily large treewidth.
We call the subgraph identified above a host for the roadmap .
Reduction Rule 2.
Let be a given -clean - path. There is a reduction rule which enumerates:
-
the family of all connected rooted graphs (with roots , and occupied) containing at most -many vertices, and
-
the set of all vertex pairs at distance at most from the respective endpoints of ,
and then for each choice of and , applies Lemma 19 to determine whether there is a host of w.r.t. on . If there is, we mark every vertex in where is the computed realization.
Afterwards, if there is an edge on with two unmarked endpoints, we contract .
Lemma 20.
Reduction Rule 2 is safe. Moreover, for each -clean path , it can be executed in time at most , and is guaranteed to perform a contraction if contains more that many vertices.
Theorem 21.
Planar-CSMP-1 is fixed-parameter tractable parameterized by .
Proof.
We begin by applying Lemma 16 to each free component in of size at least . If this solves the instance, we are done; otherwise, it is guaranteed to either produce an equivalent instance obtained by an edge contraction (in which case we repeat), or identify an -clean path of length more than . In the third case, we apply Reduction Rule 2 to to produce an equivalent instance obtained by an edge contraction in – as guaranteed by Lemma 20 – and restart.
The exhaustive application of the above procedure either correctly solves the input instance, or results in an equivalent instance such that each free component in has size at most . At this point, we invoke Lemma 13 to solve the instance. The overall running time is upper-bounded by , where the former term is the running time of the preprocessing steps and is a computable function that results from the application of Lemma 13 (and specifically of Courcelle’s Theorem within that lemma) on an instance with the aforementioned bound on the size of free components.
5 Conclusion
In this paper, we designed FPT algorithms for two important variants of the Coordinated Motion Planning problem on undirected graphs, CSMP and Planar CSMP-1, in which robots move by sliding along unobstructed paths. Our results take a different perspective and contribute new insights to the design of FPT algorithms for coordinated motion planning problems on graphs, developing and employing new techniques that combine topological graph theory, fixed-parameter tractability and computational logic. Our work opens up several interesting questions pertaining to the parameterization by the makespan .
-
1.
Is CSMP parameterized by the makespan W[1]-hard on general graphs?
-
2.
Can Theorem 21 be generalized to solve CSMP on planar graphs?
-
3.
What is the parameterized complexity of CSMP and CSMP-1 on grids where each sliding-move/path is either horizontal or vertical?
References
- [1] Manuel Abellanas, Sergey Bereg, Ferran Hurtado, Alfredo García Olaverri, David Rappaport, and Javier Tejel. Moving coins. Computational Geometry, 34(1):35–48, 2006. doi:10.1016/J.COMGEO.2005.06.005.
- [2] Stefan Arnborg, Jens Lagergren, and Detlef Seese. Easy problems for tree-decomposable graphs. Journal of Algorithms, 12:308–340, 1991. doi:10.1016/0196-6774(91)90006-K.
- [3] 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.
- [4] Sergey Bereg, Adrian Dumitrescu, and János Pach. Sliding disks in the plane. International Journal of Computational Geometry & Applications, 18(05):373–387, 2008. doi:10.1142/S0218195908002684.
- [5] Therese Biedl. On triangulating -outerplanar graphs. Discret. Appl. Math., 181:275–279, 2015. doi:10.1016/J.DAM.2014.10.017.
- [6] 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.
- [7] Gruia Călinescu, Adrian Dumitrescu, and János Pach. Reconfigurations in graphs and grids. SIAM Journal on Discrete Mathematics, 22(1):124–138, 2008. doi:10.1137/060652063.
- [8] 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.
- [9] 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.
- [10] A. Deligkas, E. Eiben, R. Ganian, I. 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.
- [11] Erik D. Demaine, Sándor P. Fekete, Phillip Keldenich, Henk Meijer, and Christian Scheffer. Coordinated motion planning: Reconfiguring a swarm of labeled robots with bounded stretch. SIAM Journal on Computing, 48(6):1727–1762, 2019. doi:10.1137/18M1194341.
- [12] Erik D. Demaine and Mikhail Rudoy. A simple proof that the ()-puzzle is hard. Theoretical Computer Science, 732:80–84, 2018.
- [13] Reinhard Diestel. Graph Theory, 4th Edition, volume 173 of Graduate texts in mathematics. Springer, 2012.
- [14] Frederic Dorn. Planar subgraph isomorphism revisited. In Jean-Yves Marion and Thomas Schwentick, editors, 27th International Symposium on Theoretical Aspects of Computer Science, STACS 2010, March 4-6, 2010, Nancy, France, volume 5 of LIPIcs, pages 263–274. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2010. doi:10.4230/LIPICS.STACS.2010.2460.
- [15] 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.
- [16] Adrian Dumitrescu. Motion planning and reconfiguration for systems of multiple objects. In Sascha Kolski, editor, Mobile Robots, chapter 24. IntechOpen, Rijeka, 2007.
- [17] Eduard Eiben, Robert Ganian, and Iyad Kanj. The parameterized complexity of coordinated motion planning. In Proceedings of the 39th International Symposium on Computational Geometry, volume 258 of LIPIcs, pages 28:1–28:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPICS.SOCG.2023.28.
- [18] 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.
- [19] Henning Fernau, Torben Hagerup, Naomi Nishimura, Prabhakar Ragde, and Klaus Reinhardt. On the parameterized complexity of the generalized rush hour puzzle. In Proceedings of the 15th Canadian Conference on Computational Geometry, pages 6–9, 2003. URL: http://www.cccg.ca/proceedings/2003/22.pdf.
- [20] Foivos Fioravantes, Dusan Knop, Jan Matyás Kristan, Nikolaos Melissinos, and Michal Opler. Exact algorithms and lowerbounds for multiagent pathfinding: Power of treelike topology. CoRR, abs/2312.09646, 2023. doi:10.48550/arXiv.2312.09646.
- [21] Gary W. Flake and Eric B. Baum. Rush hour is PSPACE-complete, or “Why you should generously tip parking lot attendants”. Theoretical Computer Science, 270(1-2):895–911, 2002. doi:10.1016/S0304-3975(01)00173-6.
- [22] Martin Grohe, Ken-ichi Kawarabayashi, Dániel Marx, and Paul Wollan. Finding topological subgraphs is fixed-parameter tractable. In Lance Fortnow and Salil P. Vadhan, editors, Proceedings of the 43rd ACM Symposium on Theory of Computing, STOC 2011, San Jose, CA, USA, 6-8 June 2011, pages 479–488. ACM, 2011. doi:10.1145/1993636.1993700.
- [23] Peter E. Hart, Nils J. Nilsson, and Bertram Raphael. A formal basis for the heuristic determination of minimum cost paths. IEEE Transactions on Systems Science and Cybernetics, 4(2):100–107, 1968. doi:10.1109/TSSC.1968.300136.
- [24] Iyad Kanj and Salman Parsa. On the parameterized complexity of motion planning for rectangular robots. In Wolfgang Mulzer and Jeff M. Phillips, editors, 40th International Symposium on Computational Geometry, SoCG 2024, June 11-14, 2024, Athens, Greece, volume 293 of LIPIcs, pages 65:1–65:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPICS.SOCG.2024.65.
- [25] Tuukka Korhonen. A single-exponential time 2-approximation algorithm for treewidth. In 62nd IEEE Annual Symposium on Foundations of Computer Science, FOCS 2021, Denver, CO, USA, February 7-10, 2022, pages 184–192. IEEE, 2021. doi:10.1109/FOCS52979.2021.00026.
- [26] Jaroslav Nešetřil 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.
- [27] 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.
- [28] Geetha Ramanathan and Vangalur S. Alagar. Algorithmic motion planning in robotics: Coordinated motion of several disks amidst polygonal obstacles. In ICRA, volume 2, pages 514–522, 1985. doi:10.1109/ROBOT.1985.1087248.
- [29] Daniel Ratner and Manfred Warmuth. The ()-puzzle and related relocation problems. Journal of Symbolic Computation, 10(2):111–137, 1990.
- [30] Neil Robertson and Paul D. Seymour. Graph minors. III. planar tree-width. J. Comb. Theory B, 36(1):49–64, 1984. doi:10.1016/0095-8956(84)90013-3.
- [31] Jacob T. Schwartz and Micha Sharir. On the piano movers’ problem: III. coordinating the motion of several independent bodies: The special case of circular bodies moving amidst polygonal barriers. The International Journal of Robotics Research, 2:46–75, 1983.
- [32] Jacob T. Schwartz and Micha Sharir. On the “piano movers’” problem I. The case of a two-dimensional rigid polygonal body moving amidst polygonal barriers. Communications on Pure and Applied Mathematics, 36(3):345–398, 1983.
- [33] Jacob T. Schwartz and Micha Sharir. On the “piano movers” problem. II. General techniques for computing topological properties of real algebraic manifolds. Advances in Applied Mathematics, 4(3):298–351, 1983.
- [34] Guni Sharon, Roni Stern, Ariel Felner, and Nathan R. Sturtevant. Conflict-based search for optimal multi-agent pathfinding. Artificial Intelligence, 219:40–66, 2015. doi:10.1016/J.ARTINT.2014.11.006.
- [35] Irving Solis, James Motes, Read Sandström, and Nancy M. Amato. Representation-optimal multi-robot motion planning using conflict-based search. IEEE Robotics Automation Letters, 6(3):4608–4615, 2021. doi:10.1109/LRA.2021.3068910.
- [36] 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.
- [37] Jingjin Yu and Steven M. LaValle. Structure and intractability of optimal multi-robot path planning on graphs. In AAAI, pages 1443–1449, 2013. doi:10.1609/AAAI.V27I1.8541.
- [38] Jingjin Yu and Steven M. LaValle. Optimal multirobot path planning on graphs: Complete algorithms and effective heuristics. IEEE Transactions on Robotics, 32(5):1163–1177, 2016. doi:10.1109/TRO.2016.2593448.
- [39] 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.