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.
Similar content being viewed by others
Notes
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.
Note that defining rigorously the sequence of random variables x t obtained from F would require to introduce advanced tools from the probability theory.
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.
Rigorously, one needs to use the “stopped” process \(Y_{t} = X^{2}_{t\wedge T} - v \cdot(t \wedge T) \).
References
Alonso-Sanz, R., Bull, L.: A very effective density classifier two-dimensional cellular automaton with memory. J. Phys. A 42(48), 485,101 (2009)
Bénézit, F.: Distributed average consensus for wireless sensor networks. Ph.D. thesis, EPFL, Lausanne (2009). doi:10.5075/epfl-thesis-4509
Boccara, N., Fukś, H.: Number-conserving cellular automaton rules. Fundam. Inform. 52(1–3), 1–13 (2002)
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
Capcarrere, M.S., Sipper, M., Tomassini, M.: Two-state, r=1 cellular automaton that classifies density. Phys. Rev. Lett. 77(24), 4969–4971 (1996)
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)
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)
Gács, P., Kurdiumov, G.L., Levin, L.A.: One-dimensional homogeneous media dissolving finite islands. Probl. Pereda. Inf. 14, 92–96 (1987)
Land, M., Belew, R.K.: No perfect two-state cellular automata for density classification exists. Phys. Rev. Lett. 74(25), 5148–5150 (1995)
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)
Mitchell, M., Crutchfield, J.P., Hraber, P.T.: Evolving cellular automata to perform computations: Mechanisms and impediments. Physica D 75, 361–391 (1994)
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)
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)
Packard, N.H.: Adaptation toward the edge of chaos. In: Dynamic Patterns in Complex Systems, pp. 293–301. World Scientific, Singapore (1988)
de Sá, P.G., Maes, C.: The Gacs-Kurdyumov-Levin automaton revisited. J. Stat. Phys. 67, 507–522 (1992)
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)
Fukś, H.: Solution of the density classification problem with two cellular automata rules. Phys. Rev. E 55(3), R2081–R2084 (1997)
Fukś, H.: Nondeterministic density classification with diffusive probabilistic cellular automata. Phys. Rev. E 66(6), 066106 (2002)
Stone, C., Bull, L.: Evolution of cellular automata with memory: The density classification task. Biosystems 97(2), 108–116 (2009)
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
Corresponding author
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
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
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00224-012-9386-3