Brief Announcement: Universal Dancing by Luminous Robots Under Sequential Schedulers
Abstract
The Dancing problem requires a swarm of autonomous mobile robots to form a sequence of patterns, aka perform a choreography. Existing work has proven that some crucial restrictions on choreographies and initial configurations (e.g., on repetitions of patterns, periodicity, symmetries, contractions/expansions) must hold so that the Dancing problem can be solved under certain robot models. Here, we prove that these necessary constraints can be dropped by considering the model (i.e., where robots are endowed with a light whose color can be chosen from a constant-size palette) under the quite unexplored sequential scheduler. We formalize the class of Universal Dancing problems which require a swarm of robots starting from any initial configuration to perform a (periodic or finite) sequence of arbitrary patterns, only provided that each pattern consists of vertices (including multiplicities). However, we prove that, to be solvable under , the length of the feasible choreographies is bounded by the compositions of into the number of colors available to the robots. We provide an algorithm solving the Universal Dancing problem by exploiting the peculiar capability of sequential robots to implement a distributed counter mechanism. Even assuming non-rigid movements, our algorithm ensures spatial homogeneity of the performed choreography.
Keywords and phrases:
Luminous Robots, Sequence of Patterns, Pattern Formation, Sequential SchedulerCopyright and License:
2012 ACM Subject Classification:
Theory of computation Distributed algorithmsAcknowledgements:
This research was done while Caterina Feletti was visiting Profs. Flocchini and Santoro.Funding:
This work was partly supported by NSERC through the Discovery Grant program.Editor:
Dariusz R. KowalskiSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
The Look-Compute-Move (LCM) model is a theoretical model used to study distributed systems of mobile robots, aka swarms [12]. Generally, a swarm is modeled as a set of punctiform mobile robots acting on the Euclidean plane ; they are assumed to be anonymous and indistinguishable (i.e., no internal nor external ids), autonomous (no central control), and homogeneous (they execute the same deterministic algorithm). Any robot, idle by default, is repeatedly activated by a scheduler. As soon as activated, the robot performs an LCM cycle: it takes the snapshot of the system (Look), it executes the given algorithm calculating a position (Compute), and it moves straight towards the computed position (Move). By repeating the LCM cycle infinitely, the swarm performs a given task (aka solves a problem). Different LCM (sub) models, usually referred to as , have been considered to study the solvability of a problem: represents the most limited model where robots are both oblivious and silent, while represents the model where robots are embedded with a -size light whose color is used both as an internal state and a communication means. Instead, refers to the synchronization scheduler setting: FSYNCH, SSYNCH, and ASYNCH are the most considered ones, while the sequential setting (SEQ), which activates only one robot at each round assuming the fairness condition, has remained nearly unexplored until a few years ago [3, 7, 8, 11, 15].
Interest in SEQ has been driven by recent research on the well-known Pattern Formation problem [1, 2, 9, 13, 14, 17, 18, 19]. Pattern Formation for a given pattern (i.e., a multiset of positions in ) requires the robots to rearrange themselves into a configuration similar to , and terminate. Indeed, the features of the model, particularly its and , characterize the class of patterns that a swarm can form [20]. A question arose: under which model assumptions can a swarm solve the Universal Pattern Formation (UPF) problem, namely form any pattern starting from any initial configuration? An answer is given in [11] which shows that, except for point formation, UPF is solvable under without any additional assumption: consequently, UPF, with point formation, is solvable under .
Recognizing the power of SEQ, the same interest has turned towards the quite unexplored Dancing problem, which asks a swarm to form a periodic or finite sequence of patterns, aka a choreography [4, 5, 6]. In [6] it was shown that under robots can perform choreographies with several constraints (on patterns and choreography periodicity), assuming chirality agreement among robots; in [5], it has shown that, under and with a global chirality, the feasible choreographies are subject to fewer constraints, even assuming ASYNCH and non-rigid movements. Now, the question is similar: under which model assumptions can a swarm solve the Universal Dancing (UD) problem, namely perform a sequence of arbitrary patterns starting from any initial configuration?
This paper answers this question. We provide an algorithm that solves UD under and considering robots that are completely disoriented (i.e., no agreement on origin, unit distance, axes, chirality) and suffering from variable disorientation (i.e., their local coordinate system may change from one LCM cycle to the next one). Robots have strong multiplicity detection, i.e., they can detect the number of all the robots – and their colors – lying in the same point (aka forming a multiplicity). We assume non-rigid movements; thus, any robot may be stopped unpredictably after having traveled at least a non-null constant distance , unknown to robots. Despite non-rigidity, our solution guarantees an interesting spatial property which provides homogeneity to the whole choreography performance: the smallest circles enclosing the patterns of the choreography (except for patterns with only two or three points) formed by the swarm are concentric. We prove that, to be solvable under , the length/period of the feasible choreographies of UD is bounded by the compositions of into the number of colors available to the robots. Our contribution is summarized here:
Theorem 1.
The Universal Dancing problem can be solved under by a swarm of disoriented robots with colors, assuming that the choreographies have length/period , even assuming non-rigid movements.
2 Preliminaries
Patterns and choreographies.
A pattern is a multiset of positions in , called vertices. We denote with the set containing the unique positions in . We distinguish between four classes of patterns, namely Point, TwoPoints, ThreePoints, and NPoints, according to , which is respectively 1, 2, 3, and more than 3. We denote with the set of patterns similar111We consider non-degenerate similarities. to . A swarm forms if it stops in a configuration whose multiset of positions is in .
A choreography is a sequence of patterns where and with . If is periodic (i.e., if ), then we assume that and that the sequence cannot be written as for any . We say that is the length (period, resp.) of if (, resp.). A swarm performs if, for any , there exists a series of increasing finite times such that forms at time . If , then must remain still after time .
The Dancing problems.
Dancing refers to the generic problem of performing choreographies. Multiple constraints can be applied to the set of choreographies in order to make them performable (aka feasible). Different constraints define specific Dancing problems, each one formalized as the triple , where:
-
is a set of patterns with vertices;
-
is a set of initial configurations for a swarm of robots;
-
is a predicate on choreographies (e.g., limiting their length, pattern repetitions, etc.).
We say that is a feasible choreography for if for any and satisfies . For to be well-defined, each pattern in must appear in at least one feasible choreography. An algorithm solves if, for any swarm starting from a configuration in , it makes perform any feasible choreography for . A Dancing problem is said to be Universal if (i.e., any pattern with vertices), (i.e., set of all possible initial configurations where robots are -colored), and can only bound the length/period of the choreographies. In this paper, we solve the Universal Dancing under a specific bound . We prove that if is a tautology , then the problem is unsolved under our model.
Theorem 2.
The problem cannot be solved under even if robots have rigid movements and share a global coordinate system.
Proof.
(sketch) A contradiction is achieved considering , where is the number of color-compositions in a -size swarm using colors, and where for any and for any . Then, there will be two times during the performance of in which the swarm has the same configuration (same colors, forming and , with ). This may lead the swarm to perform in a loop the sub-sequence , thus never completing the choreography.
3 Algorithm Outline
We here outline the algorithm that proves Theorem 1. Our algorithm uses a totally-ordered palette of colors which allows a -size swarm to perform any feasible choreography with that satisfies . By convention, , which is the default color to which all robots are initialized.
Techniques
Our algorithm adopts peculiar techniques which combine both the power of and some concepts taken and adapted from other fields.
-
Universal orientation. The SEQ setting allows us to elect three leaders, starting from any configuration. These leaders, colored with the colors , , and , will be destined to form the chiral angle, a special triangle which globally defines a coordinate system for the swarm, and the position of the actual pattern, i.e., the pattern on whose vertices the robots must arrange. The construction of the chiral angle occurs before the formation of each pattern of the choreography and strictly depends on it; moreover, it is built to maintain spatial homogeneity to the choreography performance (e.g., is always the same point for any ). Notably, if , then the vertices of the chiral angle222Degenerate if . exactly define the points where the robots have to arrange themselves. Instead, if , sets the origin , sets the coordinate thus the -axis and the unit distance, and sets the clockwise direction333When the vertices in are not aligned.. The actual pattern is univocally defined by the chiral angle: and are two specific vertices of , and will be centered in , so that lies on its boundary. See Figure 1.
-
Robot-vertex matching. The formation of each pattern is based on a technique that makes the robots match their target vertices, exploiting properties of Dyck words on the Boolean alphabet.
-
Distributed counter. We exploit the power of by implementing a distributed counter to keep track of the pattern to form along the choreography. Specifically, the non-leader robots, using the colors , can encode an integer in the range where is the number of weak-compositions of robots with colors. For this purpose, we exploit the Gray Code for compositions in [16]: that method allows us to order all the composition vectors , so that each indicates the number of robots of color , for any . The vector thus encodes the counter value . The Gray code ensures that corresponds to the vector where all the robots are , and that and differ at exactly two indices, say , so that and : thus, to increment the counter, an -colored robot must turn into .
Phases
The core of our algorithm is composed of three phases, i.e., Phase 1, Phase 2, Phase 3, which are repeated cyclically until the choreography ends. For each , Phase 1 aims at setting the chiral angle; Phase 2 aims at making robots form ; Phase 3 aims at updating the counter value. Before entering the loop, robots execute an initial phase Phase 0.
Phase 0 - Election of leaders.
This phase is executed only once, starting from the initial configuration, and terminates when the three leaders have properly elected themselves by setting the dedicated colors , , and . No robot moves. The counter value now is 0.
Phase 1 - Chiral angle setup.
Let be the counter’s value, and let be the corresponding pattern in the choreography. In this phase, the three leaders , , compute the chiral angle for , and sequentially reach the relative vertices. No other robot moves.
Phase 2 - Pattern Formation.
This phase starts when the leaders have formed the chiral angle for and ends as soon as each vertex of , unequivocally defined by the chiral angle, is covered by a robot. We describe Phase 2 for the case .
Let be the circle centered in and such that lies on its boundary. By construction, all the robots are enclosed in , and they will form so that . Note that and already lie on two vertices of , thus they will not move. Let be the diameter of starting from . Given a vertex of , we indicate with its projection on .
Robots arrange on in four sub-phases:
-
1.
Migration towards . Each non-leader robot reaches moving along a perpendicular trajectory (see Figure 2(a)).
-
2.
Arrangement on . Once all non-leader robots have reached , they compute , i.e., the multiset of all the projections of (see Figure 2(b)), and remove from it the projections of the three vertices intended for the leaders. Let be an activated robot on . Thus, computes the boolean string that represents the ordered arrangement of unmatched robots (1s) and uncovered projections (0s) along . Note that multiplicities of robots (vertices, resp.) on are treated by unrolling and representing them through factors of adjacent 1s (0s, resp.). Then, can be factorized uniquely into Dyck words (or their reverses), which univocally defines the robot-projection matching (see Figure 3). Thus, each non-leader robot moves along to reach the matching target projection. The properties of Dyck words ensure that each of the non-leader robots will reach a vertex projection on in finite time, even considering non-rigid movements.
-
3.
Back to the vertices. In this sub-phase, all the non-leader robots travel perpendicularly to and reach the corresponding vertices of . Let be a non-leader robot on : it unambiguously chooses the closest uncovered vertex of whose projection corresponds to its current position on , and for which there does not yet exist a robot moving towards it. Note that multiple vertices (belonging to both the semi-circles cut by ) can have the same projection; in this case, unambiguously elects the target vertex by considering the clockwise orientation of the plane. After the vertex choice, starts traveling perpendicularly to towards the computed vertex. Robot may be stopped before reaching its vertex. Let be the segment perpendicular to which starts from , contains , and ends at . Let be the list of vertices along so that . Then moves to where is the greatest index such that is not covered and lies on the segment .
-
4.
towards its vertex. Lastly, moves to reach the last missing vertex of the pattern , which has been properly selected by the swarm.
Phase 3 - Counter Update.
This phase starts as soon as each vertex of is covered by a robot. Let the current counter vector be . We distinguish three actions:
-
Termination. If and , then the swarm has terminated the choreography, and then it does not update the counter: this causes the swarm to freeze in .
-
Increment. If , then the swarm must increment the counter from to . Let be the next vector. From the Gray code construction, there are exactly two differences between and corresponding to one decrement value and one increment value. Let and be the two indices that change between and . Thus, as soon as a robot with color gets activated, it changes its color to .
-
Resetting. If and , then the swarm must reset the counter to the initial value , i.e., where all the non-leader robots are -colored. For an unambiguous resetting, we make the leader set its color to : the presence of two robots signals non-leader robots that they have to reset the counter. Once all non-leader robots have turned into , then one of the two robots turns into : if it is possible to establish which was the original , the leaders maintain their former roles.
References
- [1] Serafino Cicerone, Gabriele Di Stefano, and Alfredo Navarra. Asynchronous arbitrary pattern formation: The effects of a rigorous approach. Distributed Computing, 32(2):91–132, 2019. doi:10.1007/S00446-018-0325-7.
- [2] Serafino Cicerone, Gabriele Di Stefano, and Alfredo Navarra. Solving the pattern formation by mobile robots with chirality. IEEE Access, 9:88177–88204, 2021. doi:10.1109/ACCESS.2021.3089081.
- [3] Stefano Clemente and Caterina Feletti. Fault detection and identification by autonomous mobile robots. In Proc. of 4th Symposium on Algorithmic Foundations of Dynamic Networks (SAND), pages 10:1–10:20, 2025. doi:10.4230/LIPIcs.SAND.2025.10.
- [4] Shantanu Das, Paola Flocchini, Giuseppe Prencipe, and Nicola Santoro. Synchronized dancing of oblivious chameleons. In Proc. of 7th International Conference on Fun with Algorithms (FUN), volume 8496, pages 113–124. Springer, 2014. doi:10.1007/978-3-319-07890-8_10.
- [5] Shantanu Das, Paola Flocchini, Giuseppe Prencipe, and Nicola Santoro. Forming sequences of patterns with luminous robots. IEEE Access, 8:90577–90597, 2020. doi:10.1109/ACCESS.2020.2994052.
- [6] Shantanu Das, Paola Flocchini, Nicola Santoro, and Masafumi Yamashita. Forming sequences of geometric patterns with oblivious mobile robots. Distributed Computing, 28(2):131–145, 2015. doi:10.1007/s00446-014-0220-9.
- [7] Xavier Défago, Maria Gradinariu, Stéphane Messika, and Philippe Raipin Parvédy. Fault-tolerant and self-stabilizing mobile robots gathering. In Proc. of 20th International Symposium on Distributed Computing (DISC), volume 4167, pages 46–60. Springer, 2006. doi:10.1007/11864219_4.
- [8] Xavier Défago, Maria Potop-Butucaru, and Sébastien Tixeuil. Fault-Tolerant Mobile Robots. Chapter 10 of [12], pages 234–251, 2019. doi:10.1007/978-3-030-11072-7_10.
- [9] Yoann Dieudonné, Franck Petit, and Vincent Villain. Leader election problem versus pattern formation problem. In Proc. of 24th International Symposium on Distributed Computing (DISC), pages 267–281, 2010. doi:10.1007/978-3-642-15763-9_26.
- [10] Caterina Feletti, Paola Flocchini, Debasish Pattanayak, Giuseppe Prencipe, and Nicola Santoro. Universal dancing by luminous robots under sequential schedulers, 2025. arXiv:2508.15484.
- [11] Paola Flocchini, Alfredo Navarra, Debasish Pattanayak, Francesco Piselli, and Nicola Santoro. Oblivious robots under sequential schedulers: Universal pattern formation. In Proc. 32nd International Colloquium of Structural Information and Communication Complexity (SIROCCO), volume 15671, pages 297–314. Springer, 2025. doi:10.1007/978-3-031-91736-3_18.
- [12] Paola Flocchini, Giuseppe Prencipe, and Nicola Santoro, editors. Distributed Computing by Mobile Entities: Current Research in Moving and Computing, volume 11340. Springer, 2019. doi:10.1007/978-3-030-11072-7.
- [13] Paola Flocchini, Giuseppe Prencipe, Nicola Santoro, and Peter Widmayer. Hard tasks for weak robots: The role of common knowledge in pattern formation by autonomous mobile robots. In Proc. of 10th International Symposium on Algorithms and Computation (ISAAC), pages 93–102, 1999. doi:10.1007/3-540-46632-0_10.
- [14] Paola Flocchini, Giuseppe Prencipe, Nicola Santoro, and Peter Widmayer. Arbitrary pattern formation by asynchronous, anonymous, oblivious robots. Theoretical Computer Science, 407(1):412–447, 2008. doi:10.1016/j.tcs.2008.07.026.
- [15] Fabian Frei and Koichi Wada. Brief announcement: Distinct gathering under round robin. In Proc. of 38th International Symposium on Distributed Computing (DISC), volume 319, pages 48:1–48:8, 2024. doi:10.4230/LIPIcs.DISC.2024.48.
- [16] Paul Klingsberg. A Gray code for compositions. Journal of Algorithms, 3(1):41–44, 1982. doi:10.1016/0196-6774(82)90006-2.
- [17] Giuseppe Prencipe. Pattern formation. In Chapter 3 of [12], volume 11340, pages 37–62. Springer, 2019. doi:10.1007/978-3-030-11072-7_3.
- [18] Ichiro Suzuki and Masafumi Yamashita. Distributed anonymous mobile robots: Formation of geometric patterns. SIAM Journal on Computing, 28(4):1347–1363, 1999. doi:10.1137/S009753979628292X.
- [19] Ramachandran Vaidyanathan, Gokarna Sharma, and Jerry Trahan. On fast pattern formation by autonomous robots. Information and Computation, 285:104699, 2022. doi:10.1016/j.ic.2021.104699.
- [20] Masafumi Yamashita and Ichiro Suzuki. Characterizing geometric patterns formable by oblivious anonymous mobile robots. Theoretical Computer Science, 411(26-28):2433–2453, 2010. doi:10.1016/j.tcs.2010.01.037.
