Skip to main content

Space-Optimal Counting in Population Protocols

  • Conference paper
  • First Online:
Distributed Computing (DISC 2015)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 9363))

Included in the following conference series:

Abstract

In this paper, we study the fundamental problem of counting, which consists in computing the size of a system. We consider the distributed communication model of population protocols of finite state, anonymous and asynchronous mobile devices (agents) communicating in pairs (according to a fairness condition). This work significantly improves the previous results known for counting in this model, in terms of (exact) space complexity. We present and prove correct the first space-optimal protocols solving the problem for two classical types of fairness, global and weak. Both protocols require no initialization of the counted agents.

The protocol designed for global fairness, surprisingly, uses only one bit of memory (two states) per counted agent. The protocol, functioning under weak fairness, requires the necessary \(\log P\) bits (P states, per counted agent) to be able to count up to P agents. Interestingly, this protocol exploits the intriguing Gros sequence of natural numbers, which is also used in the solutions to the Chinese Rings and the Hanoi Towers puzzles.

The extended version of this paper can be consulted in [8].

J. Beauquier—The work of this author was partially supported by the Israeli-French Maimonide research project.

J. Burman—The work of this author was partially supported by the Israeli-French Maimonide and the INS2I PEPS JCJC research projects.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Afek, Y., Awerbuch, B., Plotkin, S.A., Saks, M.E.: Local management of a global resource in a communication network. In: Symposium on Foundations of Computer Science, pp. 347–357 (1987)

    Google Scholar 

  2. Allouche, J.-P., Shallit, J.O.: Automatic Sequences - Theory, Applications, Generalizations. Cambridge Univ. Press (2003). ISBN 978-0-521-82332-6

    Google Scholar 

  3. Angluin, D., Aspnes, J., Diamadi, Z., Fischer, M.J., Peralta, R.: Computation in networks of passively mobile finite-state sensors. Dist. Comp. 18(4), 235–253 (2006)

    Article  MATH  Google Scholar 

  4. Angluin, D., Aspnes, J., Eisenstat, D., Ruppert, E.: The computational power of population protocols. Dist. Comp. 20(4), 279–304 (2007)

    Article  MATH  Google Scholar 

  5. Angluin, D., Aspnes, J., Fischer, M.J., Jiang, H.: Self-stabilizing population protocols. ACM Trans. Auton. Adapt. Syst. 3(4) (2008)

    Google Scholar 

  6. Baquero, C., Almeida, P.S., Menezes, R., Jesus, P.: Extrema propagation: Fast distributed estimation of sums and network sizes. IEEE Trans. Parallel Distrib. Syst. 23(4), 668–675 (2012)

    Article  Google Scholar 

  7. Beauquier, J., Burman, J., Clavière, S.: Comptage et nommage simples et efficaces dans les protocoles de populations symétriques. In: ALGOTEL 2014, pp. 1–4 , June 2014

    Google Scholar 

  8. Beauquier, J., Burman, J., Clavière, S., Sohier, D.: Space-Optimal Counting in Population Protocols [Extended Version]. Technical report, LRI - CNRS, University Paris-Sud, June 2015

    Google Scholar 

  9. Beauquier, J., Clement, J., Messika, S., Rosaz, L., Rozoy, B.: Self-stabilizing counting in mobile sensor networks with a base station. In: Pelc, A. (ed.) DISC 2007. LNCS, vol. 4731, pp. 63–76. Springer, Heidelberg (2007)

    Chapter  Google Scholar 

  10. Bournez, O., Chalopin, J., Cohen, J., Koegler, X.: Playing with population protocols. In: CSP, pp. 3–15 (2008)

    Google Scholar 

  11. Dolev, S., Gouda, M.G., Schneider, M.: Memory requirements for silent stabilization. Acta Inf. 36(6), 447–462 (1999)

    Article  MATH  MathSciNet  Google Scholar 

  12. Dolev, S., Israeli, A., Moran, S.: Self-stabilization of dynamic systems assuming only read/write atomicity. Dist. Comp. 7(1), 3–16 (1993)

    Article  MATH  Google Scholar 

  13. Emek, Y., Korman, A.: New bounds for the controller problem. In: DISC, pp. 22–34 (2009)

    Google Scholar 

  14. Fraigniaud, P., Pelc, A., Peleg, D., Perennes, S.: Assigning labels in an unknown anonymous network with a leader. Dist. Comp. 14(3), 163–183 (2001)

    Article  Google Scholar 

  15. Ganesh, A.J., Kermarrec, A.-M., Le Merrer, E., Massoulié, L.: Peer counting and sampling in overlay networks based on random walks. Dist. Comp. 20(4), 267–278 (2007)

    Article  MATH  Google Scholar 

  16. Gkantsidis, C., Mihail, M., Saberi, A.: Random walks in peer-to-peer networks: Algorithms and evaluation. Perform. Eval. 63(3), 241–263 (2006)

    Article  Google Scholar 

  17. Hinz, A.M., Klavzar, S., Milutinovic, U., Petr, C.: The Tower of Hanoi - Myths and Maths. Birkhäuser Basel (2013). ISBN 3034802366, 9783034802369

    Google Scholar 

  18. Izumi, T., Kinpara, K., Izumi, T., Wada, K.: Space-efficient self-stabilizing counting population protocols on mobile sensor networks. Theor. Comput. Sci. 552, 99–108 (2014)

    Article  MATH  MathSciNet  Google Scholar 

  19. Jiang, H.: Distributed Systems of Simple Interacting Agents. Ph.D thesis, Yale University (2007)

    Google Scholar 

  20. Kempe, D., Dobra, A., Gehrke, J.: Gossip-based computation of aggregate information. In: FOCS, pp. 482–491 (2003)

    Google Scholar 

  21. Korman, A., Kutten, S.: Controller and estimator for dynamic networks. Inf. Comput. 223, 43–66 (2013)

    Article  MATH  MathSciNet  Google Scholar 

  22. Kostoulas, D., Psaltoulis, D., Gupta, I., Birman, K.P., Demers, A.J.: Active and passive techniques for group size estimation in large-scale and dynamic distributed systems. Journal of Systems and Software 80(10), 1639–1658 (2007)

    Article  Google Scholar 

  23. Kuhn, F., Lynch, N.A., Oshman, R.: Distributed computation in dynamic networks. In: STOC, pp. 513–522 (2010)

    Google Scholar 

  24. Di Luna, G.A., Baldoni, R., Bonomi, S., Chatzigiannakis, I.: Conscious and unconscious counting on anonymous dynamic networks. In: Chatterjee, M., Cao, J., Kothapalli, K., Rajsbaum, S. (eds.) ICDCN 2014. LNCS, vol. 8314, pp. 257–271. Springer, Heidelberg (2014)

    Chapter  Google Scholar 

  25. Di Luna, G., Baldoni, R., Bonomi, S., Chatzigiannakis, I.: Counting in anonymous dynamic networks under worst-case adversary. In: ICDCS, pp. 338–347 (2014)

    Google Scholar 

  26. Le Merrer, E., Kermarrec, A.-M., Massoulié, L.: Peer to peer size estimation in large and dynamic networks: a comparative study. In: HPDC, pp. 7–17 (2006)

    Google Scholar 

  27. Michail, O., Chatzigiannakis, I., Spirakis, P.G.: Naming and counting in anonymous unknown dynamic networks. In: Higashino, T., Katayama, Y., Masuzawa, T., Potop-Butucaru, M., Yamashita, M. (eds.) SSS 2013. LNCS, vol. 8255, pp. 281–295. Springer, Heidelberg (2013)

    Chapter  Google Scholar 

  28. Mosk-Aoyama, D., Shah, D.: Computing separable functions via gossip. In: PODC, pp. 113–122 (2006)

    Google Scholar 

  29. Ribeiro, B.F., Towsley, D.F.: Estimating and sampling graphs with multidimensional random walks. In: ACM SIGCOMM, pp. 390–403 (2010)

    Google Scholar 

  30. Tel, G.: Introduction to Distributed Algorithms, 2nd edn. Cambridge University Press (2000)

    Google Scholar 

  31. Varagnolo, D., Pillonetto, G., Schenato, L.: Distributed statistical estimation of the number of nodes in sensor networks. In: IEEE Conference on Decision and Control, CDC, pp. 1498–1503 (2010)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Janna Burman .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Beauquier, J., Burman, J., Clavière, S., Sohier, D. (2015). Space-Optimal Counting in Population Protocols. In: Moses, Y. (eds) Distributed Computing. DISC 2015. Lecture Notes in Computer Science(), vol 9363. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-48653-5_42

Download citation

  • DOI: https://doi.org/10.1007/978-3-662-48653-5_42

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-662-48652-8

  • Online ISBN: 978-3-662-48653-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics