GENETIC PROGRAMMING WITH FIREFLY

Image

In Chapter 15, we explored the Firefly language with fun animations and music. In this appendix, we’ll use Firefly along with genetic programming to evolve displays we can then animate.

Introduction to Genetic Programming

Genetic programming became widely known in the early 1990s. Genetic programming uses algorithms to create programs by mimicking biological evolution. Instead of manually writing the code to perform a task, genetic programming generates and runs a population of random programs to see how well they perform. Each program in the population is given a fitness value, often called an objective function ...

Get Strange Code now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.