arXiv:2611.06178cs.DCNov 2026

Manuscript Offprint

arXiv:2611.06178

Efficient Stable Word-RAM Simulation by Population Protocols

Leszek Gąsieniec, Tytus Grodzicki, Grzegorz Stachowiak

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The population protocol model studies computation by simple, indistinguishable agents whose states evolve through pairwise interactions. We consider the standard probabilistic variant, in which each interacting pair is selected uniformly at random. Inputs and outputs are represented in unary by the numbers of agents in designated states. Complexity is measured by the size of the state space and the stabilisation time, defined as the number of interactions until stabilisation divided by the population size nn. A protocol is efficient if both measures are polylogarithmic in nn, stable if it eventually stabilises to the correct output with probability 1, and silent if no agent changes state after stabilisation.

For fundamental problems such as leader election and majority, fast stable protocols in leaderless populations require a number of states that grows with nn. Despite substantial progress on these and other individual problems, including population size estimation, parity, and congruence, the general computational power of efficient stable population protocols remains largely unexplored.

We show that efficient stable population computation extends beyond individual problems and beyond the semilinear predicates, which characterise stable computation in the constant-state model. We develop a general framework for simulating P\mathcal{P}-programs: word-RAM programs whose running time and number of registers are polynomial in the word length w=Θ(log⁡n)w = \Theta(\log n). Our main result gives an efficient, stable, and silent simulation of every such program using only probabilistically scheduled pairwise interactions, with polylogarithmic stabilisation time both in expectation and with high probability (Theorem 1). The framework supports general word-oriented computations, including multiple outputs, and is not restricted to decision problems. These results open a systematic study of efficient stable population protocols: their computational power, resource trade-offs, and extensions to external or spatial data.

Our construction extends the MC+ protocols and system of weights introduced recently. MC+ protocols are fast Monte Carlo protocols whose failures, called anomalies, are eventually detected. Using MC+ majority comparisons against the weights, the protocol converts unary inputs into binary registers, with each bit stored in an individual agent. It maintains and manipulates these registers, directly emulating each RAM instruction through MC+ operations on single bits, before converting the binary outputs back to unary. If an anomaly is detected, it switches to a new universal rank-based backup that simulates the program stably and silently.

1 Introduction

The population protocol model [AAD +^{+}06] studies computation by populations of simple, indistinguishable entities, called agents, that communicate through pairwise interactions. Each agent stores a single state from a prescribed state space, and an interaction changes the states of the participating agents according to a common deterministic transition function. The initial configuration encodes the input, while the computation is required to stabilise in a configuration representing the solution.

We consider the standard probabilistic variant, in which a random scheduler selects an ordered pair of distinct agents, called the initiator and the responder, uniformly at random at each step. The sequential time is the number of interactions until stabilisation, whereas the parallel time, or simply the time, is the sequential time divided by the population size n. We call a protocol efficient if it uses a polylogarithmic number of states and stabilises in polylogarithmic time. A protocol is stable if it eventually stabilises to the correct output with probability 1, and silent if no agent changes state after stabilisation. An event occurs with high probability (whp) if its probability is at least 1−n−η1 - n^{-\eta} for any prescribed constant η>0\eta > 0, with the protocol constants chosen accordingly. Its complement has negligible probability. All logarithms are to base 2. Our simulation is stable and silent, with polylogarithmic stabilisation time both in expectation and whp.

We write a transition as A+B⟶A′+B′A + B \longrightarrow A' + B', meaning that an interaction between an initiator in state AA and a responder in state BB changes their states to A′A' and B′B', respectively. Some of our protocols use compound states: an agent state is a tuple of components from sets S1,…,SkS_1, \ldots, S_k, giving the full state space S1×⋯×SkS_1 \times \cdots \times S_k.

References (58)