Analysis of Genetic Algorithm