# Evolutionary Algorithm

> A search that copies evolution. It keeps the best answers, mixes them and repeats.

**Field:** Artificial Intelligence  
**Category:** Foundations  
**Also known as:** Genetic Algorithm, Evolutionary Computation, Evolutionary Search

## Think of it like

It is like breeding the fastest dogs. Keep the best, let them have pups, and repeat.

## Definition

An evolutionary algorithm finds a good answer by copying how living things evolve. It starts with a big group of random answers. A score says how good each one is. The best answers are kept, mixed together and changed a little at random. This makes a new group, and the steps repeat for many rounds until the answers stop getting better.

## Example

Engineers want a radio antenna that works well. The program tries thousands of odd shapes. It keeps the best and mixes them, round after round.

## Why it matters

It works when you can score an answer but cannot work out the best one by hand. It needs no slope to follow, only a score.

## Common mistake

Thinking it is sure to find the best answer. It finds a good one, and a different run may find another.

## Three principles

- **A score for each.** Says how good an answer is.
- **Keep the best.** Weak answers are dropped.
- **Mix and change.** New answers come from old ones.

## Related terms

- [Heuristic](https://learn.benibix.com/term/ai/heuristic)
- [Hyperparameter Tuning](https://learn.benibix.com/term/ai/hyperparameter-tuning)
- [Reinforcement Learning](https://learn.benibix.com/term/ai/reinforcement-learning)
- [Gradient Descent](https://learn.benibix.com/term/ai/gradient-descent)
- [Evolution](https://learn.benibix.com/term/general/evolution)

## Taught in

- [Heuristics and Evolutionary AI](https://learn.benibix.com/learn/ai-foundations/heuristics-and-evolutionary-ai): AI Basics, 4/10

![A loop of four steps. A group of answers is scored. The best are kept. They are mixed and changed a little to make a new group. The new group is scored again, and the best score climbs over the rounds.](https://learn.benibix.com/diagrams/ai8-evolutionary-algorithm.svg)

---

Source: https://learn.benibix.com/term/ai/evolutionary-algorithm
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
