A new algorithm for enumerating all possible Sudoku squares

Author:

Mishra Pallavi1,Gupta D. K.1,Badoni Rakesh P.1

Affiliation:

1. Department of Mathematics, Indian Institute of Technology, Kharagpur 721302, West Bengal, India

Abstract

Sudoku is an interesting number placement puzzle with some simple rules. For some positive integer [Formula: see text], the puzzle involves an [Formula: see text] grid partitioned into [Formula: see text] distinct blocks each of size [Formula: see text] such that the integers [Formula: see text] through [Formula: see text] appear exactly once in each row, each column and each block of the grid. Often some static numbers known as givens are placed according to the difficulty rating in the puzzle and then the rule is to place the numbers from [Formula: see text] to [Formula: see text] in the partially filled grid such that the conditions of the puzzle are satisfied. The aim of this paper is to propose a new algorithm for enumerating all possible Sudoku squares of size [Formula: see text]. It is based on the concepts of permutations derived from [Formula: see text] S-permutation matrices termed as S-permutations. There is a one-to-one correspondence between Sudoku squares and the set of those S-permutation matrices which are mutually disjoint to each other. The proposed algorithm uses the set of all S-permutations generated by some permutation generation algorithm as input and then enumerates all the subsets of cardinality [Formula: see text] of all S-permutations which are mutually disjoint to each other. The correctness of the algorithm is established. Its worst-case time complexity is O[Formula: see text], where [Formula: see text]. A mathematical formula involving the total number of the sets of [Formula: see text] mutually disjoint S-permutations is also derived. Experimentally, the proposed algorithm is verified for the Sudoku squares of size [Formula: see text]. It is observed that our algorithm is more systematic and better in terms of computational efficiency.

Publisher

World Scientific Pub Co Pte Lt

Subject

Discrete Mathematics and Combinatorics

Cited by 1 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. On an algorithm for receiving Sudoku matrices;Discrete Mathematics, Algorithms and Applications;2017-04-25

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3