Population protocol
A population protocol is a distributed computing model formed by resource-limited mobile agents which meet in a random way according to an interaction graph. Functions are computed by updating the state of agents whenever they meet based on their previous state, and the result of the computation can be read in the states of the agents once the computation has converged.
Model
There is a set [math]\displaystyle{ N = \{1, 2, \ldots, n\} }[/math] of nodes. Each node is a finite automaton with [math]\displaystyle{ s }[/math] states. An important class of population protocols are majority algorithms, where the goal is to compute the majority bit: each node starts with a belief bit in [math]\displaystyle{ \{0,1\} }[/math]and the goal is to design a protocol at the end of which the belief bit of every node is the correct initial majority bit.
The discrete time version of the model is as follows: at each point [math]\displaystyle{ t=1,2,\ldots }[/math]in time, some node [math]\displaystyle{ i }[/math] is selected uniformly at random. Then the node is matched with another node [math]\displaystyle{ j }[/math], which is chosen uniformly at random from the set of neighbors of node [math]\displaystyle{ i }[/math]. Afterwards, nodes [math]\displaystyle{ i }[/math] and [math]\displaystyle{ j }[/math] exchange memory contents and update their states. Alternatively, one can consider a continuous time model where each node [math]\displaystyle{ i }[/math] has a Poisson clock that rings at unit rate. When the clock of a node rings, that node communicates with a random neighbor.
Protocols are often designed to minimize the convergence time or the amount of memory required per node or both.[1]
Three State Protocol
For the problem of computing the majority (consensus), there is a well-known protocol that requires only three memory states per node and has been analyzed for complete interaction graphs.[2][3] This protocol works as follows. Let each node [math]\displaystyle{ i }[/math] initialize its memory state to their initial belief bit [math]\displaystyle{ b_i \in \{0,1\}. }[/math] At each point in time, when two nodes communicate, they update their state according to the following table. The row labels give the initiator’s state and the column labels the responder’s state.
0 | ? | 1 | |
---|---|---|---|
0 | (0,0) | (0,0) | (0,?) |
? | (?,0) | (?,?) | (?,1) |
1 | (1,?) | (1,1) | (1,1) |
In words, if a node with belief [math]\displaystyle{ 0 }[/math] gets matched with a node with belief [math]\displaystyle{ 0 }[/math], then both nodes keep their belief; the update is similar if both beliefs are [math]\displaystyle{ 1 }[/math] or both are [math]\displaystyle{ ? }[/math]. However, if the initiator's belief is [math]\displaystyle{ 0 }[/math] and the responder's belief is [math]\displaystyle{ ? }[/math], then the respondent updates their belief to [math]\displaystyle{ 0 }[/math]. If on the other hand the initiator has belief [math]\displaystyle{ 0 }[/math] and the responder has belief [math]\displaystyle{ 1 }[/math], then the responder changes their belief to [math]\displaystyle{ ? }[/math]. Note that this protocol is one-way: every interaction changes at most the responder’s state; thus it can be implemented with one-way communication.
Angluin, Aspnes, and Eisenstat [2] showed that, from any initial configuration that does not consist of all "[math]\displaystyle{ ? }[/math]"s, the three-state approximate majority protocol converges to either all nodes having belief [math]\displaystyle{ 0 }[/math] or all nodes having belief [math]\displaystyle{ 1 }[/math] within [math]\displaystyle{ O(n \cdot \log n) }[/math] interactions with high probability. Additionally, the value chosen will be the majority non-"[math]\displaystyle{ ? }[/math]" initial value, provided it exceeds the minority by a sufficient margin.
The following picture shows the evolution of the three state protocol on a set of [math]\displaystyle{ n=500 }[/math] nodes, where one third of the nodes have initial belief bit [math]\displaystyle{ 0 }[/math], while the remaining two thirds have initial belief bit [math]\displaystyle{ 1 }[/math]. The fraction of "[math]\displaystyle{ ? }[/math]" nodes (in orange) starts at zero, increases for a while, and then goes again to zero.
History
Population protocols were introduced by Dana Angluin et al.[4] as one of the first models of computation to be fully decentralized and to involve agents with highly limited resources, e.g., those found in sensor networks. Since then, this abstract computation model found applications in robotics[5] and chemistry.[6]
See also
Swarm Intelligence
References
- ↑ Alistarh, Dan; Aspnes, James; Eisenstat, David; Gelashvili, Rati; Rivest, Ronald L. (2017-01-16). Time-space trade-offs in population protocols. Soda '17. Society for Industrial and Applied Mathematics. pp. 2560–2579. Bibcode: 2016arXiv160208032A. https://dl.acm.org/citation.cfm?id=3039686.3039855.
- ↑ 2.0 2.1 Angluin, Dana; Aspnes, James; Eisenstat, David (2007), "A Simple Population Protocol for Fast Robust Approximate Majority", Distributed Computing, Lecture Notes in Computer Science, 4731, Springer Berlin Heidelberg, pp. 20–32, doi:10.1007/978-3-540-75142-7_5, ISBN 9783540751410
- ↑ Perron, E.; Vasudevan, D.; Vojnovic, M. (April 2009). "Using Three States for Binary Consensus on Complete Graphs". IEEE Infocom 2009. IEEE. pp. 2527–2535. doi:10.1109/infcom.2009.5062181. ISBN 9781424435128.
- ↑ Dana Angluin, James Aspnes, Zoë Diamadi, Michael J. Fischer, René Peralta. Computation in networks of passively mobile finite-state sensors. Distributed Computing, 2006. [1]
- ↑ Gregory Dudek, Michael Jenkin. Computational Principles of Mobile Robotics, Chapter 10.
- ↑ Ho-Lin Chen, David Doty, David Soloveichik. Deterministic function computation with chemical reaction networks. Natural Computing, 2014. [2]
Original source: https://en.wikipedia.org/wiki/Population protocol.
Read more |