Genetic algorithms
Step 12 of 13 in Classical AI · Build · Medium
Evolve a population of candidates with selection, crossover and mutation. Useful when the search space is huge and gradients don't exist.
Build it
Evolve a TSP route
GA for 30 cities with order crossover and swap mutation; plot the best route every 50 generations.
Done when: Within 10% of a 2-opt baseline.
Case study: NASA's evolved antenna
- A GA designed the antenna for the ST5 spacecraft (2006).
- The result looked bizarre to engineers but met specs better than human designs.
- Fitness was a simulator score: the GA is only as good as what you measure.
Resources
- Wikipedia: Genetic algorithm Article
- The Nature of Code Book
Earn this star
On the map, you log what you built. Finish the step and its star lights.
Open this step on the map