How to Explore a CA
You’ll try to find the best starting row for each CA using a genetic algorithm. You need a population of rows, each formed from random 0s and 1s, to get started. You run your automaton on each row, and see how many cells are alive when they get above the paper bag. Regardless of the CA you’re exploring, you need to breed new solutions for your chosen number of epochs, mutating a few rows in your population as you go. Over time, the GA might find better starting rows.
To breed, you crossover the information from two parents and form a new potential solution. You want your algorithm to breed better solutions over time. For this problem, you’ll use tournament selection, making three solutions picked at random compete. You ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access