Cellular automata are processes that generate a population from one generation to the next following a simple rule. In this case the variables are A and B, the population starts with A and the rule is AB and BAB.