建立了求解八皇后问题所有解的数学模型.根据八皇后问题解的性质提出了7个相关的算子:主转置算子、行翻转算子、列翻转算子、倒置算子、顺旋算子、逆旋算子和倒转算子.给出了等价可行解的概念,并以这7个相关算子为工具研究了等价可行解的性质和八皇后问题解空间的性质.由此给出了求解八皇后问题所有解的模拟DNA算法,并用Mathematica软件进行了实现,并得到了所有的可行解,进而验证了算法的正确性和可行性.
Mathematics model of Eight Queens Problem is set up in this paper. According to characteristic of Eight Queens Problem, seven operators of Eight Queens Problem are brought forward, which are dominant transposed operator, row-flip operator, list-flip operator, inversion operator, ordinalturn operator, contrary-turn operator, reverse operator. Equipollence feasible solution of Eight Queens Problem is brought forward, and characteristic of quipollence feasible solution and characteristic of solution space of Eight Queens Problem are studied using these seven operators. Thereby, simulation DNA algorithm of all solutions of Eight Queens Problem is found, which is realized on Mathematica software, then all feasible solutions of Eight Queens Problem are obtained.