Implement 1D CA rule 102. In order to find the exact evolution of the system state of a 1D CA rule 102, can we use some analytical shortcut in order to instantly know the cell value at each time and spatial coordinate? Try to find the answer by experimenting with the 'model' (rule) for various initial conditions. (To visualize outputs, use either printouts to terminal of 0s and 1s, matplotlib.plt.imshow (Python), or some other visualization of a 2D array of colors (black and white in this case).) (Not part of the answer to this question:) Do the same for other rules: 255 and 60. Which simple dynamic is being implemented here? Note: this may require some playing around with the model or some online research. This would thus not be a type of question for the graded Quiz on Friday. 单项选择题

A

No. The rule currently has no known analytical simplification because it is a chaotic rule.

B

Yes, the dynamics is a simple periodic one, so predicting a future state is trivial.

C

Yes. The transition rule has the exact same rule as the one used to build the Pascal triangle, but after modulo 2. Each 1 in the initial state generates such a triangle, and overlapping triangles are simply summed up (modulo) as well, so we can instantly predict any cell state at any times.

D

No. The rule is a universal computation, so no algorithm exists which could simulate this rule.

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!