Category/Tag: Genetic Programming

Introduction to Genetic Programming

Introduction to Genetic Programming

What if you could write a program without actually writing it? Genetic Programming does exactly that — it evolves code the same way nature evolves species: randomly, ruthlessly, and surprisingly effectively. In this post I walk through how it works, build up a toy version from scratch, and then turn it loose on a hidden mathematical function to see if it can find the answer on its own. Spoiler: it can. But the more interesting question is how.