How Does Genetic Algorithms Work?

How Does Genetic Algorithms Work? At each step, the genetic algorithm uses the current population to create the children that make up the next generation. The algorithm selects a group of individuals in the current population, called parents, who contribute their genes—the entries of their vectors—to their children. What is genetic algorithm explain with example?