  This work introduces a new problem, named as, affinity classification problem
which is a generalization of the density classification problem. To solve this
problem, we introduce temporally stochastic cellular automata where two rules
are stochastically applied in each step on all cells of the automata. Our model
is defined on 2-dimensional grid having affection capability. We show that this
model can be used in several applications like modeling self-healing systems.
