...
首页> 外文期刊>The UMAP Journal >Ease And Toil: Analyzing Sudoku
【24h】

Ease And Toil: Analyzing Sudoku

机译:轻松而辛苦:分析数独

获取原文
获取原文并翻译 | 示例
           

摘要

Sudoku is a logic puzzle in which the numbers 1 through 9 are arranged in a 9 × 9 matrix, subject to the constraint that there are no repeated numbers in any row, column, or designated 3 × 3 square. In addition to being entertaining, Sudoku promises insight into computer science and mathematical modeling. Since Sudoku-solving is an NP-complete problem, algorithms to generate and solve puzzles may offer new approaches to a whole class of computational problems. Moreover, Sudoku construction is essentially an optimization problem. We propose an algorithm to construct unique Sudoku puzzles with four levels of difficulty. We attempt to minimize the complexity of the algorithm while still maintaining separate difficulty levels and guaranteeing unique solutions. To accomplish our objectives, we develop metrics to analyze the difficulty of a puzzle. By applying our metrics to published control puzzles with specified difficulty levels, we develop classification functions. We use the functions to ensure that our algorithm generates puzzles with difficulty levels analogous to those published. We also seek to measure and reduce the computational complexity of the generation and metric measurement algorithms. Finally, we analyze and reduce the complexity involved in generating puzzles while maintaining the ability to choose the difficulty level of the puzzles generated. To do so, we implement a profiler and perform statistical hypothesis-testing to streamline the algorithm.
机译:数独是一种逻辑难题,其中数字1到9以9×9矩阵排列,但要受约束的是,在任何行,列或指定的3×3正方形中都没有重复的数字。除了寓教于乐之外,Sudoku还承诺深入了解计算机科学和数学建模。由于Sudoku解决方案是一个NP完全问题,因此生成和解决难题的算法可能为解决一整类计算问题提供新方法。此外,数独构造本质上是一个优化问题。我们提出了一种算法来构造具有四个难度级别的独特数独谜题。我们试图使算法的复杂性最小化,同时仍保持单独的难度级别并保证唯一的解决方案。为了实现我们的目标,我们开发了度量标准来分析难题的难度。通过将指标应用于具有指定难度级别的已发布控制难题,我们可以开发分类功能。我们使用这些功能来确保我们的算法生成的难题难度与已发布的难题相似。我们还寻求度量和降低生成和度量度量算法的计算复杂性。最后,我们分析并减少生成难题的复杂性,同时保持选择生成难题的难度级别的能力。为此,我们实现了一个探查器并执行统计假设检验以简化算法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号