,
Robert Elsässer
,
Tom Friedetzky
,
Thorsten Götte
,
Lukas Hintze
,
Dominik Kaaser
Creative Commons Attribution 4.0 International license
We consider the problem of counting the number of agents in a population protocol where the agents are connected by an underlying graph G = (V,E) with |V| = n nodes. In each step, a random scheduler selects an edge uniformly at random, and the incident nodes make a state transition. As per standard assumptions, agents are identical and anonymous, that is, have no identifiers. To break symmetry, in each interaction one of the agents is declared as the initiator uniformly at random. Our size counting protocol uses Õ(n) states and stabilizes in O(𝐁(G)⋅log²(n) + 𝐋(G)⋅log(n)) interactions with high probability, where 𝐁(G) is the broadcast time and 𝐋(G) is the load balancing time. Our protocol is based on novel protocols for sampling independent random bits (given that the scheduler determines an initiator and responder) and approximating log n up to an additive error of O(log log n) with high probability. The latter uses O(polylog(n)) states and O(𝐁(G)⋅log² n) interactions. Both results may be of independent interest. The main protocol for exact counting requires the presence of a unique leader, the other two do not. None of the protocols requires any knowledge about the graph G. We conclude with impossibility results for terminating uniform population protocols that compute graph-size properties (like counting nodes or determining parity) with and without a leader.
@InProceedings{berenbrink_et_al:LIPIcs.DISC.2026.34,
author = {Berenbrink, Petra and Els\"{a}sser, Robert and Friedetzky, Tom and G\"{o}tte, Thorsten and Hintze, Lukas and Kaaser, Dominik},
title = {{Counting in Population Protocols on Graphs}},
booktitle = {40th International Symposium on Distributed Computing (DISC 2026)},
pages = {34:1--34:20},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-454-3},
ISSN = {1868-8969},
year = {2026},
volume = {397},
editor = {Moses Jr., William K. and Censor-Hillel, Keren},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.DISC.2026.34},
URN = {urn:nbn:de:0030-drops-281409},
doi = {10.4230/LIPIcs.DISC.2026.34},
annote = {Keywords: Population Protocols on Graphs, Counting, Load Balancing}
}