Full text
Doctoral Thesis Applied Mathematics Algorithmic and combinatorial problems on multi-UAV systems Author: Luis Evaristo Caraballo de la Cruz Supervisor: Dr. José Miguel Díaz Báñez Dpto de Matemática Aplicada II Universidad de Sevilla November 2019
Acknowledgments This PhD thesis is the result of several years of work and, there have been a bunch of people involved in this difficult undertaking in different ways. I am very grateful to all of them. Foremost, I would like to express my sincere gratitude to my PhD advisor Prof. José-Miguel Díaz-Báñez for the continuous support of my research, for his patience, motivation, enthusiasm and knowledge. His guidance helped me in all the time of research and writing of this thesis. I could not have imagined having a better advisor and mentor for my PhD study. And, apart of being a great supervisor, he has been helpful and supportive throughout the past years, since I came to Spain. Several colleagues from different universities and countries have influenced in my research training and, a large part of this thesis is the result of collaborations and discussions with them. I would like to thank all of them for sharing their expertise and advise. I thank my colleagues at the Department of Applied Mathematics II who have helped me in academic and teaching-related matters. I also thank the administrative staff at the department, IMUS and Vice-Rectorate of Research who were helpful in resolving all of my bureaucratic questions. Last but not least, I thank my family for their unconditional support despite distance and time. My friends of the “ONU”, the former ones and the current ones, all of you are like my Spanish family. And, my girlfriend, for her support, love and care. The research conducted in the scope of this thesis has received funding from the project GALGO (Spanish Ministry of Economy and Competitiveness, MTM2016- 76272-R AEI/FEDER,UE), from the European Union Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No 734922 and from the Spanish Government under the grant agreement FPU14/04705. i
ii
Abstract Mathematics has always been a fundamental piece in robotics and, research in robotics has played an important role in the development of mathematics. This thesis is motivated by the growing interest on problems that appear in aerial robotics applications, specifically, on cooperative systems of multiple aerial robots or drones. Most of the research works in multi-robot systems have focused primarily on construction and validation of working systems, rather than more general and formal analysis of problems and solutions. By contrast, this thesis focuses on formally solving problems of aerial multi-robot systems from a discrete and combinatorial optimization perspective. Inspired on problems of this area, the thesis introduces some new theoretical models and problems of interest for mathematicians and computer scientists. The following topics are covered in this thesis: (1) synchronization: design of a coordination strategy to allow periodical communication between the members of a cooperative team while performing a task along fixed trajectories in a scenario with limited communication range, (2) robustness: analysis of the detrimental effects in the performance of a synchronized system when one or more robots fail, (3) stochastic strategies: performance analysis of a synchronized system using drones with stochastic decision making, and (4) task allocation: decentralized coordination to perform periodical task allocation in order to maintain a balanced work load for all members of a team with limited communication range. In the first part of the thesis, we study the synchronization problem giving a theoretical characterization of the solutions and, we present an algorithm to build a synchronized system for a given set of covering trajectories. The second part focuses on the study of the robustness in a synchronized system regarding to two key aspects: covering of the working area and communication between the members of the team. We rigorously study several combinatorial problems to measure how robust a system is to deal with drones failures. Connections of these problems with number theory, graph theory, circulant graphs and polynomial multiplication are shown. The third part is devoted to an analysis of synchronized systems using random aerial robots. This topic is closely related to the random walk theory. It is shown that stochastic strategies increase the robustness of a synchronized system. Finally, this thesis introduces the block sharing strategy to address the problem of maintaining a balanced task allocation among the robots by using periodical communications. A proof on the convergence to an optimal task allocation is given and, a case study for structure construction using a cooperative team of aerial robots is presented. All algorithms developed in this thesis have been implemented and extensive experiments have been conducted to analyze and validate the proposed methods. iii
iv
Resumen Las matemáticas siempre han sido una pieza fundamental en el desarrollo de la robótica, así como los problemas de robótica han jugado un importante papel en el desarrollo de las matemáticas. Esta tesis está motivada por el creciente interés en problemas que aparecen en aplicaciones de robótica aérea, específicamente, está enfocada en sistemas cooperativos de múltiples robots aéreos o drones. La mayoría de los trabajos de investigación en sistemas de robots se han centrado en la construcción y validación de arquitecturas desde un enfoque empírico. Por el contrario, esta tesis enfoca el estudio de problemas relacionados con tareas para equipos de robots aéreos desde el punto de vista de la optimización discreta y combinatoria. Inspirada en problemas de este campo, esta memoria plantea nuevos modelos teóricos y problemas de interés para las matemáticas aplicadas y la ciencia computacional. En esta tesis se abordan los temas siguientes: (1) sincronización: diseño de una estrategia de coordinación que permita comunicación periódica entre los miembros de un equipo cooperativo mientras ejecutan una tarea sobre trayectorias fijadas, (2) robustez: análisis del efecto que produce el fallo de los agentes en un sistema sincronizado, (3) estrategias estocásticas: análisis del funcionamiento de un sistema sincronizado cuando se utilizan drones con toma de decisiones aleatorias, y (4) asignación de tareas: coordinación no centralizada usando asignación periódica de tareas que permita mantener una carga de trabajo balanceada. En la primera parte, se estudia teóricamente el problema de la sincronización, dando condiciones necesarias y suficientes para la existencia de solución y se presenta un algoritmo que construye un sistema sincronizado para un conjunto fijado de trayectorias de vuelo. La segunda parte de la tesis estudia la robustez de un sistema sincronizado teniendo en cuenta dos aspectos fundamentales: el cubrimiento del terreno y la comunicación entre los miembros del equipo. Se estudian de forma rigurosa problemas combinatorios que surgen cuando se requiere saber cómo de robusto es un sistema con respecto a fallos. Se muestran conexiones con áreas matemáticas como la teoría de números, la teoría de grafos, los grafos circulantes o multiplicación de polinomios. En la tercera parte de la tesis, se estudia la robustez del sistema cuando se introducen decisiones aleatorias de los drones. Se prueba la relación de este problema con la teoría de caminatas aleatorias y se muestra que el uso de estrategias estocásticas supone una mejora de la robustez del sistema sincronizado. Por último, se propone la estrategia de coordinación por bloques para la asignación balanceada de tareas. Se prueba la convergencia del método a una asignación óptima y se realiza un estudio de caso para la construcción de una estructura mediante un equipo cooperativo de drones. Todos los algoritmos desarrollados en esta tesis han sido implementados y se han llevado a cabo diversos experimentos que demuestran la validez de los métodos propuestos. v
vi
Table of contents 1 Introduction 1 1.1 Motivation................................ 2 1.2 Research lines and objectives . . . . . . . . . . . . . . . . . . . . . . 3 1.3 Methodology .............................. 5 1.4 Relatedwork .............................. 6 1.4.1 Previous work related to the synchronization problem . . . . 7 1.4.2 Related work to robustness of multi-robot aerial systems . . 9 1.4.3 Related work to task allocation on multi-robot systems . . . 11 1.5 Contributions.............................. 12 1.5.1 Related publications and collaborations . . . . . . . . . . . . 14 1.5.2 Thesisoutline.......................... 16 2 The synchronization problem 17 2.1 Problem formulation . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.2 Theoretical results in a simplified model . . . . . . . . . . . . . . . 20 2.2.1 The synchronization algorithm . . . . . . . . . . . . . . . . . 30 2.2.2 Robots moving in the same direction . . . . . . . . . . . . . 33 2.2.3 Robots moving in opposite directions . . . . . . . . . . . . . 34 2.3 Generalizing the simple model . . . . . . . . . . . . . . . . . . . . . 39 2.4 Robustness ............................... 43 2.5 Simulation and computational results . . . . . . . . . . . . . . . . . 46 2.6 Preliminary experimental results . . . . . . . . . . . . . . . . . . . . 50 2.7 Conclusions ............................... 54 3 Resilience of a SCS 57 3.1 Problemstatement ........................... 61 3.2 Technicaltools ............................. 63 3.3 Computing coverage resilience . . . . . . . . . . . . . . . . . . . . . 70 3.3.1 Coverage resilience for trees and grids . . . . . . . . . . . . . 72 vii
4CHAPTER 1. INTRODUCTION 1 2 3 Figure 1.1: Three quadrotors (in black color) traveling along closed trajectories while they are covering pairwise disjoint regions. They can communicate only when they are at the positions marked with gray color. The arrows indicates the travel directions in the regions. The first part of this thesis is focused on designing a coordination strategy to maintain ‘periodical’ connectivity between UAVs under communication constraints. Consider the following scenario: we have a big area to monitor with n aerial robots with a very limited communication range. The area is divided into pairwise disjoint regions, one per robot. Each robot monitors its region by traveling periodically along a closed trajectory. Two robots can communicate between them only if they are within the communication range of each other. It is convenient that robots communicate frequently in order to share information about targets or failures of some robot in the system, or simply to report about their mission. In Figure 1.1, robots 1, 2 and 3 are moving in their regions and they can communicate between them only at the positions marked with gray robots. And, robot 3 can communicate with the antenna only if it is at the closest point from its trajectory to the antenna. Thus, the information from robot 1 passes to robot 2, then to robot 3 and, finally it reaches the antenna. In this way, if no robot leaves the system the communication between them is guaranteed and the terrain is completely covered. The first two objectives of the thesis are related to the scenario presented above: 1. Taking into account the short communication range (with respect to the work area) of the robots, how to coordinate their movement in order to get a connected network between the robots (i.e., a message can travel between any pair of robots)? This is the so-called synchronization problem and it is the first objective of the thesis. 2. The second objective is to study the weaknesses of the proposed strategy to solve the synchronization problem and provide robustness mechanisms to recover the network in case that some robots fail (i.e., a robot may need to leaves the system to recharge battery or, it may be knocked down by the enemy in an hypothetical war scenario). The framework above has several applications apart from surveillance. For
1.3. METHODOLOGY 5 instance, data collection: UAVs are utilized to gather delay-tolerant information from a large number of distributed wireless devices. An example is wireless sensors in precision agriculture applications [122]. Wireless network coverage is another application of the stated framework [122]: a team of UAVs is used as a team of mobile stations to provide wireless communication to a region where there is no communication infrastructure or it has been damaged by a natural disaster or a war. In the framework above, every UAV has assigned its task. The third objective of the thesis focuses on the design of strategies for task allocation between the members of a team of UAVs: 3. The design of a fully distributed approach, where the robots dynamically allocate their tasks periodically to maintain an optimal allocation according to their capabilities. We consider again that the robots have a limited communication range, so that, permanent communication during the mission is not possible. 1.3 Methodology The majority of real-world problems are characterized by a high degree of computational complexity due to their complex underlying models which require intelligent exact or heuristic algorithms to achieve high accuracy. Existing approaches often use generic heuristic methods which are adapted to the given scenario without considering the inherent properties of the problem. Such systems often result in low performance and high computational complexity. Consequently, our methodology addresses this knowledge gap and we aim to contribute to the advance in technology by designing problem-specific algorithms. We propose a bottom-up methodology where complex problem statements are approximated by a simple model for which we design an efficient algorithm which can be generalized later to real-world scenarios. Moreover, an heuristic method based on an efficient algorithm should be more accurate than a generic heuristic. With this novel methodology we address technological problems in a multi-disciplinary effort to advance in the design of algorithms for performing tasks with drones. Many problems related to cooperative UAVs rely on geometric networks when a discretization of the problem is considered. For a simple discretized model we can take advantage of using graph or geometric algorithms. The field of Computational Geometry studies fundamental concepts and techniques to solve problems by exploiting its inherent geometry. It is an exciting field that combines clever algorithmic approaches and beautiful geometric structures to obtain general techniques for the efficient storage and processing of spatial data. Geometric algorithms are useful in many application areas such as Operation Research, Robotics, Computer
6CHAPTER 1. INTRODUCTION Graphics, Geographic Information Systems (GIS), Pattern Recognition, and Music Information Retrieval, just to name but a few. These techniques can already be found in decision-support systems in many problems within the fields of facility location, air traffic, data mining, clustering, among others. In all these areas, the geometric problems are solved in a rigorous way, resulting in solutions with guaranteed efficiency, both in terms of memory space and time complexity. 1.4 Related work At a recent lecture (October 2013) at MAA’s Carriage House, Florian Potra of the University of Maryland, Baltimore County, surveyed the rich history of human efforts to create artificial intelligences and self-operating machines (automatas). He said: “While the history of robotics is very short, the idea of a robot may be as old as the earliest mathematical studies. It has always been a special component of the human psyche.”[103]. The modern robotics was born in the twentieth century as an interplay between engineering, computer science and mathematics. All robotic applications requires some level of mathematics, for example, robots with manipulator arms require mathematical models to control their limbs [99]. Path planning for mobile robots requires resources from geometry and optimization to find paths (avoiding obstacles if there are any) of minimum length/cost [80, 58, 149]. In May 2000 there was a meeting at the National Science Foundation in Arlington Virginia on “The Interplay between Mathematics and Robotics” where many leading experts in the United States of America discuss the importance of mathematics in robotics and also the role of robotic problems could play in the development of mathematics (http://www.math.umbc.edu/~potra/FINALreport. PDF). As an illustrative example of the synergy between mathematics and robotics we would like to mention the Dubins path, which is the shortest curve that connects two points in the two-dimensional Euclidean plane with a constraint on the curvature of the path and with prescribed initial and terminal tangents to the path, and an assumption that the vehicle traveling the path can only travel forward [41]. This is a beautiful and interesting mathematical problem, which is fundamental in the fields of robotics and control theory to plan paths for wheeled robots, aerial robots and underwater vehicles. Another important example of this synergy is Computational Geometry, which recently emerged as a new branch of mathematics and computer science and, has grown mainly motivated by robotics and its applications [111]. To conclude this brief discussion on the interplay between robotics and mathematics, we would like to mention that, nowadays, this relationship has even been studied from the point of view of mathematical education [100, 45, 127]. In the last twenty years, the use of aerial robots and aerial multi-robot systems in monitoring, surveillance, delivery of goods, network coverage, etc. [122], has brought several challenges that have attracted the attention of both, robotics and mathematical research communities. For example, the Vehicle Routing Problem
1.4. RELATED WORK 7 (VRP) and Traveling Salesman Problem (TSP), are classical problems in the operational research area that have got renewed attention with these applications: see [4] for a survey on VRP instances with applications to multi-objective Unmanned Aerial Vehicle operations and, see [5, 143] for studies on both problems in commercial scenarios that consider a combination of trucks and drones to perform the so-called “last-mile deliver”. However, research in robotics has focused primarily on construction and validation of working systems, rather than more general and formal analysis of problems and solutions [52]. And, most of the formal works, only use mathematics as a resource to build or validate their solutions. This thesis, framed in the synergy between mathematics and robotics, formally studies some problems related to aerial multi-robot systems. Also, to the best of our knowledge, it is a pioneering work that, inspired on problems of this area, introduces some new theoretical models, structures and problems that could be of interest for mathematicians and computer scientists. The following three subsections show specific related works to each of the three thesis’s objectives: the synchronization problem, robustness of synchronized aerial multi-robot systems and task allocation on aerial multi-robot systems. 1.4.1 Previous work related to the synchronization problem Recall that, in the synchronization problem the robots are performing their tasks in a large area and they have a limited communication range, then they cannot establish a permanent communication network. Then, a coordination strategy is required to guarantee periodic meetings between pairs of robots and, thus allowing the information to be disseminated throughout the team. The coordination of a team of robots under communication constraints has been studied in many specific cases, fundamentally in surveillance and monitoring missions. In this subsection we explore some of the previous works that aims to establish such coordination strategies. In [76] a cooperative perimeter-surveillance problem is posed and it is offered a decentralized solution that accounts for perimeter growth (expanding or contracting) and insertion/deletion of team members. In this scenario, the team of robots operates on a single trajectory (that can change dynamically) for all the agents. Therefore, two robots moving in opposite directions always meet and can share information with a small communication range, so assigning different directions to the members of the team and changing direction alternately in every meeting event generates the necessary encounters between pairs of neighboring agents. A technique to explore unknown areas using a cooperative team of robots is presented in [47]. Their strategy is based on a data structure called Sensor-based Random Graph (SRG) where the members of the team store environment data and the robots are constantly exploring and updating the SRG. When two robots
8CHAPTER 1. INTRODUCTION fortuitously meet at a point, they share information and generate new collision free motion plans to explore the potential unknown regions. The authors of [56] consider the problem of satisfying communication demands in a multi-agent system where several robots cooperate on a task and a fixed subset of the agents act as mobile routers. The goal is to position the team of robotic routers to provide communication coverage to the remaining client robots. The authors present an adaptive solution to allow for dynamic environments and variable client demands. The main difference with our scenario is that we do not require (or we are not allowed to use) a team of router robots to provide connectivity. Some of the coordination strategies are based on a convenient subdivision of the area to monitor. For example, in [151], the idea is to divide the area to be explored, a rectangle, for simplicity, into nstrips, one for each robot, and then to execute a lane based search. The communication links are in the common borders between two consecutive strips. Data flows from the leftmost and rightmost agents to the center agent, and decision control flows from the center to the sides of the team. Based on the form in which the information flows in this strategy they called it X Synchronization (XS). This technique is interesting but, unfortunately, can not be applied to solve the problem for general workspaces (no strips possible) with a complex subdivision of the region to monitor. In [64] the following scenario is examined: a mobile network of robots must search, survey, or cover an environment and communication is restricted by relative location. That is, all the members of the team are connected only when they are in specific positions due to obstacles (or something else) in the environment. The idea is to plan the motion of every member of the team to cover the entire region in a minimum of time such that periodically the team is totally connected. They propose an online algorithm that scales linearly in the number of robots and allows for arbitrary periodic connectivity constraints. In [132] an integrated algorithm for task allocation and motion planning is presented. The goal of this algorithm is to keep the connectivity of a cooperative team of robots while their perform a surveillance or exploration mission. The members of the team have limited communication range but the distance between the agents does not admit disconnections. The tasks are assigned to the robots and the motion paths are computed under this restrictions. The topology of the network can changes during the mission but disconnections are not allowed. Some of the strategies presented above enforce a permanent communication by using extra hardware to provide communication in the team ([56]) or, by allocating tasks and computing paths conveniently in order to maintain a connected network ([132]). Neither of these approaches are feasible in our scenario because as we have posted before we do not have extra hardware to provide communication and, by other hand, moving close enough to maintain the communication may not be a good idea when the region to monitor is large, in these cases it is more convenient that the members of the team are spread out over the region collect-
1.4. RELATED WORK 9 ing information. Then, a coordination strategy is required to guarantee periodic meetings between pairs of robots aiming to provide a global communication with intermittent information exchange between neighboring robots while they perform their subtasks. The others strategies presented above tackle the communication problem from this perspective, however, they are limited by a fixed topology of the region or a fixed way in which the region is subdivided. In Chapter 2 we aim the problem of establishing a coordination strategy on any complex region using a given subdivision of the terrain. 1.4.2 Related work to robustness of multi-robot aerial systems The strategy proposed to solve the synchronization problem in Chapter 2 guarantees two important aspects in the proposed scenario: •coverage: the region to monitor is subdivided in nsubregions, one per robot, so, every robot covers its assigned region and, •communication: every robot has periodic communications with the robots in neighboring regions. These periodic intermittent meetings between neighboring robots establish a global communication network allowing the spreading of the information, i.e., it is possible to perform a broadcast in the system. If some robot leaves the system due to some catastrophic failure or because it needs to refuel, then the performance of the system is compromised. Taking into account that scalability, fault-tolerance and failure-recovery are important concerns of distributed systems of UAVs, the second objective of the thesis is focused on these matters on the proposed synchronization/coordination strategy. At the end of Chapter 2 the shifting protocol is introduced as a recovering strategy to maintain the covering of the region and the communication among the surviving robots when one or more robots leave the system. This protocol does not change the original subdivision of the region, but allows the robots to move from one subregion to another. We experimentally show that shifting protocol is quite robust to random failures of the robots. In order to determine the robustness of the strategy we use two measures: •idle time (of a subregion): which is the interval of time in which a subregion is not attended by any robot and, •broadcast time: which is the time it takes for a message issued by a robot to reach the full team (of surviving robots). The idle time is an important quality measure in surveillance and monitoring systems. The frequency of visits as a criterion for measuring the efficiency of
10 CHAPTER 1. INTRODUCTION patrolling is called idleness. For a survey of diverse approaches to patrolling based on idleness criteria we refer the reader to [8, 87, 101, 128]. The broadcast time is related to the meeting time, defined as the maximum time for two robots to communicate, is another quality measure that is used to evaluate the performance of a system with respect to communication. Collaborative exploration of an unknown environment where the robots meet each other periodically to “cooperate” has been widely considered in robotics, see for example [46, 109]. Broadcast and meeting time have been studied in mobile networks, robotics and random walks, see for example [31, 65, 85, 146]. In Chapter 3, the robustness of our strategy is studied in the worst case. We show that, depending on the subdivision of the region, if certain set of robots fail then some points of the region are not longer visited or the system loses the broadcast ability. It may even happen that one or more robots became isolated, i.e., they never meet another robot. This lead us to address the combinatorial problem of determining the minimum number of robots that must fail to break the robustness of the proposed strategy. There are many combinatorial problems motivated by multi-robot applications as it was shown in the first part of this section ([4, 124, 6, 77, 133]). In fact, almost every multi-robot application induces combinatorial optimization problems, for example, determining the minimum of robots to perform the mission, or the minimum cost (travel distance, energy consumption, etc.) to perform a mission with nrobots, etc. To overcome these catastrophic failures of the system in the worst case, in Chapter 4 a randomization of the shifting protocol is introduced. Recently, the study of stochastic multi-robot systems has attracted considerable attention in the field of mobile robots. This approach brings several advantages, such as lower times to complete tasks, cost reduction, higher scalability, and more reliability, among others [150, 44]. In a pure random mobility model, each node randomly selects its direction, speed, and time, independently of other nodes. Some models include random walks, random waypoints or random directions. See [26] for a comprehensive survey. In Chapter 4, it is shown that our stochastic model generates random walks. A random walk on a graph is the process of visiting the nodes of the graph in some sequential random order. The walk starts at some fixed node, and at each step it moves to a neighbor of the current node chosen randomly. There is a vast theoretical literature dealing with random walks. For an overview see e.g. [85, 108]. One of the main reasons that random walk techniques are so appealing for networking applications is their robustness to dynamics. A random walk presents locality, simplicity, low-overhead and robustness to structural changes. Because of these characteristics, applications based on random walks are becoming more and more popular in the networking community. In recent years, different authors have proposed the use of random walks for querying/searching, routing and selfstabilization in wireless networks, peer-to-peer networks, and other distributed
1.4. RELATED WORK 11 systems [11]. Relevant works in robotics related to the idle-time concept are [87] and [128], where the main objective is to reduce the period between two consecutive visits to any vertex in order to minimize the detection delay for intruders. In the patrolling problem for communication scenarios, some models have been considered in [102] but, the evaluation criterion also is the idle-time. In this thesis, we add to the idle-time two new measures to precisely ensure communication of the team dealing with random strategies: the isolation-time (meeting-time) and the broadcast-time. Recently, the concept of Flying Ad-Hoc Network (FANET), which is basically ad hoc network between UAVs, has been introduced in [13]. FANETs can be seen as a subset of the well-known mobile ad hoc networks (MANETs), where the use of random walks has been intensive [59]. Thus, an opportunity to extend the stochastic methods to UAVs has been opened. Our contribution is to provide an example of using random strategies as an alternative to existing protocols for UAVs networks. 1.4.3 Related work to task allocation on multi-robot systems The third objective of the thesis focuses on designing of an strategy to maintain a balanced task allocation to face dynamical changes of the system or the environment. The task allocation problem has been widely studied in different areas. Centralized mechanisms have advantages including a guaranteed optimal solution. However, their limitations are well known, i.e. their slow response to dynamic events and vulnerability to failures. In dynamic and uncertain environments, decentralized mechanisms are preferred. Decentralized task allocation approaches for autonomous agents have been well studied in robotics [39, 52, 74, 78, 81]. Reference [50] presents a dynamic task allocation scheme using an auction process for a heterogeneous robot team. Reference [38] introduces a market-based multirobot task allocation architecture in which robots are modeled as self-interested agents with the goal of maximizing individual profits. In [22, 30] two algorithms on market-based decision strategy are proposed: the consensus-based auction algorithm (CBAA) and its generalization to the multi-assignment problem, the consensus-based bundle algorithm (CBBA). In [19], the CBBA is extended taking into account obstacle regions in order to generate collision free paths for UAVs. In practice, robots have a limited communication capability which may influence development and performance of the task allocation algorithm significantly. In [40] an interception scenario involving a team of UAVs and a group of moving targets is considered. Their problem is to coordinate the team of UAVs based on their local information using a decentralized task allocation approach using intermittent and asynchronous communications. In [2, 1], the authors focus on a decentralized algorithm to ensure information propagation in area monitoring
12 CHAPTER 1. INTRODUCTION missions with a fleet of heterogeneous UAVs with limited communication range. The strategy follows a distributed one-to-one coordination schema and has been adopted to maintain a balanced area partition among the robots. The task allocation problem is also related to the well-known assembly line balancing (ALB) optimization problem in operational research [21, 113]. The ALB problem deals with partitioning the total assembly operations into a set of m elementary tasks oi(i= 1, . . . , m)with times ti, and assigning them to a team of n assembly robots rk(k= 1, . . . , n)such that all robots approximately spend equal assembly times and the so-called “precedence constraints” between operations are satisfied. Assuming that the set Skof tasks is assigned to the k-th robot, its assembly time is t(Sk) = Pj∈Sktj. The ALB problem is NP-hard [113] and soft computing approaches have been proposed in [107]. The main goal in an ALB model is the allocation of the tasks among stations so that the precedence relations are not violated and a given objective function is optimized. Besides balancing a newly designed assembly line, an existing assembly line has to be re-balanced periodically or after certain changes in the production process or the production plan. 1.5 Contributions In this section the contributions of this thesis are listed on an item basis. The first objective of the thesis is addressed in Chapter 2. In here we present: 1. A synchronized system as a strategy to coordinate the movement of the robots in their regions in such a way that pairs of robots are synchronized and arrive periodically at the same time to a region where they are close enough to exchange information. We also present: 2. A fail-recovery approach on a synchronized system that allows robots to leave the system or be inserted into it, minimizing detrimental effects on system performance. In this chapter we also define the communication graph of a synchronized system as a graph whose vertices are the trajectories and there is an edge connecting two trajectories if their robots can exchange information periodically. A synchronized system has three very important properties that assure the good performance of the system: the robots have meetings periodically, all the points in the trajectories are visited periodically and it has the ability for messages broadcasting between the robots in the system. And, if some robots fail then the surviving ones apply the fail-recovery approach trying to maintain these properties. However, if a large enough number of robots fail, the system may lose some of these
1.5. CONTRIBUTIONS 13 properties. In Chapter 3 we focus on the study of the resilience of a synchronized system, that is, what is the maximum number of robots that can fail such that the system maintains these properties? Actually, we study the problem from the other point of view, what is the minimum number ρsuch that there exist ρrobots whose removal causes the loss of some of these properties? In Chapter 3 these questions are addressed. 3. Three resilience measures are presented: (a) coverage resilience as the minimum number ρcsuch that, there exist ρc robots whose removal causes that some point is no longer covered, (b) k-isolation resilience as the minimum number ρisuch that, there exist ρirobots whose removal causes that at least ksurviving robots have no longer any meeting and, (c) broadcasting resilience as the minimum number ρbsuch that, there exist ρbrobots whose removal causes that it is no longer possible to make a broadcast in the system. Obviously, the larger the resilience, the more fault tolerant the system is. These measures lead us to three combinatorial problems: given a synchronized system what are the values of these measures? In [23] the notion of k-isolation resilience is introduced and an O(n2)time algorithm for computing the 1-resilience is proposed. Chapter 3 studies these problems and shows that: 4. The problem of computing any of the presented measures depends on the topology of the communication graph. Let ndenote the number of trajectories in the synchronized system. The following table summarizes our results: Communication graph’s topology Resilience measures Tree Cycle N×MGrid∗General coverage O(1) O(n)O(Tgcd(N, M))†O(n) k-isolation NP-Hard O(n)O(1) NP-Hard broadcasting O(n3/2)O(n)O(1) O(nκ ·min{κ3+n, nκ})‡ ∗We say that the communication graph has an N×Mgrid topology if the trajectories are arranged forming a grid of Nrows and Mcolumns, notice that n=N∗M. †Tgcd(N, M)denotes the required time to compute gcd(N, M). Taking into account that n=N∗Mthen, Tgcd(N, M) = O(log n(log log n)2log log log n)according to [129]. ‡κdenotes the value of the broadcasting resilience.
20 CHAPTER 2. THE SYNCHRONIZATION PROBLEM . . . . . . Pi Pj r | {z } (a) One direction . . . . . . | {z } Pi Pj r (b) Two directions Figure 2.2: Representation of the communication region between two robots Vi and Vj(gray region): (a) two neighboring robots moving in clockwise direction and (b) two neighboring robots moving in opposite directions. Notice that both figures use the same communication range (r=min{ri, rj}). First, observe that under a general model, even the synchronization between two robots cannot be guaranteed. Consider, for example, a system consisting of only two robots, each moving at constant speed with a very small communication range. Then, if the ratio of the two trajectory lengths is not rational, a synchronized motion is not possible. Typically, the methods used in the literature achieve synchronization by changing the speeds of the robots by small amounts, e.g., they allow for the possibility of one vehicle “waiting" for the other. Unfortunately, this simple approach is only feasible for two vehicles. For a team of cooperative robots, a more delicate theoretical study is required. The following questions need to be answered in order to implement an efficient and robust multi-robot coordinated system: (i) When can a cooperative multirobot system be synchronized without changing the robot speeds? and (ii) in case of a robot failure, can the schedules be slightly altered in order to complete the global task in a new synchronized system? This chapter aims to answer the above two questions. Based on theoretical results on a simplified model, we propose an algorithm that is efficient and robust in the face of catastrophic robot failures where the synchronization of a large team of robots is assured. 2.2 Theoretical results in a simplified model The general methodology we are proposing is to first obtain strong results on a simplified, albeit not entirely practical model, and then to adapt the newly acquired theoretical knowledge to more general and realistic models. Accordingly, we discuss how to extend the approach for the simple model to others models in Section 2.3 where we consider, for example, heterogeneous vehicles, non-circular routes, etc. Let us consider a simplified model for which the basic results can be stated.
2.2. THEORETICAL RESULTS IN A SIMPLIFIED MODEL 21 In this simplified model all aerial robots fly at the same altitude and move along equal and pairwise disjoint circular trajectories at the same speed with the same communication range. Without loss of generality, assume that a robot spent one unit of time to make a tour in a trajectory. Let T={C1, C2, . . . , Cn}be the set of pairwise disjoint unit circles representing the flight trajectories of the nrobots and let < 0.5be the communication range of the robots. Let Ciand Cjbe two trajectories such that the distance between their centers is less than or equal to 2 + . Then, the robots in Ciand Cjcan potentially share information (see Figure 2.3). In order to model the ensuing communication constraints we define the graph of potential links of the system with respect to range as follows: Definition 2.2.1 (Graph of potential links).Let T={C1, . . . , Cn}be a set of trajectories and let be the communication range of the robots. The graph of potential links of the system with respect to range is a planar graph G(T) = (V, E)whose vertices are the circle centers and whose edges connect two centers if their distance is less than or equal to 2 + (see Figure 2.4). Moreover, if two trajectories, Ciand Cj, are connected by an edge of Ethen they are neighbors and, the edge connecting them is denoted by (i, j). Remark 2.2.2. In the simplified model, the graph of potential links is actually the intersection graph of a set of enlarged trajectories, namely, the set of disks of radius 1 + /2with the same trajectory centers. Therefore, the graph of potential links can be computed in linear time [16]. Since communication is an important issue in cooperative scenarios, this work focuses on sets of trajectories whose graphs of potential links is connected. Assume for the rest of the chapter that we are working with a given set of trajectories T and a fixed communication range such that the graph of potential links G(T)is connected. In the analysis that follows, it will be convenient to denote a point of a trajectory by the angle that it forms with horizontal positive axis measured in counterclockwise direction, i.e., the angle in polar coordinates (see Figure 2.3). Since the robots move at constant speed, it suffices to know the starting position and movement direction of a robot in order to compute its position at any time. Thus, we can define a schedule of a system as the set of starting positions and travel directions on every trajectory. Definition 2.2.3 (Schedule).Let T={C1, . . . , Cn}be a set of trajectories. A schedule on Tis a pair of functions (α, δ),α:T→[0,2π)and δ:T→ {−1,1}, where α(Ci)is the starting position in the circle Ciand δ(Ci)is the movement direction in the circle Ci, 1 corresponds to counterclockwise direction (CCW) and −1to clockwise direction (CW). At an arbitrary time t, a robot’s position in circle Ciis: α(Ci)+2π·δ(Ci)·t. (2.1)
22 CHAPTER 2. THE SYNCHRONIZATION PROBLEM Ci Cj φji φij | {z } Figure 2.3: The simple model. Robots in Ciand Cjcan share information because the distance between them is less than or equal to . Notice that they are at the link positions φij and φji, respectively. 1 24 67 8 9 5 3 φ64 φ46 φ21 φ12 Figure 2.4: Representation of a set C1, C2, . . . , C9of unit circles and the underlying graph of potential links.
2.2. THEORETICAL RESULTS IN A SIMPLIFIED MODEL 23 Let (i, j)be an edge in E. For the sake of simplicity we consider that two robots in trajectories Ciand Cjcan establish a communication link if and only if they are at the same time over the segment that connects the centers of Ciand Cj, see Figure 2.3. The following definition describes formally these positions. Definition 2.2.4 (Link position).Let T={C1, . . . , Cn}and be the set of trajectories and the communication range of a system, respectively. Let G(T) = (V, E) be the graph of potential links of the system. Let (i, j)be an edge in E. The link position of Ciwith respect to Cj, denoted by φij, is the angle corresponding to the point of Ciclosest to Cj. Clearly, if φij is defined, so is φji and φji =π+φij (see Figure 2.3). Using the previous two definitions we can extend the notion of synchronization to trajectories in the following way: Definition 2.2.5 (Synchronized trajectories).Let S= (α, δ)be a schedule on a system whose set of trajectories is Tand whose communication range is . Two trajectories Ciand Cjof Tare synchronized by Sif there exists a 0≤t < 1such that: α(Ci)+2π·δ(Ci)·t=φij and α(Cj)+2π·δ(Cj)·t=φji. Notice that, two robots in a synchronized pairs of trajectories, are synchronized between them and they “meet each other” (establish a link position) every time unit (see Figure 2.3). Definition 2.2.6 (Communication graph).Let Sbe a schedule on a system whose set of trajectories is Tand whose communication range is . The communication graph of S, is a spanning subgraph1of G(T) = (V, E)whose edges are the pairs of synchronized trajectories. Notice that, if the communication graph of a schedule is connected then a message can be relay between every pair of robots on the system (may be passing through multiple robots). We are interested in this kind of schedules. Definition 2.2.7 (Synchronization schedule).Let Sbe a schedule on a system whose set of trajectories is Tand whose communication range is . Let Gbe the communication graph of S. If Gis connected then we say that Sis a synchronization schedule. If G=G(T)then Sis a full synchronization schedule. We say that a system is synchronized if the team of robots (one per trajectory) is using a synchronization schedule. In the following we are going to characterize the relation between pairs of synchronized trajectories. In order to save notation we will use αiand δiinstead of α(Ci)and δ(Ci)to refer the starting position and travel direction in a trajectory Ci, respectively. 1Aspanning subgraph of a graph His another graph whose set of vertices is exactly the same set of vertices of Hand whose set of edges is a subset of the set of edges of H.
24 CHAPTER 2. THE SYNCHRONIZATION PROBLEM Lemma 2.2.8. Let Gbe the communication graph of an schedule S= (α, δ). Let (i, j)be an edge of G. If δj=δithen αj=π+αi. Proof. There exists a value tsuch that: αi+ 2πδit=φij and αj+ 2πδjt=φji. By using Definition 2.2.4 we get that: αj+ 2πδjt=αi+ 2πδit+π. Using that δi=δjthe result follows. Lemma 2.2.9. Let Gbe the communication graph of an schedule S= (α, δ). Let (i, j)be an edge of G. If δi=−δjthen αj=φji +φij −αi. Proof. There exists a value t≥0such that: φij =αi+ 2πδitand φji =αj+ 2πδjt. Then: φij −αi= 2πδitand φji −αj= 2πδjt. Using that δi=−δjthe result follows. Let Tbe set of trajectories and let be the communication range of the robots. Let S= (α, δ)be a schedule on Tand, let S0= (α0, δ)be another schedule on Tusing the same directions in every trajectory. Consider that α0(Ci) = α(Ci) + 2πεδ(Ci)for all Ci∈Twhere εis a positive constant. Note that, in this case the starting positions of S0are the positions of Safter εunits of time. Therefore, if the system starts with a set of nrobots using the schedule S, after εunits of time, the robots will be moving like if they have just started using the schedule S0. Then, we can say that Sand S0are almost the same schedule, they are equivalent. Notice that Sand S0have the same communication graph. Definition 2.2.10 (Equivalent schedules).Let Tbe set of trajectories and let be the communication range of the robots. Two schedules S= (α, δ)and S0= (α0, δ0) on Tare equivalent if for all t≥0there exists a value t0=t0(t)≥0such that: α0 i+ 2πδ0 it0=αi+ 2πδitfor all 1≤i≤n. More informally, this definition says that if we have two imaginary sets of robots following schedules Sand S0, respectively, and we take a picture of the team who is following schedule Sat some arbitrary time, then, Sand S0are equivalent if we can get exactly the same picture at some instant of time in the team following S0.
2.2. THEORETICAL RESULTS IN A SIMPLIFIED MODEL 25 Remark 2.2.11. Let Sbe the set of all the possible schedules on a system. It is easy to prove that the previous definition establishes an equivalence relation between the elements of S. That is, for any schedules S,S0and S00 in S: •Sis equivalent to S(reflexive property), •if Sis equivalent to S0then S0is equivalent to S(symmetric property), and •if Sis equivalent to S0and S0is equivalent to S00 then Sis equivalent to S00 (transitive property). Then, this equivalence relation provides a partition of Sinto (disjoint) equivalence classes. The following theorem characterizes the equivalent schedules. Theorem 2.2.12. Two schedules S= (α, δ)and S0= (α0, δ0)are equivalent if and only if δ0=±δand α0=α+cδ where 0≤c < 2πis a constant. Proof. Firstly, we prove that if Sand S0are equivalent, then δ0=±δand α0= α+cδ where c∈Ris a constant. We will start by showing that for all 1≤i≤n, if δ0 1=δ1then δ0 i=δiand, if δ0 1=−δ1then δ0 i=−δi. After that, we are going to prove that if α0 1=α1+cδ1then α0 i=αi+cδi. Let pi(t) = αi+2πδitand p0 i(t) = α0 i+2πδ0 itdenote the position in trajectory Ci at time tusing schedules Sand S0, respectively. Let t > 0be an arbitrary instant of time. Let t0>0be the minimum value such that p1(t) = p0 1(t0). Since Sand S0 are equivalent we deduce that pi(t) = p0 i(t0)for all 1≤i≤n. Let 0< ε < 1/2. Notice that: pi(t+ε) = αi+ 2πδi(t+ε) = pi(t)+2πδiε. Suppose that δ0 1=δ1, then p0 1(t0+ε) = p1(t+ε). Since Sand S0are equivalent, then, for all 1≤i≤n: p0 i(t0+ε) = pi(t+ε) p0 i(t0)+2πδ0 iε=pi(t)+2πδiε. Using that p0 i(t0) = pi(t)and 0<2πε < π we deduce that δ0 i=δifor all 1≤i≤n. Now, suppose that δ0 1=−δ1, then p0 1(t0+ 1 −ε) = p1(t+ε). Since Sand S0are equivalent, then, for all 1≤i≤n: p0 i(t0+ 1 −ε) = pi(t+ε) p0 i(t0)−2πδ0 iε=pi(t)+2πδiε. Using that p0 i(t0) = pi(t)and 0<2πε < π, we deduce that δ0 i=−δifor all 1≤i≤n.
26 CHAPTER 2. THE SYNCHRONIZATION PROBLEM Let 0≤c < 2πbe a constant such that α0 1=α1+cδ1. For all times t, t0such that p0 i(t0) = pi(t)we have that: p0 i(t0) = pi(t) α0 i+ 2πδ0 it0=αi+ 2πδit α0 i=αi+ 2πδit−2πδ0 it0 α0 i=αi+ 2πδi(t−δiδ0 it0).(δ2 i= 1) Notice that the last equation can be rewritten as: α0 i=αi+ 2πδi·frac(t−δiδ0 it0) where frac(t−δiδ0 it0)denotes the fractional part of (t−δiδ0 it0). Note that the integer part of (t−δiδ0 it0)corresponds to entire loops in a trajectory because a robot spends one time unit in a tour, thus, it doesn’t affect the position in a circle. For i= 1, regardless the values of tand t0, the value 2π·frac(t−δ1δ0 1t0)is the constant c. Notice that, if δ0=±δthen δ0 iδi=δ0 1δ1for all 1≤i≤n. Thus, 2π·frac(t−δ1δ0 1t0) = cfor all 1≤i≤n. This completes the proof of the first implication. Now, let us focus on proving that if δ0=±δand α0=α+cδ (0≤c < 2π) then S= (α, δ)and S0= (α0, δ0)are equivalent schedules. Let tbe an arbitrary instant of time and let t0be the minimum non-negative value of the form: t0=st−c 2π+kwhere k∈Zand s=δ δ0=(1if δ0=δ −1if δ0=−δ For all trajectory Ci∈Tthe position in Ciat time t0following schedule S0is: p0 i(t0) = α0 i+ 2πδ0 it0 =α0 i+ 2πδ0 ist−c 2π+k =α0 i+ 2πδ0 ist−c 2π+ 2πδ0 ik =α0 i+ 2πδ0 i δi δ0 it−c 2π(2πδ0 ikdoesn’t affect the position) =α0 i+ 2πδit−cδi =αi+cδi+ 2πδit−cδi(α0 i=αi+cδiby hypothesis) =αi+ 2πδit =pi(t). Then Sand S0are equivalent.
2.2. THEORETICAL RESULTS IN A SIMPLIFIED MODEL 27 C1 C2 C3 (a) C1 C2 C3 (b) Figure 2.5: (a) and (b) represent the same system with different and non-equivalent schedules S= (α, δ)and S0= (α0, δ0), respectively. Sand S0have the same communication graph G= (V={1,2,3}, E ={(1,2)})(which is drawn using light-gray color) and δ0=δ(the directed arcs represent the travel direction in every trajectory). The hollow points represent the used starting positions. Let Tand be the set of trajectories and the communication range of a system of robots respectively. Let G= (V, E)be the graph of potential links of the system. Let S= (α, δ)be a schedule of the system. Let V|S={A, B}denote the partition of Vinduced by δ, i.e., δi=δjfor all (i, j)∈(A×A)∪(B×B) and δi=−δjfor all (i, j)∈(A×B). Let Cbe an equivalent class of schedules on the system. From the previous theorem it is easy to see that Cdetermines a bipartition {A, B}of Vsuch that, for all schedules Sand S0of Cwe have V|S=V|S0={A, B}. Notice that any bipartition {A, B}of Vand any function of starting points α:T−→ [0,2π)determines an equivalence class of schedules on the system. Lemma 2.2.13. If two schedules are equivalent then they have the same communication graph. Proof. Let S= (α, δ)and S0= (α0, δ0)be two equivalent schedules with communication graphs G= (V, E)and G0= (V, E0), respectively. Let (i, j)∈Ebe an edge of G. Then, at some time t≥0 αi+ 2πδit=φij and αj+ 2πδjt=φji. By using the definition of equivalent schedules, we know there exists an instant t0≥0such that: α0 i+ 2πδ0 it0=φij and α0 j+ 2πδ0 jt0=φji. Then, (i, j)∈E0(by using the definition of communication graph). Thus, E⊆E0. Applying the same argument for every edge of G0we get that E0⊆E, then G=G0. Notice that the reverse implication of the previous lemma is not true. See Figure 2.5, where two schedules are shown with the same communication graph and robots moving in CCW direction in both cases. However, the shown schedules are not equivalent.
28 CHAPTER 2. THE SYNCHRONIZATION PROBLEM Definition 2.2.14. Let G= (V, E)be the graph of potential links of a system. Let Sbe a schedule of the system. Let G= (V, E)be a subgraph of G. We say that Gis synchronizable by Sif Gis a subgraph of the communication graph of S(i.e., Ciis synchronized with Cjfor all (i, j)∈E). We also say that Ssynchronizes G. From the previous definition and Lemma 2.2.13, the following result is deduced: Corollary 2.2.15. Let Sand S0be two equivalent schedules of a system whose graph of potential links is G. If a subgraph Gof Gis synchronizable by Sthen Gis also synchronizable by S0. Lemma 2.2.16. Let G= (V, E)be the graph of potential links of a system. Let Gbe a spanning subgraph of G. Let Sand S0be two schedules that synchronize G. If V|S=V|S0and Gis connected then Sand S0are equivalent synchronization schedules. Proof. Let S= (α, δ)and S0= (α0, δ0). Notice that if Gis connected then the communication graph of Sand S0are also connected, thus, Sand S0are synchronization schedules. Since V|S=V|S0, we get that δ0=±δ. Therefore, for proving that Sand S0are equivalent we only need to demonstrate that α0=α+cδ for some c∈[0,2π)(Theorem 2.2.12). Let c∈[0,2π)be a constant such that α0 1=α1+cδ1. Let us prove that α0 i=αi+cδifor all i∈Vby using induction on the length of the shortest path from 1 to iin G(recall that Gis connected). Let V1,d ⊆Vbe the set of vertices of Gat distance dor less from 1. Let us start with d= 0. Then V1,0={1}and α0 i=αi+cδifor all i∈V1,0. Assume as inductive hypothesis that for a fixed value d≥0α0 i=αi+cδifor all i∈V1,d. Let jbe an arbitrary vertex in V1,d+1 \V1,d, then, a shortest path Pin Gfrom 1 to jhas length d+ 1. Let ibe the penultimate vertex in P, i.e., P= [1, . . . , i, j]. Notice that i∈V1,d. If δj=δithen δ0 j=δ0 i(because δ0=±δ) and: α0 j=α0 i+π(by Lemma 2.2.8) =αi+cδi+π(by inductive hypothesis) =αj+cδj.(by Lemma 2.2.8 and using δi=δj) If δj=−δithen δ0 j=−δ0 i(because δ0=±δ) and: α0 j=φij +φji −α0 i(by Lemma 2.2.9) =φij +φji −αi−cδi(by inductive hypothesis) =αj+cδj.(by Lemma 2.2.9 and using δi=−δj) Then, by using Theorem 2.2.12, Sand S0are equivalent.
2.2. THEORETICAL RESULTS IN A SIMPLIFIED MODEL 29 From Theorem 2.2.12, Lemma 2.2.16 and Lemma 2.2.13 we deduce the following result that characterizes equivalent synchronization schedules. Theorem 2.2.17. Let S= (α, δ)and S0= (α0, δ0)be two schedules with communication graphs Gand G0, respectively. Sand S0are equivalent synchronization schedules if and only if Gand G0are the same connected graph and δ0=±δ. Remark 2.2.18. From Theorem 2.2.17 it is deduced that an equivalence class C of synchronization schedules is determined by a graph G= (V, E)and a bipartition {A, B}of Vsuch that: •Gis the communication graph of all the schedules in Cand, • {A, B}is the bipartition determined by all the schedules in C. Moreover, if a schedule Sis an optimum solution for Problem 2.1.1 then every schedule S0equivalent to Sis an optimum solution for Problem 2.1.1 as well. Therefore, the solution for Problem 2.1.1 is not single schedule, rather it is an equivalence class of schedules. The following result states that the schedule which is the solution of the synchronization problem (Problem 2.1.1) is a synchronization schedule, that is, its communication graph is connected. Lemma 2.2.19. Let G= (V, E)be the graph of potential links of a system. If a schedule Sreaches the maximum possible number of synchronized pairs of trajectories then Sis a synchronization schedule. Proof. Let S= (α, δ). Let G= (V, E)be the communication graph of S. For the sake of contradiction, assume that Gis not connected. Let (x, y)∈E\Esuch that xand yare not connected by any path in G. Take a bipartition {A, B}of V such that x∈Aand y∈B. Think in SA=α(A), δ(A)and SB=α(B), δ(B)as two schedules resultant from the restriction of Sto Aand B, respectively. Take the schedules S0 A=α0(A), δ(A)and S0 B=α0(B), δ(B)equivalent to SAand SB such that α0(A) x=φxy and α0(B) y=φyx, respectively. Let S0=α0(A)∪α0(B), δ. The number of connected components of the communication graph G0= (V, E0)of S0is less than the number of connected components of G. Notice that, for every edge (i, j)of G,(i, j)also belongs to G0and, G0additionally contains the edge (x, y)which is not in G. So, |E0|>|E|, this is a contradiction. In the following subsection we focus on the study of an algorithm to build a synchronization schedule Sfor a system (not necessarily with maximum number of synchronized pair of robots). Notice that, using this schedule a message can be relay between every pair of robots on the system.
36 CHAPTER 2. THE SYNCHRONIZATION PROBLEM ij I E βj γj C Figure 2.6: ijis a vertex of a cycle C. Let "I" and "E" denote the interior- and exteriorregion of C, respectively. Let βjand γjdenote the internal and external angle of Cat vertex ij, respectively. path from ito jin T. Notice that Phas an even number of vertices because Gis bipartite. From hypothesis we know that: (φv1v2+φv2v1)−···+(φv2c−1v2c+φv2cv2c−1)−(φv2cv1+φv1v2c) = 2πm, m ∈Z.(2.3) From Lemma 2.2.9 we get that: αv2= (φv1v2+φv2v1)−αv1 αv3= (φv2v3+φv3v2)−(φv1v2+φv2v1) + αv1 . . .. . . αv2c= (φv2c−1v2c+φv2cv2c−1)−···+ (φv1v2+φv2v1)−αv1. Then, using equation 2.3, we finally get that: αv2c= 2πm + (φv2cv1+φv1v2c)−αv1 = (φv2cv1+φv1v2c)−αv1. Therefore, Cv2cis synchronized with Cv1(Lemma 2.2.9). This completes the proof. Let C=hi1, . . . , i2c, i1ibe a cycle of Gwith the vertices numbered in counterclockwise ordering. Notice that traveling from ijto ij+1 the interior of Cis in the left side and the exterior of Cis in the right side (see Figure 2.6). Let βjand γj denote the internal and external angle of Cat vertex ij, respectively. Rewrite the expression of Theorem 2.2.30 grouping the link positions of a same trajectory: (φi1i2−φi1i2c)+(φi2i1−φi2i3)+(φi3i4−φi3i2)+···+(φi2ci2c−1−φi2ci1)∈2πZ.(2.4) For all 1≤j≤2cnotice that: if jis odd then the group is written as (φijij+1 − φijij−1)and, if jis even then the group is written as (φijij−1−φijij+1 ). Suppose that jis even. If φijij−1> φiijij+1 then the value of the j-th group is: (φijij−1−φijij+1 ) = βj,
2.2. THEORETICAL RESULTS IN A SIMPLIFIED MODEL 37 ij ij+1 ij−1 I E φijij+1 φijij−1 C (a) ij ij−1 ij+1 E I φijij−1 φijij+1 C (b) Figure 2.7: ij−1,ijand ij+1 are three consecutive vertices of a cycle visited in counterclockwise direction. "I" denotes the interior of the cycle and "E" denotes the exterior of the cycle. (a) φijij+1 < φijij−1and (b) φijij+1 > φijij−1. see Figure 2.6 and Figure 2.7a. If φijij−1< φiijij+1 then the value of the j-th group is: (φijij−1−φijij+1 ) = −γj=βj−2π=βj, see Figure 2.6 and Figure 2.7b. Suppose that jis odd. If φijij−1> φiijij+1 then the value of the j-th group is: (φijij+1 −φijij−1) = −βj=γj−2π=γj, see Figure 2.6 and Figure 2.7a. If φijij−1< φiijij+1 then the value of the j-th group is: (φijij+1 −φijij−1) = γj, see Figure 2.6 and Figure 2.7b. Doing the corresponding substitutions in equation 2.4 results: γ1+β2+···+γ2c−1+β2c∈2πZ. Taking into account that βj+γj= 2πwe get that: β1+γ2+···+β2c−1+γ2c∈2πZ. Then, Theorem 2.2.30 can be rewritten as follows: Theorem 2.2.31. Let G= ({A, B}, E)be a connected bipartite spanning graph of a system. Gis synchronizable by {A, B}if and only if every cycle C= hi1, . . . , i2c, i1iin Gsatisfies: β1+γ2+··· +β2c−1+γ2c∈2πZor equivalently: γ1+β2+··· +γ2c−1+β2c∈2πZ,where βjand γjdenote the internal and external angle of Cat vertex ij, respectively. Moreover, the output schedule S of SynchronizationAlgorithm(G, {A, B})verifies that Gis synchronizable by {A, B}. From this theorem the following result is directly derived:
38 CHAPTER 2. THE SYNCHRONIZATION PROBLEM Corollary 2.2.32. Let Tbe a set of trajectories and let be the communication range of the robots. The synchronized system that ensures maximum number of synchronized pairs of robots where every pair of synchronized robots are moving in opposite directions is determined by the bipartite subgraph Gof Gwith maximum number of edges that fulfills: for every cycle C=hi1, . . . , i2c, i1iin G,β1+γ2+ ···+β2c−1+γ2c∈2πZor equivalently: γ1+β2+···+γ2c−1+β2c∈2πZ,where βjand γjdenote the internal and external angle of Cat vertex ij, respectively. In this thesis the problem of computing the maximum subgraph Gof Gsuch that Gfulfills the conditions established in Corollary 2.2.32 remains open. However, in many practical applications the graph Gis given (see the experiment description of Section 2.6). Nevertheless, Algorithm 3 shows an approach to get a synchronization schedule where every pair of synchronized robots travel in opposite directions. Algorithm 3: Computing a synchronization schedule where all the synchronized pairs of robots are traveling in opposite directions. Input : T, Output: α,δ 1G←computeIntersectionGraph(T, 1 + /2) 2if Gis bipartite then 3G←G 4else 5G←maximumBipartiteSubgraph(G) 6end 7A, B ←bipartition(V(G), G) 8G0←maximumSynchronizableSubgraph(G) 9return SynchronizationAlgorithm(G0, A)// Algorithm 1 10 Th subrutine bipartition returns the bipartition of the set of vertices of a connected bipartite graph. Notice that this process takes linear time (recall that the number of edges of Gs linear because Gis a planar graph). The subrutine maximumSynchronizableSubgraph(G)implements some heuristic to find a big subgraph whose cycles fulfills the condition of Corollary 2.2.32. Notice, this subrutine is optional, using Gin line 9 we get a synchronization schedule (Corollary 2.2.21) but, the obtained schedule may not maximize the number of synchronized pairs of robots.
2.3. GENERALIZING THE SIMPLE MODEL 39 2.3 Generalization to non-circular trajectories and heterogeneous robots So far we have assumed homogeneous robots, with equal speeds and fuel capacities. In this section we describe how to extend the results under a more general and more realistic setting. Let us consider a team of nrobots with different capabilities and performing their corresponding tasks through arbitrary disjoint closed trajectories {P1, . . . , Pn}. Naturally, we have some control on the speeds of the robots as they can accelerate or decelerate to increase or decrease their speed. The speed can even change on different sections of the same trajectory. The key to generalizing the synchronization scheme used in the simple theoretical model is to force all members of the team to take (approximately) the same time to make a tour of their respective trajectories. In the ideal theoretical model two neighboring robots reach the communication link at the same time. In a real implementation of these strategies, however, we need to allow some margin of error in order to guarantee robustness. This can be accomplished by having each robot comparing its current and target locations at regular time intervals, and adjusting its speed (accelerating or decelerating), if necessary, in order to keep the synchronization. We refer to the time that a robot takes to make a tour as the system period. We can use the communication links to partition a trajectory Piinto sections and assign each of them a travel time tjsuch that Pjtj=τ, where τis the system period. From this assignment we can compute the required speeds in each section. Once we know the required speed for each section, it suffices to know the starting position and movement direction of a robot in order to compute its position at any time. Thus, the problem in the general case is: given a partition of the trajectories into sections, assign a time to each section so that the cumulative time of all sections of a same trajectory is τ, and compute the initial position for every robot in its trajectory such that the system is synchronized. The construction of the graph of potential links is similar to the case of the simplified model. We include a node in the graph for each trajectory Piand include an edge between two nodes if the minimum distance between the respective trajectories is within the communication range. Note that we allow at most one edge between two nodes. If there are multiple pairs of points on two trajectories whose distances are within the communication range we choose the closest pair. Due to robustness reasons we are going to allow that the robots change its trajectories in some situations (see Section 2.4), then, to build the graph of potential links it is convenient to consider the communication range of the system as the minimum communication range between all the robots. In this way, every two robots can establish a communication link between any pair of neighboring trajectories. To compute the edges we can use known algorithms from computational geometry (e.g., [141, 105]) to efficiently find the minimum distance between two polygons.
40 CHAPTER 2. THE SYNCHRONIZATION PROBLEM In many cases, this step can be skipped because the communication links between the trajectories are established previously (see the experiment description of Section 2.6). Then, let T={P1, P2, . . . , Pn}be a set of disjoint closed trajectories assigned to a team of nrobots. Also, let G= (V, E)be the computed graph of potential links on Tusing the communication range = min{ri}. Borrowing notation from previous sections, we use φij to denote the location of Piclosest to Pj, for (i, j)∈E. (Note that in the generalization φij is not an angle as in circular model, but rather a location in the curve Pithat can be parameterized to a value in [0,2π) if so desired). The following definitions generalize the main definition presented in the simple circular model. Definition 2.3.1. Let T={P1, . . . , Pn}be the set of trajectories of a system and let be the communication range. Let G= (V, E)be the graph of potential links of the system. Let τbe the system period. A schedule of the system is a function S:R≥0→P1× ··· × Pnsuch that S= (s1, . . . , sn)where si:R≥0→Piis a function that indicates the expected position of a robot in Piat any time instant, that is, si(t)is the position of a robot in Piat time t. Notice that S(t) = S(t+kτ) for all t∈R≥0and k∈N. Definition 2.3.2. Let T={P1, . . . , Pn}be the set of trajectories of a system and let be the communication range. Let G= (V, E)be the graph of potential links of the system. Let S= (s1, . . . , sn)be a schedule of the system. Two trajectories Piand Pjare synchronized by Sif (i, j)∈Eand si(t) = φij then sj(t) = φji. The communication graph of Sis the spanning subgraph Gof Gwhose edges are the pairs (i, j)such that Piand Pjare synchronized. For all subgraph Hof Gwe say that His synchronizable by S. If Gis connected then Sis a synchronization schedule. Let Gbe a connected spanning subgraph of Gto by synchronized. If Gis a tree, then considering each trajectory as consisting of a single section, we obtain that the speed in each trajectory Piis constant and equal to the ratio li/τ where liis the length of Pi. Then fixing arbitrary the initial position in trajectory Pi, we can compute the initial position of every neighbor of Pias follows. Let Pjbe a neighbor of Piand suppose that a robot takes tunits of time to reach φij from its starting position. Thus Piand Pjare synchronized if a robot takes tunits of time to reach φji from its starting position (see Figure 2.8). Note that the computed initial position for Pjdepends on its chosen direction of movement. It is easy to see that in this way we can compute the initial positions for all the trajectories in the synchronized system. If Gcontains cycles, this simple approach does not work because considering each trajectory as a single section forces the robots to use constant speed (possibly different from each other) 2. 2However, it easy to see that the same approach that worked for unit circles would work here
2.3. GENERALIZING THE SIMPLE MODEL 41 t φij Pi Pj φji t P1 P2 P3 P4 Pk Figure 2.8: The dashed-dotted stroke is the section of trajectory to take to achieve φij and φji respectively. Both should use the same amount of time (t) to achieve the link position. Figure 2.8 shows a cycle in the graph G, if we know the starting position in P1we can compute the starting position in P2, then in P3, and so on until we have computed the starting position in Pkusing the starting position in Pk−1. But having done this, P1and Pkare not necessarily synchronized. In the following we are going to extend the results of sections 2.2.2 and 2.2.3 to help us determine when a graph can be synchronized with robots moving in the same direction or with neighbors moving in opposite directions, respectively. First, we introduce notation needed for the rest of this section. Let βi(resp. γi) be the time it takes a robot to travel the inside (resp. outside) section of trajectory Piin the cycle (see Figure 2.9). We use elapsed time to describe the location of robots as follows: φij +tdenotes the position in Piobtained by moving CCW from φij during tunits of time. Analogously, φij −tdenotes the position obtained by moving CW in Pifrom φij during tunits of time. β1 β2 β3 βk−1 βk γk γk−1 γ1 γ2 γ3 φ1k φ21 φ32 φk−1,k−2 φk,k−1 Figure 2.9: A cycle in a synchronized system. Theorem 2.3.3. Let τbe the period of a system whose graph of potential links is G. Let Gbe a connected spanning subgraph of G.Gis synchronizable by a if we parameterize position to a value in [0,2π)and allow the robots to change its speed to cover different distances in physical space but equal distance in parameter space.
42 CHAPTER 2. THE SYNCHRONIZATION PROBLEM schedule where all the robots move in the same direction if and only if for all cycle C=hP1, P2, . . . , Pkiin Gthere exists a value z∈Nsuch that: β1+β2+···+βk=zτ and γ1+γ2+···+γk= (k−z)τ, where βiand γiare the required times to travel the internal section and external section of Cat trajectory Pi. Proof. In the equations below we use αito denote the starting position in Pi. Without loss of generality, suppose that the robots move CCW and that α1=φ1k. Computing α2, α3, . . . , αkwe obtain the following result: α1=φ1k α2=φ21 −β1 α3=φ32 −β1−β2 . . .. . . αk=φk,k−1−β1−β2−···−βk−1 Obviously, having that Piis synchronized with Pi+1 for 1≤i<kthen the cycle can be synchronized if and only if α1=φ1k−β1−β2−···−βk=φ1k, from here we deduce that β1+β2+···+βkis a multiple of τbecause φij =φij +τ. Note that βi< τ for all 1≤i≤k, then β1+β2+···+βk=zτ z ∈N,(0 < z < k) Since βi+γi=τthen (β1+γ1)+(β2+γ2) + ···+ (βk+γk) = kτ The difference between (2.3) and (2.3) is γ1+γ2+···+γk= (k−z)τ. Note that kis not necessarily an even number, but in the simplified model β1+β2+···+βkis a multiple of τonly if kis even. This is consistent with the bipartition requirement. Now, consider the case of neighbors moving in opposite directions. In this case, Gmust be bipartite. Theorem 2.3.4. Let τbe the period of a system whose graph of potential links is G. Let Gbe a connected spanning bipartite subgraph of G.Gis synchronizable
2.4. ROBUSTNESS 43 by a schedule where every pair synchronized robot move in opposite directions if and only if for all cycle C=hP1, P2, . . . , P2kiin Gthere exists a value z∈Nsuch that: β1+γ2+β3+···+β2k−1+γ2k=zτ and γ1+β2+γ3+···+γ2k−1+β2k= (2k−z)τ, where βiand γiare the required times to travel the internal section and external section of Cat trajectory Pi. Proof. In the equations we use αito denote the starting position of in Pi. Without loss of generality, suppose that α1=φ1kand P1has CCW direction. Computing α2, α3, . . . , αkwe obtain the following result: α1=φ1k α2=φ21 +β1 α3=φ32 −β1−γ2 . . .. . . α2k−1=φ2k−1,2k−2−β1−γ2−···−γ2k−2 α2k=φ2k,2k−1+β1+γ2+···+γ2k−2+β2k−1 Obviously, having that Piis synchronized with Pi+1 for 1≤i < 2kimplies that the cycle can be synchronized if and only if α1=φ1k−β1−γ2−···−β2k−1−γ2k=φ1k, from here we conclude that β1+γ2+···+β2k−1+γ2kis a multiple of τbecause φij =φij +τ. Note that βi< τ for all 1≤i≤2k, then β1+γ2+···+β2k−1+γ2k=zτ z ∈N,(0 < z < 2k) Since βi+γi=τthen (β1+γ1)+(β2+γ2) + ···+ (β2k+γ2k)=2kτ The difference between (2.3) and (2.3) is γ1+β2+···+γ2k−1+β2k= (2k−z)τ. 2.4 Robustness We now address the issue of robustness of the synchronized system. Imagine that one member uof the team becomes unavailable because of failure or because it needs to leave the system temporarily (e.g., to refuel). First, let us consider the
44 CHAPTER 2. THE SYNCHRONIZATION PROBLEM 1 3 4 5 6 8 9 10 2 7 Figure 2.10: Robot 6can leave the system swapping with 3,4and 5in this order. latter scenario. We want to minimize the detrimental effect of the departing robot u on global system performance. A simple strategy consists of repeatedly “swapping with a neighbor” until ureaches the trajectory nearest to the outside goal, at wich this point ucan easily leave the system as illustrated in Figure 2.10. The best moment to make a swap with a neighbor is when the involved robots arrive to a link position (this is, indeed, another advantage of a synchronized system) where a simple collision avoidance approach between two cooperative vehicles can be applied. Consider now the case of a hard failure, where one (or more) robots fail and can no longer move. Under the assumption that robots which fail do not block live robots, we can easily solve the problem while maintaining the set of trajectories. In this case, one or more live neighbors can assume the tasks of the inoperative robots by using the same routes. If a robot arrives at a communication position and the neighbor is not there, then it assumes that this neighbor failed and passes to the neighboring trajectory performing the a task of the inoperative robot. If needed, even a new robot might be inserted in the system by using the swapping strategy mentioned above. We call shifting to the process in which a robot passes from its current trajectory to a neighboring one. Notice that a swap consists of two shifting operations. When a robot passes to a neighboring trajectory it follows the movement direction assigned to this trajectory, see Figure 2.11. This behavior allows keeping the synchronization in the system even when the robots shift their trajectories. Notice that, during a shifting operation the robots must accelerate in order to adjust its time-position with the schedule in the new trajectory. Let ωbe the minimum travel time between two consecutive link positions of a same trajectory in the system. Assume that if a robot in trajectory Piat time tstarts a shifting operation toward trajectory Pjthen after ωtime units it will be at the scheduled position of Pj, that is: Property 2.4.1. Let T={P1, . . . , Pn}be the set of trajectories of a synchronized
2.4. ROBUSTNESS 45 system with synchronization schedule S= (s1, . . . , sn). Let ωbe the minimum travel time between two consecutive link positions of a same trajectory in the system. Let Piand Pjbe two trajectories such that (i, j)is in the communication graph of S. If at time ta robot uin Pi(the position of uat time tis si(t)) starts a shifting operation toward Pjthen, during this process, uaccelerates if it is needed in order to reach the position sj(t+ω)at time t+ωafter that ucontinues with the programmed speed following the schedule in trajectory Pj. In such a way a robot u, after a shifting operation from Pito Pj, can reach the next link position in Pjat the scheduled time. The following result establishes a non-redundancy property of robots occupying the trajectory of a inoperative neighbor. Theorem 2.4.2. In a synchronized system that fulfills Property 2.4.1 each trajectory is occupied by at most one robot at any time. Proof. If all the trajectories have at most one robot, then after a swapping operation all the trajectories will have at most one robot by definition. We focus now in the case when a robot shifts its trajectory because it does not detect the expected neighbor. Assume, for the sake of contradiction, that there exists a trajectory Pi occupied by two robots uand u0which entered Picoming from the link positions φji and φki in Pjand Pk, respectively. Robots uand u0could not have entered Pi at the same time because a robot in Picannot be at φij and φik simultaneously. Suppose that u0entered second. When u0arrives at φki,uis already moving in Piand has reached φik (by Property 2.4.1). As a consequence, robot u0does not enter in Pibecause it detects that Piis occupied by robot u, a contradiction. See Figure 2.11, notice that a shifting operation between two trajectories with opposite directions is smoother than a shifting operation between trajectories with the same direction. So, for a mobile robot is easier to perform a shifting operation between trajectories with opposite travel directions and even more taking into account that the robot must accelerate during this operation. Moreover, if we are using aerial robots in the system the kinematic constraints of these vehicles prevent the passing from one trajectory to another keeping the initial assigned movement direction if the trajectories have the same direction. Therefore, the opposite movement directions in the neighboring trajectories ensures the robustness of the approach. Recall that two robots don’t need to be exactly a the corresponding link positions at the same time to establish a communication link, there is a communication region around the link positions where the robots can exchange information, see Figure 2.2. Notice that some external elements may affect the precision of the robots motion following the schedule (e.g., aerial robots performance may be affected by the lack of accuracy of the location sensors or the wind), then it could happen that a robot arrives at a link position with some delay or advance. The
52 CHAPTER 2. THE SYNCHRONIZATION PROBLEM 0.75 0.751.75 1.75 0.752.001.501.501.502.000.75 2.000.5 0.5 B AC Figure 2.14: The square in bold is a 10 ×10-meter experimental area. This area is divided into two 10 ×5sub-areas. The trajectories (with lengths in meters) used to cover the experimental area are shown. Also, the outside the square in bold suggests how to extend the pattern to greater areas by using more aerial robots. required to travel from Ato B. Therefore the speed in the shifting paths must be 1.25 times the speed from Cto B. At the beginning of the mission, both aerial robots are following their coverage paths exchanging information along the gray zone depicted in Fig. 2.14. Figure 2.15 shows the distance between the robots during the first two minutes until robot B leaves the arena. Once robot A does not meet robot B along the gray region, it extends its initial path to cover both sub-areas. Figure 2.16 shows the 3D trajectory followed by robot A during the whole mission. It can be seen how it follows the reference and extends its coverage area passing through the gray region until robot B comes back. The video of the whole mission can be downloaded from https://grvc.us.es/TROsynch. This scenario can be extended to more aerial robots and greater areas as it is illustrated in Figure 2.14, where every pair of neighbors have identical communication region with identical shifting paths.
2.6. PRELIMINARY EXPERIMENTAL RESULTS 53 t (sec) 0 20 40 60 80 100 Distance between robots (m) 0 1 2 3 4 5 6 7 8 9 10 Figure 2.15: Distance between the aerial robots before robot B leaves the arena. It can be seen that the distance is below the threshold of 2 meters considered for the communication between the robots during the periods when they meet along the gray region depicted in Fig. 2.14. These periods are highlighted with dashed line rectangles. 5 0 Y (m) -5 5 0 X (m) 3 2.5 2 1.5 1 0.5 0 -5 Z (m) Robot A trajectory Reference trajectory Figure 2.16: The trajectory in 3D followed by robot A during the whole mission is depicted in blue, whereas the reference is represented in red. Although there are some tracking errors, the size of the gray region allows to compensate the deviations.
54 CHAPTER 2. THE SYNCHRONIZATION PROBLEM 2.7 Conclusions In this chapter we have introduced a new problem on communication systems: Consider a set of npairwise closed and simple trajectories and a set of nrobots (one per trajectory) with a limited communication range . In this setting we say that there is a communication link between two trajectories if the minimum distance between them is less than . We consider, at most, a communication link for every pair of trajectories. We say that two robots moving along their trajectories are synchronized if they periodically arrive at the same time at the same communication link. Thus, a pair of synchronized robots can establishes a wireless communication and exchange information between them, periodically. The synchronization problem asks for a motion schedule for the system such that the number of synchronized pairs of robots is maximized. We have proven that the optimum motion schedule is not unique, rather there is a whole family (equivalence class) of motion schedules that maximize the number of synchronized pairs of robots. We introduced the concept of communication graph as a graph whose vertices are the trajectories and edges are the pairs of trajectories with synchronized robots. Therefore, the synchronization problem looks for the schedule with larger communication graph. In a simple case where the trajectories are unit circles and the robots move at constant speed, we have shown that a family of schedules is determined by a communication graph and a bipartition {A, B}of the trajectories set. This partition indicates that the travel direction assigned to robots in A’s trajectories is opposite to the travel directions of robots in B’s trajectories (i.e., if the robots in A’s trajectories move in clockwise direction then the robots in B’s trajectories move in counter-clockwise direction and, viceversa). We have also studied the synchronization problem in two different specific configurations: 1. all the robots move in the same direction and, 2. all pairs of synchronized robots move in opposite directions. In both cases the optimum family of schedules is determined only by the communication graph because the bipartition is directly derived from these settings: in the first case (1), the bipartition is {V, ∅} (where Vis the whole set of trajectories) and, in the second case (2), the communication graph Gmust be bipartite and the bipartition is formed by the partite sets of G. We have studied and characterized the optimum schedule in both cases. And, using the simple model where the trajectories are unit circles, we have shown how to compute a schedule that ensures that messages can be exchange (maybe passing through many robots) between any pair of robots. Also, we exposed an algorithm to solve the synchronization problem in the first case but, the second case remains as an open problem. Anyway, in many practical applications the graph Gof communications is a priori established,
2.7. CONCLUSIONS 55 so, in these cases, to build a specific schedule with communication graph Gwe can compute the starting positions of the robots using our characterization. For the sake of robustness, we described a recovery protocol, that maintaining the same set of trajectories and the initial synchronization scheme, reduce the detrimental effect of robot failures. Due to kinematic constraints in practical applications, it is convenient to apply this protocol on systems where all pairs of synchronized robots move in opposite directions. Our simulations and preliminary experiments show that the presented approach is robust against robot failures. Future work could explore other practical variations of the problem, including: 1) the trajectories can overlap and share multiple communication links that provide extra opportunities for information exchange and 2) instead of failure, we can consider the inability of an agent to properly maintain its schedule along its trajectory.
56 CHAPTER 2. THE SYNCHRONIZATION PROBLEM
Chapter 3 Resilience of a Synchronized Communication System Robustness is an important issue in distributed systems. Many research works are focused in the study of measures to determine how fault-tolerant a system is [54, 71, 145, 144]. The developing of these kind of metrics allows to compare different systems and determine which one is better. This kind of study also leads to determine what are the critical scenarios for some specific system. In this chapter we are going to study more deeply the robustness of a synchronized system. We are going to base our study in the simplified model introduced in Section 2.2 of Chapter 2. The results that we present in this model can be extended to general synchronized system by using the ideas presented in Section 2.3 of Chapter 2. In the simplified model all the trajectories are unit-circles, the communication range of the system is a value < 0.5, all the robots move with constant speed along their trajectories and the system period (i.e., the required time by robot to make a complete tour in a trajectory) is one unit of time. Figure 3.1 shows a synchronized system in the simplified model. Recall that in a such systems, every pair of synchronized robots are moving in opposite directions (one clockwise and the other counterclockwise). We show in light gray the pairs of neighboring robots with an established communication link between them. Each subfigure represents the state of the system at every quarter of time unit, starting with the state shown in Figure 3.1a. In a synchronized system, a trajectory swap between two neighboring robots is 57
58 CHAPTER 3. RESILIENCE OF A SCS C1 C2 C4 C3 (a) C1 C2 C4 C3 (b) C1 C2 C4 C3 (c) C1 C2 C4 C3 (d) Figure 3.1: Synchronized system of robots following circular trajectories. The robots are represented as solid points in the circles. Arrows represent the movement direction of the robots in the trajectories. In this example the graph of potential links is a cycle of four nodes. Ci Cj u φij φji (a) Ci Cj φij φji u u0 (b) Figure 3.2: (a) A robot shifts to a neighboring trajectory when it detects that the corresponding neighboring robot has left the system. The robot ufollows the path drawn with bold solid stroke. There were no robots on the trajectory Cjwhen u is arriving at the link position in Ci. (b) A swapping operation between robots u and u0. allowed in some situations (see Section 2.4 of Chapter 2) and does not affect the performance of the system. See Figure 3.2b, notice that a swap operation takes place in a communication link, so, the involved robots can exchange information and after the swapping u0(resp. u) continues with the schedule in Ci(resp. Cj) performing the task that was previously doing u(resp. u0). Therefore, from a global point of view after a swapping the status of the system has not changed. Now, let us see how the system is affected when one or more robots leave. The first thing to notice is: if krobots have left the system then there is always k unattended trajectories. In Section 2.4 of Chapter 2, a strategy was proposed to address this problem: when a robot uin Ciarrives to the link position φij and detects no other robot in the neighboring trajectory Cj, it considers that Cjis unattended and shifts from Cito Cjin order to assume the task in Cj, see Figure 3.2a. Notice that after the shifting operation Ciis unattended and Cjis not. Also notice that uhas lost a chance of exchanging information. Section 2.5 of Chapter 2 presents some computational experiments showing that after randomly removing a few robots of the system, the surviving ones (non-removed robots) eventually meet
59 C1 C2 C4 C3 u1 u3 (a) C1 C2 C4 C3 u1 u3 (b) C1 C2 C4 C3 u1 u3 C5 u5 (c) Figure 3.3: (a) and (b) When the robots represented by hollow points leave the system then the surviving ones, solid points, follow the closed path drawn with bold solid stroke. The trajectory segments in dotted stroke in (b) and (c) are noncovered. In (b) u1and u3are isolated, however, in (c), u1and u3are not isolated, they meet u5periodically. The message broadcasting is possible in (c) but it is not in (b). each others and visit all the trajectories. So, no trajectory is unattended forever and the communication remains (it is possible to make a broadcast between the surviving robots). However, in some cases, if enough robots leave the team, an undesirable phenomenon may occur: a robot, independent of how much longer stays in the system, it permanently fails to encounter other robots every time it arrives at a link, causing it to repeatedly shift to neighboring trajectories. In this case, we say that the robot is isolated or in isolation mode. Figures 3.3 (a) and (b) show a synchronized system where two robots leave and the remaining robots, u1and u3, permanently fail to encounter other robots at the link positions, so they enter the isolation state1. Another problem, more general than the isolation of some robots, is the loss of the ability for messages broadcasting in the system. It is easy to see that, even without isolated robots, the system may not allow broadcasting, as the surviving robots are partitioned into independent connected components, for communication purposes. We say that there is a loss of connectivity in a system if only one robot survives or there is a pair of robots that cannot exchange messages through a sequence of message exchanges between neighboring robots. For example, in Figure 3.3b, a broadcast is not possible because the living robots are isolated. Now, focus on covering. Notice that in a system with one robot per trajectory, every point of every trajectory is visited by some robot periodically. We say that every trajectory point is covered. If some robots leave the system and the remaining ones stay in their trajectories (ignoring the shifting strategy altogether) then, obviously all the points of the trajectories of the leaving robots are noncovered. Using the shifting strategy one may think that the covering is guaranteed. However, this is not true. Sometimes, the departure of a set robots (independent of 1An illustration of this phenomenon is at https://www.youtube.com/watch?v=64gKnefnXew.
60 CHAPTER 3. RESILIENCE OF A SCS (a) (b) (c) Figure 3.4: (a) Region to cover. (b) Area decomposition of the region using a grid pattern and the paths to cover every cell of the region. (c) Simplification of the practical model using an abstraction with circular trajectories. The underlying communication graph is represented using gray dotted strokes. whether it causes a loss of communication or not among the active robots) results in some trajectory segments (set of consecutive points of a trajectory), or even entire trajectories, to no longer be visited by an active robot. In this case we say that these are non-covered trajectory segments, see Figure 3.3b and 3.3c. In this chapters we are going to study these undesirable phenomenons and we are going to establish resilience measures to evaluate how robust a system is to face these problems. As we will show, the values of the resilience measures stated in this chapter depend on the topology of the communication graph. This graph depends on the applied partition strategy, in which the environment is partitioned into sections covered separately by individual robots. Partitioning or area decomposition for path planning in robotics is a widely researched subject in coverage and tracking tasks and a common topology is the grid [49]. In grid based methods, the area partitioning is performed by applying a grid overlay on top of the area leading to a discrete configuration space, where if all the cells are visited, then a complete coverage is assumed (see Figure 3.4). Additionally, cycles are considered in boundary or fence patrolling [36]. A strategy is to fragment the boundary into sections which are patrolled separately by individual robots [33] (see Figure 3.5). Other studied configurations are trees. In fact, in area coverage, often it is assumed that the underlying graph is a tree (computed, for example, on the dual graph of a triangulation of the terrain). Spanning trees have been frequently used for multi-robot coverage [62] and boundary patrolling [37]. Also note that, if we consider the underlying graph Gof the area decomposition whose vertices are cells and whose edges are the pairs of close cells then, if Gis connected, a spanning tree of Gcan be used as communication graph because any tree is bipartite and synchronizable (Corollary 2.2.21 and Lemma 2.2.25). In this chapter we also focus on
3.1. PROBLEM STATEMENT 61 (a) (b) (c) Figure 3.5: (a) Solid black stroke represent a border to monitor. The gray strip around the border is the region to cover. (b) Decomposition of the region into cells, one cell per robot and for every cell a closed trajectory to cover it is computed. (c) Simplification of the practical model using an abstraction with circular trajectories. The underlying communication graph is represented using gray dotted strokes. the problem of computing the resilience of synchronized system for specific cases: when the communication graph is a tree, a grid or a cycle. 3.1 Problem statement Recall that in this chapter we are going to use the simple model introduced in the previous chapter. Taking into account that the swap operations don’t affect the performance of the system we are going to ignore these operations and focus on the study of a synchronized system after the removing of some robots and assuming that no other robot enters the system. Also, recall that in such systems the surviving robots apply a the shifting strategy, that is, every time a robot arrives at a link position and the corresponding neighboring robot is not there, it shifts to the neighboring trajectory and continues with the schedule of the new trajectory. Definition 3.1.1 (Synchronized communication system (SCS)).Let T={C1, ..., Cn}be a set of pairwise disjoint unit circles (trajectories). A synchronized communication system (SCS) is a team of nrobots using a synchronization schedule (α, δ)with communication graph G= (V, E)(which is connected and bipartite) such that δ(Ci) = −δ(Cj)for all {i, j} ∈ E. An m-partial SCS, 0< m ≤n, is a synchronized communication system in which n−mrobots have left the team and the mremaining robots apply the shifting strategy. Remark 3.1.2. Note that an SCS is a type of partial SCS where no robots have left. Thus, any claims about partial SCSs holds for SCSs as well. Also, if we have a partial SCS Fand a robot leaves Fthen we get a different partial SCS F0, so, every statement on a partial SCS assumes that no more robots leave the system.
68 CHAPTER 3. RESILIENCE OF A SCS Two tokens meet each other if they arrive at the same communication link at the same time (see Figure 3.7a, i.e., the robots bearing the tokens arrive at the same communication link at the same time). The proof of the following result follows easily from Property 3.2.5: Lemma 3.2.14. Let zand z0be two tokens of a partial SCS in rings rand r0 (possibly the same ring), respectively. The tokens zand z0will meet each other if and only if there is a communication link `where the rings rand r0cross each other, and, there are two paths of the same length L: one from zto `in r(possibly longer than r) and other from z0to `in r0(possibly longer than r0). Definition 3.2.15 (Correspondence between tokens).Let zand z0be two tokens in a partial SCS. We say that there is a correspondence between zand z0at time tif there exists a 4t > 0such that zand z0meet each other at time t+4t. Let xbe a point in a ring rand let dbe a non-negative real number. The point x+dis the point reached by traveling distance dfrom xfollowing the travel direction in r. Analogously, the point x−dis the point ysuch that y+dis x. Notice that dcould be greater than the length of r. Also notice that x−d+d= x+d−d=x. Lemma 3.2.16. Let rand r0be two rings (could be the same ring) of a partial SCS of lengths 2πµ and 2πµ0, respectively. Let zand z0be two tokens in rand r0, respectively. If zand z0meet each other at a communication link `then they will meet each other at `every mcm(µ, µ0)(minimum common multiple of µand µ0) time units. Proof. Suppose that zand z0meet each other at `at time t. The location reached after traveling mcm(µ, µ0)time units from `in ris the point `+2π·mcm(µ, µ0) = `. The same occurs by traveling on r0. Therefore, at time t+mcm(µ, µ0)the tokens zand z0will meet each other at `. The result follows from successive applications of this argument. Lemma 3.2.17. Let zand z0be two tokens in a partial SCS at time t1. Suppose that at time t2> t1a set (possibly empty) of robots (with their respective tokens) have been removed from the system but zand z0remain in the resultant partial SCS. Then, there is a correspondence between zand z0at time t1if and only if there is a correspondence between zand z0at time t2. Proof. Let rand r0be the rings of zand z0, respectively (rand r0could be the same ring). Let 2πµ and 2πµ0be the lengths of rand r0, respectively. Suppose there is a correspondence between zand z0at time t1. Let xt1and x0 t1be the positions of zand z0in rand r0, respectively, at time t1. Then, by the definition of correspondence and Lemma 3.2.14, there are paths pand p0(in rand
3.2. TECHNICAL TOOLS 69 r0respectively) of length 2π4tstarting at xt1and x0 t1, respectively, and ending at a communication link `(where rand r0cross each other). That is: xt1+ 2π4t=` x0 t1+ 2π4t=`. Let kbe the smallest non-negative integer such that k·mcm(µ, µ0) + 4t≥t2−t1. From Lemma 3.2.16, we have that: xt1+ 2π(k·mcm(µ, µ0) + 4t) = ` x0 t1+ 2π(k·mcm(µ, µ0) + 4t) = `. Let xt1+ 2π(t2−t1)and x0 t1+ 2π(t2−t1)be the positions occupied by zand z0after traveling for t2−t1time units, respectively. Let qand q0be the paths obtained by traveling from these positions in rand r0, respectively, during k· mcm(µ, µ0) + 4t−(t2−t1)time units. Notice that qand q0have the same length 2π(k·mcm(µ, µ0) + 4t−(t2−t1)). Moreover: xt1+ 2π(t2−t1)+2π(k·mcm(µ, µ0) + 4t−(t2−t1)) = ` x0 t1+ 2π(t2−t1)+2π(k·mcm(µ, µ0) + 4t−(t2−t1)) = `. Therefore, there will be a correspondence between zand z0at time t2. Now, suppose there is a correspondence between zand z0at time t2. Let xt2 and x0 t2be the positions at time t2of zand z0in rand r0, respectively. Then, by definition of correspondence and Lemma 3.2.14, there are two paths pand p0 (in rand r0respectively) of length 2π4tstarting at xt2and x0 t2, respectively, and ending at a link position `. That is: xt2+ 2π4t=` x0 t2+ 2π4t=`. Then, from Property 3.2.5 and Remark 3.2.6 we have that xt2−2π(t2−t1)and x0 t2−2π(t2−t1)were the positions at time t1of zand z0, respectively. Let qand q0be the paths obtained by traveling from these positions in rand r0, respectively, during t2−t1+4ttime units. Notice that qand q0have the same length 2π(t2−t1+4t). Moreover: xt2−2π(t2−t1)+2π(t2−t1+4t) = xt2+ 2π4t=` x0 t2−2π(t2−t1)+2π(t2−t1+4t) = x0 t2+ 2π4t=`. Therefore, there was a correspondence between zand z0at time t1and the result follows. Remark 3.2.18. The previous lemma states that the relation of correspondence between two tokens zand z0remains invariant regardless of the removal of robots unless zor z0is removed from the system.
70 CHAPTER 3. RESILIENCE OF A SCS z1 z2 z3 z0 (a) z1 z2 z3 (b) Figure 3.10: (a) Meeting graph of the SCS of Figure 3.6 at time 0 (Figure 3.6a). Notice that the meeting graph remains invariant at time t1(Figure 3.6b). (b) The meeting graph of the resultant partial SCS after removing robot u3(Figure 3.6c). Definition 3.2.19 (Meeting graph).Let Fbe an m-partial SCS. Let Zbe the set of surviving tokens. The meeting graph of Fis the graph TFwhose vertices are the tokens in Z(that is, V(TF) = Z) and whose set of edges is: E(TF) = {{z, z0}|z∈Z, z0∈Z, there is a correspondence between zand z0}. From Remark 3.2.18, the meeting graph of a partial SCS remains invariant while no additional robots are removed. Figure 3.10a shows the meeting graph of the SCS of Figure 3.6 before the robot u3is removed. From the definition of meeting graph and Lemma 3.2.17, the next result (illustrated in Figure 3.10b) follows: Lemma 3.2.20. Let Fbe an m-partial SCS with set of tokens Z. Let F0be the m0-partial SCS resulting from the removal of some robots from F. Let Z0⊂Zbe the set of tokens of F0. Let TFand TF0denote the meeting graphs of Fand F0 respectively. Then, TF0is the subgraph of TFinduced by Z0. 3.3 Computing coverage resilience In this section we show how to compute the coverage resilience for arbitrary graphs as well as for trees and grids. Notice that if a token zis at a point xof a ring rthen xis being covered by the robot bearing z. This simple observation allows us to study the coverage resilience using tokens. Upon deployment of a system, a ring of length 2πl contains ltokens at distance 2πfrom one to the next (Lemma 3.2.13). From Property 3.2.5 and Remark 3.2.6, the distribution of the tokens in a ring when some robots have been removed from the system looks like Figure 3.11. The following theorems are deduced:
3.3. COMPUTING COVERAGE RESILIENCE 71 zi0 zi1 zi2 zi3 Figure 3.11: Tokens in a ring of a partial SCS. The hollow points represent the removed tokens. Lemma 3.3.1. Let rbe a ring of length 2lπ in a partial SCS. If a < l is the maximum number of absent consecutive tokens in rthen the idle-time of any point in ris a+ 1 (see Figure 3.11). Lemma 3.3.2. Let rbe a ring in a partial SCS. A trajectory segment of ris non-covered if and only if rdoes not contain surviving robots. From Remark 3.2.3 and Theorem 3.3.2 the following result is deduced: Corollary 3.3.3. Let cbe the number of rings in an SCS. Let 2l1π, 2l2π, . . . , 2lcπ be the lengths of the crings. The coverage resilience of the system is the minimum of {l1, l2, . . . , lc}. Theorem 3.3.4. The coverage resilience of a given SCS can be computed in linear time on the number of trajectories in the system. Proof. Corollary 3.3.3 suggests a simple algorithm to compute the coverage resilience of a SCS by determining the rings in the system and their lengths. To do that, it is sufficient to follow the movement of a token until reaching the starting point. In this way, the length of a detected ring is the sum of the lengths of the traversed arcs. The complexity of detecting a ring in this way is O(m)where m is the number of link positions traversed by the ring. When a ring is detected (by returning to the starting point), then we choose a non visited trajectory arc in order to detect another ring and so on. If there are no more non-visited trajectory arcs then we are done. Let Gbe the communication graph of the SCS. Recall that every link position of the system is an edge of the communication graph G. Clearly, the complexity of this algorithm is O(|E|)where Eis the set of edges in G. Taking into account that the communication graph is planar then this algorithm has running time O(n)where nis the number of trajectories. Given a value t > 0, the t-coverage resilience can also be computed using the rings of the SCS. Let cbe the number of rings in the system and 2l1π, 2l2π, . . . , 2lcπ their lengths. Let l∗be the minimum of {l1, l2, . . . , lc}. Using Lemma 3.3.1 we deduce that if l∗≥ dte, then the t-coverage resilience is dte − 1; otherwise, the t-coverage resilience is l∗. As a consequence, we can state the following: Theorem 3.3.5. The t-coverage resilience of an SCS is min{l∗,dte − 1}where 2πl∗is the length of the shortest ring in the system.
72 CHAPTER 3. RESILIENCE OF A SCS C (a) C (b) Figure 3.12: (a) Ring corresponding to T0. (b) Ring corresponding to T. 3.3.1 Coverage resilience for trees and grids Trees In this section we are going to focus in computing the coverage resilience for some specific cases of the communication graph: trees and grids. Our goal is to improve the linear time algorithm proposed in the proof of Theorem 3.3.4 by using that the communication graph of the system is a tree or a grid. Lemma 3.3.6. If the communication graph of a SCS is a tree then there is a single ring. Proof. We prove the lemma by induction on the number of trajectories. Clearly, if there is only one trajectory, the ring is unique. Suppose that the claim holds for any tree with ntrajectories. We show that it also holds for any tree Twith n+ 1 trajectories. Let Cbe a trajectory corresponding to a leaf in T, see Figure 3.12a. Let T0be the tree obtained by deleting trajectory C. Then there is exactly one ring corresponding to T0. Adding Cto the system, the ring changes by adding a loop covering Cas shown in Figure 3.12b and the lemma follows. From the previous lemma, Corollary 3.3.3 and Theorem 3.3.5, it is directly derived that: Corollary 3.3.7. If the communication graph of a SCS with ntrajectories is a tree then, the coverage resilience and the t-coverage resilience can be computed in constant time. Moreover, the coverage resilience of the system is nand the t-coverage resilience is min{n, dte−1}. Therefore the system is very stable (with respect to covering) because regardless the number of removed robots, the remaining robots (if there are any) will cover all the trajectories. Grids In the rest of this section, we study the coverage resilience of a SCS where the communication graph is a grid. Consider a set of M·Ntrajectories distributed
3.3. COMPUTING COVERAGE RESILIENCE 73 in Mrows and Ncolumns. Each trajectory is identified by a pair (i, j)where 1≤i≤Mand 1≤j≤Nindicate the row and the column, respectively, where the trajectory is located. In the communication graph, trajectory (i, j)is linked to trajectories (i−1, j)if i > 1,(i, j −1) if j > 1,(i+ 1, j)if i<Mand (i, j + 1) if j < N. We refer to this type of SCS as a grid SCS. An m-partial grid SCS is analogously defined. 1 2 3 1 2 3 4 Figure 3.13: A 3×4grid SCS. The drawn portion of a ring hits the top boundary at trajectories (1,2) and (1,4), it hits the bottom boundary at (3,2), the left boundary at (2,1) and the right one at (1,4). In a grid SCS we say that a ring hits the top boundary of the grid if the ring passes through the top section of a circle in the first row. Analogously we can define when a ring hits the left, bottom or right boundary of the ring. See Figure 3.13. Figure 3.14 shows the local behavior of a ring as it visits the trajectories of a grid SCS. In this Figure, small white squares denote two kinds of points: the points where the ring hits the boundaries and the communication links between two neighboring circles (for simplicity, tangent trajectories are considered). Note that these points are traversed diagonally (with slopes 1and −1) by a ring. We consider the movement lattice formed by these points (see Figure 3.15). If the grid communication graph has Mrows and Ncolumns then the movement lattice has 2M+ 1 rows indexed from 0(topmost) to 2M(bottommost) and 2N+ 1 columns indexed from 0(leftmost) to 2N(rightmost). In this way, every vertex of the lattice can be referenced by its row and column (see Figure 3.15). Notice that a token moves diagonally on this lattice (following the ring that houses it) and only A B (a) A B (b) (c) (d) Figure 3.14: Local behavior of a ring in a grid SCS.
74 CHAPTER 3. RESILIENCE OF A SCS changes its direction when reaching a vertex with out-degree equal to one (i.e. when it hits a grid boundary, it bounces). 0 1 2 3 4 5 6 0 1 2 3 4 Figure 3.15: Movement lattice in a grid. Lemma 3.3.8. An M×Mgrid SCS has Mrings of length 2Mπ. Each ring hits each of the four boundaries exactly once. Proof. Let Hbe the movement lattice of the system. Let rbe the ring that hits the top boundary at the vertex (0, i)of H. It is easy to see that rhits the right boundary at vertex (2M−i, 2M), the bottom boundary at the vertex (2M, 2M−i) and the left boundary at (i, 0). Also, rdoes not hit the boundaries in any other vertex. Note that a step from one vertex to another in the movement lattice corresponds to a section of a ring of length π/2. The ring rvisits 4Mvertices on H, thus the length of ris 4M·π/2, i.e., 2Mπ. Repeating this argument for each hitting point in the top boundary we obtain Mrings of length 2Mπ. The sum of the lengths of all circles in the system is 2M2πand the sum of the lengths of the Mrings in the system is 2M2πtoo, so there is no other ring in the system. Let S1and S2be two grid SCSs. We say that S1and S2are concatenable if S1and S2have the same number of rows Mand for all 1≤i≤Mthe movement direction assigned to the last trajectory of the i-th row of S1is opposite to the movement direction assigned to the first trajectory of the i-th row of S2. The concatenation of S1and S2, such that the last trajectory in the i-th row of S1is linked with the first trajectory in the i-th row of S2(for all 1≤i≤M), produces a new M×(N+N0)grid SCS, see Figure 3.16. The following result is a technical lemma that we need in order to complete the proof of Theorem 3.3.10. Lemma 3.3.9. Let Sand Ube two concatenable grid SCSs of size M×Nand M×M, respectively. Suppose that Shas krings of the same length l, and every ring in Shits each of the left and right boundaries exactly ctimes, and hits each of the top and bottom boundaries exactly c0times. Let Rbe the M×(N+M)grid SCS resulting from the concatenation of Sand U. Then, Rhas exactly krings of the same length l+ 2cMπ and every ring in Rhits each of the left and right boundaries exactly ctimes, and hits each of the top and bottom boundaries exactly c0+ctimes.
3.3. COMPUTING COVERAGE RESILIENCE 75 S1 S2 S3 Figure 3.16: S3is the resultant SCS of the concatenation of the SCSs S1and S2. ... ... ... r r0 S U ... ... ... r00 R Figure 3.17: ris the ring in Sthat hits the right boundary in the second row. r0 is the ring in Uthat hits the left boundary in the second row. r00 is the ring in R obtained from rand r0in the concatenation of Sand U. Proof. By Lemma 3.3.8, Uhas Mrings of length 2Mπ, and all of them hit each boundary once. Thus, every ring in Uextends the length of a ring in Sby 2Mπ, see Figure 3.17. Since every ring in Shits the right boundary ctimes then, after concatenation, each ring in Sis fused with crings in U. Note that two rings in S can not be fused together in the concatenation. Then, every ring in Ris formed by the fusion of one ring in Sand crings in U. Therefore, Rhas krings of the same length l+ 2cMπ. Every ring so obtained hits the left boundary ctimes at the c hitting points of the respective ring in S, and hits the right boundary ctimes at the hitting points of the crespective rings in U. Every ring in Rhits each of the top and bottom boundaries c0+ctimes, at the c0hitting points of the respective ring in Sand at the hitting points of the crespective rings in U. We now proceed to establish a key result of this subsection. Theorem 3.3.10. An M×Ngrid SCS has gcd(M, N)(greatest common divisor of Mand N) rings of the same length 2πMN gcd(M,N). Moreover, every ring hits each of the left and right boundaries M gcd(M,N)times and hits each of the top and bottom boundaries N gcd(M,N)times.
76 CHAPTER 3. RESILIENCE OF A SCS Proof. We prove the result by induction in the number of rows. For M= 1, we have that every 1×Ngrid SCS has a single ring, gcd(1, N)=1, one hitting point in left and right boundaries, and Nhitting points in the top and bottom boundaries. Thus, the theorem holds in this case. Assume as inductive hypothesis that: for a fixed value P, the theorem holds for every M×Ngrid SCS with M≤P. We need to prove the theorem for a (P+ 1) ×Ngrid SCS. If N≤Pthen, using the fact that a (P+1)×Ngrid SCS is equivalent to a N×(P+1) grid SCS, the theorem holds by the inductive hypothesis. If N=P+ 1 then the theorem holds by Lemma 3.3.8. In order to prove the theorem for a (P+ 1) ×Ngrid SCS with N > P + 1 we use induction in the number of columns. Assume as second inductive hypothesis that: for a fixed value Q≥P+1, the theorem holds for every (P+ 1) ×Ngrid SCS with N≤Q. Let Sbe a (P+ 1) ×(Q+ 1) grid SCS. We have that Q+ 1 > P + 1, then removing the last P+ 1 columns of Swe obtain a (P+ 1) ×(Q−P)grid SCS denoted by S0. The theorem holds for S0by the second inductive hypothesis. The P+1 removed columns conform a (P+1)×(P+1) grid SCS which is concatenable with S0. So, concatenating S0with the P+1 removed columns we obtain S. Then, by using Lemma 3.3.9 and properties of the greatest common divisor, the result follows. By using Theorem 3.3.10, Corollary 3.3.3 and Theorem 3.3.5 we arrive to the main result of this subsection: Theorem 3.3.11. The coverage resilience of an M×Ngrid SCS is: M·N gcd(M, N). And, the value of the t-coverage resilience is: min M·N gcd(M, N),dte−1. Corollary 3.3.12. The coverage resilience and t-coverage resilience of an N×M grid SCS can be computed in O(Tgcd(N, M))3time. 3.4 Computing k-isolation resilience In this section we are going to prove that the problem of computing the k-isolation resilience of a SCS is NP-hard when kis part of the input. Also, we are going to show that the corresponding decision problem is NP-complete. Additionally we are going to study this problem for small values of k. 3Tgcd(N, M)denotes the required time to compute gcd(N, M). Taking into account that n=N∗Mthen, Tgcd(N, M) = O(log n(log log n)2log log log n)according to [129].
3.4. COMPUTING K-ISOLATION RESILIENCE 77 To conclude this section we study the problem of computing the k-isolation resilience when communication graph is a tree, a cycle or a grid. The following lemma relates isolation with tokens and will be useful for computing the k-isolation resilience. Lemma 3.4.1. Let ube a robot in a partial SCS F. Let zbe the token carried by u. The following statements are equivalent: •uis isolated. •ualways bears z. •zhas degree zero in the meeting graph of F. Proof. If uis isolated then it never meet another robot in the communication links, so, it does not exchange its token and bears zforever. Let us prove now that if ualways bears z, then zhas degree zero in the meeting graph of F. For the sake of contradiction, assume that there is a token z0such that there is a correspondence between zand z0. When zmeets z0if uis bearing zthen uexchanges tokens with the robot bearing z0, so, after the meeting, uis bearing z0. If when zmeets z0the token zis not carried by uthen, uhas exchanged tokens previously. In any case there is a contradiction. If zhas degree zero in the meeting graph of Fthen znever meets another token, so, unever meets another robot, i.e., uis isolated. From the previous lemma we can say that a robot is isolated if it is bearing an isolated token. 3.4.1 Hardness of computing the k-isolation resilience The following notion gives us a useful tool to address the hardness of computing the k-isolation resilience of a SCS. Definition 3.4.2 (Isolation number).The isolation number of a SCS is the maximum possible number of isolated robots (tokens) in a partial SCS. The following result is deduced directly from the definitions of isolation number and k-isolation resilience. Corollary 3.4.3. If the isolation number of a SCS is s, then the k-isolation resilience of the system is infinity for all k > s. Lemma 3.4.4. If the isolation number of a SCS is sthen the s-isolation resilience of the system is n−s.
84 CHAPTER 3. RESILIENCE OF A SCS 0 -1 1 C0 Cn−1 Cn Cj C0 Cn−1 Cn Cj C0 0 C0 j (a) 0 -1 1 C0 Cn−1 Cj C0 Cj C0 0 C0 j Cn Cn−1 Cn Cn Cn (b) 0 -1 1 C0 Cn−2 Cj C0 Cj C0 0 C0 j Cn−1 Cn−1 Cn Cn−2 Cn−1 Cn−1 Cn C0 n−1 C0 n−1 (c) Figure 3.23: Instructions of how to add the n−1remaining circles. (a) If Cn−1and Cnare both on the 0-line, then apply symmetry about the vertical line between Cn−1and Cn. (b) If Cn−1is on the 0-line but Cnis not, then apply symmetry about the vertical line passing through the center of Cn−1. (c) In the remaining case apply symmetry about the touching point of Cn−2and Cn.
3.4. COMPUTING K-ISOLATION RESILIENCE 85 –if n∈Jthen we proceed as shown in Figure 3.23a. –if n /∈Jthen we proceed as shown in Figure 3.23b. •if nis odd then: –if (n−1) ∈Jthen we proceed as shown in Figure 3.23a. –if (n−1) /∈Jthen we proceed as shown in Figure 3.23c. Now, we are ready to prove statement (3.3) on the obtained SCS. (⇒) If d∈J, then Cdis centered on the 0-line and the tie determined by the crossing point between Cdand the previous circle centered on the 0-line covers the dcircles to the left of Cd. Consequently, the length of this tie is 2dπ. (⇐) Every crossing point between circles centered on the same vertical line determines two ties of length 2πand 2(2n−1)π, respectively, and 1 is in J. Consider the crossing point between two circles centered on the 0-line. By symmetry, we can assume that the circles are Cjand Ciwhere 0≤j < i ≤n. The crossing point determines a tie of length 2iπ covering the icircles to the left of Ci. Since Ciis on the 0-line, i∈J. This argument completes the proof. Figure 3.24 shows some examples of the SCS construction. The following result is deduced from Theorem 3.4.17 and Lemma 3.4.4. Corollary 3.4.18. The problem of computing the k-isolation resilience of a SCS is NP-hard. In the rest of this section we focus on how to count the number of isolated robots (tokens) in an m-partial SCS in order to prove that the decision version of k-isolation resilience problem is NP-Complete. Lemma 3.4.9 gives us a method to check if there is a correspondence between two tokens of the same ring. But, how does one check if there is a correspondence between two tokens of different rings? Theorem 3.4.19. In an m-partial SCS, let zand z0be two tokens in different rings rand r0, respectively. Let `be communication link where rand r0cross each other. Let dand d0denote the lengths of the simple paths from zand z0to `at an arbitrary time instant t, respectively. Let 2lπ and 2l0πbe the lengths of rand r0 respectively. Then: •d−d0is in 2πZ. •Let s∈Zsuch that d−d0= 2πs. Then, there is a correspondence between tokens zand z0if and only if the greatest common divisor of land l0divides s.
86 CHAPTER 3. RESILIENCE OF A SCS C0C1 C2 C3C4C5 C6 C0 4C0 3C0 1 C0 2 C0 0 (a) SCS obtained from the circulant graph C12{1,3,4,5}shown in Figure 3.21b. (b) C4{2}and its K4,4-augmentation: C8{1,3,4}. C0C1 C2 C3C4C0 1 C0 2 C0 0 (c) SCS obtained from C8{1,3,4}. (d) C9{3}and its K9,9-augmentation: C18{1,3,5,6,7,9}. C0C1 C2 C3 C4 C5C6C7 C8 C9 C0 8 C0 0 C0 1 C0 2 C0 3 C0 4 C0 5 C0 6 (e) SCS obtained from C18{1,3,5,6,7,9}. Figure 3.24: Examples of construction of a SCS from the Kn,n-augmentation of some circulant graphs. The samples in (a) and (c) are obtained by applying the steps illustrated in Figure 3.23b and 3.23a, respectively. The example in (e) is obtained by applying the steps illustrated in Figure 3.23c.
3.4. COMPUTING K-ISOLATION RESILIENCE 87 ` z z0 z }| { d z }| { d0 r r0 Figure 3.25: Illustration of Theorem 3.4.19. Proof. Figure 3.25 shows the positions of the tokens. First, we prove that (d−d0)∈ 2πZ. Suppose, w.l.o.g., that d≤d0. Consider the time t+ ∆twhen zreaches `. At time tthe distance from z0to `is d0−d. Due to the synchronization, at time t+ ∆tthere is or there should be (in case it has been removed) a token of r0at `. Then, using Lemma 3.2.10 we get that d0−d∈2πN. We focus now on the second claim. If there is a correspondence between zand z0then at anarbitrary time instant tthere are two paths of equal length, let us say L, from zand z0to `. The path from z(resp. z0) to `can be decomposed in the section from z(resp. z0) to `and zero or more round trips in r(resp. r0). Let xand ydenote the number of round trips of the paths in rand r0, respectively. Therefore L=d+x·2πl and L=d0+y·2πl0where (x, y)∈N×N. Then: d+x·2πl =d0+y·2πl0 d−d0=y·2πl0−x·2πl 2πs =y·2πl0−x·2πl s=y·l0−x·l(3.4) Considering xand yvariables, this is a Diophantine equation and has a solution where xand yare integers if and only if gcd(l, l0)|s. (⇒) If there is a correspondence between zand z0, then there exists a solution (x1, y1)∈N×Nfor equation (3.4). Therefore, gcd(l, l0)|s. (⇐) If gcd(l, l0)|sthen there exist infinitely many solutions for equation (3.4) in Z×Z. Observe that the line represented by equation (3.4) has positive slope. Therefore, there exist infinite solutions in N×N. Taking any of these solutions in N×N, we can obtain two paths, one from zto `and the other from z0to `of equal lengths. Therefore, there is a correspondence between zand z0. Given an m-partial SCS, the problem of counting how many of the mrobots (tokens) are isolated takes polynomial time. This can be done using a correspondence test between every pair of live tokens zand z0in the system. Correspondence test: Given two tokens zand z0, is there a correspondence between them?
88 CHAPTER 3. RESILIENCE OF A SCS Lemma 3.4.20. Given an m-partial SCS, the correspondence test between two tokens zand z0in the system takes O(nTgcd(n)) time, where Tgcd(n)is the time6to compute the greatest common divisor between any two numbers less than or equal to n. Proof. The first thing to do is a preprocessing in order to find the rings of the system and their lengths. During this process we can also obtain the ties and their lengths. This preprocessing step takes O(|E|)time where Eis the set of edges of the communication graph. Since this graph is planar,the preprocessing step takes O(n)time. After that, we proceed as follows in order to perform the correspondence test between every pair of tokens in the system. Let zand z0be two tokens in the system. If zand z0are in the same ring, the test can be done in O(n)time by checking ties of the ring (Lemma 3.4.9). If they are in different rings, rand r0respectively, then there are two options. (i) If rand r0have no common crossing points then there is no a correspondence between them. (ii) Otherwise, for every communication link `where rand r0cross each other check if zand z0 meet each other at `using Theorem 3.4.19. This can be done in O(Tgcd(n)) time, where Tgcd(n)is the time to compute gcd(l, l0)and 2lπ and 2l0πare the lengths of rings rand r0, respectively. Thus, the correspondence test takes O(nTgcd(n)) time. Corollary 3.4.21. Given an m-partial SCS, the total time to count the number of isolated robots (tokens) is O(m2nTgcd(n)). As a consequence of the above results, we arrive at the following result: Corollary 3.4.22. The decision problems: determining if the k-isolation resilience of a SCS is smaller than a given value sand determining if the isolation number of a SCS is greater than a given value sare both NP-complete, even if the communication graph is a caterpillar tree. 3.4.2 Algorithm to compute k-isolation resilience Despite the problem of computing the k-isolation resilience of SCS is NP-hard we may want to compute its values. In this subsection we present an algorithm to compute this resilience measure in O(knk+1)time, so, this algorithm can be useful for small values of k. Lemma 3.4.23. Constructing the meeting graph of a SCS takes O(n2)time. Proof. Let Fbe a SCS. Let Zbe the set of tokens. In O(n)time we can discover all the rings, the ties and the position of the tokens in the rings. To build the 6Tgcd(n) = O(log n(log log n)2log log log n)according to [129].
3.4. COMPUTING K-ISOLATION RESILIENCE 89 meeting graph TFwe start by setting V(TF) = Z. Then, to conform E(TF)do the following: Same ring: For each token zin a ring r, find tokens in rat positions p+ l1, p +l2, . . . where pis the position of zand {l1, l2. . . }is the set of the lengths of the ties in r. Add edges to E(TF)between zand every found token. The running time of this step is O(n)for one token zand O(n2)in total. Distinct rings: For each communication link `where two different rings r and r0cross each other. Compute g=gcd(l, l0), where 2lπ and 2l0πare the lengths of rand r0respectively. For each token zin rat distance dfrom `, find all tokens in r0at distance d+i·g, i = 0,1,2, . . . . Add edges between zand these tokens to E(TF). This can be done in O(n+I) = O(n)time per communication link where Iis the number of edges found for communication link. The total time is O(n2). Let TFbe the meeting graph of a SCS F. In the following we describe an algorithm to compute the k-isolation resilience of Fby exploring all the possible kindependent sets of TF. Theorem 3.4.24. Computing the k-isolation resilience of a SCS takes O(knk+1) time. Proof. The idea to compute the k-isolation resilience is the following: In a preprocessing step compute the meeting graph TFof the SCS in O(n2)time. Now, let Abe a dynamic set with the available (surviving) tokens. At the beginning A={z1, . . . , zn}contains all ntokens. In general, if Ais empty, we cannot select a new token and we check another set of ktokens. When a token ziis selected from A, we remove its neighbors in TFfrom A. If ziis not the last (k-th selected) token, then Acontains candidate tokens to select next. If ziis the last selected token, then |A|is the number of remaining tokens. Let Amax be the largest set A of remaining tokens over all selections of ktokens (if it is not possible to select k tokens then the k-isolation resilience is ∞). Then n−k−|Amax|is the k-isolation resilience of the system. The number of analyzed subsets is O(nk)(all the possible subsets of ktokens) and every subset is analyzed in O(nk)time. Then, the result follows. 3.4.3 Improvement on computing 1-isolation resilience Remark 3.4.25. Let Fbe a SCS. Let Z={z1, . . . , zn}be the initial set of tokens in F. Let N(z)denote the number of tokens that have a correspondence with z, z∈Z. By definition, the value of 1-isolation resilience is min {N(z)|z∈Z}= δ(TF)where δ(TF)denotes the degree of the vertex with minimum degree in the meeting graph TFof F.
90 CHAPTER 3. RESILIENCE OF A SCS Computing the 1-isolation resilience of a SCS using the algorithm of Theorem 3.4.24 takes O(n2)time. The following theorem improves this complexity for this specific case. Theorem 3.4.26. The 1-isolation resilience of a SCS can be computed in ˜ O(n) = O(nTgcd(n)) time. Proof. In a preprocessing step, find the rings and their lengths, also, obtain the ties and their lengths. This preprocessing takes O(n)time. For each ring r, pick a single token zfrom it. Let r1, r2, . . . be the rings crossing r. For each ring ri crossing r, compute gi=gcd(l, li)in O(Tgcd(n)) time where 2lπ and 2liπare the lengths of rand ri, respectively. Also, compute a list Diin the following way: Di starts empty, then, for each communication link `where ricrosses r, let dbe the distance from zto `. If there is a value d0∈Disuch that gidivides d−d0then Distays the same, else, add dto Di. Compute N(z) = t(r) + Pi|Di|·li/giwhere t(r)is the distinct lengths of ties in r. This is the number of tokens that have a correspondence with z(Lemma 3.4.9 and Theorem 3.4.19). Let xbe another token laid 2bπ behind zin r. Notice that if a token z0in a ring r0has a correspondence with z, then the token x0laid 2bπ behind z0in r0has a correspondence with x. From this observation we have that for every two tokens zand xin the same ring, N(x) = N(z). Let %(r)be the value N(z)of an arbitrary token zin the ring r. Computing %(r)takes O(er·Tgcd(n)) time where eris the number of communication links traversed by r. Find the smallest %(r)for all rings rin the system and this is the 1-isolation resilience value. The total running time of this algorithm is O(nTgcd(n)) = ˜ O(n)7because every communication link is analyzed two times, one per each traversing ring (the same ring twice in ties) and the number of communication links is O(n). 3.4.4 k-isolation resilience for trees, cycles and grids This subsection focuses on computing the k-isolation resilience for some specific cases of the communication graph: cycles and grids. We propose polynomial time algorithms for the cases of cycles or grids. We also improve the results of sections 3.4.2 and 3.4.3 when the communication graph is a tree. Trees Lemma 3.4.27. Computing the set Jof jumps of the circulant meeting graph of a SCS whose communication graph is a tree takes linear time. Proof. From Lemma 3.4.9 and Corollary 3.4.8 we have that traveling in the system along the ring, we can determine in linear time the length of all the ties in the 7˜ Onotation hides polylogarithmic factors.
3.4. COMPUTING K-ISOLATION RESILIENCE 91 system. Moreover, from properties of the circulant graphs, Lemma 3.4.12 and Corollary 3.4.8, we have that l∈Jif and only if there is a tie of length 2lπ and l≤n/2. The result follows. From the previous lemma, Remark 3.4.25 and properties of the circulant graphs, the following result is straightforward deduced: Lemma 3.4.28. In a SCS whose communication graph is a tree, the value of the 1-isolation resilience is 2|J|, if n/26∈ Jand, 2|J|−1, in other case, and it can be computed in linear time. Now, let us focus on computing the 2-isolation resilience of a SCS whose communication graph is a tree. Lemma 3.4.29. Let L={l1, . . . , lt}be the set of tie lengths in the single ring of a SCS whose communication graph is a tree. Let S+and S−be the multisets: S+={lj+li|(li, lj)∈L×L, lj+li6∈ L, lj+li< n}and, S−={lj−li|(li, lj)∈L×L, lj−li6∈ L, lj−li>0}. Then the 2-isolation resilience of the system is 2t−f, where fis the frequency of the mode8in S+∪S−. Proof. Let z0, z1, . . . , zn−1be a circular labeling of the tokens such that there is a correspondence between two tokens ziand zjif and only if ((j−i) mod n)∈L. W.l.o.g. assume that z0and zdare two isolated tokens after removing a set R of tokens with minimum cardinality (i.e., |R|is the 2-isolation resilience). Notice that 0<d<nand d6∈ L. Let S0={zl|l∈L}denote the set of tokens having a correspondence with z0. By other hand, let Sd={zd+l|l∈L}(the subindices d+lare taken modulo n) denote the set of tokens having a correspondence with zd. Notice that R=S0∪Sdand |R|= 2t− |S0∩Sd|which is the 2-isolation resilience of the system. The tokens having a correspondence with both z0and zdare in S0∩Sd. Let us prove that |S0∩Sd|is equal to the frequency fdof din S+∪S−. Firstly we prove that fd≤ |S0∩Sd|, that is, every occurrence of din S+∪S− induces a different token in S0∩Sd. •For every occurrence of din S−, there is a pair (li, lj)∈L×Lsuch that lj−li=d. Then, lj=d+liand zlj∈Sd. Clearly, zlj∈S0, and therefore, zlj∈S0∩Sd. Also, for every two different occurrences of din S−there are two different pairs (li, lj)∈L×Land (li0, lj0)∈L×Lsuch that lj−li=lj0−li0=d. It is easy to check that lj6=lj0. Then, zlj6=zlj0and both are in S0∩Sd. 8The mode of a multiset is the value that appears most often.
92 CHAPTER 3. RESILIENCE OF A SCS •For every occurrence of din S+there is a pair (li, lj)∈L×Lsuch that li+lj=d. Notice that (n−li)∈L(by properties of circulant graphs) and ((d+ (n−li)) mod n) = lj. Then, zlj∈Sd. Clearly zlj∈S0, thus, zlj∈S0∩Sd. Analogously to the previous case, for every two different occurrences of din S+, there are two different pairs (li, lj)∈L×Land (li0, lj0)∈L×Lsuch that lj+li=lj0+li0=d. It is easy to check that lj6=lj0. Then, zlj6=zlj0and both are in S0∩Sd. Finally, notice that, if there is a pair (li, lj)∈L×Lsuch that lj+li=d(resp. lj−li=d) then lj< d (resp. lj> d) and there is no li0∈Lsuch that lj−li0=d(resp. lj+li0=d). This observation implies that every occurrence of din S+induces a token in S0∩Sdwhich is different from all the tokens induced by occurrences of din S−. Then, the first part of the proof (fd≤ |S0∩Sd|) is completed. Secondly, we prove that fd≥ |S0∩Sd|, that is, for every token zxin S0∩Sd there is an occurrence of din S+∪S−. Clearly x=lj∈L. •If x>dthen, there is li∈Lsuch that x−li=d. Also, if there is a token zx0∈S0∩Sdsuch that zx06=zxand x0> d then, there is a value li0∈L, li06=lisuch that x0−li0=d. Therefore, every token zx∈S0∩Sdwith x>d induces a different occurrence of din S−. •If x < d then, there is li∈Lsuch that ((d+li) mod n) = x. Taking into account that 0<x<d<nand li< n, we get that n<d+li<2n, then d−(n−li) = x. By rewriting the last equation as d=x+ (n−li)and taking into account that (n−li)∈L(by properties of circulant graphs), an occurrence of din S+is induced. Analogously to the previous case, if there is another token zx0∈S0∩Sdsuch that zx06=zxand x0< d then, there is a value li0∈L,li06=lisuch that d−(n−li0) = x0. Therefore, every token zx∈S0∩Sdwith x<dinduces a different occurrence of din S+. The proof that |S0∩Sd|=fdis now completed and, by using the definitions of mode and 2-isolation resilience we conclude that dis the mode of S+∪S−. From the previous lemma the following theorem is deduced: Theorem 3.4.30. The 2-isolation resilience of a SCS whose communication graph is a tree can be computed in O(t2+n)time where, nis the number of trajectories in the system and tis the number of different tie lengths. Proof. In a preprocessing step, find the set of tie lengths L={l1, ..., lt}by traveling along the single ring of the system. This step takes O(n)time. After that, by computing lj+liand lj−lifor all (li, lj)∈L×Lwe can find the mode d(and its frequency f) in the multiset S+∪S−of Lemma 3.4.29. This step takes O(t2) time. Finally, the 2-isolation resilience is 2t−f.
3.4. COMPUTING K-ISOLATION RESILIENCE 93 z }| { z }| { a z }| { a a (a) 1 2 3 5 4 6 7 8 9 10 11 n (b) Figure 3.26: Examples of lower bounds in the number of tie lengths of a SCS. (a) A tree where n=a2. The lengths of the ties are L={1,2, . . . , a, 2a, 3a, . . . , a2− a, a2−(a−1), . . . , a2−1}and |L|= 3a−3. (b) A star tree with non-circular trajectories where ncould be arbitrarily large and L={1, n −1}. The following remark shows cases in which the application of the previous theorem conducts to a very good performance ini the computation of the 2-isolation resilience. Remark 3.4.31. If tis O(√n)then, computing the 2-isolation resilience takes linear time (Theorem 3.4.30). For example, consider a SCS with n=a2trajecto- ries connected between them as it is shown in Figure 3.26a. It is easy to check that t= 3a−3, then t∈O(√n). Also, considering non-circular and degenerated trajectories we can build a SCS whose communication graph is a star tree with t= 2 for any arbitrary large value of n, see Figure 3.26b. In these cases, the algorithm described in the proof of Theorem 3.4.30 has very good performance (linear time). Not everything is good news, there are some bad cases in which the idea of Theorem 3.4.30 is not so good, see the following remark. Remark 3.4.32. If tis Ω(n)(e.g., the communication graph of the system is a simple path), the idea of Theorem 3.4.30 takes O(n2)time. In the following, we show another idea to improve the time complexity of Theorem 3.4.30 when t∈Ω(n). Lemma 3.4.33. Let L={l1, . . . , lt}be the set of tie lengths in the single ring of a SCS whose communication graph is a tree. Let d∈N,0< d < n. Let p(x) = xl1+xl2+···+xlt. The coefficients of xdand xn+din p2(x)are the number
100 CHAPTER 3. RESILIENCE OF A SCS C1 C3 C2 C4 p1 p4 p2 p3 Figure 3.30: A 2-partial SCS at time t0, the solid points are the positions occupied by the surviving robots and the hollow points are the positions where a removed robot should be. Proof. Let U={ui1, . . . , uim}be the set of live robots in Fand let Zbe the set of tokens in F. Fix a time t0. For every trajectory Cj(1≤j≤n) in the system, let pj be the position of Cjwhere there is or there should be (due to the synchronization of the system) a robot at time t0, see Figure 3.30. Let P={p1, . . . , pn}. Notice that if a robot uis at a point p∈Pthen after one time unit uis at a point p0 that is in Pas well. For every l∈Nand 1≤j≤m, let ρ(l) j, τ(l) jbe an ordered pair where ρ(l) jand τ(l) jare the position and token of robot uijat time t0+l, respectively. Notice that ρ(l) j∈Pand τ(l) j∈Zfor all j, l. Let X(l) = ρ(l) 1, τ(l) 1,...,ρ(l) m, τ(l) m. Note that X(l)describes the state of the system at time t0+l, a kind of snapshot of the system at time t0+l. Let us analyze the infinite sequence X=X(0), X(1), X(2), . . . . The values of this sequence are the columns of Table 3.1. Now, recall that ρ(l) j, τ(l) jis in P×Zfor all l, j, then X(l)is in (P×Z)mfor all l. Notice that |P|=nand |Z|=m, thus |(P×Z)m|= (nm)m. It follows, using the pigeonhole principle, that the sequence Xrepeats values. Let σbe a natural number such that X(σ)is the first repeated value in X. That is, there is a value l0∈N,0≤l0< σ such that X(l0) = X(σ), see Table 3.1. We claim that l0= 0. Suppose that l0>0. As a consequence of the behavior of a partial SCS it is easy to show that X(l0+1) = X(σ+1) and X(l0−1) = X(σ−1). Then the value X(σ−1) is the first repeated value in X, a contradiction! Therefore l0= 0 and σis the period of the system, i.e., X(l) = X(l+σ)for all l∈N. Lemma 3.5.2. Let Fbe an m-partial SCS. Let TFbe the meeting graph of F. If at time ta robot uis bearing a token zthen at time t0> t robot uis bearing a token z0which is in the same connected component of zin TF. Proof. From the nature of the meeting graph, we know that if a robot uwith token zexchanges its token with a robot u0with token z0, then zand z0are adjacent in
3.5. COMPUTING BROADCASTING RESILIENCE 101 0 1 ··· σ··· ui1ρ(0) 1, τ(0) 1 ρ(1) 1, τ(1) 1··· ρ(σ) 1, τ(σ) 1··· ui2ρ(0) 2, τ(0) 2 ρ(1) 2, τ(1) 2··· ρ(σ) 2, τ(σ) 2··· . . .. . .. . .. . . uimρ(0) m, τ(0) m ρ(1) m, τ(1) m··· ρ(σ) m, τ(σ) m··· Table 3.1: The j-th row represents the sequence of transitions of the robot uijat times t0, t0+ 1, t0+ 2, . . . . the meeting graph. Then, the sequence of token’s exchanges made by ufrom time tto time t0defines a path in TF. Lemma 3.5.3. Let Fbe an m-partial SCS. Let TFbe the meeting graph of F. Let uand u0be robots in Fbearing tokens zand z0at time t, respectively. A message sent by uat time tis delivered to u0if and only if zand z0are in the same connected component of TF. Proof. (⇒) Suppose that a message sent by uat time t(hence, associated with z) is delivered to u0at time t0. Let τbe the token held by u0at time t0. It is easy to see that if τcontains the message then there is a path in TFbetween zand τ. Thus, from Lemma 3.5.2, we deduce that zand z0are in the same connected component of TF. (⇐) Suppose that zand z0are in the same connected component of TF. Thus, the message in zwill be delivered to z0at some time. From Lemma 3.5.1, we deduce that the message will reach u0. Remark 3.5.4. From the previous lemma we deduce that if it is possible to send a message at time tfrom robot uto robot u0, then it is also possible to send a message at time tfrom u0to u. From the previous remark and Lemma 3.5.3 we arrive to the following corollary: Corollary 3.5.5. Let Fbe an m-partial SCS. Let TFbe the meeting graph of F. There is a loss of connectivity in Fif and only if TFis disconnected or if it consists of a single vertex. Let G= (V, E)be a connected graph. A vertex-separator is a set S⊂Vsuch that the subgraph induced by V\Sis disconnected. The vertex-connectivity of G, denoted by κ(G)is |V|−1if G=Kn(the complete graph); otherwise, κ(G)is the cardinality of a smallest vertex-separator. From Lemma 3.2.20, Corollary 3.5.5 and by using the previous definition of connectivity of a graph, the next result follows:
102 CHAPTER 3. RESILIENCE OF A SCS Theorem 3.5.6. Let Fbe a SCS and let TFbe the meeting graph of F. The broadcasting resilience of Fis κ(TF). And, it can be computed in O(nκ(TF)· min{κ3(TF) + n, nκ(TF)})time. Proof. The graph TFcan be computed in O(n2)time (Lemma 3.4.23). Then, the vertex-connectivity of TFcan be computed in O(nκ(TF)·min{κ3(TF)+n, nκ(TF)}) time [63] and, the result follows. By using the definitions of the resilience measures we have: Corollary 3.5.7. The broadcasting resilience of a SCS Fis less than or equal to its 1-isolation resilience. In Section 3.4.3, it is shown that the 1-isolation resilience of a SCS can be computed in ˜ O(n), therefore, we can compute a bound for the broadcasting resilience of a SCS in almost linear time. The next subsections focuses on improving the time complexity of Theorem 3.5.6 on some configurations that appear in practical applications: trees, cycles and grids. 3.5.1 Broadcasting resilience for trees, cycles and grids In this section we are going to focus in computing the broadcasting resilience for some specific cases of the communication graph: trees, cycles and grids. Trees Let Fbe a SCS whose communication graph is a tree. From Lemma 3.4.12 we know that the meeting graph TFof Fis a circulant graph. Using Remark 3.4.11 we have that TF=CnJwhere nis the number of trajectories in the system and J is the set of jumps. Notice that the number of edges of TFcould be quadratic (i.e., if the trajectories are disposed in a path then, the meeting graph is a complete graph). So, computing explicitly every edge of TFtakes O(n2)time in the worst case. However, notice that |J| ≤ n 2and computing Jtakes linear time (see Lemma 3.4.27). Lemma 3.5.8. Let Fbe a SCS with a single ring. The broadcasting resilience of Fcan be computed in O(n3/2)time. Proof. Computing the set Jof jumps of the circulant meeting graph takes linear time (Lemma 3.4.27). Then, the connectivity of CnJcan be computed in O(n3/2) time using the algorithm proposed in [20, 88]. By Theorem 3.5.6, the result follows. From the lemma above and Lemma 3.3.6, the following result is directly deduced: Corollary 3.5.9. The broadcasting resilience of a SCS whose communication graph is a tree can be computed in O(n3/2)time.
3.5. COMPUTING BROADCASTING RESILIENCE 103 Cycles Lemma 3.5.10. Let Fbe a SCS whose communication graph is a cycle. The broadcasting resilience of Fis min{l, l0}where 2lπ and 2l0πare the lengths of the two rings in F. Moreover, the broadcasting resilience can be computed in linear time. Proof. From Property 3.2.5, Remark 3.2.6 and Lemma 3.4.39 it follows that the meeting graph of Fis the complete bipartite graph Kl,l0and therefore the minimum separator vertex set of Kl,l0has cardinality min{l, l0}. The linear time algorithm described in Theorem 3.3.4 allows us to compute the rings of the system and their lengths. Corollary 3.5.11. Let Fbe a SCS whose communication graph is a cycle. Let 2lπ and 2l0πbe the lengths of the two rings in F. The three measures, broadcasting resilience, coverage resilience and k-isolation resilience (for all k≤max{l, l0}), have the same value, which is min{l, l0}and, this value can be computed in linear time. Grids Lemma 3.5.12. Let Fbe an N×MSCS. The broadcasting resilience of Fis N+M−2. Proof. From Theorem 3.4.45 we deduce that the meeting graph of Fis a complete graph if and only if N= 1 or M= 1. In any of these cases the lemma holds. If N≥2and M≥2, the meeting graph TFhas a separator set S⊂V(TF) such that |S|=κ(TF). Now, from Theorem 3.4.46 we know that the 1-isolation resilience of Fis N+M−2, then, by using Corollary 3.5.7, we have that κ(TF)≤ N+M−2. Then: |V(TF)\S|=N·M−κ(TF)≥N·M−N−M+ 2.(3.5) In the following we prove that: |V(TF)\S| ≤ N·M−N−M+ 2.(3.6) Let A6=∅and B6=∅form a bipartition of V(TF)\Ssuch that {a, b} 6∈ E(TF) for all a∈Aand b∈B. Let rows(A)⊂ {1...N}and rows(B)⊂ {1...N}denote the sets of rows occupied by the tokens in Aand B, respectively. Analogously, let cols(A)⊂ {1..M}and cols(B)⊂ {1..M}denote the sets of columns occupied by the tokens in Aand B, respectively. Notice that rows(A)∩rows(B) = cols(A)∩ cols(B) = ∅. Take r∈rows(A)and c∈cols(A), let zbe the token of Fon the circle of row rand column c. If zis not in Athen zis in S. Let A0=A∪ {z}
104 CHAPTER 3. RESILIENCE OF A SCS and S0=S\ {z}. Notice that A0and Bform a bipartition of V(TF)\S0and there is no edge from A0to B. Therefore, S0is a separator set and |S0|<|S| which is a contradiction. Thus, for every r∈rows(A)and c∈cols(A)the token on the circle (r, c)is in Aand |A|=|rows(A)| · |cols(A)|. Analogously, we can prove that |B|=|rows(B)|·|cols(B)|. To simplify the notation, let |rows(A)|=rA,|cols(A)|=cA,|rows(B)|=rBand |cols(B)|=cB. Then: |V(TF)\S|=|A|+|B|=rA·cA+rB·cB. Since rB≤N−rAand cB≤M−cA, then: rA·cA+rB·cB−N·M+N+M−2≤rA·cA+(N−rA)·(M−cA)−N·M+N+M−2. The right part of the above inequality can be rewritten as: (1 −cA)(N−rA−1) + (1 −rA)(M−cA−1). Notice that (1 −cA)≤0and (1 −rA)≤0. On the other hand, (N−rA−1) ≥0 and (M−cA−1) ≥0. This proves inequality (3.6) and the stated lemma follows from inequalities (3.5) and (3.6). 3.6 Conclusions Area coverage in cooperative robot networks is a fundamental component of many applications. For instance, a group of UAVs can form a network and accomplish complicated missions such as rescue, searching, patrolling and mapping. There are two main issues which must be considered when developing a solution with a cooperative robot network: coverage and communication. In this chapter we propose various quality measures of a synchronized system of robots related to the robustness of the network in the presence of failures. Computing these measures leads to interesting combinatorial problems from the theoretical point of view. With respect to communication between robots, we considered two quality measures: the k-isolation resilience and the broadcasting resilience. The k-isolation resilience is the minimum number of robots whose removal may cause the isolation of at least ksurviving robots. Although the problem of computing this measure is NP-hard in general, even for trees, we showed how to solve the problem when the system is small or for small values of k. We also show how to compute the k-isolation resilience when the communication graph is a cycle (in linear time) or a grid (with an analytic expression) which are commonly used configurations in multi-UAVs applications. The broadcasting resilience is related to the capacity of the system for sending messages through the network, it can be computed in O(nκ ·min{κ3+n, nκ})time where nis the number of trajectories and κis the broadcasting resilience value. Additionally, we showed how to improve this complexity on trees to O(n3/2)time, on cycles to O(n)time and, on grids to
3.6. CONCLUSIONS 105 constant time. For the study of the robustness with respect to area coverage, we introduced the concept of coverage resilience as the minimum number of robots whose removal may result in at least one non-covered trajectory segment. Notice that if we denote this measure as ρc, the removal of at most ρc−1robots from the system guarantees that the total area is covered. In order to bound the idle-time of the system, that is, the maximum time a point of the area is unattended by the robots, we also define the T-coverage resilience as the minimum number of robots we can remove so that the idle-time is at least T. We gave a linear time algorithm to compute these values of resilience for a general communication graph and we found closed form solutions depending on the input size for trees and grid-graphs. Moreover, we showed some relationship between the measures. For example, the three measures match when the communication graph is a cycle. Notice that the time complexity of Theorem 3.5.6 depends on the algorithm exposed in [63] which computes the vertex-connectivity of any general graph. Then, it could be interesting to study if there is a better algorithm to compute the broadcasting resilience by using some specific properties of the vertex-connectivity in meeting graphs.
106 CHAPTER 3. RESILIENCE OF A SCS
Chapter 4 Randomized Synchronized Communication Systems Stochastic multi-UAV systems have attracted considerable attention in the field of mobile robots. This approach brings several advantages, such as lower times to complete tasks, cost reduction, higher scalability, and more reliability, among others [150]. In a pure random mobility model, each node randomly selects its direction, speed, and time, independently of other nodes. Some models include random walks, random waypoints or random directions. See [26] for a comprehensive survey. In this chapter we introduce some stochastic behavior for the surviving robots of a partial SCS (see Definition 3.1.1 of Chapter 2) in order to gain robustness in the system. Recall that in a partial SCS the surviving robots perform a deterministic protocol when they arrive to a link position: if there is a robot in the neighboring trajectory then they exchange information and remain in their respective trajectories, and, if there is no robot in the neighboring trajectory then the robot shifts to the neighboring trajectory. In this chapter we call deterministic strategy to this protocol. In Chapter 3 we have presented three problems that may appear in a partial SCS using the deterministic strategy: isolation (a robot always fails trying to meet a robot in the communication links), uncovering (some trajectory sections are non covered) and loss of connectivity (the system loses the capacity to relay messages between every pair of robots in the system). In this chapter, we introduce a random way to perform the shifting operations in order to avoid these drawbacks. We are going to show that the random alternatives behave really well with very few robots in the system. Then, in scenarios where we have many subregions (trajectories) and a few robots its more convenient to use the random strategies 107
108 CHAPTER 4. RANDOMIZED SCS’S of this chapter. 4.1 Random strategies and measures Two random strategies are proposed in this chapter as an alternative to the deterministic strategy proposed and studied in chapters 2 and 3. The first one is easier to study theoretically and the other one is more convenient in practical scenarios. Random strategy: Every time a robot arrives at a communication link between its current trajectory and a neighboring one, it decides with probability p=1 2if it remains in its trajectory or it passes to the neighboring one by a shifting operation. Notice that by following this protocol more than one robot may share the same position. For instance, if two robots arrive at a communication link and one of them decides to maintain its trajectory and the other one decides to make a shifting operation, then they will move together like a single robot. Working with aerial robots, this drawback can be solved by flying at different altitudes or by flying side by side within a safety margin. Also note that while the robots are flying together, they can maintain permanent communication. Quasi-random strategy: Every time a robot arrives at a communication link, the following rule is applied: if there is no robot in the neighboring trajectory, then it decides with probability p=1 2if it remains at its trajectory or if it passes to the neighboring one by a shifting operation. Otherwise, it remains in its trajectory. Note that with this protocol, no two robots travel on the same trajectory and a collision avoidance approach is not required in this case. Definition 4.1.1. We will call randomized SCS (R-SCS) to a synchronized system where the robots are applying the random strategy. A quasi-randomized SCS (QRSCS) is defined analogously. Remark 4.1.2. The behavior of a robot in a R-SCS is independent of the other robots; the movement of a robot in QR-SCS depends on the behavior of the other robots. Finally, the behavior of the robots following the deterministic strategy is totally co-dependent. In what follows we introduce three criteria to compare the performance of these strategies. The metrics carry valuable information regarding the coverage and the communication performance of a SCS. •The idle-time is the average time that a point in the union of the trajectories remains unobserved by a robot. •The isolation-time is the average time that a robot is without communication with any other robot.
4.2. THEORETICAL RESULTS 109 •The broadcast-time is the average time elapsed from the moment a robot emits a message until it is received by all the other robots. It is worth mentioning that these metrics are related to some resilience measures defined previously for SCS’s: idle-time is related to coverage-resilience, defined the minimum number of robots whose removal may result in a non-covered subarea (see Definition 3.1.8), isolation-time is related to 1-isolation resilience, defined as the cardinality of a smallest set of robots whose failure suffices to cause that at least one surviving robots operates without communication (see Definition 3.1.6) and broadcast-time is related to broadcasting resilience, introduced as the minimum number of robots whose removal may disconnect the network (see Definition 3.1.7). 4.2 Theoretical results In this section we present some theoretical bounds on the above metrics. We then compare these values with experimental results. First, we review some well-known notions of random walks. Random walks are the main tool that we will use to study the behavior of the metrics in a partial SCS. We follow the notation of [85]. Let G= (V, E)be a connected (di)graph with nvertices. Starting at a vertex v0, randomly select a neighbor v1of v0. Then randomly select a neighbor of v1and so on. This process yields a sequence of vertices of G, which we call a random walk on G. Let vtdenote the vertex of the random walk at the t-th step. Let P0be the probability distribution from which v0was chosen, i.e., P0(v) = Pr(v0=v)for all v∈V. We denote by M= (pvw)v,w∈Vthe transition matrix, i.e., pvw is the probability of moving from vertex vto vertex w. Then, Pt=MtP0denotes the probability distribution of vt, i.e., Pt(v) = Pr(vt=v)for all v∈V. The period kof a vertex vis defined as k=gcd{n > 0|Pr(vt=v|v0=v)>0}. In other words, vhas period kif any subsequent visit to voccurs in multiples of ktime steps. If k= 1, the vertex vis aperiodic. If every vertex in Gis aperiodic, Gis said to be aperiodic. A probability distribution Pthat satisfies that P=M·Pis called a stationary distribution. If the graph Gis (strongly) connected, then the stationary distribution exists and it is unique. Moreover, if Gis also aperiodic, Ptconverges to the stationary distribution as t→ ∞. 4.2.1 The discrete model of a partial SCS Let (α, δ)be the synchronization schedule of a partial SCS Fwith ntrajectories {C1, . . . , Cn}. Consider the digraph G= (V, E), where V={1, . . . , n}and (i, j) is an arc of Efrom ito jif there is a path P(not necessarily in the same ring) of length 2πfrom αi=α(Ci)to αj=α(Cj)following the assigned travel directions in the circles. See Figure 4.1, where a SCS is shown and a path between
116 CHAPTER 4. RANDOMIZED SCS’S Proof. Let t1, . . . , tcbe an arbitrary sequence of c=nk−1 nk−1−(n−1)k−1steps of a random walk (ti=t1+i−1for all 1< i ≤c) performed by an agent u. By Theorem 4.2.6, we deduce that uis alone at a vertex vof Vat step tiwith probability: 1 nn−1 nk−1=(n−1)k−1 nk. And, uis not at vat step tiwith probability n−1 n. Thus, the probability of ubeing with at least another robot at vat step tiis given by: 1−(n−1)k−1 nk−n−1 n=nk−1−(n−1)k−1 nk. Let Xi,v be the random variable given by: Xi,v =(1if umeets some robot at vat step ti, 0otherwise. It easy to see that E[Xi,v] = nk−1−(n−1)k−1 nk. Let Y= c X i=1 X v∈V Xi,v. Now, the expected number of times that umeets another agent at some vertex of Vduring the given sequence of steps is equal to E[Y]and E[Y] = c X i=1 X v∈V E[Xi,v] = c X i=1 X v∈Vnk−1−(n−1)k−1 nk≥1. From this theorem we arrive to: Corollary 4.2.13. Suppose that kagents are doing a random walk on a discrete motion graph G= (V, E)and their starting vertices are taken uniformly on V. For every agent, the expected number of steps between two consecutive meetings is at most nk−1 nk−1−(n−1)k−1. Now, extending the previous result to a R-SCS (using Remark 4.2.11), we have: Corollary 4.2.14. Let Fbe a R-SCS where krobots are operating. If the robots start at randomly chosen positions then, for every robot, the expected time between two consecutive meetings is less than nk−1 nk−1−(n−1)k−1.
4.3. EXPERIMENTAL RESULTS 117 0 20 40 60 80 100 Number of robots 0 20 40 60 80 100 Expected isolation-time Figure 4.4: Behavior of the function I(k) = lnk−1 nk−1−(n−1)k−1m, the expected isolationtime for 2≤k≤100 robots considering a scenario of n= 100 trajectories. Observe that Corollary 4.2.14 says that a robot meets another robot in an interval of time of length at most nk−1 nk−1−(n−1)k−1. This implies that for only two robots in the system, they meet at most every ntimes unit (consider k= 2 in the formula). Figure 4.4 shows the behavior of the expected time when kis increasing. The behavior of this function says that a small number k << n of drones is enough to get a good result with the random strategy . 4.3 Experimental results In this section, we evaluate the validity of the proposed random strategies comparing the values of idle-time, isolation-time and broadcast-time with the results obtained using the deterministic strategy. Also, we show that the bounds we proved for idle-time and isolation-time are very tight and evaluate the mixing time to explore the rate of convergence of the system to the uniform distribution. These experiments were implemented in Python3.6 using NumPy 1.15.2. The code
118 CHAPTER 4. RANDOMIZED SCS’S is available in GitHub2. 4.3.1 Experiments description Typically, in surveillance tasks with small drones, the map is split into a grid of small cells. Thus, we performed several experiments on grid graphs of sizes 10×10, 15×15,20×20 and 30×30. For every one of these grids of N×Nsize, we simulated the random strategies with krobots, 1≤k < N2. And, for every grid and every value k, we have performed 10 repetitions of the experiment, choosing the starting position of each robot uniformly at random from the synchronized positions. Each experiment in an N×Ngrid ran for 4N2units of time. In the following, E(i) N,k denotes the i-th repetition of an experiment in a grid of size N×Nusing krobots. Let Fbe a synchronized N×Mgrid shaped system. Let WN,M be an auxiliary graph, that we call walking graph, whose vertices are the communication links (the edges between neighboring circles of F) and the 2(N+M)touching points between the trajectories and an imaginary box circumscribed on F, see Figure 4.5. There is a directed edge (v, w)in WN,M if there exists an arc of length π/2between the points corresponding to vand wfollowing the assigned travel directions. In the following, let V(WN,M )and E(WN,M )denote the set of vertices and arcs of WN,M , respectively. Each robot moves on Ffollowing the travel directions and can perform a shifting operation only at the communication links. Thus, any (not necessarily simple) path in WN,M corresponds to a valid sequence of movements of a robot in Fwhere a step in WN,M corresponds to 1/4 of a time unit in F. In this way, the movement of an agent in WN,M (following the arcs in E(WN,M )) emulates a valid sequence of movements of a robot in F. We performed the experiments on the walking graph WN,N . From now on, for simplicity we denote the walking graph by WN. 4.3.2 Experiments for the idle-time Note that every point at a circle of an N×Ngrid SCS is at some arc of WN. Hence, the idle-time of an N×Ngrid SCS using krobots is the idle-time of the arcs of WNusing krobots. In order to measure this value, we do the following: in each experiment E(i) N,k, for every arc e∈E(WN), we count the number of times that eis traversed by a robot and when it is traversed. Having all the visits to an arc e, we can compute the average time idle(i) e(k)between consecutive passes through the arc ein the experiment E(i) N,k. Let idlee(k) = 1 10 P10 i=1 idle(i) e(k)denote the average time between consecutive passes through the arc eall over the 10 repetitions of the experiment using krobots. Finally, in order to compare the idle-time of these strategies having into account 2https://github.com/varocaraballo/random-walks-synch-sq-grid
4.3. EXPERIMENTAL RESULTS 119 Figure 4.5: The walking graph of the 3×3grid SCS shown in Figure 3.1(b). The imaginary box where the system is inscribed is drawn using dotted stroke. The vertices of the walking graph are the non-solid points. Notice that the directed arcs between these nodes follow the travel directions assigned in Figure 3.1(b). 0 5 10 15 20 25 30 Number of robots 0 50 100 150 200 250 300 350 400 Idle-time Determ.: Max-idle-time Determ.: Avg-idle-time Determ.: Min-idle-time Random: Max-idle-time Random: Avg-idle-time Random: Min-idle-time Q-random: Max-idle-time Q-random: Avg-idle-time Q-random: Min-idle-time (a) 0 10 20 30 40 50 Number of robots 0 200 400 600 800 Idle-time Determ.: Max-idle-time Determ.: Avg-idle-time Determ.: Min-idle-time Random: Max-idle-time Random: Avg-idle-time Random: Min-idle-time Q-random: Max-idle-time Q-random: Avg-idle-time Q-random: Min-idle-time (b) 0 10 20 30 40 50 60 Number of robots 0 200 400 600 800 1000 1200 1400 1600 Idle-time Determ.: Max-idle-time Determ.: Avg-idle-time Determ.: Min-idle-time Random: Max-idle-time Random: Avg-idle-time Random: Min-idle-time Q-random: Max-idle-time Q-random: Avg-idle-time Q-random: Min-idle-time (c) 0 20 40 60 80 100 120 Number of robots 0 500 1000 1500 2000 2500 3000 3500 Idle-time Determ.: Max-idle-time Determ.: Avg-idle-time Determ.: Min-idle-time Random: Max-idle-time Random: Avg-idle-time Random: Min-idle-time Q-random: Max-idle-time Q-random: Avg-idle-time Q-random: Min-idle-time (d) Figure 4.6: Comparison of the idle-time obtained in the experiments using the strategies random, quasi-random (Q-random) and deterministic: (a) 10 ×10 grid SCS, (b) 15 ×15 grid SCS, (c) 20 ×20 grid SCS and (d) 30 ×30 grid SCS.
120 CHAPTER 4. RANDOMIZED SCS’S the worst case, average case and best case we define the functions max_idleWN(k) = max e∈E(WN){idlee(k)}, avg_idleWN(k) = 1 |E(WN)|X e∈E(WN) idlee(k),and min_idleWN(k) = min e∈E(WN){idlee(k)},respectively. We have computed these three functions using the three mentioned strategies and the results are shown in Figure 4.6. The three functions max_idle,avg_idle and min_idle are shown using dotted, solid and dashed stroke respectively. These functions are shown in three different colors: blue, orange and red for random, quasi-random and deterministic strategy, respectively. Figures 4.6(a), 4.6(b), 4.6(c) and 4.6(d) correspond to grid SCSs of sizes 10 × 10,15 ×15,20 ×20 and 30 ×30, respectively. In every subfigure we show the evolution of max_idle,avg_idle and min_idle for the three strategies. Note that, in the charts of Figure 4.6 we do not show the behavior of the functions until the maximum tested value of k(which is N2) because we want to emphasize the differences between the three tested strategies and these differences are evident for low values of k(after a certain value of k, the functions are similar for all the strategies). Note that, when using low values of k, there is a huge difference between the deterministic strategy and the other ones. This difference is not surprising because from Lemma 3.3.8, we know that an N×Ngrid SCS graph has Nrings and to cover everything using the deterministic strategy, at least one robot per ring is required, Lemma 3.3.2. Therefore, with less than Nrobots is not possible to cover every point and we get a very high idle-time. In these cases the idle-time is bounded by the duration of the simulation (4N2), although, what really happens is that some points are never visited. Note that, because the starting positions are taken randomly, even if k≥N, some rings could be empty of robots. Therefore, all the points involved in these rings are uncovered. Also, note that the max_idle is not 4N2for every k < N. That is because the value idlee(k)is amortized among the 10 repetitions of the experiment (in some experiment E(i) N,k a ring rmay be empty of robots and then idle(i) e(k)=4N2for every arc einvolved in r, but in some other experiment E(j) N,k, the ring rmay have c > 0robots, thus, idle(j) e(k) = N/c for every arc einvolved in r). Notice that with the random or quasi-random strategies we get a very similar behavior. In fact, a very good result because the function avg_idleWNis close to the function f(k) = N2/k and this is the best possible behavior taking into account that we have 2πN2length of trajectory (the sum of the N2circles) to cover and krobots moving at 2πunits of length per time unit. Moreover, by using one of these random strategies, the function avg_idleWNstarts decreasing rapidly and, around to the value k=N=√n(recall n=N2in these grid SCSs), the
4.3. EXPERIMENTAL RESULTS 121 2 4 6 8 10 12 14 16 Number of robots 0 50 100 150 200 250 300 350 400 Isolation-time Determ.: Max-idle-time Determ.: Avg-idle-time Determ.: Min-idle-time Random: Max-idle-time Random: Avg-idle-time Random: Min-idle-time Q-random: Max-idle-time Q-random: Avg-idle-time Q-random: Min-idle-time (a) 5 10 15 20 25 Number of robots 0 200 400 600 800 Isolation-time Determ.: Max-idle-time Determ.: Avg-idle-time Determ.: Min-idle-time Random: Max-idle-time Random: Avg-idle-time Random: Min-idle-time Q-random: Max-idle-time Q-random: Avg-idle-time Q-random: Min-idle-time (b) 0 10 20 30 40 50 Number of robots 0 200 400 600 800 1000 1200 1400 1600 Isolation-time Determ.: Max-idle-time Determ.: Avg-idle-time Determ.: Min-idle-time Random: Max-idle-time Random: Avg-idle-time Random: Min-idle-time Q-random: Max-idle-time Q-random: Avg-idle-time Q-random: Min-idle-time (c) 0 10 20 30 40 50 60 70 Number of robots 0 500 1000 1500 2000 2500 3000 3500 Isolation-time Determ.: Max-idle-time Determ.: Avg-idle-time Determ.: Min-idle-time Random: Max-idle-time Random: Avg-idle-time Random: Min-idle-time Q-random: Max-idle-time Q-random: Avg-idle-time Q-random: Min-idle-time (d) Figure 4.7: Comparison of the isolation-time obtained in the experiments using the strategies random, quasi-random (Q-random) and deterministic: (a) 10 ×10 grid SCS, (b) 15 ×15 grid SCS, (c) 20 ×20 grid SCS and (d) 30 ×30 grid SCS. decreasing rate is notably reduced. This behavior indicates that, when one of the random strategies is being used in a SCS with k≥Nrobots, the addition of more robots to the system does not represent a significant improvement of the idle-time. Another conclusion that we can extract from the experiments is that, using any of the two random strategies with very few robots (k≈N), the idle-time is really good. However, to get good results using the deterministic strategy we need, with high probability, a much larger number of robots. 4.3.3 Experiments for the isolation-time Note that every meeting between two robots in an N×Ngrid SCS takes place at one of the vertex of the walking graph WN. Hence, in an N×Ngrid SCS using a set Uof krobots, the isolation-time of the system is the expected time
122 CHAPTER 4. RANDOMIZED SCS’S between two consecutive meetings at a vertex of WNusing krobots. In order to measure this value, we do the following: in each experiment E(i) N,k, for every robot u∈U, we count the number of times that umeets some other robot and when these meetings occur. Having all the meetings of uwe can compute the average time isolation(i) u(k)between consecutive meetings of uin the experiment E(i) N,k. In order to compare the isolation-time of the strategies having into account the worst case, average case and best case, we define the functions: max_isolation(i) WN(k) = max u∈U{isolation(i) u(k)}, avg_isolation(i) WN(k) = 1 kX u∈U isolation(i) u(k), min_isolation(i) WN(k) = min u∈U{isolation(i) u(k)}, respectively. Then, we compute the averaged values all over the 10 repetitions of the experiments: max_isolationWN(k) = 10 X i=1 max_isolation(i) WN(k) 10 , avg_isolationWN(k) = 10 X i=1 avg_isolation(i) WN(k) 10 , min_isolationWN(k) = 10 X i=1 min_isolation(i) WN(k) 10 . We have computed the values of these three global functions using the three tested strategies and the results are shown in Figure 4.7. The three functions max_isolation,avg_isolation and min_isolation are shown using dotted, solid and dashed stroke, respectively. These functions are shown in three different colors: blue, orange and red for random, quasi-random and deterministic strategy, respectively. Figures 4.7(a), 4.7(b), 4.7(c) and 4.7(d) correspond to grid SCSs of sizes 10×10, 15×15,20×20 and 30×30, respectively. In every subfigure, we show the evolution of the max_isolation,avg_isolation and min_isolation for the three strategies for k≥2(note that a single robot in the system is always isolated). As in the previous subsection, Figure 4.7 does not show the behavior of the functions until the maximum tested value of kbecause the differences between the strategies are much more evident for low values of k(after a certain value of k, the functions are similar between them for all the strategies). Note that, using low values of k, the deterministic strategy is much worse than the random ones. Notice that for two robots the values of max_isolation,avg_isolation and min_isolation are the same (that is, the three functions start at the same point for every strategy).
4.3. EXPERIMENTAL RESULTS 123 0 20 40 60 80 100 Number of robots 100 101 Isolation-time (log scale) Random: Max-idle-time Random: Avg-idle-time Random: Min-idle-time Q-random: Max-idle-time Q-random: Avg-idle-time Q-random: Min-idle-time (a) 0 50 100 150 200 Number of robots 100 101 Isolation-time (log scale) Random: Max-idle-time Random: Avg-idle-time Random: Min-idle-time Q-random: Max-idle-time Q-random: Avg-idle-time Q-random: Min-idle-time (b) 0 50 100 150 200 250 300 350 400 Number of robots 100 101 102 Isolation-time (log scale) Random: Max-idle-time Random: Avg-idle-time Random: Min-idle-time Q-random: Max-idle-time Q-random: Avg-idle-time Q-random: Min-idle-time (c) 0 200 400 600 800 Number of robots 100 101 102 Isolation-time (log scale) Random: Max-idle-time Random: Avg-idle-time Random: Min-idle-time Q-random: Max-idle-time Q-random: Avg-idle-time Q-random: Min-idle-time (d) Figure 4.8: Comparison of the isolation-time obtained in the experiments using the strategies random and quasi-random (Q-random): (a) 10 ×10 grid SCS, (b) 15 ×15 grid SCS, (c) 20 ×20 grid SCS and (d) 30 ×30 grid SCS.
124 CHAPTER 4. RANDOMIZED SCS’S This behavior is because when a robot has a meeting, it is with the other one, so, they both have exactly the same statistics. Therefore, the average, maximum and minimum isolation times of them have the same value. From Theorem 3.4.45, we know that in an N×Ngrid SCS with robots using the deterministic strategy, two robots meet each other if and only if they start in circles of the same row or column. Thus, using kN2robots, it is very probable that a robot starts in a circle whose row and column are different from the rows and columns of any other robot in the system. Because of this, the values of max_isolation are so high for small values of k. Also, note that using a relative small number of robots, but greater than 2, the probability of at least two of them start at the same column or the same row is high. Because of this, the min_isolation function decreases quickly. Therefore, using the deterministic strategy there is a huge difference between the functions max_isolation, avg_isolation and min_isolation. Finally, notice that avg_isolation is closer to min_isolation than to max_isolation. This indicates that using a small group of robots there is a high probability that one of them is isolated but, it is very probable that the number of non-isolated robots is greater than the number of isolated robots. In Figure 4.7, it is difficult to observe the behavior of the random strategies due to the high values of isolation-time using the deterministic strategy. Notice that we get a very similar behavior using any of the randomized strategies, which it is much better than using the deterministic strategy. We have added Figure 4.8 to compare the values of isolation-time using the random strategies. We have used a logarithmic scale in the Isolation-time axis. Notice that, the greater the number of robots is, the better Quasi-random strategy is with respect to Random strategy. Another conclusion that we can extract from Figure 4.8 is that, using any of the random strategies, with very few robots respect to the number of trajectories (cells), i.e. k≈N=√n, we obtain a very good value of isolation-time. However, to get good results using the deterministic strategy we need, with high probability, a much larger number of robots (see Figure 4.7). Moreover, the value k=Nmarks a threshold in the function avg_isolation when one of the two random strategies is being used because, the addition of more robots to a SCS with k≥Nrobots does not represent a significant reduction of the isolation-time. 4.3.4 Experiments for the broadcast-time In this subsection we study the broadcast-time measure using the three different proposed strategies for grid SCSs. To evaluate this measure, we have elaborated a different experiment. Suppose that we have an N×Ngrid SCS Fwith k≥ 2 (k∈N)robots. In order to estimate the broadcast-time of the system we do the following: In the walking graph WNof Fwe randomly set the kstarting positions of each robot with uniform probability, then we randomly choose a robot to emit a
4.3. EXPERIMENTAL RESULTS 125 101102 Number of robots (log scale) 101 102 Broadcast-time (log scale) Determ. Random Q-random (a) 101102 Number of robots (log scale) 101 102 103 Broadcast-time (log scale) Determ. Random Q-random (b) 101102 Number of robots (log scale) 101 102 103 Broadcast-time (log scale) Determ. Random Q-random (c) 101102103 Number of robots (log scale) 101 102 103 Broadcast-time (log scale) Determ. Random Q-random (d) Figure 4.9: Comparison of the broadcast-time obtained in the experiments using the strategies random, quasi-random (Q-random) and deterministic: (a) 10 ×10 grid SCS, (b) 15 ×15 grid SCS, (c) 20 ×20 grid SCS and (d) 30 ×30 grid SCS.
132 CHAPTER 4. RANDOMIZED SCS’S We state a summary of our observations in the experiments. Overall, the behavior was analyzed by increasing the size of the team of UAVs working on grid graphs. For the first study, our results pointed out that if we have few robots, as it is usual in practice, it is more convenient to use one of the random strategies instead of the deterministic one. Indeed, in this case, the results obtained with random strategies were much better than the behavior obtained using the deterministic strategy for the three tested measures. Although we can select clever initial positions for the robots in the deterministic strategy such that the properties of communication and coverage are satisfied, the system does not contemplate unpredictability. If some robots fail, the system can lose efficiency. As the experiments set, this drawback can be overcome using random strategies. The experiments also showed that the behavior of the random strategies is very similar for any of the proposed quality measures. In the second study, we observed that the estimated mixing time is small compared with the number of trajectories in the system and it increases slowly. The third experimental study showed that the theoretical bounds for the performance metrics are tight with the simulations. Future research could also focus on considering other random strategies, different topologies in the experiments, as well as a study on the influence of the value of the probability p, fixed as 0.5in this work.
Chapter 5 Block-sharing strategy Multi-robot task allocation in dynamic environments is one of the fundamental problems in cooperative robotics and a challenging area in operational research [39, 52, 78, 126, 137]: given a group of cooperative robots, a global task to be performed in a dynamic environment and a cost function, how should subtasks be allocated to the robots in order to complete the task while minimizing costs? Let us consider a task such as the cooperative manipulation of structures addressed in the ARCAS European Project (http://www.arcas-project.eu/) funded by the European Commission. One of the goals of this project is to assemble a structure using a team of aerial robots equipped with on-board manipulators. The practical interest of this system can be found in situations where it is required to build a structure in places with difficult access through conventional means (see Fig. 5.1). The use of aerial robots allows to perform assembly operations in any point in space, which in areas of difficult access represents a relevant advantage over ground robots. Assembly planning [53] is the process of creating a detailed plan to craft a whole product from separate parts by taking into account the geometry of the final structure, available resources to manufacture the product, fixture design, feeder and tool descriptions, etc. Efficient assembly plans can significantly reduce time and costs. The assembly planning problem has been shown to be NP-complete [73] and covers three main assembly subproblems: sequence planning, line balancing, and path planning. Reference [67] presents a classification of structures according to different features: number of hands, monotonicity (whether operations of intermediate placement of subassemblies are required), linearity (whether all assembly operations involve the insertion of a single part or multiple parts which have to be inserted 133
134 CHAPTER 5. BLOCK-SHARING STRATEGY Figure 5.1: Two aerial robots equipped with LWR KUKA robotic arms manipulating a bar to build a structure in places with difficult access by conventional means. simultaneously), and coherence (whether each part that is inserted will touch some other previously placed part). The structures considered in this chapter are sequential (for two robots), monotone, linear and contact-coherent. This chapter focuses on the line balancing stage and introduces a novel paradigm for coordinating multiple robots in the execution of cooperative tasks in dynamic scenarios. The basic idea is to share information within a group or block of robots before assigning subtasks to all the members of the block. In this way, the method simulates a centralized system using a decentralized approach in which the robots share information in order to guarantee a local optimal solution in each stage of the algorithm. Our strategy fits the locally centralized paradigm mentioned in [27] and allows the team to perform task allocation periodically in an entirely decentralized manner. Moreover, by allocating tasks to robots repeatedly, a team can adapt as circumstances change achieving fluid coordination. The block-information-sharing (BIS) strategy was introduced in [28] for area monitoring missions as a generalization of the one-to-one paradigm presented in [1, 2]. In these papers, the authors have experimentally demonstrated that this strategy converges to an optimal situation in which a particular objective function, the idle time function, is minimized. However, neither theoretical proofs on the convergence nor approach formalization have been published so far. In this chapter, the convergence of the BIS strategy is formally proved in a general task allocation scenario. Moreover, it is shown how to use this strategy to design a fault-tolerant approach for structure construction using a cooperative team of aerial robots. The robots work in parallel and the dynamic assignments of the tasks are performed using blocks in order to maintain a balanced allocation where each aerial robot approximately spends the same time to construct the assigned section. Thus, the maximum time a robot spends to complete the assigned
5.1. PROBLEM STATEMENT 135 section of the construction is minimized. Consequently, the benefit obtained is twofold: the total time for the construction is optimized and the robustness of the approach is guaranteed since the system is periodically re-balanced to cope with certain events, such as battery failure or the loss of some aerial robots, during the construction process. 5.1 Problem statement Consider a cooperative team of autonomous and heterogeneous robotic agents and a task which has to be accomplished by the team. In a cooperative framework, it is assumed that the task is divisible and parallelizable in such a way that it can be partitioned so that each subtask is assigned to a robot in the team. Individual agents execute their subtasks independently except in the common parts where neighbors need to coordinate their cooperation. The time to perform the overall task is determined by the maximum time spent by the individual robots on their subtasks while a balanced allocation needs to be maintained in order to prevent overload and ensure efficiency. Considering the parallel nature of this scenario, performing the task in the shortest possible time requires minimizing the maximum time spent by the individual robots. As in the ALB problems, the task to perform can be modeled as a set of operations where subtasks correspond to a disjoint partition of the task. The formalization of the problem is illustrated with two examples: (i) building a structure using assembly parts (we assume equal complexity of placing the parts) in which the task is the set of assembly operations; (ii) monitoring a region, where the task is the set of all points in the region. Let Tbe the set representing the general task to be performed, where each subtask is a subset of T. Let U1, U2, . . . , Unbe a team of nrobots to perform the task. The capability coefficient indicates the amount of operations which can be performed by a robot in a given time frame. Let ci∈Rdenote the capability coefficient of Uito perform a task. For scenario (i), the capability coefficient of a robot is the number of assembly operations that can be performed per unit of time; for scenario (ii) it indicates the area which can be monitored in one unit of time. Let µ: Σ →Rbe a function to measure the task T, where Σis a σ-algebra on T. For example, for a subtask T0⊆T, in (i) µ(T0)is the number of assembly operations in T0and in (ii) µ(T0)is the area of the region T0. The time required by the robot Uito perform a subtask T0is given by µ(T0) ci .
136 CHAPTER 5. BLOCK-SHARING STRATEGY Let Tibe the subtask assigned to the robot Ui. Our goal is to obtain a partition {T1, . . . , Tn}of Tsuch that max iµ(Ti) ci is minimized. Using the definitions above, the key issue addressed in this chapter is the following: Problem 5.1.1 (Efficient task allocation).Given a heterogeneous team of robots U1, U2, . . . , Unand a task T, Minimize f(T1, T2, . . . , Tn) = max iµ(Ti) ci s. t. n [ i=1 Ti=T, Ti∩Tj=∅,∀i6=j. If the general task Tis a discrete set of atomic (indivisible, basic) operations, that is, T={a1, a2, . . . , am}, then for a subtask Ti⊆T, it follows that µ(Ti) = X aj∈Ti µ({aj}) = m X j=1 µ({aj})xij where xij = 1 if aj∈Ti, and xij = 0 otherwise. Our problem can be rewritten as follows: Minimize f(x11, . . . , x1m, . . . , xn1, . . . , xnm) = max i m X j=1 µ({aj})xij ci (5.1) s. t. n X i=1 m X j=1 xij =m, n X i=1 xij =1,∀1≤j≤m.
5.2. BLOCK-INFORMATION-SHARING PARADIGM 137 Note that a generalization of example (i), where the complexity of placing pieces varies and ciis the capability of the i-th robot to manipulate pieces, can be also modelled using statement (5.1). It is easy to see that in an optimal allocation all robots spend the same amount of time to perform their respective subtasks according to their capabilities. Consequently, to ensure an optimal task allocation, it follows that: µ(Ti) = ci µ(T) n X j=1 cj .(5.2) In this chapter we are interested in a fault-tolerant and decentralized strategy to solve Problem 5.1.1 for multiple tasks. On the one hand, the conditions of the environment as well as the capabilities of the robots can change dynamically, requiring an update of the task allocation. On the other hand, in many real situations, robots work in an inaccessible areas and it is thus desirable to perform the tasks in a decentralized manner due to communication range limitations. Therefore, a decentralized strategy is required to recover and keep an optimal task allocation during the execution of a mission despite dynamical changes in the team or the environment. In the following section, the BIS strategy is presented as a solution to this problem. In the remainder of this chapter, it is assumed that the global task to be performed can be represented as a measurable set T, and every subtask is a measurable subset Tiof T. Also, in order to simplify the notation, the values of µ(T) and µ(Ti)are referred to as Tand Ti, respectively. 5.2 The block-information-sharing paradigm in dynamic task allocation problems The so-called one-to-one strategy [1, 2], which was initially applied to area monitoring missions, can be easily adapted to general tasks. Suppose that our team has a non-optimal task allocation which we wish to turn into an optimal one in a decentralized manner without any intervention of external information sources. The key idea behind the one-to-one strategy is to share the information on capabilities and subtasks among neighboring robots so they can re-allocate subtasks between them. It has been experimentally demonstrated that the task allocation in the system converges to an optimal partition of the general task when this process is repeated iteratively. Unfortunately, the convergence may be too slow in some cases. In [28], examples of configurations where the one-to-one strategy converges only slowly to an optimal partition are shown and the BIS strategy is introduced as a generalization of the one-to-one approach that allows to accelerate
138 CHAPTER 5. BLOCK-SHARING STRATEGY the convergence to an optimal solution. In this chapter, we lift the BIS strategy on a higher level of abstraction and present the approach as a general paradigm with multiple applications in cooperative robot systems. 5.2.1 General strategy Consider a general task to be executed by a cooperative team of heterogeneous robots equipped with wireless communication for information sharing. Furthermore, assume that the environment conditions as well as the individual performance of the robots change dynamically affecting the global performance of the team. We are interested in a strategy to obtain and maintain a balanced subtask allocation which allows to complete the global task in minimum time. As the communication range is limited, it is assumed that each robot can only share information with its neighbors. This assumption implies a communication graph: Nodes correspond to robots and an edge between to nodes exists only if the respective robots are able to share information. To ensure that all members of the team are involved in the strategy, the communication graph needs to be connected. In Figure 5.2 a two-dimensional communication graph is illustrated (in real-world applications with aerial robots, a three-dimensional graph can be considered). U1 U2 U3 U4 U5 U6 U7 U8 U9 U10 Figure 5.2: Representation of an area allocation among robots and the associated communication graph. We define a block as a connected subgraph of the communication graph which we denote with the indices of the robots within the block. For example, B= {1,3,4}denotes the block composed by the robots U1,U3and U4. A partition of the communication graph into blocks is a block-configuration. The BIS strategy supports two or more block-configurations such that their union contains all edges of the communication graph. Figure 5.3 shows two such block-configurations which, since their union contains all edges, can be used in the strategy. The BIS strategy is based on the organization of a team of robots according to a block-configuration, where, within a block, robots share information among each other. Before creating an allocation, the robots remain in their position until all information about capabilities and tasks has reached all of the robots in the block. The iterative approach is as follows: When the team completes a task allocation
5.2. BLOCK-INFORMATION-SHARING PARADIGM 139 using a block-configuration, another block-configuration is used in the next stage. The reallocation process in a block uses equation (5.2) locally. Formally, if Bis a block and Uiis a robot in B, the new subtask T0 ifor Uiis given by T0 i=ciPj∈BTj Pj∈Bcj .(5.3) U2 U3 U4 U5 U6 U7 U8 U9 U10 U1 (a) U1 U2 U3 U4 U5 U6 U7 U8 U9 U10 (b) Figure 5.3: Block-information-sharing partition samples. An example is given in Figure 5.3: Suppose that the robots start in the configuration shown in Figure 5.3a with partition into blocks {1,2},{3,4,5,6,7,8}and {9,10}. Within each block, robots share information and reallocate their subtasks. After this first step, each block has a task allocation that is locally optimal. In the next stage, the team considers the configuration shown in Figure 5.3b composed of the blocks {1,2,3,4,5}and {6,7,8,9,10}and reallocates the tasks in these blocks correctly. After that, the team returns to the previous configuration in Figure 5.3a and so on. In the next subsection, we formally prove that the BIS strategy, which takes advantage of local information to correctly distribute tasks, converges to an optimal task allocation for Problem 5.1.1. We aim to minimize the maximum time required by a robot to perform its subtask. In this scenario, which corresponds to an optimal solution, all heterogeneous robots spent an equal amount of time. The BIS strategy tends to produce such an allocation and ensures good performance for setups for which a balanced allocation is optimal. Consequently, this paradigm can be applied to multiple scenarios where a task is executed by cooperative robots. It allows to design efficient decentralized algorithms to optimize different objective functions, for instance, the maximum idle time in monitoring or surveillance missions [1, 2]. We furthermore identify the possibility of applying this scheme (sharing information and taking decisions in blocks while alternating block-configurations) in alternative scenarios where any type of information (which is not necessarily related to task allocation) is propagated in order to optimize the global system performance or a specific cost function (other than the robots spending an equal amount of time to perform their subtasks).
140 CHAPTER 5. BLOCK-SHARING STRATEGY 5.2.2 Convergence proof The following conditions are assumed: the general task is divisible and parallelizable, the communication graph is connected and the union of the selected block-configurations is a covering of the set of edges of the communication graph. The BIS strategy is an iterative approach where each iteration corresponds to a different block-configuration of the team. Let us represent by T(j) rthe subtask assigned to the robot Urin the j-th iteration. If Urbelongs to block Bin the j-th iteration then the equation (5.3) is written as T(j) r=crPi∈BT(j−1) i Pi∈Bci . In the following results we use the values: M(j)= max i(T(j) i ci)and m(j)= min i(T(j) i ci), with i∈ {1, . . . , n}. Lemma 5.2.1. For all k≥0it follows that m(j)≤T(j+k) i ci≤M(j)∀i∈ {1, . . . , n}. Proof. We proceed to use mathematical induction in k. If k= 0, then m(j)≤ T(j+k) i ci =T(j) i ci≤M(j)by definition of M(j)and m(j). Assume as an induction hypothesis that for a fixed value kthe claim is fulfilled, m(j)≤T(j+k) i ci≤M(j). Let Urbe an arbitrary robot and let Bbe the block where Urlies in the (j+k+ 1)-th iteration, then: T(j+k+1) r=crPi∈BT(j+k) i Pi∈Bci .
5.2. BLOCK-INFORMATION-SHARING PARADIGM 141 From the hypothesis we deduce: cim(j)≤T(j+k) i≤ciM(j) Pi∈Bcim(j)≤Pi∈BT(j+k) i≤Pi∈BciM(j) m(j)·Pi∈Bci≤Pi∈BT(j+k) i≤M(j)·Pi∈Bci m(j)≤Pi∈BT(j+k) i Pi∈Bci≤M(j) crm(j)≤crPi∈BT(j+k) i Pi∈Bci≤crM(j) crm(j)≤T(j+k+1) r≤crM(j) and the result follows. Lemma 5.2.2. For all k, l ≥0it follows that: (a) if m(j)<T(j+k) i ci then m(j)<T(j+k+l) i ci (b) if T(j+k) i ci < M(j)then T(j+k+l) i ci < M(j) Proof. Only claim (a) is proven since the proof for claim (b) is analogous. Mathematical induction in lwill be used. If l= 0, it follows that T(j+k+l) i ci =T(j+k) i ci > m(j). Suppose as induction hypothesis that m(j)<T(j+k+l) i ci for a fixed value l. Let Ur be an arbitrary robot and let Bbe the block where Urlies in the (j+k+l+ 1)-th iteration, then: T(j+k+l+1) r=crPi∈BT(j+k+l) i Pi∈Bci > crPi∈Bcim(j) Pi∈Bci = =cr m(j)Pi∈Bci Pi∈Bci =crm(j) and the result follows. We are ready to prove the main result of this section.