Abstract 1 Introduction 2 The SM-RAMP problem 3 Hardness of the lighthouse propagation problem 4 Hardness of the SM-RAMP problem 5 Positive results References

Robotic Arm Rotation: Standing up Is Harder Than You Think

Nicolas Bousquet ORCID CNRS, UniversitΓ© de MontrΓ©al CRM - CNRS, Canada
Univ. Lyon, CNRS, INSA Lyon, UCBL, LIRIS, UMR5205, F-69621, Lyon, France
   Frank Connor McGill University, Montreal, Canada    Remy El Sabeh ORCID David R. Cheriton School of Computer Science, University of Waterloo, Canada    Louis-Roy Langevin McGill University, Montreal, Canada    Amer E. Mouawad ORCID American University of Beirut, Lebanon
David R. Cheriton School of Computer Science, University of Waterloo, Canada
   Naomi Nishimura David R. Cheriton School of Computer Science, University of Waterloo, Canada    Agnes Totschnig McGill University, Montreal, Canada
Abstract

We study motion-planning problems for planar robotic arms that rotate around fixed centers while avoiding collisions. In the SM-RAMP model, each unit-length arm may rotate at most once; the question is whether all arms can be rotated to the vertical position. We resolve an open problem of Bousquet et al. [1] by proving that SM-RAMP is NP-complete, even in the horizontal-to-vertical setting. Our hardness proof uses a structural analysis of rotation-propagation chains and introduces a combinatorial abstraction of independent interest, the Lighthouse Propagation problem, which we show is itself NP-complete. We then consider the multi-move variant MM-RAMP, where each arm may rotate multiple times among a fixed set of allowed angles (or orientations). We prove that MM-RAMP is PSPACE-complete even when each arm has only a few allowed angles, in sharp contrast with the single-move case. Finally, we give two fixed-parameter tractable algorithms: for MAX-SM-RAMP parameterized by the number k of arms to be made vertical, and for 2A-MM-RAMP (restricted to horizontal and vertical) parameterized by the number β„“ of allowed rotations.

Keywords and phrases:
search, optimization, robotics, robotic arms, parameterized complexity, computational geometry, combinatorial reconfiguration
Funding:
Nicolas Bousquet: supported by the ANR (Agence Nationale de la Recherche) project TOAD (ANR-25-CE48-3716).
Agnes Totschnig: supported by a McCall MacBain Scholarship and partially by FRQNT Grant 332481.
Copyright and License:
[Uncaptioned image] © Nicolas Bousquet, Frank Connor, Remy El Sabeh, Louis-Roy Langevin, Amer E. Mouawad,
Naomi Nishimura, and Agnes Totschnig; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation β†’ Complexity classes
; Theory of computation β†’ Problems, reductions and completeness ; Theory of computation β†’ Graph algorithms analysis ; Theory of computation β†’ Parameterized complexity and exact algorithms
Funding:
Remy El Sabeh and Naomi Nishimura: supported by the Natural Sciences and Engineering Research Council of Canada (NSERC).
Editor:
Pierre Fraigniaud

1 Introduction

Motion planning for multiple robots operating in a shared workspace is a fundamental problem in robotics, studied under both centralized [13] and decentralized [7, 19] frameworks. The core challenge is to design collision-free motions that transform a given initial configuration of robots into a desired target configuration. While sampling-based algorithms often perform well in practice, they provide limited guarantees and do not capture the combinatorial structure underlying interference constraints. Motivated by this, we adopt a reconfiguration viewpoint, in which we study reachability questions on highly restricted robotic systems where collisions arise solely from geometric interactions.

Combinatorial reconfiguration problems were formally introduced in algorithmic form by Ito et al. [14], who studied how to transform one feasible solution (or configuration) of a combinatorial problem into another through a sequence of small, valid changes. Since then, the area has grown into a broad framework encompassing graph problems, geometric objects, and combinatorial optimization. The Nondeterministic Constraint Logic (NCL) framework of Hearn and Demaine [11, 12, 6] has been used as a central tool in this setting to prove 𝖯𝖲𝖯𝖠𝖒𝖀-completeness of many natural puzzles and motion-planning problems. The resulting theory features both rich algorithmic structure and numerous hardness results [2, 15, 5, 4, 18, 17]. For an overview of developments in the area, we refer the reader to the surveys [3, 21, 16].

In this paper, we continue the study of extremely restricted robotic systems [1]. Each robot is a simple robotic arm represented by a unit-length line segment in the plane which can move only by rotating around its midpoint, either clockwise or anticlockwise. A configuration (specified midpoints and angles of each arm) is conflict-free if no two arms intersect; moreover, no arm is allowed to intersect any other arm at any point during its rotation. Despite their simplicity, these systems encode surprisingly rich geometric dependencies that make even very restricted motion-planning questions computationally complex.

We first study the simplest such question in the Single-Move Robotic Arm Motion Planning (SM-RAMP) problem [1]: starting from an initial configuration, can all arms be made vertical by at most one rotation per arm? A solution to the problem consists of a sequence of intermediate configurations, each obtained by rotating exactly one arm to the vertical orientation. Since each arm has only a single opportunity to rotate, the order in which we choose to rotate the arms is crucial, e.g., rotating one arm too early may block the rotation of another arm that lies β€œbehind” it. Intuitively, SM-RAMP asks whether it is possible to choose an ordering in which to β€œstand up” the arms one by one.

Previous work proved NP-completeness of related problems, but left open the complexity of SM-RAMP [1]. We resolve this open problem by proving that SM-RAMP is 𝖭𝖯-complete, even when all arms are initially horizontal. A horizontal-to-vertical (H–V) instance eliminates all freedom in the choice of angles and imposes an extremely regular structure on allowed rotations, yet remains computationally intractable.

Theorem 1.

SM-RAMP is 𝖭𝖯-complete, even when restricted to H–V instances where every robotic arm interacts with at most three others.

To prove Theorem 1, we introduce the Lighthouse Propagation (LPR) problem, where chains (sequences of arms) are abstracted into rectilinear light rays; doing so allows us to break the quite technical reduction of Theorem 1 into two parts. Given a set of lighthouses, positioned at points in a grid, where each lighthouse Li can illuminate either of two light ray bundles Xi or Yi (oriented subtrees rooted at Li), the LPR problem consists of choosing, for each i, either Xi or Yi so that the union of the chosen bundles is acyclic. We define the behavior of these light rays to match the behavior of chains in SM-RAMP. This abstraction allows us to design gadgets to encode instances of Planar 3-Bounded 3-SAT, an NP-complete problem, into instances of LPR with reflection count at most three, that is, where each light ray intersects at most three others.

Theorem 2.

Lighthouse Propagation is 𝖭𝖯-complete, even when restricted to instances with a reflection count of at most three.

The LPR reduction (Theorem 2, deferred to Section 3) contains all the combinatorial ingredients and explains how we will use chains to derive hardness, without having to account for two important aspects of an SM-RAMP instance. First, we need not be concerned with the exact positions of the midpoints of the robotic arms, which allows us to bypass much of the geometry of the problem. Second, we assume in the definition of the problem that, without having to design gadgets, we have the desired propagation behaviour. We will handle these two points in the reduction from LPR to SM-RAMP (in Section 4).

While SM-RAMP restricts each arm to a single rotation, the original framework [1] and most applications in robotics also consider more general reconfiguration problems where arms (and more generally robots) may rotate multiple times among a finite set of allowed angles. This leads to the Multiple-Move Robotic Arm Motion Planning problem (MM-RAMP), which generalizes SM-RAMP by allowing each arm to rotate more than once and by specifying multiple allowed angles. We are given initial and target conflict-free configurations of a set of robotic arms. Each arm has a specified finite set of allowed angles, including its starting and ending angles. A valid reconfiguration sequence is a sequence of conflict-free intermediate configurations that transforms the initial configuration into the target one, moving the robotic arms one by one. As in SM-RAMP, each step may rotate only a single arm, which must be intersection-free throughout its rotation. However, unlike in SM-RAMP, an arm may rotate multiple times over the course of the sequence.

Intuitively, MM-RAMP asks whether it is possible to β€œnavigate” each arm through its allowed angles, one movement at a time, without ever intersecting another arm. The challenge lies not only in finding a feasible path for each individual arm, but also in orchestrating movements so that rotations of one arm do not obstruct the movements of others. This makes MM-RAMP much more expressive and significantly more complex than its single-move counterpart. We establish the intrinsic difficulty of MM-RAMP by showing that it is 𝖯𝖲𝖯𝖠𝖒𝖀-complete, even when each arm is allowed only a constant number of angles.

Theorem 3.

MM-RAMP is 𝖯𝖲𝖯𝖠𝖒𝖀-complete, even when the total number of distinct angles is at most 5, and when the number of possible angles per robotic arm is at most 3.

Complementing these hardness results, we identify two settings in which RAMP problems become tractable from a parameterized perspective. Positive results in such constrained geometric reconfiguration settings appear to be scarce, and our findings suggest that parameterization may be a promising avenue toward identifying nontrivial tractable cases.

  • β– 

    Let MAX-SM-RAMP denote a variant of SM-RAMP where arms can initially be either horizontal or vertical and the goal is to determine whether there exist at least k arms that can be rotated from horizontal to vertical (allowing at most one rotation per arm). We show that MAX-SM-RAMP is fixed-parameter tractable (and admits a polynomial kernel) when parameterized by k.

  • β– 

    Let 2A-MM-RAMP denote a variant of MM-RAMP allowing only two admissible orientations per robotic arm. Given an integer β„“, the goal is to determine whether there exists a sequence of at most β„“ rotations that can transform the initial configuration to the target one (allowing multiple rotations per arm). We show that 2A-MM-RAMP is fixed-parameter tractable when parameterized by β„“, provided only the horizontal and vertical orientations are allowed.

These results are modest in scope, but they indicate that a careful choice of parameters can help isolate tractable structure within RAMP problems.

Collectively, our results demonstrate that even extremely constrained geometric motion-planning problems encode deep combinatorial structure. The RAMP framework thus serves as a minimal yet expressive setting for understanding the complexity landscape of intersection-free reconfiguration. More broadly, we believe that the problems and techniques introduced here, most notably the structural analysis of rotation dependencies and the lighthouse propagation abstraction, could provide a foundation for studying hardness in other highly constrained geometric reconfiguration systems. These models capture fundamental propagation mechanisms that arise whenever simple geometric objects interact through rigid interference constraints, and we hope that they will serve as starting points for establishing complexity results in a wider class of geometric reconfiguration problems.

Due to space constraints, all missing (formal) proofs and all details about the MM-RAMP results can be found in the full version of the paper.

2 The SM-RAMP problem

The Robotic Arm Motion Planning (RAMP) problems are defined in the plane ℝ2. A robotic arm is a unit-length segment with midpoint (x,y) and angle a∈[0,Ο€), measured from the horizontal. Each arm r has an associated circle and square centered at its midpoint, used only to define geometric constraints. A set of arms is conflict-free if their segments are pairwise non-intersecting. We focus on horizontal arms (a=0) and vertical arms (a=Ο€/2).

A reconfiguration step rotates a single arm r1 about its midpoint, changing a to aβ€²=(a+Ξ±)modΟ€ with βˆ’Ο€<Ξ±<Ο€. If the swept sector intersects another arm r2 (even in a single point), the rotation collides with r2. In the Single-Move RAMP (SM-RAMP) problem, each arm may rotate at most once. Given a conflict-free set of arms, we ask whether all arms can be made vertical via a sequence of collision-free reconfiguration steps.

2.1 Definitions and initial observations

The solution to a RAMP problem, or rotation ordering, is a pair (β„›sol,π’Ÿsol), where β„›sol=(r1β€²,…,rnβ€²) lists the arms in β„›={r1,…,rn} in the order in which they rotate and π’Ÿsol=(d1,…,dn), di∈{𝖒,𝖠}, records clockwise/anticlockwise rotation. Properties of a rotation ordering are characterized by two types of constraints (Figure 1) between arms ri and rj:

  • β– 

    A clockwise/anticlockwise precedence constraint on ri (involving rj) means rj must rotate before ri can rotate in that direction (Figures 1(a) and 1(b)).

  • β– 

    A clockwise/anticlockwise succession constraint on ri (involving rj) means that if rj has already rotated, then rotating ri in that direction would cause a collision, so ri must rotate before rj (Figures 1(c) and 1(d)).

Figure 1: Precedence and succession constraints between two arms. Target orientations are depicted by dashed line segments, while initial orientations are depicted by solid lines.

We encode constraints in four directed graphs P𝖒,P𝖠,S𝖒,S𝖠 on vertex set β„›: P (resp. S) encodes precedence (resp. succession), and the subscript indicates rotation direction. In P𝖷, an arc (ri,rj) means rj must rotate before ri if ri rotates in direction 𝖷; in S𝖷, an arc (ri,rj) means ri must rotate before rj if rj rotates in direction 𝖷. If any such constraint exists, arms ri and rj interact.

Given a direction assignment Ξ΄:β„›β€²β†’{𝖒,𝖠} with β„›β€²βŠ†β„›, we call Ξ΄ compatible if there is a rotation ordering in which each rβˆˆβ„›β€² rotates according to δ⁒(r). The associated rotation dependency graph GΞ΄ has vertex set β„›β€² and an arc (ri,rj) whenever rj∈Pδ⁒(ri) or ri∈Sδ⁒(rj). Then Ξ΄ is compatible if and only if GΞ΄ is acyclic. If β„›β€²=β„›, any reverse topological ordering of GΞ΄ yields a rotation ordering.

In a horizontal-to-vertical (H–V) instance, all arms start horizontal and must become vertical. We capture the geometry of constraints via flowers (Figure 3): we place eight quarter-circular regions (petals) around an arm’s square, each petal being of type P𝖒,P𝖠,S𝖒, or S𝖠. We observe that, for any type in {P𝖒,P𝖠,S𝖒,S𝖠}, if the midpoint of rj lies in a petal of that type of ri, then the midpoint of ri lies in a petal of the same type of rj. Thus every interacting pair appears in exactly one of the four graphs and every constraint is bidirectional. This structural property distinguishes H–V instances from the general case and underlies both hardness and positive results (Section 5).

2.2 Chains in SM-RAMP instances

We now introduce chains, the key structured gadgets used in our hardness proof. A horizontal chain is a sequence r1,…,rh of horizontal arms whose pairwise interactions use only P-constraints, with symmetric constraints only between consecutive arms and no constraints between non-consecutive arms. Analogously, a vertical chain uses only S-constraints. Neighboring arms in a chain always rotate in opposite directions (Figure 3).

Figure 2: A flower of an arm: the petal containing another arm’s midpoint determines the constraint.
Figure 3: A horizontal chain (left) and a vertical chain (right).
Figure 4: The eight local propagation patterns between intersecting chains, together with arrow representations for cases (i) and (ii). In each pattern, propagation is rooted at the red dashed arm, whose rotation direction is indicated, and the dotted blue arm is the arm shared by the two chains.

In a horizontal chain, only the two ends can rotate first; rotations then propagate from the ends toward an arm at the center of the chain, which rotates last. In a vertical chain, any arm may rotate first, but once the first arm and its direction are fixed, the directions and order of all other arms are forced; the pattern is essentially the reverse of that of a horizontal chain. Choosing a rotation direction for some arm ri in a chain induces a propagation: a forced ordering and directions on a set of constrained arms, including root ri.

A horizontal chain and a vertical chain that share an arm intersect; propagation along one chain may spread to the other through the shared arm. When propagation spreads, we distinguish a main chain (where propagation starts) and a branching chain (where propagation spreads to). All possible local propagation patterns between two intersecting chains fall into eight cases, depending on the geometry and on the chosen root and direction (Figure 4).

Figure 5: Propagation arrows summarizing the forced rotation orders and directions for different roots (dotted blue for the clockwise rotation of r1, dashed green for the clockwise rotation of r2). The red rotation arrows indicate the directions forced by the clockwise rotation of r1.

Because propagation along a chain has a well-defined direction and order, we represent it by a propagation arrow (Figures 4 and 5): arms at the head rotate first and at the tail rotate last. In our constructions chains are horizontal or vertical, so arrows are rectilinear. Propagation can also travel through a sequence of intersecting chains, possibly stopping at intersections depending on the chosen root and direction; this behavior is captured combinatorially in Section 2.3 and realized geometrically in the reduction to SM-RAMP.

2.3 The lighthouse propagation problem

We abstract propagation behavior in the Lighthouse Propagation (LPR) problem. We work on an (m+1)Γ—(m+1) integer grid, where mβˆˆβ„•+. Each lighthouse Li sits at a grid point li and has two bundles Xi,Yi of directed grid edges. Each bundle is a tree-like rectilinear structure of horizontal and vertical unit-length edges of maximum degree 3, with exactly one horizontal edge incident to the lighthouse; orientations are chosen so that each bundle behaves like a propagation pattern along rectilinear chains. Maximal collinear sequences of edges are grouped into (light) rays, each drawn as an arrow (Figure 6). Bundles must also interact in a restricted way: light rays of different bundles never overlap and only intersect orthogonally at endpoints, mirroring how propagation spreads between chains (Figure 7).

Figure 6: Valid (left) and invalid (right) light ray bundles for two lighthouses. The dashed grey bundle is invalid because it is (1) disconnected; (2) vertically attached to the lighthouse; (3) cyclic or contains a degree-4 vertex; (4) contains a vertex incident to three distinct light rays; (5) contains intersecting light rays whose arrows do not correspond to any local propagation pattern in Figure 4; or (6) contains collinear intersecting light rays.
Figure 7: Forbidden interactions between light ray bundles. An interaction is invalid if (1) a light ray overlaps a light ray of the other bundle; (2) a light ray crosses a light ray of the other bundle; or (3) a light ray intersects a collinear light ray of the other bundle.

Each lighthouse chooses exactly one of its two bundles to illuminate; all edges in the chosen bundle become light-directed. A directed light cycle is a directed cycle whose edges are all light-directed. A set of illuminated rays induces such a cycle if it contains all its edges. The decision problem Lighthouse Propagation asks, given lighthouses L1,…,Ln, where each lighthouse Li has bundles Xi,Yi, whether there exists a choice function c with c⁒(Li)∈{Xi,Yi} such that the illuminated rays do not induce a directed light cycle. The reflection count is the maximum number of intersections (reflections) along any light ray.

We show that LPR is 𝖭𝖯-complete even when the reflection count is at most 3. The reduction is from Planar 3-Bounded 3-SAT; each lighthouse encodes a variable (choosing Xi vs. Yi corresponds to setting the variable to true vs. false), and carefully designed clause gadgets force a directed light cycle whenever a clause is not satisfied.

3 Hardness of the lighthouse propagation problem

3.1 Description of the reduction

We sketch the reduction proving Theorem 2. We begin with the incidence graph G⁒(Ο†) of a planar formula Ο†, for which a polynomial-size rectilinear embedding is known to exist.

Lemma 4 (Tamassia [20]).

A connected planar graph on n vertices admits a rectilinear embedding in an π’ͺ⁒(n)Γ—π’ͺ⁒(n) grid, computable in polynomial time.

We compute a planar rectilinear embedding β„° of G⁒(Ο†). Each variable–clause incidence is drawn as a rectilinear path whose interior grid points are connectors (straight or elbow). A clause is top/bottom/left/right-positioned with respect to a variable if the path initially goes up/down/left/right; we use 𝖳,𝖑,𝖫,𝖱 as abbreviations for these four positions.

We scale β„° by a factor of 8 to obtain β„°β€² and replace each vertex by a square block of size 8Γ—8: a variable block, a clause block, or a connector block. Adjacent vertices in β„° become blocks that share a side. Each block has four outlets (midpoints of its sides), namely its T-outlet, B-outlet, L-outlet, and R-outlet, through which light rays may enter or exit.

We color-code the light rays to make their bundle assignments explicit. For a lighthouse Li, a light ray is colored red (resp. blue) if it belongs to Xi (resp. Yi).

Figure 8: Variable blocks: local ray patterns for different relative positions of incident clauses (a) and variable blocks constructed from them (b).
Figure 9: Representative block configurations for 3-clauses (a) and 2-clauses (b). Light rays with the same style belong to the same lighthouse. Configurations (c) and (d) are obtained by mirroring.
Figure 10: Connector blocks: a straight 1-connector (a) and a bending 2-connector (b).

Variable blocks.

Each variable xi is replaced by a variable block with lighthouse Li at its center and two bundles Xi (for xi=true) and Yi (for xi=false). Since each variable appears in at most three clauses, we need only a constant number of local configurations for all possible positions of clauses around xi (Figure 8). Each occurrence contributes one ray exiting through the appropriate outlet and belonging to Xi or Yi depending on whether the literal is positive or negative. Variables with fewer occurrences are handled by deleting unused rays or simplifying single occurrences.

Observation 5.

For any variable xi with up to three occurrences and positions Ξ βŠ‚{𝖳,𝖑,𝖫,𝖱}, there exist bundles Xi,Yi such that for each clause C containing xi at position t∈Π, the light ray at the t-outlet belongs to Xi if the literal is positive and to Yi otherwise.

Clause blocks.

Each clause is replaced by a clause block. A 3-literal (resp. 2-literal) clause uses a 3-clause (resp. 2-clause) block. Each constituent variable contributes one set of rays entering at the outlet facing its variable block, belonging to Xi or Yi according to the sign of the literal. Inside the block, these sets are arranged so that:

  • β– 

    if all literals are false, all rays are illuminated, and their union has a directed light cycle;

  • β– 

    if at least one literal is true, the illuminated rays contain no directed cycle.

All patterns of positions are obtained from a small number of representatives (Figure 9).

Observation 6.

Let C be a clause and Ξ  the set of positions of its variables in β„°. There exist |Ξ | light ray sets (β„’j)1≀j≀|Ξ |, each rooted at a distinct t-outlet (t∈Π), that satisfy all interaction constraints and whose union contains a directed cycle that uses at least one edge from each β„’j. Moreover, if the variable xi that is t-positioned appears positively (resp. negatively) in C, then the light ray set rooted at the t-outlet is a subset of Xi (resp. Yi).

Connector blocks.

Each connector is replaced by a connector block. Straight connectors yield 1-connector blocks with a single light ray; elbows yield 2-connector blocks with two perpendicular rays forming a bend (Figure 10). Along each variable-to-clause path, connector rays are directed to represent propagation behavior within robotic arm chains.

Finally, for each variable xi we build Xi and Yi by combining (i) the rays inside the variable block (Observation 5), (ii) appropriate connector rays along each path, and (iii) the corresponding clause-block rays (Observation 6). This yields an instance of LPR (Figure 11).

Figure 11: Example of the reduction from Planar 3-Bounded 3-SAT to LPR.

3.2 Validity of the construction

We briefly justify correctness; full details can be found in the full version of the paper.

Although each block individually satisfies the bundle requirements of a valid LPR instance (Figures 6 and 7), we must first verify that these properties are preserved when the blocks are embedded in the plane.

Lemma 7.

The construction in Section 3.1 yields a valid instance of LPR having reflection count at most 3.

Next, to prove correctness, we examine the implications of choosing which bundle to illuminate for the light rays within clause blocks (Observation 8); should the illuminated light rays induce a directed light cycle, the blocks are specifically designed to force the directed light cycle to be contained within a clause block (Lemma 9).

Observation 8.

For any variable xi and clause C, rays associated with a positive (resp. negative) literal of xi in C are illuminated iff the lighthouse for xi illuminates Xi (resp. Yi). Moreover, no directed path joins two distinct outlets in any variable or clause block.

Lemma 9.

If the illuminated rays induce a directed light cycle, then all edges of this cycle lie within a single clause block.

Proof sketch.

No variable or connector block contains a directed cycle. A cycle spanning multiple blocks would imply a directed path between two outlets of a variable or clause block, since entering and exiting a block via distinct outlets would require a directed path inside that block, contradicting Observation 8. β—€

Armed with the previous two results, if the illuminated bundles do not induce a directed light cycle, we assign each variable xi the value true (resp. false) if Xi (resp. Yi) is illuminated, and this assignment must satisfy every clause, since any unsatisfied clause would induce a forbidden directed light cycle by Observation 8. Conversely, given a satisfying assignment for Ο†, illuminating Xi if xi is true and Yi if xi is false cannot create a directed light cycle; otherwise, if a clause block’s illuminated light rays contain such a cycle (Lemma 9), the associated clause is unsatisfied by Observation 8.

Thus, a directed light cycle exists if and only if some clause is unsatisfied, as needed to prove the following:

Theorem 2. [Restated, see original statement.]

Lighthouse Propagation is 𝖭𝖯-complete, even when restricted to instances with a reflection count of at most three.

4 Hardness of the SM-RAMP problem

The construction mirrors that of Section 3. The key idea is to replace the light rays of an LPR instance by chains of robotic arms, treating light rays as propagation arrows, while carefully encoding the binary choice at each lighthouse.

4.1 Description of the reduction

We start from an LPR instance of Section 3.1. After a slight local modification to the block structure, we replace each unit segment of each light ray by a small cell, containing a constant-size arrangement of robotic arms, thereby forming an H–V SM-RAMP instance. We define the following cells (Figures 12, 13, 14 and 15):

  • β– 

    Lighthouse cells, which encode the choice between two bundles of a lighthouse by two interacting horizontal chains whose special ends, rit and rif, represent truth values.

  • β– 

    Rectilinear cells, replacing straight unit segments of rays by horizontal or vertical chains.

  • β– 

    L cells, replacing a bend between two rays by interacting horizontal and vertical chains.

  • β– 

    T cells, generalizing L cells to replace a degree-3 junction of rays.

Figure 12: Robotic arm lighthouse cell for replacing a lighthouse Li, with green cross at center.
Figure 13: Augmented variable block (dash-dotted) with original variable block (dashed) and dummy 2-clause block (dotted).
Figure 14: Rectilinear cells: a vertical chain (top) and a horizontal chain (bottom).
Figure 15: Base L cells (solid arms) and corresponding T cells (solid + dashed arms), replacing bends and degree-3 junctions of rays, respectively.

To ensure that at each lighthouse exactly one of the two bundles behaves as β€œchosen”, we augment the variable gadgets with a dummy clause enforcing that one of rit,rif must rotate clockwise and the other anticlockwise. We enlarge each light-ray block to an augmented block of size 40Γ—40, nest the original 8Γ—8 gadget in the center, and attach a dummy 2-clause block representing (x∨xΒ―) inside the same augmented variable block (Figure 13). The augmented construction still yields an 𝖭𝖯-hardness LPR reduction, now from Planar 4-Bounded 3-SAT (original instance plus tautological clauses (xi∨xiΒ―)).

Finally, each unit-length square of the light-ray embedding is replaced by one of the four robotic arm cells (lighthouse, rectilinear, L, T), according to the local ray pattern (Figures 14 and 15). The midpoints of robotic arms are aligned on the grid so that chains connect across block boundaries, producing an H–V SM-RAMP instance with polynomially many arms.

4.2 Implications of the construction

Two observations about local structure can be made about the constructed SM-RAMP instances: each robotic arm interacts with only a few others, and the arm cells are designed so that propagation of forced directions along chains mirrors the direction of light rays (Observation 10).

Observation 10.

In the constructed SM-RAMP instance, each robotic arm interacts with at most three others, and the propagation induced by choosing a rotation direction for rit or rif matches the propagation arrows of the corresponding bundle in the LPR instance.

The second part of Observation 10 ensures that exactly one truth-value arm rotates clockwise in each lighthouse cell, which is crucial for the correctness of the reduction:

Observation 11.

In any solution of the constructed SM-RAMP instance, for every lighthouse Li exactly one of rit and rif rotates clockwise.

Proof sketch.

If both truth-value arms of a variable xi rotate clockwise, there would exist a cyclic rotation dependency among the robotic arms replacing xi’s 2-clause dummy block. β—€

We now relate satisfying assignments and rotation orderings. A cyclic rotation dependency analogous to that in the proof of Observation 11 arises within any clause block, should propagation happen according to the rays, which we now interpret as propagation arrows (Observation 10). Breaking the cycle requires rotating a subset of the chains in an order opposite to that of the propagation arrow, which is possible only when the truth-value arm at the end of the chain is rotated anticlockwise. Which truth-value arm to rotate anticlockwise in each lighthouse cell can be derived from which bundle is being illuminated (Figure 16).

Lemma 12.

If the LPR instance ℐ is a yes-instance, then the corresponding H–V SM-RAMP instance ℐ′ is also a yes-instance.

Figure 16: Example of the four rotation phases (numbered) within a clause gadget and its incident variables. The two chains replacing the red light rays in the clause block rotate in the order inverse to the light rays’ arrows, starting with the anticlockwise rotation of r1f.

Conversely, suppose that the constructed H–V SM-RAMP instance ℐ′ admits a rotation ordering, and fix any clause C. If the rotations within the robotic arms replacing C’s clause block were forced to follow the propagation arrows, then, by construction, they would induce a cyclic rotation dependency. Hence some subset of these arms must rotate in an order that does not adhere to the propagation pattern. These arms are in a chain replacing a light ray in a lighthouse’s bundle, and that lighthouse would illuminate its other bundle.

Lemma 13.

If the H–V SM-RAMP instance ℐ′ is a yes-instance, then the LPR instance ℐ is also a yes-instance.

Since collision checking is polynomial, SM-RAMP is in NP; SM-RAMP being NP-complete follows from Lemmas 12 and 13.

Theorem 1. [Restated, see original statement.]

SM-RAMP is 𝖭𝖯-complete, even when restricted to H–V instances where every robotic arm interacts with at most three others.

5 Positive results

Before presenting our algorithmic results, we briefly recall the framework of parameterized complexity, which provides a natural formalism for capturing tractability when certain aspects of an instance are bounded. A parameterized problem is a language LβŠ†Ξ£βˆ—Γ—β„•, where an instance consists of the main input x together with an integer ΞΊ, the parameter. The problem is fixed–parameter tractable (FPT) if membership in L can be decided in time f⁒(ΞΊ)β‹…|x|O⁒(1) for some computable function f. We refer the reader to [8, 9, 10] for more on the theory.

Our positive results rely on a strong geometric phenomenon that emerges when robotic arms are restricted to the two allowed orientations {0,Ο€/2} (horizontal and vertical); the possible interactions among arms are extremely local, in a sense that can be described precisely using the flower representation (Figure 17).

Figure 17: The flower of a robotic arm r, consisting of eight quarter-circular petals surrounding the unit square centered at r. The petal in which a second arm rβ€² lies determines exactly one constraint between r and rβ€² among P𝖒,S𝖒,P𝖠,S𝖠.

Consider any instance (single-move or multi-move) in which each arm may occupy only the horizontal or vertical orientation. For such an arm r, the regions swept by a clockwise or anticlockwise rotation form two fixed 90∘ sectors around the unit square centered at r. Together, these sectors partition the region adjacent to the square into eight quarter-circular petals, collectively called the flower of r.

A fundamental property of this decomposition is that the location of the midpoint of another arm rβ€² relative to these petals determines exactly one of the possible rotation constraints between r and rβ€². Specifically, each petal of r corresponds to exactly one of the four constraint graphs P𝖒,S𝖒,P𝖠,S𝖠, depending on whether the interaction concerns a clockwise or anticlockwise rotation of one arm (P-constraints) or the effect of having already rotated the other arm (S-constraints). Thus the flower captures the entire interaction pattern between r and the rest of the configuration. If the midpoint of rβ€² lies inside the middle square of r’s flower, then r and rβ€² cannot rotate past one another in any sequence of allowed moves. This motivates the following definition.

Definition 14.

A robotic arm r is frozen if no collision-free sequence of rotations, of any ordering and any choice of clockwise or anticlockwise directions, allows r to rotate.

Frozen arms occur either because another arm’s midpoint lies in their middle square or because they participate in a cycle of rotation dependencies. Such arms may be ignored in constructive algorithms, as they can never participate in any feasible reconfiguration. Flowers allow us to express a key locality property that underlies our parameterized algorithms.

Observation 15.

For any instance where all arms are restricted to horizontal and vertical orientations, in the union of the four constraint graphs P𝖒,S𝖒,P𝖠,S𝖠 induced by Rnf, the set of non-frozen arms, each arm r∈Rnf has at most one neighbour in each petal of its flower. Consequently, r has degree at most eight in this induced union graph.

In particular, each non-frozen arm interacts with at most eight other non-frozen arms, so the constraint graphs, when restricted to Rnf, have constant maximum degree. This strong locality is the structural cornerstone of our fixed-parameter tractability results.

5.1 The number of robotic arms to be made vertical as a parameter

We now study the parameterized complexity of MAX-SM-RAMP in the two-orientation setting (horizontal or vertical). In MAX-SM-RAMP, the goal is not necessarily to rotate all horizontal arms to the vertical orientation, but rather to decide whether at least k arms can be made vertical by a collision-free sequence of clockwise or anticlockwise rotations.

Definition 16.

For a conflict-free configuration of robotic arms β„›, each either horizontal or vertical, an arm r currently in the horizontal orientation is

  • β– 

    clockwise-free (𝖒-free) in β„› if it is possible to rotate r clockwise to the vertical orientation without collisions, yielding a conflict-free configuration; and

  • β– 

    anticlockwise-free (𝖠-free) in β„› if the property holds for an anticlockwise rotation.

An arm may be 𝖒-free, 𝖠-free, both, or neither; directional freedom is determined purely by whether the relevant sweep sector is unobstructed. To reason about interactions among directionally free arms, we use directional interaction graphs.

Definition 17.

For a configuration β„› and a direction π–½π—‚π—‹βˆˆ{𝖒,𝖠}, the graph G𝖽𝗂𝗋⁒(β„›) has one vertex for each 𝖽𝗂𝗋-free arm in β„›, and an edge {r,rβ€²} whenever rotating r in direction 𝖽𝗂𝗋 causes the swept sector of r to intersect the current position of rβ€² (or vice versa).

A key geometric fact proved earlier is that the flower of any arm contains at most one non-frozen neighbor in each petal. Because frozen arms are never directionally free, this gives an immediate degree bound on the directional interaction graphs.

Observation 18.

Let β„› be any configuration and π–½π—‚π—‹βˆˆ{𝖒,𝖠}. Then every arm r that is 𝖽𝗂𝗋-free in β„› has at most eight neighbors in G𝖽𝗂𝗋⁒(β„›).

Let V𝖽𝗂𝗋⁒(β„›) denote the set of 𝖽𝗂𝗋-free arms. The bounded degree of G𝖽𝗂𝗋⁒(β„›) implies:

Lemma 19.

If |V𝖽𝗂𝗋⁒(β„›)|β‰₯9⁒k, then we can compute in polynomial time a set S of k arms that are all 𝖽𝗂𝗋-free in β„› and pairwise non-adjacent in G𝖽𝗂𝗋⁒(β„›).

Such an independent set sweeps disjoint sectors, so its arms can be safely rotated (in any order) in direction 𝖽𝗂𝗋.

Theorem 20.

MAX-SM-RAMP parameterized by k is fixed-parameter tractable. Specifically, it can be solved in time (36⁒k)kβ‹…poly⁒(n).

We can adapt this FPT algorithm into a polynomial kernel using geometric arguments.

Theorem 21.

MAX-SM-RAMP parameterized by k admit a kernel on π’ͺ⁒(k3) arms.

5.2 The number of allowed rotations as a parameter

We now study 2A-MM-RAMP under a bound β„“ on the total number of allowed rotations, when each arm is restricted to the horizontal or vertical orientation. Unlike in SM-RAMP, where each arm may be rotated at most once and be made vertical, the 2A-MM-RAMP model allows each arm to visit any of its allowed angles, possibly moving away from its target and later returning to it. Thus, short valid sequences may temporarily rotate arms that already match their target angles.

Recall that an arm is frozen if no collision-free sequence of rotations ever allows it to change its angle. If there exists an arm ri such that αi≠βi and ri is frozen, then the instance is immediately a no-instance. We henceforth restrict attention to instances in which this does not happen. We now define a static interaction graph on non-frozen arms that captures all potential geometric conflicts.

Let R be the set of all arms and let RnfβŠ†R denote the set of non-frozen arms in the instance. For each unordered pair of distinct arms {r,rβ€²}βŠ†Rnf, the flower construction and two-orientation model determine whether r and rβ€² are in conflict in one of the four constraint graphs P𝖒,S𝖒,P𝖠,S𝖠 (that is, whether the midpoint of rβ€² lies in a petal of r, or vice versa, that induces a constraint when rotating in some direction). We define the union interaction graph as the undirected graph H=(V⁒(H),E⁒(H))withV⁒(H)=Rnf and where an edge {r,rβ€²} belongs to E⁒(H) if and only if r and rβ€² are adjacent in at least one of P𝖒,S𝖒,P𝖠,S𝖠 (restricted to Rnf). In other words, E⁒(H)=E⁒(P𝖒⁒[Rnf])βˆͺE⁒(S𝖒⁒[Rnf])βˆͺE⁒(P𝖠⁒[Rnf])βˆͺE⁒(S𝖠⁒[Rnf]). Thus {r,rβ€²}∈E⁒(H) precisely when some clockwise or anticlockwise rotation of r or rβ€² (between the two allowed angles) can cause a collision between them. The graph H is entirely determined by the positions of the arm midpoints and the two-angle model; it does not depend on the particular configuration (source, intermediate, or target).

By Observation 15, every non-frozen arm r participates in at most eight constraints in total, one per petal of its flower, and each such constraint appears in exactly one of P𝖒,S𝖒,P𝖠,S𝖠. Restricting to Rnf can only remove neighbours, and therefore:

Observation 22.

The union interaction graph H has maximum degree at most 8.

Let D={i∈Rnf:Ξ±iβ‰ Ξ²i} be the set of (necessarily non-frozen) arms whose initial and target orientations differ. Every arm in D must be rotated at least once in any valid solution. Hence, if |D|>β„“, the instance is immediately a no-instance. We therefore assume from now on that |D|≀ℓ. For a set XβŠ†V⁒(H) and an integer rβ‰₯0, define the ball Br⁒(X)={v∈V⁒(H):distH⁒(v,X)≀r}, where distH⁒(v,X) denotes the shortest graph distance between v and a vertex in X.

Lemma 23.

If |D|≀ℓ, then |Bℓ⁒(D)|≀|D|⁒(1+8+82+β‹―+8β„“)≀ℓ⁒8β„“+1βˆ’17.

Lemma 24.

Assume a valid sequence of length at most β„“ transforming β„›s to β„›t exists, and let Rrot be the set of arms that are actually rotated at least once in this sequence. Then every arm in Rrot belongs to Bℓ⁒(D).

Combining Lemmas 23 and 24, we see that the set Rβ€²=Bℓ⁒(D) contains every arm that is ever rotated in any valid solution of length at most β„“. Thus all arms outside Rβ€² remain fixed obstacles; the search for an β„“-bounded solution can be restricted to Rβ€².

Theorem 25.

Let β„“βˆˆβ„•. Given an instance of 2A-MM-RAMP in which each arm has at most two allowed orientations (horizontal and vertical), one can decide whether there exists a valid sequence of at most β„“ rotations transforming β„›s into β„›t in time (β„“β‹…8β„“+1)β„“β‹…poly⁒(n).

References

  • [1] Nicolas Bousquet, Remy El Sabeh, Amer E. Mouawad, and Naomi Nishimura. On the complexity of constrained reconfiguration and motion planning. In 51st International Conference on Current Trends in Theory and Practice of Computer Science (SOFSEM 2026), pages 1–15. Springer, 2026. doi:10.1007/978-3-032-17801-5_1.
  • [2] Nicolas Bousquet, Felix Hommelsheim, Yusuke Kobayashi, Moritz MΓΌhlenthaler, and Akira Suzuki. Feedback vertex set reconfiguration in planar graphs. Theoretical Computer Science, 979:114188, 2023. doi:10.1016/J.TCS.2023.114188.
  • [3] Nicolas Bousquet, Amer E. Mouawad, Naomi Nishimura, and Sebastian Siebertz. A survey on the parameterized complexity of reconfiguration problems. Computer Science Review, 53:100663, 2024. doi:10.1016/J.COSREV.2024.100663.
  • [4] Ron Breukelaar, Erik D. Demaine, Susan Hohenberger, Hendrik Jan Hoogeboom, Walter A. Kosters, and David Liben-Nowell. Tetris is hard, even to approximate. International Journal of Computational Geometry and Applications, 14(1-2):41–68, 2004. doi:10.1142/S0218195904001354.
  • [5] Marcin Brianski, Stefan Felsner, Jedrzej Hodor, and Piotr Micek. Reconfiguring independent sets on interval graphs. In 46th International Symposium on Mathematical Foundations of Computer Science (MFCS 2021), volume 202 of LIPIcs, pages 23:1–23:14, 2021. doi:10.4230/LIPIcs.MFCS.2021.23.
  • [6] Kevin Buchin, Mart Hagedoorn, Irina Kostitsyna, and Max van Mulken. Dots & boxes is PSPACE-complete. In 46th International Symposium on Mathematical Foundations of Computer Science (MFCS 2021), volume 202 of LIPIcs, pages 25:1–25:18, 2021. doi:10.4230/LIPIcs.MFCS.2021.25.
  • [7] Petar Δ†urkoviΔ‡ and Bojan JerbiΔ‡. Dual-Arm robot motion planning based on cooperative coevolution. In DoCEIS, volume 314 of IFIP Advances in Information and Communication Technology, pages 169–178. Springer, 2010. doi:10.1007/978-3-642-11628-5_18.
  • [8] Marek Cygan, Fedor V. Fomin, Łukasz Kowalik, Daniel Lokshtanov, DΓ‘niel Marx, Marcin Pilipczuk, MichaΕ‚ Pilipczuk, and Saket Saurabh. Parameterized Algorithms. Springer, 2015. doi:10.1007/978-3-319-21275-3.
  • [9] Rodney G. Downey and Michael R. Fellows. Parameterized Complexity. Monographs in Computer Science. Springer, 1999. doi:10.1007/978-1-4612-0515-9.
  • [10] JΓΆrg Flum and Martin Grohe. Parameterized Complexity Theory. Texts in Theoretical Computer Science. An EATCS Series. Springer, 2006. doi:10.1007/3-540-29953-X.
  • [11] Robert A. Hearn. Games, puzzles, and computation. PhD thesis, Massachusetts Institute of Technology, Cambridge, MA, USA, 2006. URL: https://hdl.handle.net/1721.1/37913.
  • [12] Robert A. Hearn and Erik D. Demaine. PSPACE-completeness of sliding-block puzzles and other problems through the nondeterministic constraint logic model of computation. Theor. Comput. Sci., 343(1-2):72–96, 2005. doi:10.1016/J.TCS.2005.05.008.
  • [13] Luu Thi Hue and Nguyen Pham Thuc Anh. Planning the optimal trajectory for a dual-arm robot system using a genetic algorithm considering the controller. In 2022 International Conference on Advanced Technologies for Communications (ATC), pages 292–297, 2022. doi:10.1109/ATC55345.2022.9942975.
  • [14] Takehiro Ito, Erik D. Demaine, Nicholas J. A. Harvey, Christos H. Papadimitriou, Martha Sideri, Ryuhei Uehara, and Yushi Uno. On the complexity of reconfiguration problems. Theoretical Computer Science, 412(12-14):1054–1065, 2011. doi:10.1016/J.TCS.2010.12.005.
  • [15] Amer E. Mouawad, Naomi Nishimura, Venkatesh Raman, and Marcin Wrochna. Reconfiguration over tree decompositions. In 9th International Symposium on Parameterized and Exact Computation (IPEC 2014), pages 246–257, 2014. doi:10.1007/978-3-319-13524-3_21.
  • [16] Naomi Nishimura. Introduction to reconfiguration. Algorithms, 11(4):52, 2018. doi:10.3390/A11040052.
  • [17] Naoto Ohsaka. Gap amplification for reconfiguration problems. In Proceedings of the 2024 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1345–1366, 2024. doi:10.1137/1.9781611977912.54.
  • [18] Naoto Ohsaka. Gap preserving reductions between reconfiguration problems. Journal of Computer and System Sciences, 157:103733, 2026. doi:10.1016/J.JCSS.2025.103733.
  • [19] Seyed Sina Mirrazavi Salehian, Nadia Figueroa, and Aude Billard. A unified framework for coordinated multi-arm motion planning. International Journal of Robotics Research, 37(10), 2018. doi:10.1177/0278364918765952.
  • [20] Roberto Tamassia. On embedding a graph in the grid with the minimum number of bends. SIAM J. Comput., 16(3):421–444, 1987. doi:10.1137/0216030.
  • [21] Jan van den Heuvel. The complexity of change. In Simon R. Blackburn, Stefanie Gerke, and Mark Wildon, editors, Surveys in Combinatorics 2013, volume 409 of London Mathematical Society Lecture Note Series, pages 127–160. Cambridge University Press, 2013. doi:10.1017/CBO9781139506748.005.