A genetic algorithm is a search heuristic inspired by natural evolution that selects the fittest individuals to produce better offspring over successive generations. It involves phases including selection, crossover, and mutation, allowing for the exploration of a large solution space to find multiple optimal solutions. Genetic algorithms are generally faster and more efficient than traditional methods but may be computationally expensive and not suitable for all problems.