Fast and Exact Majority in Population Protocols

  • Dan Alistarh ,
  • Rati Gelashvili ,
  • Milan Vojnovic

MSR-TR-2015-13 |


Population protocols, roughly defined as systems consisting of large numbers of simple identical agents, interacting at random and updating their state following simple rules, are an important research topic at the intersection of distributed computing and biology. One of the fundamental tasks that a population protocol may solve is \emph{majority}: each node starts in one of two states; the goal is for all nodes to reach a correct consensus on which of the two states was initially the majority. Despite considerable research effort, known protocols for this problem are either exact but slow (taking linear parallel time to converge), or fast but approximate (with non-zero probability of error).

In this paper, we show that this trade-off between precision and speed is not inherent. We present a new protocol called \emph{Average and Conquer (AVC)} that solves majority \emph{exactly} in expected parallel convergence time $O(\log{n}/(s\epsilon) + \log{n}\log{s})$, where $n$ is the number of nodes, $\epsilon n$ is the initial node advantage of the majority state, and $s$ is the number of states the protocol employs. This shows that the majority problem can be solved exactly in time poly-logarithmic in $n$, provided that the memory per node is $s = \Omega(1/\epsilon)$. On the negative side, we establish a lower bound of $\Omega(1/\epsilon)$ on the expected parallel convergence time for the case of four memory states per node, and a lower bound of $\Omega(\log{n})$ parallel time for protocols using any number of memory states per node.