The fitness of an individual is defined as the net number of genes it leaves behind to the next generation. The genetic algorithm uses these ideas of Darwinian evolution to solve optimization problems arising in the areas of science and engineering. The central idea is to define the fitness function appropriately corresponding to the research problem that needs optimization. Here genetic algorithm will be used to find a few key genes responsible for cancer by analyzing thousands of genes from microarray gene expression data.