Sudoku Solver Comparison A comparative analysis of algorithms for solving Sudoku.

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

Constraint Satisfaction Problems
Lecture 11 Last Time: Local Search, Constraint Satisfaction Problems Today: More on CSPs.
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
Artificial Intelligence Constraint satisfaction problems Fall 2008 professor: Luigi Ceccaroni.
Message-Passing and Sudoku Scott Kirkpatrick, HUJI Danny Bickson, HUJI TAU, June 18, 2006.
Review: Constraint Satisfaction Problems How is a CSP defined? How do we solve CSPs?
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.
Constraint Processing and Programming Introductory Exemple Javier Larrosa.
Playing Fair at Sudoku Joshua Cooper USC Department of Mathematics.
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.
Sudoku. Introduction In this presentation I will cover the Sudoku puzzle, some basics of its complexity as well as specifically discussing the complexity.
Structured Graphs and Applications
4 Feb 2004CS Constraint Satisfaction1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3.
Constraint Satisfaction Problems
Artificial Intelligence Constraint satisfaction Chapter 5, AIMA.
Constraint Satisfaction Problems
Constraint Satisfaction Problems
A game of logic where the player must assign the numbers 1..9 to cells on a 9x9 grid. The placement of the numbers must be such that every number must.
SOLVING SUDOKU Graham Hutton University of Nottingham (with thanks to Richard Bird)
The Mathematics of Sudoku Helmer Aslaksen Department of Mathematics National University of Singapore
Algorithm design techniques
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.
Patrick March, Lori Burns. History Islamic thinks and the discovery of the latin square. Leonhard Euler, a Swiss mathematician from the 18 th century,
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 Puzzles Frank Hilvers Taylor O’Brien. The History of Sudoku The history of Sudoku puzzles dates back to the 18th century.  Swiss mathematician.
1 Constraint Satisfaction and Backtrack Search 22c:31 Algorithms.
Sudoku Hands-on Training Masters Project Presentation Yiqi Gao March 19, 2014.
SOLVING SUDOKU WITH MATLAB Raluca Marinescu, Andrea Garcia, Ivan Castro, Eduard Enoiu Mälardalen University, Västerås,
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
© J. Christopher Beck Lecture 13: Modeling in Constraint Programming.
Whiteboardmaths.com © 2008 All rights reserved
Announcements This Wednesday, Class and Labs are cancelled! The last lab is due this Wednesday … how many people are planning on doing it? Finally posted.
Data Structures Using C++ 2E1 Recursion and Backtracking: DFS Depth first search (a way to traverse a tree or graph) Backtracking can be regarded as a.
HKOI2006 Analysis and Solution Junior Q3 – Sudoku HKOI Training Team
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Chapter 5: Constraint Satisfaction ICS 171 Fall 2006.
CSC 423 ARTIFICIAL INTELLIGENCE Constraint Satisfaction Problems.
Quality of LP-based Approximations for Highly Combinatorial Problems Lucian Leahu and Carla Gomes Computer Science Department Cornell University.
CHAPTER 5 SECTION 1 – 3 4 Feb 2004 CS Constraint Satisfaction 1 Constraint Satisfaction Problems.
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
Backtracking & Brute Force Optimization Intro2CS – weeks
Chapter 5 Team Teaching AI (created by Dewi Liliana) PTIIK Constraint Satisfaction Problems.
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 -
2-4 Solving Equations with Variables on Both Sides.
Constraint Satisfaction Problems/Programming ZUI 2012/2013.
SUDOKU SOLVER Will Bazil, Ryan Covert, Ricky Parker.
1 Constraint Satisfaction Problems (CSP). Announcements Second Test Wednesday, April 27.
Going Krazee With Sudoku By Professor Cindy Caldwell A.K.A. “Crazy Lady” Caldwell A.K.A. Cindy Susan…FOCUS!
CS 561, Session 8 1 This time: constraint satisfaction - Constraint Satisfaction Problems (CSP) - Backtracking search for CSPs - Local search for CSPs.
Constraint Satisfaction Problems (CSPs) Introduction
Monster (“Mega”) Sudoku
A CIS 5603 Course Project By: Qizhong Mao, Baiyi Tao, Arif Aziz
Constraint Satisfaction Problem
CS 188: Artificial Intelligence
Example Fill in the grid so that every row, column and box contains each of the numbers 1 to 9:
Analysis and design of algorithm
Chapter 3: Finite Constraint Domains
Artificial Intelligence
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,
Constraint satisfaction problems
Sudoku.
Constraint Satisfaction
Constraint Satisfaction Problems
Constraint Satisfaction Problems
Constraint satisfaction problems
Constraint Satisfaction Problems (CSP)
Presentation transcript:

Sudoku Solver Comparison A comparative analysis of algorithms for solving Sudoku

What is a Sudoku Puzzle?  A pencil-and-paper puzzle, much like a numeric crossword puzzle –A special type of latin square –Seen in many newspapers, including our own K-State Collegian  A highly-connected CSP –Typical 9 x 9 configuration 81 variables, each constrained by 24 other variables Total of 972 constraints A valid solution is a 9-coloring of the constraint graph

Sudoku Rules  Common Sudoku puzzles are a 9 x 9 grid of 81 cells –There are 9 rows and 9 columns –Also divided into 9 3 x3 boxes –Each cell can hold one number, an integer between 1 and 9, inclusive –Some subset of the cells are given –Each number can only appear once in each row, column, and box –Valid Sudoku have enough cells given that there is a unique solution

Sudoku images Given Solved

Algorithms  General constraint satisfaction algorithms –Backtracking search A “brute force” approach Serves as the baseline –Backtracking with MRV Look for values that are the “most constrained” in the current state  Sudoku specific algorithms –Human-like approach Avoid guessing (and backtracking!) –Some additional constraints can be deduced from values of non-adjacent cells