A genetic algorithm is an optimization technique inspired by the principles of natural selection and genetics. It mimics the process of evolution by generating a population of potential solutions and iteratively selecting the best candidates based on a defined fitness function. This approach is particularly useful in complex layout planning problems where traditional methods may struggle to find optimal solutions.