21. (a) A cell is alive in the next generation if it is currently dead with four live neighbors, or is currently alive with one live neighbor.

(b) A cell is alive in the next generation if it is currently alive with four or zero live neighbors, or is currently dead with four or two live neighbors.

Return to Exercises