9
4

Fast Approximate Counting and Leader Election in Populations

Abstract

We study the problems of leader election and population size counting for population protocols: networks of finite-state anonymous agents that interact randomly under a uniform random scheduler. We show a protocol for leader election that terminates in O(logm(n)log2n)O(\log_m(n) \cdot \log_2 n) parallel time, where mm is a parameter, using O(max{m,logn})O(\max\{m,\log n\}) states. By adjusting the parameter mm between a constant and nn, we obtain a single leader election protocol whose time and space can be smoothly traded off between O(log2n)O(\log^2 n) to O(logn)O(\log n) time and O(logn)O(\log n) to O(n)O(n) states. Finally, we give a protocol which provides an upper bound n^\hat{n} of the size nn of the population, where n^\hat{n} is at most nan^a for some a>1a>1. This protocol assumes the existence of a unique leader in the population and stabilizes in Θ(logn)\Theta{(\log{n})} parallel time, using constant number of states in every node, except the unique leader which is required to use Θ(log2n)\Theta{(\log^2{n})} states.

View on arXiv
Comments on this paper