Homework: Wolfram Cellular Automata

Q1. Wolfram’s Cellular Automata (100 points)

Write code to generate a plot similar to the following figure using the explanation for generation of 1D Cellular Automata found here. You should only need to use standard Python, numpy and matplotllib. The plots should be generated from a list of the rules [30,54,60,62,90,94,102,110,122,126,150,158, 182,188,190,220,222,250].

In [1]: