What is a Genetic Algorithm?

Updated May 16, 2026

Short answer

A Genetic Algorithm (GA) is a search/optimization technique inspired by natural evolution using selection, crossover, and mutation.

Deep explanation

Genetic Algorithms simulate natural selection. A population of candidate solutions evolves over generations. Better solutions are selected based on fitness, and genetic operators (crossover, mutation) introduce variation. Over time, the population converges toward optimal or near-optimal solutions.

Real-world example

Used in route optimization like delivery path planning or scheduling problems.

Common mistakes

  • Assuming GA always finds the global optimum or ignoring parameter tuning.

Follow-up questions

  • What problems are best suited for GA?
  • Is GA deterministic?

More Genetic Algorithms interview questions

View all →