Skip to Main Content
Impractical Python Projects
book

Impractical Python Projects

by Lee Vaughan
November 2018
Beginner content levelBeginner
424 pages
11h 43m
English
No Starch Press
Content preview from Impractical Python Projects

7BREEDING GIANT RATS WITH GENETIC ALGORITHMS

image

Genetic algorithms are general-purpose optimization programs designed to solve complex problems. Invented in the 1970s, they belong to the class of evolutionary algorithms, so named because they mimic the Darwinian process of natural selection. They are especially useful when little is known about a problem, when you’re dealing with a nonlinear problem, or when searching for brute-force-type solutions in a large search space. Best of all, they are easy algorithms to grasp and implement.

In this chapter, you’ll use genetic algorithms to breed a race of super-rats that can terrorize the world. After that, ...

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.
Start your free trial

You might also like

Tiny Python Projects

Tiny Python Projects

Ken Youens-Clark

Publisher Resources

ISBN: 9781492069454