A genetic algorithm is like a game where a computer tries to guess the answer to a problem. It starts by creating many different possible solutions (like answers to a question). Once it has lots of different solutions, it will compare them to each other. It will then pick the best solutions and combine them in a new way to make more solutions. This process is repeated until the computer finds the best solution.