What You Learned

Genetic Algorithms in Elixir — by Sean Moriarity (18 / 101)

The Pragmatic Programmers
The Pragmatic Programmers

--

👈 Adding Mutation | TOC | Chapter 2 Breaking Down Genetic Algorithms 👉

In this chapter, you learned about informed search and why it’s superior to brute-force search for finding solutions to difficult problems. You also learned about the types of problems, like finding an optimal shipping route between cities, that are nearly impossible to solve using brute-force search. Most importantly, you learned what genetic algorithms are and how to implement a basic genetic algorithm to solve the One-Max problem.

In the next section, you’ll take the genetic algorithm you created here and use it to start implementing a general framework that you can apply to numerous other problems.

Footnotes

[4] https://hexdocs.pm/elixir/Enum.html

Copyright © 2021, The Pragmatic Bookshelf.

👈 Adding Mutation | TOC | Chapter 2 Breaking Down Genetic Algorithms 👉

Genetic Algorithms in Elixir by Sean Moriarity can be purchased in other book formats directly from the Pragmatic Programmers. If you notice a code error or formatting mistake, please let us know here so that we can fix it.

--

--

The Pragmatic Programmers
The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.