Skip to main content
Log in

Stochastic Cellular Automata Solutions to the Density Classification Problem

When Randomness Helps Computing

  • Published:
Theory of Computing Systems Aims and scope Submit manuscript

Abstract

In the density classification problem, a binary cellular automaton (CA) should decide whether an initial configuration contains more 0s or more 1s. The answer is given when all cells of the CA agree on a given state. This problem is known for having no exact solution in the case of binary deterministic one-dimensional CA.

We investigate how randomness in CA may help us solve the problem. We analyse the behaviour of stochastic CA rules that perform the density classification task. We show that describing stochastic rules as a “blend” of deterministic rules allows us to derive quantitative results on the classification time and the classification time of previously studied rules.

We introduce a new rule whose effect is to spread defects and to wash them out. This stochastic rule solves the problem with an arbitrary precision, that is, its quality of classification can be made arbitrarily high, though at the price of an increase of the convergence time. We experimentally demonstrate that this rule exhibits good scaling properties and that it attains qualities of classification never reached so far.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5

Similar content being viewed by others

Notes

  1. Both terms ‘stochastic’ and ‘probabilistic’ CA are found in literature. We prefer to employ the former as etymologically the Greek word ‘stochos’ implies the idea of goal, aim, target or expectation.

  2. Note that defining rigorously the sequence of random variables x t obtained from F would require to introduce advanced tools from the probability theory.

  3. We give the “classical” rule code into parenthesis; it is obtained by converting the sequence of 8 bits of the transition table ( 0 0 0 to 1 1 1) to the corresponding decimal number.

  4. Rigorously, one needs to use the “stopped” process \(Y_{t} = X^{2}_{t\wedge T} - v \cdot(t \wedge T) \).

References

  1. Alonso-Sanz, R., Bull, L.: A very effective density classifier two-dimensional cellular automaton with memory. J. Phys. A 42(48), 485,101 (2009)

    Article  MathSciNet  Google Scholar 

  2. Bénézit, F.: Distributed average consensus for wireless sensor networks. Ph.D. thesis, EPFL, Lausanne (2009). doi:10.5075/epfl-thesis-4509

  3. Boccara, N., Fukś, H.: Number-conserving cellular automaton rules. Fundam. Inform. 52(1–3), 1–13 (2002)

    MATH  Google Scholar 

  4. Busic, A., Fatès, N., Mairesse, J., Marcovici, I.: Density classification on infinite lattices and trees (2011). ArXiv:1111.4582. Short version to appear in the proceedings of LATIN 2012, LNCS series, vol. 7256

  5. Capcarrere, M.S., Sipper, M., Tomassini, M.: Two-state, r=1 cellular automaton that classifies density. Phys. Rev. Lett. 77(24), 4969–4971 (1996)

    Article  Google Scholar 

  6. Darabos, C., Giacobini, M., Tomassini, M.: Scale-free automata networks are not robust in a collective computational task. In: El Yacoubi, S., Chopard, B., Bandini, S. (eds.) Cellular Automata. Lecture Notes in Computer Science, vol. 4173, pp. 512–521. Springer, Berlin (2006)

    Chapter  Google Scholar 

  7. Fatès, N., Morvan, M., Schabanel, N., Thierry, E.: Fully asynchronous behavior of double-quiescent elementary cellular automata. Theor. Comput. Sci. 362, 1–16 (2006)

    Article  MATH  Google Scholar 

  8. Gács, P., Kurdiumov, G.L., Levin, L.A.: One-dimensional homogeneous media dissolving finite islands. Probl. Pereda. Inf. 14, 92–96 (1987)

    Google Scholar 

  9. Land, M., Belew, R.K.: No perfect two-state cellular automata for density classification exists. Phys. Rev. Lett. 74(25), 5148–5150 (1995)

    Article  Google Scholar 

  10. Martins, C.L., de Oliveira, P.P.: Evolving sequential combinations of elementary cellular automata rules. In: Capcarrere, M.S., Freitas, A.A., Bentley, P.J., Johnson, C.G., Timmis, J. (eds.) Advances in Artificial Life. Lecture Notes in Computer Science, vol. 3630, pp. 461–470. Springer, Berlin (2005)

    Chapter  Google Scholar 

  11. Mitchell, M., Crutchfield, J.P., Hraber, P.T.: Evolving cellular automata to perform computations: Mechanisms and impediments. Physica D 75, 361–391 (1994)

    Article  MATH  Google Scholar 

  12. Oliveira, G.M.B., Martins, L.G.A., de Carvalho, L.B., Fynn, E.: Some investigations about synchronization and density classification tasks in one-dimensional and two-dimensional cellular automata rule spaces. Electron. Notes Theor. Comput. Sci. 252, 121–142 (2009)

    Article  Google Scholar 

  13. de Oliveira, P.P., Bortot, J.C., Oliveira, G.M.: The best currently known class of dynamically equivalent cellular automata rules for density classification. Neurocomputing 70(1–3), 35–43 (2006)

    Article  Google Scholar 

  14. Packard, N.H.: Adaptation toward the edge of chaos. In: Dynamic Patterns in Complex Systems, pp. 293–301. World Scientific, Singapore (1988)

    Google Scholar 

  15. de Sá, P.G., Maes, C.: The Gacs-Kurdyumov-Levin automaton revisited. J. Stat. Phys. 67, 507–522 (1992)

    Article  MATH  Google Scholar 

  16. Schüle, M., Ott, T., Stoop, R.: Computing with probabilistic cellular automata. In: ICANN’09: Proceedings of the 19th International Conference on Artificial Neural Networks, pp. 525–533. Springer, Berlin (2009)

    Google Scholar 

  17. Fukś, H.: Solution of the density classification problem with two cellular automata rules. Phys. Rev. E 55(3), R2081–R2084 (1997)

    Article  Google Scholar 

  18. Fukś, H.: Nondeterministic density classification with diffusive probabilistic cellular automata. Phys. Rev. E 66(6), 066106 (2002)

    Article  Google Scholar 

  19. Stone, C., Bull, L.: Evolution of cellular automata with memory: The density classification task. Biosystems 97(2), 108–116 (2009)

    Article  Google Scholar 

Download references

Acknowledgements

The author expresses his sincere gratitude to the two anonymous referees and to his collaborators for interesting remarks and suggestions which resulted from a careful reading of the manuscript.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Nazim Fatès.

Additional information

Extended version of “Stochastic Cellular Automata Solve the Density Classification Problem with an Arbitrary Precision”, Proceedings of STACS 2011, Dortmund, Germany.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Fatès, N. Stochastic Cellular Automata Solutions to the Density Classification Problem. Theory Comput Syst 53, 223–242 (2013). https://doi.org/10.1007/s00224-012-9386-3

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00224-012-9386-3

Keywords

Navigation