Home▸Articles▸Genetics & Evolution

AI Genetic Algorithm: Population Bottleneck

A simulation illustrating how artificial selection can lead to rapid evolutionary changes in virtual populations.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What is a Genetic Algorithm?

A genetic algorithm (GA) is a computational method inspired by natural selection, used to find approximate solutions to optimization and search problems. GAs simulate the process of evolution, where organisms with better traits have higher chances of survival and reproduction.

In this simulation, virtual organisms are represented as strings of binary digits or other encoded information, which evolve over generations through processes like crossover (recombination) and mutation.

The Role of Population Bottlenecks

A population bottleneck occurs when a significant portion of the population is suddenly reduced. This can happen due to various factors, including natural disasters or in this case, a random reduction by 70% through a button click.

This event drastically alters the genetic diversity and composition of the remaining population, potentially leading to rapid evolutionary changes and loss of certain traits.

live demo · related simulation● LIVE

Why Does Genetic Drift Matter?

Genetic drift is a random change in the frequency of alleles (gene variants) within a population. It can lead to significant genetic differences between populations over time, even without natural selection acting on specific traits.

In this simulation, observing genetic drift after a bottleneck helps understand how random events can shape evolutionary outcomes and why diversity is crucial for long-term survival.

Real-World Applications of Genetic Algorithms

Genetic algorithms are widely used in various fields such as engineering, economics, and medicine. They help solve complex optimization problems by mimicking the process of natural selection.

For example, GAs can be used to optimize the design of aircraft wings or to find the best combination of treatments for a patient's illness.

Frequently asked questions

How does crossover work in genetic algorithms?

Crossover involves combining parts of two parent solutions to create offspring. This process mimics sexual reproduction and can lead to new combinations of traits that might be more advantageous than either parent.

What is the significance of mutation in genetic algorithms?

Mutation introduces random changes into the population, preventing premature convergence to a suboptimal solution. It helps maintain diversity and explore different parts of the search space.

Can genetic drift have positive effects on populations?

Yes, while often seen as negative due to its randomness, genetic drift can sometimes lead to beneficial mutations becoming more common in a population, especially after a bottleneck event.

How does the population size affect the outcome of a genetic algorithm?

A larger population generally provides more diversity and reduces the impact of random events like genetic drift. However, it also increases computational complexity. Smaller populations can lead to faster convergence but may miss out on diverse solutions.

Try it live

Everything above runs in your browser — open AI Genetic Algorithm – Population Bottleneck and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open AI Genetic Algorithm – Population Bottleneck simulation

What did you find?

Add reproduction steps (optional)