Problem 42877. Cellular Automaton | Rule X
Solution Stats
Problem Comments
-
5 Comments
It seems that the reference answer in the test suite is incorrect. Taking test case 1 (rule 30) as an example, the first and last elements in the 4th row should be 1, according to the figure you posted for rule 30 in your problem description.
Peng is right. It looks like we are supposed to ignore leftmost and rightmost columns due to the fact those cells have access to only two cells above, but it is not mentioned in the description as well as shown example stands in opposite to that assumption.
Thanks for your clarification, Jan. In this case, it is necessary that the assumption is stated in the problem, or the answer should stick to the example shown in the description.
BTW. Illustraton from mathworld.worfram.com is missing reference, isn't it?
The example does not match the solutions. First puzzle(30,3) has [0 1 1 0 ...] as next to last row with an expected [0 1 0]. The example shows this as [1 1 0]
Problem Recent Solvers15
Suggested Problems
-
63 Solvers
-
842 Solvers
-
307 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
6720 Solvers
-
The Answer to Life, the Universe, and Everything
438 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!