期刊文献+

九宫数独的方程求解算法研究 被引量:8

Research of equation solution algorithm about Sudoku puzzle
下载PDF
导出
摘要 首先从数独的要求出发建立方程组,该方程组的解与原数独的解完全等价。然后由该方程组推导出一系列数学性质,包括删除候选数性质、唯一确定法性质、矛盾性质和不变性性质。并说明数独的人工推理规则包含在这些性质之中。最后由这些性质提出求解该方程组的算法,算法中用一个三维矩阵来表示待求解九宫数独的候选数矩阵,根据上述性质对候选数矩阵进行删减,直到能够解出此九宫数独。此算法能够求解出许多数独软件无法进行推理计算的数独难题,并用两个数独难题进行验证,说明了该算法的有效性。 It began with the requirement of Sudoku to establish the system of equations. The solution of equation system was equivalent to the original Sudoku. And many mathematical properties were derived from equation system, including candidates elimination techniques, unique determination property, contradiction property and invariance property. It also illustrated that the artificial deductive rules included these properties. Finally this paper proposed a algorithm which calculated the solution of equation system from these properties. The algorithm used a three-dimensional matrix to express the candidate matrix of an unsolved Sudoku, and according to the above properties the candidate matrix could be deleted until Sudoku was solved. The algorithm can resolve many difficult Sudoku puzzles. Two difficult Sudoku puzzles were demonstrated and solved easily with the method in this paper, which shows the method is very effective.
出处 《计算机应用》 CSCD 北大核心 2012年第10期2907-2910,共4页 journal of Computer Applications
基金 西北工业大学大学生创新项目
关键词 数独 智力游戏 推理性质 唯一解 算法性质 Sudoku intelligent game deductive character unique solution algorithm character
  • 相关文献

参考文献8

二级参考文献34

  • 1雷蕾,沈富可.关于数独问题的算法的设计与实现[J].电脑知识与技术(过刊),2007(2):481-482. 被引量:18
  • 2孟庆铃.数独问题人工解法的程序实现[J].甘肃科技,2006,22(9):150-151. 被引量:6
  • 3刘晓宝.数独游戏的解题算法[J].电脑编程技巧与维护,2007(5):64-67. 被引量:9
  • 4Yato T, Seta T. Complexity and Completeness of Finfing Solution and Its Application to Puzzles[J]. IEICE Trans. Fundamentals, 2003, E86-A(5) :1052-1060.
  • 5Lewis R. Metaheuristics can solve sudoku puzzles[J]. Journal of Heuristics, 2007,13 : 387-401.
  • 6Mantere T, Koljonen J. Solving and rating sudoku puzzles with Genetic Algorithm[C]//Proceedings of the 12^th Finish Artificial Intelligenee Conference. Sept. 2006.
  • 7GoldbergDE, AllelesLR. TheTravelingSalesmanProblem[C] // Proceedings of an International Conference on Genetic Algorithms and Their Applications. 1985:154-159.
  • 8李盘荣.“数独”游戏的算法研究与实现.电脑知识与技术,2008,3(8):1715-1717.
  • 9Timo Mantere, Janne Koljonen. Solving, rating and generating sudoku puzzles with GA[ C]//2007 IEEE Congress on Evolutionary Computation. Singapore, 2007.
  • 10Timo Mantere, Janne Koljonen. Solving and analyzing Sudokus with cultural algorithms[ C]//2008 IEEE Congress on Evolutionary Computation. Hong Kong, 2008.

共引文献38

同被引文献33

引证文献8

二级引证文献13

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部