Genetic algorithm
Objective: Genetic algorithm is an optimisation algorithm.It is used to find the extremum values of a function.It is based on the evolution theory of charles darwin, meaning only the fittest of the individuals will survive. The algorithm consists of several stages namely, Initial population Fitness function Selection Crossover Mutation…