ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2202.12864
17
3

Dynamic size counting in population protocols

25 February 2022
David Doty
Mahsa Eftekhari
ArXivPDFHTML
Abstract

The population protocol model describes a network of anonymous agents that interact asynchronously in pairs chosen at random. Each agent starts in the same initial state sss. We introduce the *dynamic size counting* problem: approximately counting the number of agents in the presence of an adversary who at any time can remove any number of agents or add any number of new agents in state sss. A valid solution requires that after each addition/removal event, resulting in population size nnn, with high probability each agent "quickly" computes the same constant-factor estimate of the value log⁡2n\log_2 nlog2​n (how quickly is called the *convergence* time), which remains the output of every agent for as long as possible (the *holding* time). Since the adversary can remove agents, the holding time is necessarily finite: even after the adversary stops altering the population, it is impossible to *stabilize* to an output that never again changes. We first show that a protocol solves the dynamic size counting problem if and only if it solves the *loosely-stabilizing counting* problem: that of estimating log⁡n\log nlogn in a *fixed-size* population, but where the adversary can initialize each agent in an arbitrary state, with the same convergence time and holding time. We then show a protocol solving the loosely-stabilizing counting problem with the following guarantees: if the population size is nnn, MMM is the largest initial estimate of log⁡n\log nlogn, and s is the maximum integer initially stored in any field of the agents' memory, we have expected convergence time O(log⁡n+log⁡M)O(\log n + \log M)O(logn+logM), expected polynomial holding time, and expected memory usage of O(log⁡2(s)+(log⁡log⁡n)2)O(\log^2 (s) + (\log \log n)^2)O(log2(s)+(loglogn)2) bits. Interpreted as a dynamic size counting protocol, when changing from population size nprevn_{prev}nprev​ to nnextn_{next}nnext​, the convergence time is O(log⁡nnext+log⁡log⁡nprev)O(\log n_{next} + \log \log n_{prev})O(lognnext​+loglognprev​).

View on arXiv
Comments on this paper