nkaria1 / cellular_automata Goto Github PK
View Code? Open in Web Editor NEWwe have a matrix with N columns and M rows. Each entry in the matrix is either 0 or 1. We always initialize Row 1. Given a rule , we construct the subsequent row by applying the rule to the previous row and so on. We can extend the number of rows indefinitely. Guided by one of the rules of cellular automata described : http://www.wolframscience.com/nksonline/page-53 Also added the feature to locate all occurances of a specific pattern. The pattern is based on 6 matrix elements located in two subsequent rows. This kind of analysis finds application in pattern recognition (growth of crystals in snowflakes, development of patterns in sea shells, improving unclear images, tracing mutaion)