Chapter 20
Nature Knows Best: Using Evolutionary Algorithms
IN THIS CHAPTER
Defining evolutionary computation
Exploring and exploiting subspaces
Exploring genetic algorithm parameters
Running a genetic algorithm program
Have you ever wondered how the biological theory of evolution applies to the exciting field of evolutionary computation? No? In this chapter, you explore how it has inspired a class of techniques for solving problems with computers. You also examine the basic process of navigating open-ended problems in wide search spaces and tackle the trade-off between exploring and exploiting promising subspaces. You discover the different programmer-defined parameters of a genetic algorithm, including population size, number of generations, and mutation rate, and you spend some time thinking about how to implement a fitness function. Finally, you end the chapter by writing your own genetic algorithm program to find a kraken!
Evolving Your Idea of Computation
When you think of solving problems with computers, one concept probably always rises to the forefront of your mind: biological ...
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