Sudoku. Introduction In this presentation I will cover the Sudoku puzzle, some basics of its complexity as well as specifically discussing the complexity.

Slides:



Advertisements
Similar presentations
Techniques for Solving Logic Puzzles. Logic Puzzles Logic puzzles operate using deductive logic. Logic puzzles operate using deductive logic. A well-designed.
Advertisements

Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Message-Passing and Sudoku Scott Kirkpatrick, HUJI Danny Bickson, HUJI TAU, June 18, 2006.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Fall 2013.
Number puzzles in the paper Did you know there’s a whole range of number puzzles you can try in most newspapers? Click on the puzzles below to complete.
CPE702 Complexity Classes Pruet Boonma Department of Computer Engineering Chiang Mai University Based on Material by Jenny Walter.
Eight queens puzzle. The eight queens puzzle is the problem of placing eight chess queens on an 8×8 chessboard such that none of them are able to capture.
1 CSC 421: Algorithm Design & Analysis Spring 2013 See online syllabus: (also on BlueLine2) Course.
Examples of Two- Dimensional Systolic Arrays. Obvious Matrix Multiply Rows of a distributed to each PE in row. Columns of b distributed to each PE in.
Liang, Introduction to Programming with C++, Second Edition, (c) 2010 Pearson Education, Inc. All rights reserved Chapter 8 Multidimensional.
Modeling the Covering Test Problem Brahim Hnich, Steven Prestwich, and Evgeny Selensky Cork Constraint Computation Center UCC Supported by SFI.
CS305j Introduction to Computing Two Dimensional Arrays 1 Topic 22 Two Dimensional Arrays "Computer Science is a science of abstraction -creating the right.
Unit 1. Sorting and Divide and Conquer. Lecture 1 Introduction to Algorithm and Sorting.
SOLVING THE KAKURO PUZZLE Andreea Erciulescu Department of Mathematics, Colorado State University, Fort Collins (Mentor: A. Hulpke)
Sudoku Puzzles. How to do a 4x4 Sudoku Grid (easiest) Every column, row and mini-grid must contains the numbers 1, 2, 3 and 4. Can you work.
Solving Sudoku Mark PTTLS Micro teach. Solving Sudoku What is a Sudoku? A Sudoku is a number puzzle based on a 9x9 grid made up from smaller 3x3 blocks.
CS194 Project: Sudoku Difficulty Kha Chu Advisor: Professor Sahai.
SOLVING SUDOKU WITH MATLAB VERIFICATION FUNCTION correctness verification of the puzzle: checks if the current element appears twice in the same line,
SUDOKU Via Relaxation Labeling
C OMPUTER P ROGRAMMING 1 Introduction to Programming.
N 58 Graphical Solutions to Quadratic Functions Subject Content Reference: N6.7h GCSE Maths Number & Algebra.
Efficient and Effective Practical Algorithms for the Set-Covering Problem Qi Yang, Jamie McPeek, Adam Nofsinger Department of Computer Science and Software.
Teaching Teaching Discrete Mathematics and Algorithms & Data Structures Online G.MirkowskaPJIIT.
1 CSC 427: Data Structures and Algorithm Analysis Fall 2011 See online syllabus (also available through BlueLine): Course goals:
Arrays and Fact Families
Back Tracking Project Due August 11, 1999 N-queens: –A classic puzzle for chess buffs is the N- Queens problem. Simply stated: is it possible to place.
2009/11/14GPW20091 Analysis of the Behavior of People Solving Sudoku Puzzles Reijer Grimbergen School of Computer Science, Tokyo University of Technology.
Additional Topics in Probability and Counting 1 Section 3.4.
1 CSC 427: Data Structures and Algorithm Analysis Fall 2010 See online syllabus (also available through BlueLine): Course goals:
Progression in Calculations Parents Information Evening November 2013.
Overview of Course Java Review 1. This Course Covers, using Java Abstract data types Design, what you want them to do (OOD) Techniques, used in implementation.
Patent Pending New Minimum Number of Clues Findings to Sudoku-derivative Games up to 5-by-5 Matrices including a Definition for Relating Isotopic Patterns.
Sudoku Solver Comparison A comparative analysis of algorithms for solving Sudoku.
© Copyright 2013 by Pearson Education, Inc. All Rights Reserved. 1 Chapter 8 Multidimensional Arrays.
1 On Completing Latin Squares Iman Hajirasouliha Joint work with Hossein Jowhari, Ravi Kumar, and Ravi Sundaram.
HKOI2006 Analysis and Solution Junior Q3 – Sudoku HKOI Training Team
Sudoku Jordi Cortadella Department of Computer Science.
Lacey Johnson Summer 2013 Student Research Project – James Madison University Sudoku can be described as a system of polynomials which can then be solved.
Propositional Satisfiability A compound proposition is satisfiable if there is an assignment of truth values to its variables that make it true. When no.
1 Collection, Iterable, and Iterator Interfaces The Collection Interface and its Hierarchy The Iterable and Iterator Interfaces For-each Loops with Iterable.
1 Project Management Example Solving Sudoku 2 What is Sudoku?  Sudoku is a game with 9 columns and 9 rows and 9 “boxes” composed of a 3 x 3 Grid  Numbers.
1 CSC 427: Data Structures and Algorithm Analysis Fall 2006 See online syllabus (also available through Blackboard): Course goals:
Functions and Inverses Numerical Representation Consider the ordered pairs: (-3, -5) (-2, -3) (-1,-1) (0,1) (1,3) (2, 5) (3, 7) The inverse is found numerically.
How Do I Solve This Thing?. You are familiar with Sudoku puzzles. For this variation, place the integers 1 – 9 into each row or column such that the.
Monster (“Mega”) Sudoku
Unit1: Modeling & Simulation Module5: Logic Simulation Topic: Unknown Logic Value.
CompSci Problem Solving: Sudoku  Rules of the Game Sudoku is played with a 9 by 9 "board" consisting of nine 3 by 3 sub-boards. The symbols 1 -
SAT Encodings for Sudoku Bug Catching in 2006 Fall Sep. 26, 2006 Gi-Hwon Kwon.
Lesson 5-4 Example Example 1 Draw an array to model and find 21 ÷ 3. 1.Write the answer if you know it. Otherwise, draw an array.
Progression in Calculations. Understanding and Using Calculations For all calculations, children need to: Understand the = sign as is the same as, as.
SUDOKU SOLVER Will Bazil, Ryan Covert, Ricky Parker.
Data Structures & Algorithms Lecturers : Boontee Kruatrachue Room no. 913 Kritawan Siriboon Room no. 913 Lecturers : Boontee Kruatrachue Room no. 913 Kritawan.
Data Structures & Algorithms Lecturer : Kritawan Siriboon, Room no. 913 Text : Data Structures & Algorithm Analysis in C, C++,… Mark Allen Weiss, Addison.
CSC 421: Algorithm Design & Analysis
Chapter 8 Multidimensional Arrays
Monster (“Mega”) Sudoku
Teacher Notes Supplies Needed: Class set of sudoku puzzles.
Unit 1. Sorting and Divide and Conquer
A CIS 5603 Course Project By: Qizhong Mao, Baiyi Tao, Arif Aziz
EGR 115 Introduction to Computing for Engineers
CSC 421: Algorithm Design & Analysis
Algorithms.
Permutations and Combinations
Sudoku (数独 sūdoku?), also known as Number Place or Nanpure, is a logic-based placement puzzle. The objective is to fill the grid so that every column,

CS Software Studio Assignment 1
Sudoku.
Year 2 Summer Term Week 8 Lesson 5
Year 2 Summer Term Week 8 Lesson 5
WARM UP 3 WRITING EQUATIONS Write in slope-intercept form the equation of the line that passes through the given point and has the given slope. (Lesson.
Presentation transcript:

Sudoku

Introduction In this presentation I will cover the Sudoku puzzle, some basics of its complexity as well as specifically discussing the complexity of order 2 and order 3 Sudoku puzzles. I will also show and discuss the beginnings of NDFSMs for order 2 Sudoku puzzles and order 3 Sudoku puzzles to determine if a solution is correct.

Rules Most commonly, a sudoku puzzle is a 9x9 grid of the numbers 1-9 where in each row, column, and 3x3 grid each number is only used once. This is an “order 3” sudoku – an order n sudoku would be an n 2 xn 2 grid of the numbers 1-n, with n 2 nxn grids.

Example

Solution

How complex is it? For an order 3 sudoku you just have to be able to count to 9, so how hard are they really? How many different answers can there be?

Order 2 sudoku For order 2 sudoku puzzles there are 288 possible answers When symmetries are considered there are actually only 2 distinct puzzles with the remainder being some variation

Order 3 sudoku For order 3 sudoku puzzles there are 6,670,903,752,021,072,936,960 possible combinations Symmetrical operations only reduce this to 3,546,146,300,288

Beginnings of an order 2 DFSM

Basics of an order 3 DFSM

More complex data structure 2 dimensional array for checking – Number the columns, rows, and interior grids – Boolean 2 dimensional array for solving – Number the columns, rows, and interior grids – Each cell has a linked list of possible values – Some sort of relationship among the rows, columns, and grids to identify what cells are affected by a change in each

Conclusion If you can solve sudoku puzzles you’re a genius! Both a human or computer would take a different approach to solve or verify a solution, as FSMs are probably not the best way to approach the problem

References “A Pencil-and-Paper Algorithm for Solving Sudoku Puzzles” J.F. Crook p.pdf p.pdf American Scientist “Unwed Numbers” Brian Hayes e.aspx?id=3475&y=0&no=&content=true&pag e=4&css=print e.aspx?id=3475&y=0&no=&content=true&pag e=4&css=print