The invention relates to the technical field of education course scheduling systems, in particular to an optimized course scheduling algorithm based on a DNA genetic evolution algorithm, which comprises the following operations: carrying out digital information processing on classes, courses, classrooms and teachers; establishing a time period, and encoding courses, classrooms and teachers as taskunits; generating an initial population; calculating the fitness of an individual, satisfying a fitness optimization criterion, decoding and outputting, and ending the calculation; if not satisfied,selecting to regenerate individuals, carrying out crossover and mutation operation on the selected individuals, then entering a filial generation population, and skipping to calculate the fitness of the individuals. The invention aims to provide a course scheduling algorithm which is designed based on a genetic algorithm, high in efficiency and reasonable in course distribution.