We study population protocols: networks of anonymous agents that interact under a scheduler that picks pairs of agents uniformly at random. The size counting problem is that of calculating the exact number of agents in the population, assuming no leader (each agent starts in the same state). We give the first protocol that solves this problem in sublinear time. The protocol converges in time and uses states ($O(1) + 60 \log n1-O(\frac{\log \log n}{n})O(\log n \log \log n)$ in expectation. The time to converge is also in expectation. Crucially, unlike most published protocols with states, our protocol is uniform: it uses the same transition algorithm for any population size, so does not need an estimate of the population size to be embedded into the algorithm. A sub-protocol is the first uniform sublinear-time leader election population protocol, taking time and states. The state complexity of both the counting and leader election protocols can be reduced to and respectively, while increasing the time to .

生成讲解博客的中文版本

生成AI智能校验的中文版本