期刊文献+

C#的数独游戏求解 被引量:2

Sudoku Game Programmed in C#
下载PDF
导出
摘要 针对目前比较流行的"数独"游戏,利用C#提供的数据结构,设计了一种"测试-回溯"算法。该算法根据"数独"游戏的规则和约束条件计算并记录每个空白宫格内允许填写的数字,在此基础上试填每个空白宫格。当所有空白空格被填完后,可得到一个"数独"问题的解。 For solving the popular Sudoku game,an algorithm based on "check-backtracking"approach and C# is presented.First,this algorithm computes and saves the feasible digits for each blank grid based on the rules of Sudoku and the constraints generated by the existed digits in other grids.Second,fill the blank grid by choosing one feasible digit from a feasible digit list.When all blank grids are filled with proper digits,the game is over and a solution is achieved at last.
作者 章森
机构地区 北京工业大学
出处 《电脑编程技巧与维护》 2010年第14期24-25,共2页 Computer Programming Skills & Maintenance
关键词 数独游戏 算法 回溯 C# Sudoku Game Algorithm Backtracking Stack C#
  • 相关文献

参考文献5

  • 1百度百科.九宫格数独.http://baike.baidu.com/view/961.htm?fr=ala0_1,2010.
  • 2维基百科.数独.http://zh.wikipedia.org/zh-cn/%E6%95%B8%E7%8D%A8,2010.
  • 3数独联盟.数独解法研究.http://www.sudokuchina.com/home/forumdisplay.php?fid=46,2010.
  • 4John Sharp.Visual C#2005从入门到精通.北京:清华大学出版社,2006.
  • 5Christian Nagel,Bill Evjen,Jay Glynn著,李铭译.C#高级编程.北京:清华大学出版社,2009.

共引文献1

同被引文献12

引证文献2

二级引证文献9

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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