Original paperSourceNo author review
Make your paper interactiveCreate

Text from the interactive explanation

Coordinated Motion Planning Is FPT on Discretized Simple Polygons

Deligkas, Argyrios, Eiben, Eduard, Ganian, Robert, Kanj, Iyad

A few robots share a floor. Each must reach its own spot without ever bumping into another, and together they should travel as little as possible. Can a computer always find that best plan efficiently, however big and oddly shaped the floor is? This paper proves the answer is yes for every floor plan without holes, as long as the robots are few. The trick is to rebuild the map, even weave part of it, without changing the answer.

Live toy computation Four robots on a hole-free floor plan, routed in your browser by a simple planner (not the paper's algorithm). Moving costs one unit per step and waiting is free. Drag a flag (or tap a flag, then tap a new spot) to change an order.

Based on: A. Deligkas, E. Eiben, R. Ganian, I. Kanj, “Coordinated Motion Planning Is FPT on Discretized Simple Polygons,” ICALP 2026, LIPIcs vol. 374, paper 75. doi:10.4230/LIPIcs.ICALP.2026.75

Two robots, one corridor, no passing

Before thinking about warehouses, feel the rules with your own hands.

Engineers turn a floor into a graph: a set of spots (the dots) joined by short moves (the lines). Time ticks in steps. At each step every robot may hop to a neighbouring spot or wait where it is.

Two rules keep robots from crashing: no two robots on the same spot at the same time , and no two robots swapping places head-on along the same line . One robot may follow right behind another, though.

A plan for all robots is called a schedule. The paper measures its cost as the total travel length, often called energy: the total number of hops made by all robots. Waiting is free. The problem of finding the cheapest schedule is called coordinated motion planning, also known as multi-agent pathfinding.

Notice what the corridor does: with nowhere to step aside, the robots can never change order. Give them one pocket and it becomes possible, but someone has to pay for the detour. Narrow passages force extra moves. That is exactly what makes real floor plans tricky.

Exact, computed live “Best possible” comes from checking every arrangement of the robots, which is easy for a tiny corridor.

Every robot multiplies the search

With two robots in a corridor you can check every possibility. On a real floor, the possibilities explode.

A computer could, in principle, consider every way of placing the robots on the map and search for the cheapest sequence of moves. With n spots and k robots there are about nk arrangements. Every extra robot multiplies the count by the size of the map.

Coordinated motion planning is NP-hard. Computer scientists use this label for problems where nobody expects a method that stays fast in every case. So the realistic hope is narrower: confine the explosion to the one thing that is usually small, the number of robots .

That hope has a name: fixed-parameter tractable (FPT). An FPT algorithm runs in time f(k)·nc. The factor f(k) may grow wildly with the number of robots k, but the map size n only enters through a fixed power c.

Illustrative shapes The arrangement count is exact. The curves only show growth shapes. The paper proves an f(k)·nO(1) bound and does not give these numbers.

From perfect grids to real floor plans

Whether the problem is FPT depends on what the map is allowed to look like. Researchers have been climbing a ladder of map types.

Live Drag the white handles (keyboard: Enter picks the next corner, arrows move it). Red dots are the spots kept; grey lines are the moves kept.

Discretizing a polygon

Robots really move through continuous space: a room bounded by walls, which geometers model as a polygon. A common, highly successful practice is to lay a grid over the free space and plan on the grid. The paper's maps are exactly these: take a simple polygon, an outline that never crosses itself and has no holes, and keep every grid spot and every grid move that lies fully inside it.

Such discretized polygons include every rectangle, so they generalize the full grids solved in 2023. They are also far richer: walls can carve narrow corridors, dead-end bays, stepped edges and wide halls. The paper notes that the two key ingredients of the full-grid algorithm, bounding how often robots turn and an integer-programming formulation, “break down completely” near such intricate boundaries.

How many snips to break the map?

The 2024 algorithm handles any map, as long as it is “thin”. Let's find out what thin means.

Pick a map and drag across it to snip spots (block them). The coloured regions show which parts can still reach each other. Your goal is to split the map into two big pieces, each with at least a quarter of the spots, using as few snips as possible.

In the corridor maze , one or two well-placed snips are enough.

In the open hall , nothing short of a full wall-to-wall line works. Its cost grows with the size of the hall.

Mathematicians capture this with treewidth. Roughly, a map has small treewidth if it can be broken into balanced pieces by removing only a few spots, then those pieces again, and so on. A corridor maze has small treewidth. An open square hall of width 100 has treewidth 100.

Small treewidth is what the 2024 algorithm needs. It works through the map piece by piece and only has to keep track of robots crossing the small cuts between pieces. Its run time explodes only in the number of robots plus the treewidth.

Live Drag to snip, or tap a snipped spot to restore it. Keyboard: Enter snips the middle column.

A detour budget rules out most of the map

The first clue for thinning a map: in a cheapest plan, no robot strays far from its own shortest route.

Exact, computed live A spot is lit if going start → spot → goal takes at most the shortest trip plus λ steps.

The paper builds on a preprocessing step from the 2024 work. It shows that it is enough to look for schedules in which every robot travels at most λ = c·k⁵ steps more than its own shortest trip (c is a fixed constant). This allowance is called the travel slack. It depends only on the number of robots, never on the size of the map.

So a robot can only ever use spots where “start → spot → goal” fits within its budget. Slide λ and look:

Far-off bays and dead ends stay dark. No robot will ever visit them, so they could be trimmed away.

Inside an open hall, even λ = 0 lights up a whole rectangle. Every staircase-shaped route between two corners of a hall is equally short, so every spot in between might be used.

Toy values of λ are used here; the real bound c·k⁵ is far larger.

Sectors: regions with the same turn signature

The authors carve the map into regions where robots behave alike. The secret ingredient is counting turns.

Call every robot start and every destination a terminal. For each spot on the map, ask, for every terminal: among all shortest routes from that terminal to this spot, what is the fewest turns (bends) needed if the route arrives moving vertically? And if it arrives moving horizontally?

The list of answers is the spot's bend vector: its turn signature, or in the authors' words, its “roadmap” to the terminals. Connected regions whose spots share exactly the same bend vector form a sector. Each terminal forms its own one-spot sector.

The authors prove three structural facts about sectors:

The sector graph Γ has treewidth bounded by a function of the number of robots.

Every straight line crosses at most 12k sectors. Test it with the black probe line.

Every sector has at most 8 non-trivial neighbouring sectors.

Each non-trivial sector has a baseline: a straight path from which the whole sector can be reached by going straight. Shortest routes from terminals enter the sector across one of its baselines. Depending on its baselines, a sector comes in one of three shapes:

A technical aside from the paper: earlier work on drawing graphs used four directions (↑ ↓ ← →) to define sectors. Here the authors use just two axes (↕ and ↔); otherwise several of the lemmas behind the treewidth proof would fail.

Exact, computed live Filled pins are starts, ringed pins destinations. Grey strips are spots reachable from some terminal in a straight line. The probe passes through the spot you last tapped.

Flatten, trim, and weave

For each sector shape the authors prove a rule that shrinks the map's thickness while keeping the answer the same: a schedule within the travel budget exists before the change exactly when one exists after it.

Flattening a histogram

In a histogram sector, shortest routes enter across the single baseline (red). A robot that climbs h steps up one of the towers must come back down the same height to leave, so the excursion costs at least 2h extra steps.

With a detour budget of λ, that means no robot in a feasible schedule ever climbs more than λ/2 above the baseline . Everything higher can be deleted. The towers are flattened to height λ/2, and a short, wide region has small treewidth.

The teal robot keeps making the biggest excursion its budget allows. Raise λ and it climbs higher. It never reaches the grey spots.

Trimming a staircase

A staircase sector has two baselines at right angles (blue and red) that separate it from all terminals. The authors show that if some schedule sends a robot deeper than a buffer zone of (k+1)(λ+1) steps around the baselines, a sequence of rerouting arguments produces an equally good schedule in which every robot stays inside the buffer.

So the spots beyond the buffer can be deleted safely. What remains is an L-shaped band whose width depends only on the number of robots k and the slack λ, not on the size of the map.

Weaving a rectangle

Open halls are where trimming fails, and this is the paper's most surprising move. The authors prove that any feasible schedule can be rearranged into a tidy form in which every turn and every wait happens inside a frame of bounded width along the hall's border (pink). In the middle region, called S*, robots only ever cross straight from one side to the opposite side.

So the middle doesn't need to be a grid at all. The authors delete every interior spot of S* and replace each row and each column by its own thread : a separate path of the same length joining the two opposite border spots. Threads pass over and under each other without ever meeting, like a woven cloth.

The new map has more spots than the original, not fewer.

It can no longer be drawn flat without crossings, so it has left the class of floor plans entirely.

Yet it is thinner : the snip test needs only a few cuts on the frame, however big the hall.

This is what the authors highlight as new: instead of only deleting parts of the map, as earlier treewidth-reduction methods do, they add gadgets, producing a map outside the original class that still has bounded treewidth.

In the paper the frame width is q(k) = (k+1)(μ² + μ), where μ (which grows like k to the power O(k²)) is a previously proven bound on how many turns a cheapest schedule needs on a full grid. The tidy form is proved with a sequence of “buffer-shifting” arguments. Here the frame is shrunk to a toy width q so the weave is visible. With the paper's enormous frames, the payoff only appears on very large halls.

Illustration The paper's rectangle reduction (Fig. 5) with a toy frame width. Robot motion is illustrative. The snip test is computed live on the actual woven map.

After applying the three rules again and again, every sector is short in one direction, or splits into at most four pieces that are, plus some woven threads. Each sector on its own is then thin. The main technical challenge is proving that the whole map is thin, because sectors are glued together along the sector graph Γ.

That does not follow automatically. Imagine a long pile of “flat but wide” sectors stacked on top of each other. Each one is thin and Γ is just a path, yet the pile together is a big thick block. Insight 2 (a straight line crosses at most 12k sectors) rules this pile out, but more complex arrangements need a careful argument.

The authors first detach the trivial sectors, so that Γ has at most 8 neighbours per sector. They then take a tree decomposition (the formal object behind treewidth) of an enlarged version of Γ that links sectors up to 12k apart. Inside each sector they pick a bounded number of special spots that act as “semi-separators”. Swapping each sector in the decomposition for its special spots gives a template, and every leftover region is shown to be thin and attached to a single node of the template.

From floor plan to thin map to answer

Put the pieces together and you get the paper's algorithm, step by step.

0 The input: a hole-free floor plan and a few robots with starts and destinations.

1 Bound the detours. The 2024 preprocessing means it suffices to search for schedules in which every robot travels at most λ = c·k⁵ beyond its shortest trip. It also reduces the general problem to the version where every robot has a destination.

2 Carve sectors. Compute bend vectors, sectors and the sector graph Γ.

3 Flatten and trim. Histogram sectors lose everything above λ/2; staircase sectors keep only their buffer.

4 Weave. The interior of big rectangle sectors is replaced by non-touching threads.

5 Solve. The result has treewidth bounded by a function of k, so the 2024 algorithm for “k plus treewidth” finds the cheapest schedule.

The result is a mathematical proof, and it is constructive: whenever a schedule within the travel budget exists, the algorithm outputs one.

Schematic Sector colours are computed live for these pins. Which sectors get flattened, trimmed or woven is hand-picked, and all widths are toy values. Waves show distances spreading from the terminals.

Real warehouses have shelves. Shelves are holes.

We began with a question: can the best plan for a few robots be found efficiently on any floor plan? For floor plans without holes, this paper settles it.

Live toy computation Tap the open floor to place or remove a shelf. Robots replan around it with the same simple planner.

The result moves the frontier of what is provably solvable from idealized rectangles to the realistic, irregular, hole-free grids that come from discretizing actual rooms. Moreover, the method is new. Rather than deleting “irrelevant” parts of the map, it rebuilds the map, weaving threads that take it outside the class of floor plans, and still makes it thin.

But a real warehouse floor is full of shelving racks, and every rack is a hole in the floor plan. Drop some shelves on the floor and see what is known:

One hole: the authors note that extending the result to a full grid with a single hole “is not too difficult”.

A few holes (a constant number, or a number bounded by the robot count): open. The authors “strongly believe” the answer is yes, by refining this paper's approach.

Any subgrid, or any planar network: open. The authors conjecture yes and expect that reducing to small treewidth remains the right strategy, though new insights will be needed. They call it the most pressing open problem in the area.

Even for completely general networks, whether the problem is FPT in the number of robots is still unknown.

The paper

Argyrios Deligkas, Eduard Eiben, Robert Ganian, Iyad Kanj. “Coordinated Motion Planning Is FPT on Discretized Simple Polygons.” In 53rd International Colloquium on Automata, Languages, and Programming (ICALP 2026), Leibniz International Proceedings in Informatics (LIPIcs), vol. 374, paper 75. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026.

DOI: 10.4230/LIPIcs.ICALP.2026.75 · Full version: arXiv:2605.07570 · Licensed under CC BY 4.0.

Earlier results mentioned: E. Eiben, R. Ganian, I. Kanj, “The parameterized complexity of coordinated motion planning,” SoCG 2023 (full grids). A. Deligkas, E. Eiben, R. Ganian, I. Kanj, M. S. Ramanujan, “Parameterized Algorithms for Coordinated Motion Planning: Minimizing Energy,” ICALP 2024 (k plus treewidth, and the slack preprocessing).

Figures 1–6 are reproduced from the paper under CC BY 4.0, converted from vector to raster images and otherwise unmodified. All interactive maps, robots, parameters and animations on this page are original toy illustrations computed in your browser. They demonstrate the ideas, not the paper's actual algorithm or its bounds.

Topics in this iPaper

Computer science
Theory of computation → Parameterized complexity and exact algorithms

Front matter, 2012 ACM Subject Classification

Mathematics
The main technical challenge lies in proving that the entire graph – where sectors are interconnected along the edges of the sector graph Γ – has bounded treewidth.

Section 3.4, Step 4: From Reductions to Bounded Treewidth

multi agent pathfinding
In the Coordinated Motion Planning problem (CMP) – also known as Multi-Agent Pathfinding – we are given a graph G and a set ℛ of robots

Section 1, Introduction, first paragraph

parameterized complexity
coordinated motion planning, multi-agent path finding, parameterized complexity

Keywords and phrases

treewidth
we prove Theorem 1 using a novel treewidth-reduction technique.

Section 1, Contributions

computational geometry
Let P be a simple polygon, that is, a non-self-intersecting polygon without holes, embedded in the Euclidean plane and containing a unit-length grid H.

Section 2, Preliminaries

robot motion planning
The problem is further motivated by numerous real-world applications, including automated warehouse systems [38, 24], traffic management and control [25], and robotics [36].

Section 1, Introduction, second paragraph