搜索资源列表
sudoku
- C++解数独的代码,使用了三种方法,依次对应解决不同难度的数独,并且最后采用由堆栈为基础数据结构的深度优先搜索法解数独,可以保证解决所有的可解数独。使用了STL的bitset,利用位操作节省内存。-C++ code alone the stops, using three methods, followed by the corresponding number of varying difficulty to solve alone, and Finally the data structur
SUDOKU
- 九宫格的数独问题,利用回溯法来求解,C#语言,包括:初始化及填数的步骤-Jiugongge Sudoku problem to solve using backtracking, C# language, including: the number of steps to initialize and fill
sudoku
- //一个解数独的程序,纯C编写,不依赖特殊库,移植容易。个人原创! //采用的回溯法,剪枝程序采用动态规划思想进行了大量优化,比一般数独程序可以统计用多少步,中间碰到多少分支,侧面反映题目难度,虽然不能和人的技巧相比,也可以参考一下。 //对于研究数独方法或许没有帮助,但是可以帮助验证结果,统计难度。对于出题时可以去掉的项,也可用其验证。有代码,看懂后可以随便修改。 //解世界上最难数独大概1s左右 //程序作者:原建业-Sudoku @ a program written in