General structure and working of GA
GA mimics the process of natural selection that involves a few steps called genetic operators. First of all, a population of random solutions (chromosomes) is generated. The fitness of each candidate solution is calculated. After that, the genetic operators called crossover, mutation, and selection are performed in a sequence as shown in the following diagram.
