Abstract:This paper mainly expounds the data mining is an important algorithm such as genetic algorithm.The concept,characteristics,basic genetic algorithm,genetic algorithm flow and operation were introduced;the application of genetic algorithm on code in the class arrangement system,fitness function to determine form and the genetic operation were introduced,the results make resources reasonable allocation and solve the problem in the usage of resources.