24
0

Distributed Pattern Formation in a Ring

Abstract

Motivated by concerns about diversity in social networks, we consider the following pattern formation problems in rings. Assume nn mobile agents are located at the nodes of an nn-node ring network. Each agent is assigned a colour from the set {c1,c2,,cq}\{c_1, c_2, \ldots, c_q \}. The ring is divided into kk contiguous {\em blocks} or neighbourhoods of length pp. The agents are required to rearrange themselves in a distributed manner to satisfy given diversity requirements: in each block jj and for each colour cic_i, there must be exactly ni(j)>0n_i(j) >0 agents of colour cic_i in block jj. 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 q=2q=2, we give an algorithm that terminates in time N1/n1+k+4N_1/n^*_1 + k + 4 where N1N_1 is the total number of agents of colour c1c_1 and n1n^*_1 is the minimum number of agents of colour c1c_1 required in any block. When the diversity requirements are the same in every block, our algorithm requires 3k+43k+4 steps, and is asymptotically optimal. Our algorithm generalizes for an arbitrary number of colours, and terminates in O(nk)O(nk) 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
Comments on this paper