Distributed Pattern Formation in a Ring

Motivated by concerns about diversity in social networks, we consider the following pattern formation problems in rings. Assume mobile agents are located at the nodes of an -node ring network. Each agent is assigned a colour from the set . The ring is divided into contiguous {\em blocks} or neighbourhoods of length . The agents are required to rearrange themselves in a distributed manner to satisfy given diversity requirements: in each block and for each colour , there must be exactly agents of colour in block . Agents are assumed to be able to see agents in adjacent blocks, and move to any position in adjacent blocks in one time step. When the number of colours , we give an algorithm that terminates in time where is the total number of agents of colour and is the minimum number of agents of colour required in any block. When the diversity requirements are the same in every block, our algorithm requires steps, and is asymptotically optimal. Our algorithm generalizes for an arbitrary number of colours, and terminates in steps. We also show how to extend it to achieve arbitrary specific final patterns, provided there is at least one agent of every colour in every pattern.
View on arXiv