Abstract: In this paper, an attractive approach for teaching genetic algorithm (GA) is presented. This approach is based primarily on using MATLAB in implementing the genetic operators: initialization, crossover, mutation, evaluation and selection. A detailed illustrative examples is presented to demonstrate that how to solve Traveling Salesman Problem (TSP) and Drawing the largest possible circle in a space of stars without enclosing any of them.

Keywords: Genetic, Matlab, Algorithm, Mutation.