Exploring Strategies to Generate and Solve Sudoku Grids. SUNY Oswego CSC 466 Spring '09 Theodore Trotz

Size: px
Start display at page:

Download "Exploring Strategies to Generate and Solve Sudoku Grids. SUNY Oswego CSC 466 Spring '09 Theodore Trotz"

Transcription

1 Exploring Strategies to Generate and Solve Sudoku Grids SUNY Oswego CSC 466 Spring '09 Theodore Trotz

2 Terminology A Sudoku grid contains 81 cells Each cell is a member of a particular region, row, and column There are 9 regions, rows and columns each contains 9 cells A B C D E F G H I NW N NE W C E SW S SE

3 Objective The goal of Sudoku is to fill each cell such that the numbers 1-9 appear only once in each region, column, and row A B C D E F G H I Board Consistency: T

4 Motivation Sudoku is new to the family of logic games Sudoku Player Forums Other peoples programs Few Sudoku Programs in Lisp 5,472,730,538 Sudoku boards after equivalence classes have been removed

5 Representation Each region contains an association list for the enclosed cells Rows of the board are fetched by conjoining three regions, and then passing an offset to get the desired row Columns work in a similar manner Required to board consistency

6 Backtracking Analogous to Guess and Check For each cell loop: Populate a list of 9 random numbers no duplicates Pop the first random number off the list and set that value to the current cell If the board is valid If the next cell returns true, return true from recursion Else set cell to empty Return NIL

7 User Interface Current Stage Checks Board Consistency Generates Complete Grids Load in / print out a string of length 81 representing a board configuration

8 Features To Be Added Removal of cells from completed grid to allow the user to play interactively Beat the Clock Game Play General Sudoku Solver Almost There Store / Load Boards

9 Code Segments ; IN: A zero-indexed offset to select a column AND the ; region list to which the column belongs ; OUT: A list of arity 3 which is the a-list of the column (defmethod get-region-col ((offset integer (region list &optional col (cond ((eq (nth offset region nil col ((and (> offset 2 (null col ; Do not allow initial offsets greater than 2 as ;the output is not valid nil (t (get-region-col (+ offset 3 region (append col (list (nth offset region ; IN: An association list to check for consistency. ; OUT: Returns T if the numbers 1-9 appear only once. Returns NIL if they appear more than once. (defmethod check-cells ((alist list &aux values (setf values (extract-alist-values alist (loop for i from 1 to 9 do (setf values (remove i values :count 1 (setf values (remove 0 values (cond ((null values t (t nil ; DES: This method utilizes a backtracking algorithm to populate the list of cells given. ; IN: A board and the list of cells to be filled ; OUT: Returns T when completed. (defmethod populate-cell-backtrack ((b board (cells list &aux cell random-nums (cond ((null cells t (t (setf random-nums (nine-random-nums ( (setf cell (car (car cells (dolist (value random-nums (rplacd (assoc cell cells value (display-board b (format t "Board Consistency: ~A~%" (check-board b (if (check-board b (if (populate-cell-backtrack b (cdr cells (return-from populate-cell-backtrack t (rplacd (assoc cell cells 0 nil (defclass board ( ( (nw :accessor board-nw :initform (pairlis '(c3 b3 a3 c2 b2 a2 c1 b1 a1 '( (n :accessor board-n :initform (pairlis '(f3 e3 d3 f2 e2 d2 f1 e1 d1 '( (ne :accessor board-ne :initform (pairlis '(i3 h3 g3 i2 h2 g2 i1 h1 g1 '( (w :accessor board-w :initform (pairlis '(c6 b6 a6 c5 b5 a5 c4 b4 a4 '( (c :accessor board-c :initform (pairlis '(f6 e6 d6 f5 e5 d5 f4 e4 d4 '( (e :accessor board-e :initform (pairlis '(i6 h6 g6 i5 h5 g5 i4 h4 g4 '( (sw :accessor board-sw :initform (pairlis '(c9 b9 a9 c8 b8 a8 c7 b7 a7 '( (s :accessor board-s :initform (pairlis '(f9 e9 d9 f8 e8 d8 f7 e7 d7 '( (se :accessor board-se :initform (pairlis '(i9 h9 g9 i8 h8 g8 i7 h7 g7 '(

10 #!/usr/bin/perl -w use 5.004; use CGI qw(:standard; Perl Script my $clisp = "/opt/sfw/bin/clisp -q "; #-----[ Main Routine ] print header(-type => 'text/html'; print start_html(-head => style({-type => 'text/css'}, join('',<data>,, ; displayboard(; print end_html; print "\n"; exit 0; #-----[ Subroutines ] sub displayboard { print '<pre>'; $path = "/home/trotz/public-html/csc466/cgi/sudoku-cgi.fas"; system $clisp. $path; print '</pre>'; } DATA pre { text-align: center; }

11 Questions?

12 References [1] Delahaye, Jean-Paul. The Science Behind SUDOKU. Scientific American (June 2006: Business Source Premier. EBSCO. 23 Feb [2] Chang,Christopher. hsolve: A Difficulty Metric and Puzzle Generator for Sudoku [3] Chandwick, Seth. Ease and Toil: Analyzing Sudoku. UMAP 29(2008: [4] Dahl, Geir. Permutation matracies related to Sudoku. Linear Algebra and its Applications (2008: 1-7 [5] Santos-Garcia, Gustavo. Solving Sudoku Puzzles with Rewriting Rules. Electronic Notes in Theoretical Computer Science 176( [6] Schreiner, Axel. Sudoku A little lesson in OOP. ACM SIGCSE Bullitin 40(2008: [7] Hui-Dong, MO. Sudoku Square a New Design in Field Experiments. ACTA Argonomica Sinica 34(2008: [8] Boyer, Christian. Sudoku's French Ancestors Solutions to the Problems. Math Intel 29(2007: [9] Glaister, Elizabeth. Su Doku. Mathematics in School 34(2005: 2-3. [10] Martin, David. Cracking the Sudoku: A Deterministic Approach. UMAP 29(2008:

A Tic Tac Toe Learning Machine Involving the Automatic Generation and Application of Heuristics

A Tic Tac Toe Learning Machine Involving the Automatic Generation and Application of Heuristics A Tic Tac Toe Learning Machine Involving the Automatic Generation and Application of Heuristics Thomas Abtey SUNY Oswego Abstract Heuristics programs have been used to solve problems since the beginning

More information

Sudoku Solver Version: 2.5 Due Date: April 5 th 2013

Sudoku Solver Version: 2.5 Due Date: April 5 th 2013 Sudoku Solver Version: 2.5 Due Date: April 5 th 2013 Summary: For this assignment you will be writing a program to solve Sudoku puzzles. You are provided with a makefile, the.h files, and cell.cpp, and

More information

isudoku Computing Solutions to Sudoku Puzzles w/ 3 Algorithms by: Gavin Hillebrand Jamie Sparrow Jonathon Makepeace Matthew Harris

isudoku Computing Solutions to Sudoku Puzzles w/ 3 Algorithms by: Gavin Hillebrand Jamie Sparrow Jonathon Makepeace Matthew Harris isudoku Computing Solutions to Sudoku Puzzles w/ 3 Algorithms by: Gavin Hillebrand Jamie Sparrow Jonathon Makepeace Matthew Harris What is Sudoku? A logic-based puzzle game Heavily based in combinatorics

More information

Automatically Generating Puzzle Problems with Varying Complexity

Automatically Generating Puzzle Problems with Varying Complexity Automatically Generating Puzzle Problems with Varying Complexity Amy Chou and Justin Kaashoek Mentor: Rishabh Singh Fourth Annual PRIMES MIT Conference May 19th, 2014 The Motivation We want to help people

More information

Cracking the Sudoku: A Deterministic Approach

Cracking the Sudoku: A Deterministic Approach Cracking the Sudoku: A Deterministic Approach David Martin Erica Cross Matt Alexander Youngstown State University Youngstown, OH Advisor: George T. Yates Summary Cracking the Sodoku 381 We formulate a

More information

AllegroCache Tutorial. Franz Inc

AllegroCache Tutorial. Franz Inc AllegroCache Tutorial Franz Inc 1 Introduction AllegroCache is an object database built on top of the Common Lisp Object System. In this tutorial we will demonstrate how to use AllegroCache to build, retrieve

More information

SudokuSplashZone. Overview 3

SudokuSplashZone. Overview 3 Overview 3 Introduction 4 Sudoku Game 4 Game grid 4 Cell 5 Row 5 Column 5 Block 5 Rules of Sudoku 5 Entering Values in Cell 5 Solver mode 6 Drag and Drop values in Solver mode 6 Button Inputs 7 Check the

More information

8. You Won t Want To Play Sudoku Again

8. You Won t Want To Play Sudoku Again 8. You Won t Want To Play Sudoku Again Thanks to modern computers, brawn beats brain. Programming constructs and algorithmic paradigms covered in this puzzle: Global variables. Sets and set operations.

More information

Mobile SuDoKu Harvesting App

Mobile SuDoKu Harvesting App Mobile SuDoKu Harvesting App Benjamin Zwiener Department of Computer Science Doane University 1014 Boswell Ave, Crete, NE, 68333 benjamin.zwiener@doane.edu Abstract The purpose of this project was to create

More information

The Mathematics Behind Sudoku Laura Olliverrie Based off research by Bertram Felgenhauer, Ed Russel and Frazer Jarvis. Abstract

The Mathematics Behind Sudoku Laura Olliverrie Based off research by Bertram Felgenhauer, Ed Russel and Frazer Jarvis. Abstract The Mathematics Behind Sudoku Laura Olliverrie Based off research by Bertram Felgenhauer, Ed Russel and Frazer Jarvis Abstract I will explore the research done by Bertram Felgenhauer, Ed Russel and Frazer

More information

Sudoku Touch. 1-4 players, adult recommended. Sudoku Touch by. Bring your family back together!

Sudoku Touch. 1-4 players, adult recommended. Sudoku Touch by. Bring your family back together! Sudoku Touch Sudoku Touch by Bring your family back together! 1-4 players, adult recommended Sudoku Touch is a logic game, allowing up to 4 users to play at once. The game can be played with individual

More information

Python for education: the exact cover problem

Python for education: the exact cover problem Python for education: the exact cover problem arxiv:1010.5890v1 [cs.ds] 28 Oct 2010 A. Kapanowski Marian Smoluchowski Institute of Physics, Jagellonian University, ulica Reymonta 4, 30-059 Kraków, Poland

More information

ON 4-DIMENSIONAL CUBE AND SUDOKU

ON 4-DIMENSIONAL CUBE AND SUDOKU ON 4-DIMENSIONAL CUBE AND SUDOKU Marián TRENKLER Abstract. The number puzzle SUDOKU (Number Place in the U.S.) has recently gained great popularity. We point out a relationship between SUDOKU and 4- dimensional

More information

UN DOS TREZ Sudoku Competition. Puzzle Booklet for Preliminary Round. 19-Feb :45PM 75 minutes

UN DOS TREZ Sudoku Competition. Puzzle Booklet for Preliminary Round. 19-Feb :45PM 75 minutes Name: College: Email id: Contact: UN DOS TREZ Sudoku Competition Puzzle Booklet for Preliminary Round 19-Feb-2010 4:45PM 75 minutes In Association With www.logicmastersindia.com Rules of Sudoku A typical

More information

ISudoku. Jonathon Makepeace Matthew Harris Jamie Sparrow Julian Hillebrand

ISudoku. Jonathon Makepeace Matthew Harris Jamie Sparrow Julian Hillebrand Jonathon Makepeace Matthew Harris Jamie Sparrow Julian Hillebrand ISudoku Abstract In this paper, we will analyze and discuss the Sudoku puzzle and implement different algorithms to solve the puzzle. After

More information

An improved strategy for solving Sudoku by sparse optimization methods

An improved strategy for solving Sudoku by sparse optimization methods An improved strategy for solving Sudoku by sparse optimization methods Yuchao Tang, Zhenggang Wu 2, Chuanxi Zhu. Department of Mathematics, Nanchang University, Nanchang 33003, P.R. China 2. School of

More information

BMT 2018 Combinatorics Test Solutions March 18, 2018

BMT 2018 Combinatorics Test Solutions March 18, 2018 . Bob has 3 different fountain pens and different ink colors. How many ways can he fill his fountain pens with ink if he can only put one ink in each pen? Answer: 0 Solution: He has options to fill his

More information

Techniques for Generating Sudoku Instances

Techniques for Generating Sudoku Instances Chapter Techniques for Generating Sudoku Instances Overview Sudoku puzzles become worldwide popular among many players in different intellectual levels. In this chapter, we are going to discuss different

More information

Spring 06 Assignment 2: Constraint Satisfaction Problems

Spring 06 Assignment 2: Constraint Satisfaction Problems 15-381 Spring 06 Assignment 2: Constraint Satisfaction Problems Questions to Vaibhav Mehta(vaibhav@cs.cmu.edu) Out: 2/07/06 Due: 2/21/06 Name: Andrew ID: Please turn in your answers on this assignment

More information

Investigation of Algorithmic Solutions of Sudoku Puzzles

Investigation of Algorithmic Solutions of Sudoku Puzzles Investigation of Algorithmic Solutions of Sudoku Puzzles Investigation of Algorithmic Solutions of Sudoku Puzzles The game of Sudoku as we know it was first developed in the 1979 by a freelance puzzle

More information

A Group-theoretic Approach to Human Solving Strategies in Sudoku

A Group-theoretic Approach to Human Solving Strategies in Sudoku Colonial Academic Alliance Undergraduate Research Journal Volume 3 Article 3 11-5-2012 A Group-theoretic Approach to Human Solving Strategies in Sudoku Harrison Chapman University of Georgia, hchaps@gmail.com

More information

On the Combination of Constraint Programming and Stochastic Search: The Sudoku Case

On the Combination of Constraint Programming and Stochastic Search: The Sudoku Case On the Combination of Constraint Programming and Stochastic Search: The Sudoku Case Rhydian Lewis Cardiff Business School Pryfysgol Caerdydd/ Cardiff University lewisr@cf.ac.uk Talk Plan Introduction:

More information

Final Project: Verify a Sudoku Solution Due Fri Apr 29 (2400 hrs)? Wed May 4 (1200 hrs)? 1

Final Project: Verify a Sudoku Solution Due Fri Apr 29 (2400 hrs)? Wed May 4 (1200 hrs)? 1 Final Project: Verify a Sudoku Solution Due Fri Apr 29 (2400 hrs)? Wed May 4 (1200 hrs)? 1 A. Why? A final project is a good way to have students combine topics from the entire semester, to see how they

More information

ENGR170 Assignment Problem Solving with Recursion Dr Michael M. Marefat

ENGR170 Assignment Problem Solving with Recursion Dr Michael M. Marefat ENGR170 Assignment Problem Solving with Recursion Dr Michael M. Marefat Overview The goal of this assignment is to find solutions for the 8-queen puzzle/problem. The goal is to place on a 8x8 chess board

More information

patterns in mathematics unit 3 notes.notebook Unit 3: Patterns in Mathematics

patterns in mathematics unit 3 notes.notebook Unit 3: Patterns in Mathematics Unit 3: Patterns in Mathematics Entrance Activity (10 minutes!) 1 Topic 1: Understanding the relationships within a tables of values to solve problems. Lesson 1: Creating Representations of Relationships

More information

Welcome to the Sudoku and Kakuro Help File.

Welcome to the Sudoku and Kakuro Help File. HELP FILE Welcome to the Sudoku and Kakuro Help File. This help file contains information on how to play each of these challenging games, as well as simple strategies that will have you solving the harder

More information

Spring 06 Assignment 2: Constraint Satisfaction Problems

Spring 06 Assignment 2: Constraint Satisfaction Problems 15-381 Spring 06 Assignment 2: Constraint Satisfaction Problems Questions to Vaibhav Mehta(vaibhav@cs.cmu.edu) Out: 2/07/06 Due: 2/21/06 Name: Andrew ID: Please turn in your answers on this assignment

More information

Informatica Universiteit van Amsterdam. Performance optimization of Rush Hour board generation. Jelle van Dijk. June 8, Bachelor Informatica

Informatica Universiteit van Amsterdam. Performance optimization of Rush Hour board generation. Jelle van Dijk. June 8, Bachelor Informatica Bachelor Informatica Informatica Universiteit van Amsterdam Performance optimization of Rush Hour board generation. Jelle van Dijk June 8, 2018 Supervisor(s): dr. ir. A.L. (Ana) Varbanescu Signed: Signees

More information

Taking Sudoku Seriously

Taking Sudoku Seriously Taking Sudoku Seriously Laura Taalman, James Madison University You ve seen them played in coffee shops, on planes, and maybe even in the back of the room during class. These days it seems that everyone

More information

Yet Another Organized Move towards Solving Sudoku Puzzle

Yet Another Organized Move towards Solving Sudoku Puzzle !" ##"$%%# &'''( ISSN No. 0976-5697 Yet Another Organized Move towards Solving Sudoku Puzzle Arnab K. Maji* Department Of Information Technology North Eastern Hill University Shillong 793 022, Meghalaya,

More information

Selected Game Examples

Selected Game Examples Games in the Classroom ~Examples~ Genevieve Orr Willamette University Salem, Oregon gorr@willamette.edu Sciences in Colleges Northwestern Region Selected Game Examples Craps - dice War - cards Mancala

More information

Take Control of Sudoku

Take Control of Sudoku Take Control of Sudoku Simon Sunatori, P.Eng./ing., M.Eng. (Engineering Physics), F.N.A., SM IEEE, LM WFS MagneScribe : A 3-in-1 Auto-Retractable Pen

More information

sudoku 16x16 454BB8EA3E376999F4F40AF890078C0E Sudoku 16x16 1 / 6

sudoku 16x16 454BB8EA3E376999F4F40AF890078C0E Sudoku 16x16 1 / 6 Sudoku 16x16 1 / 6 2 / 6 3 / 6 Sudoku 16x16 Sudoku 16x16. A very popular layout the Sudoku 16x16 puzzles present a satisfying challenge. Like the 9x9 puzzles this variation has square inner boxes. It is

More information

More Recursion: NQueens

More Recursion: NQueens More Recursion: NQueens continuation of the recursion topic notes on the NQueens problem an extended example of a recursive solution CISC 121 Summer 2006 Recursion & Backtracking 1 backtracking Recursion

More information

REVIEW ON LATIN SQUARE

REVIEW ON LATIN SQUARE Available Online at www.ijcsmc.com International Journal of Computer Science and Mobile Computing A Monthly Journal of Computer Science and Information Technology IJCSMC, Vol. 3, Issue. 7, July 2014, pg.338

More information

Using Artificial intelligent to solve the game of 2048

Using Artificial intelligent to solve the game of 2048 Using Artificial intelligent to solve the game of 2048 Ho Shing Hin (20343288) WONG, Ngo Yin (20355097) Lam Ka Wing (20280151) Abstract The report presents the solver of the game 2048 base on artificial

More information

The University of Algarve Informatics Laboratory

The University of Algarve Informatics Laboratory arxiv:0709.1056v2 [cs.hc] 13 Sep 2007 The University of Algarve Informatics Laboratory UALG-ILAB September, 2007 A Sudoku Game for People with Motor Impairments Stéphane Norte, and Fernando G. Lobo Department

More information

Latin Squares for Elementary and Middle Grades

Latin Squares for Elementary and Middle Grades Latin Squares for Elementary and Middle Grades Yul Inn Fun Math Club email: Yul.Inn@FunMathClub.com web: www.funmathclub.com Abstract: A Latin square is a simple combinatorial object that arises in many

More information

Design and Implementation of Game Based Security Model to Secure the Information Contents

Design and Implementation of Game Based Security Model to Secure the Information Contents Available online www.ejaet.com European Journal of Advances in Engineering and Technology, 2018, 5(7): 474-480 Research Article ISSN: 2394-658X Design and Implementation of Game Based Security Model to

More information

Lisp: Case Study ref: Lisp (3 rd Ed) Winston & Horn (Chapter 6) Donald F. Ross

Lisp: Case Study ref: Lisp (3 rd Ed) Winston & Horn (Chapter 6) Donald F. Ross Lisp: Case Study ref: Lisp (3 rd Ed) Winston & Horn (Chapter 6) Donald F. Ross Lisp: Case Study Exercise build a library system object: book collection:library title / author / class (attributes) data

More information

CMPT 310 Assignment 1

CMPT 310 Assignment 1 CMPT 310 Assignment 1 October 4, 2017 100 points total, worth 10% of the course grade. Turn in on CourSys. Submit a compressed directory (.zip or.tar.gz) with your solutions. Code should be submitted as

More information

CMSC 201 Fall 2018 Project 3 Sudoku

CMSC 201 Fall 2018 Project 3 Sudoku CMSC 201 Fall 2018 Project 3 Sudoku Assignment: Project 3 Sudoku Due Date: Design Document: Tuesday, December 4th, 2018 by 8:59:59 PM Project: Tuesday, December 11th, 2018 by 8:59:59 PM Value: 80 points

More information

1 Recursive Solvers. Computational Problem Solving Michael H. Goldwasser Saint Louis University Tuesday, 23 September 2014

1 Recursive Solvers. Computational Problem Solving Michael H. Goldwasser Saint Louis University Tuesday, 23 September 2014 CSCI 269 Fall 2014 Handout: Recursive Solvers Computational Problem Solving Michael H. Goldwasser Saint Louis University Tuesday, 23 September 2014 1 Recursive Solvers For today s practice, we look at

More information

Sudoku: Is it Mathematics?

Sudoku: Is it Mathematics? Sudoku: Is it Mathematics? Peter J. Cameron Forder lectures April 2008 There s no mathematics involved. Use logic and reasoning to solve the puzzle. Instructions in The Independent There s no mathematics

More information

puzzles may not be published without written authorization

puzzles may not be published without written authorization Presentational booklet of various kinds of puzzles by DJAPE In this booklet: - Hanjie - Hitori - Slitherlink - Nurikabe - Tridoku - Hidoku - Straights - Calcudoku - Kakuro - And 12 most popular Sudoku

More information

INTRODUCTION TO COMPUTER SCIENCE I PROJECT 6 Sudoku! Revision 2 [2010-May-04] 1

INTRODUCTION TO COMPUTER SCIENCE I PROJECT 6 Sudoku! Revision 2 [2010-May-04] 1 INTRODUCTION TO COMPUTER SCIENCE I PROJECT 6 Sudoku! Revision 2 [2010-May-04] 1 1 The game of Sudoku Sudoku is a game that is currently quite popular and giving crossword puzzles a run for their money

More information

Solving and Analyzing Sudokus with Cultural Algorithms 5/30/2008. Timo Mantere & Janne Koljonen

Solving and Analyzing Sudokus with Cultural Algorithms 5/30/2008. Timo Mantere & Janne Koljonen with Cultural Algorithms Timo Mantere & Janne Koljonen University of Vaasa Department of Electrical Engineering and Automation P.O. Box, FIN- Vaasa, Finland timan@uwasa.fi & jako@uwasa.fi www.uwasa.fi/~timan/sudoku

More information

A Retrievable Genetic Algorithm for Efficient Solving of Sudoku Puzzles Seyed Mehran Kazemi, Bahare Fatemi

A Retrievable Genetic Algorithm for Efficient Solving of Sudoku Puzzles Seyed Mehran Kazemi, Bahare Fatemi A Retrievable Genetic Algorithm for Efficient Solving of Sudoku Puzzles Seyed Mehran Kazemi, Bahare Fatemi Abstract Sudoku is a logic-based combinatorial puzzle game which is popular among people of different

More information

Logic Masters India Presents

Logic Masters India Presents Logic Masters India Presents February 12 13, 2011 February 2011 Monthly Sudoku Test INSTRUCTION BOOKLET Submission: http://logicmastersindia.com/m201102s/ This contest deals with Sudoku variants. Each

More information

The KNIME Image Processing Extension User Manual (DRAFT )

The KNIME Image Processing Extension User Manual (DRAFT ) The KNIME Image Processing Extension User Manual (DRAFT ) Christian Dietz and Martin Horn February 6, 2014 1 Contents 1 Introduction 3 1.1 Installation............................ 3 2 Basic Concepts 4

More information

Python for Education: The Exact Cover Problem

Python for Education: The Exact Cover Problem Python for Education: The Exact Cover Problem Andrzej Kapanowski Marian Smoluchowski Institute of Physics, Jagiellonian University, Cracow, Poland andrzej.kapanowski@uj.edu.pl Abstract Python implementation

More information

Describes the operation of multiplying by ten as adding a nought

Describes the operation of multiplying by ten as adding a nought Describes the operation of multiplying by ten as adding a nought Opportunity for: investigating numbers Interactive Teaching Program (ITP) Number Grid, how many times group or paper copy of 100-square

More information

Classwork Example 1: Exploring Subtraction with the Integer Game

Classwork Example 1: Exploring Subtraction with the Integer Game 7.2.5 Lesson Date Understanding Subtraction of Integers Student Objectives I can justify the rule for subtraction: Subtracting a number is the same as adding its opposite. I can relate the rule for subtraction

More information

Part III F F J M. Name

Part III F F J M. Name Name 1. Pentaminoes 15 points 2. Pearls (Masyu) 20 points 3. Five Circles 30 points 4. Mastermindoku 35 points 5. Unequal Skyscrapers 40 points 6. Hex Alternate Corners 40 points 7. Easy Islands 45 points

More information

SUDOKU X. Samples Document. by Andrew Stuart. Moderate

SUDOKU X. Samples Document. by Andrew Stuart. Moderate SUDOKU X Moderate Samples Document by Andrew Stuart About Sudoku X This is a variant of the popular Sudoku puzzle which contains two extra constraints on the solution, namely the diagonals, typically indicated

More information

! Denver, CO! Demystifying Computing with Magic, continued

! Denver, CO! Demystifying Computing with Magic, continued 2012-03-07! Denver, CO! Demystifying Computing with Magic, continued Special Session Overview Motivation The 7 magic tricks ú Real-Time 4x4 Magic Square ú Left/Right Game ú The Tricky Dice ú The Numbers

More information

The mathematics of Septoku

The mathematics of Septoku The mathematics of Septoku arxiv:080.397v4 [math.co] Dec 203 George I. Bell gibell@comcast.net, http://home.comcast.net/~gibell/ Mathematics Subject Classifications: 00A08, 97A20 Abstract Septoku is a

More information

Implementation of Recursively Enumerable Languages in Universal Turing Machine

Implementation of Recursively Enumerable Languages in Universal Turing Machine Implementation of Recursively Enumerable Languages in Universal Turing Machine Sumitha C.H, Member, ICMLC and Krupa Ophelia Geddam Abstract This paper presents the design and working of a Universal Turing

More information

WPF SUDOKU/PUZZLE GRAND PRIX 2014 WPF SUDOKU GP 2014 COMPETITION BOOKLET ROUND 4. Puzzle authors: Russia Andrey Bogdanov, Olga Leontieva.

WPF SUDOKU/PUZZLE GRAND PRIX 2014 WPF SUDOKU GP 2014 COMPETITION BOOKLET ROUND 4. Puzzle authors: Russia Andrey Bogdanov, Olga Leontieva. WPF SUDOKU/PUZZLE GRAND PRIX 204 WPF SUDOKU GP 204 COMPETITION BOOKLET Puzzle authors: Russia Andrey Bogdanov, Olga Leontieva Organised by Classic Sudoku ( points) Answer Key: Enter the st row of digits,

More information

Olympiad Combinatorics. Pranav A. Sriram

Olympiad Combinatorics. Pranav A. Sriram Olympiad Combinatorics Pranav A. Sriram August 2014 Chapter 2: Algorithms - Part II 1 Copyright notices All USAMO and USA Team Selection Test problems in this chapter are copyrighted by the Mathematical

More information

Modelling Sudoku Puzzles as Block-world Problems

Modelling Sudoku Puzzles as Block-world Problems Modelling Sudoku Puzzles as Block-world Problems Cecilia Nugraheni and Luciana Abednego Abstract Sudoku is a kind of logic puzzles. Each puzzle consists of a board, which is a 9 9 cells, divided into nine

More information

CMPT 310 Assignment 1

CMPT 310 Assignment 1 CMPT 310 Assignment 1 October 16, 2017 100 points total, worth 10% of the course grade. Turn in on CourSys. Submit a compressed directory (.zip or.tar.gz) with your solutions. Code should be submitted

More information

Hill-Climbing Lights Out: A Benchmark

Hill-Climbing Lights Out: A Benchmark Hill-Climbing Lights Out: A Benchmark Abstract We introduce and discuss various theorems concerning optimizing search strategies for finding solutions to the popular game Lights Out. We then discuss how

More information

Kenken For Teachers. Tom Davis January 8, Abstract

Kenken For Teachers. Tom Davis   January 8, Abstract Kenken For Teachers Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles January 8, 00 Abstract Kenken is a puzzle whose solution requires a combination of logic and simple arithmetic

More information

The most difficult Sudoku puzzles are quickly solved by a straightforward depth-first search algorithm

The most difficult Sudoku puzzles are quickly solved by a straightforward depth-first search algorithm The most difficult Sudoku puzzles are quickly solved by a straightforward depth-first search algorithm Armando B. Matos armandobcm@yahoo.com LIACC Artificial Intelligence and Computer Science Laboratory

More information

You ve seen them played in coffee shops, on planes, and

You ve seen them played in coffee shops, on planes, and Every Sudoku variation you can think of comes with its own set of interesting open questions There is math to be had here. So get working! Taking Sudoku Seriously Laura Taalman James Madison University

More information

Sudoku Book: 200 Sudoku Puzzles Of All Difficulties (Volume 2) By Djape READ ONLINE

Sudoku Book: 200 Sudoku Puzzles Of All Difficulties (Volume 2) By Djape READ ONLINE Sudoku Book: 200 Sudoku Puzzles Of All Difficulties (Volume 2) By Djape READ ONLINE The Sudoku website contains online (interactive) and printable sudoku puzzles, ordered by difficulty level. Featuring

More information

Logic Masters India Presents. April 14 16, 2012 April 2012 Monthly Sudoku Test INSTRUCTION BOOKLET

Logic Masters India Presents. April 14 16, 2012 April 2012 Monthly Sudoku Test INSTRUCTION BOOKLET Logic Masters India Presents April 14 16, 2012 April 2012 Monthly Sudoku Test INSTRUCTION BOOKLET Thanks to Tawan Sunathvanichkul (ta mz29) for test solving the puzzles and David Millar for designing the

More information

GET OVERLAPPED! Author: Huang Yi. Forum thread:

GET OVERLAPPED! Author: Huang Yi. Forum thread: GET OVERLAPPED! Author: Huang Yi Test page: http://logicmastersindia.com/2019/02s/ Forum thread: http://logicmastersindia.com/forum/forums/thread-view.asp?tid=2690 About this Test: This test presents a

More information

Heuristics, and what to do if you don t know what to do. Carl Hultquist

Heuristics, and what to do if you don t know what to do. Carl Hultquist Heuristics, and what to do if you don t know what to do Carl Hultquist What is a heuristic? Relating to or using a problem-solving technique in which the most appropriate solution of several found by alternative

More information

Tetrabonacci Subgroup of the Symmetric Group over the Magic Squares Semigroup

Tetrabonacci Subgroup of the Symmetric Group over the Magic Squares Semigroup Tetrabonacci Subgroup of the Symmetric Group over the Magic Squares Semigroup Babayo A.M. 1, G.U.Garba 2 1. Department of Mathematics and Computer Science, Faculty of Science, Federal University Kashere,

More information

For Better Brains. SUDOKU ROYALE! INSTRUCTION BOOK

For Better Brains. SUDOKU ROYALE! INSTRUCTION BOOK E LVERSON PUZZL E TM For etter rains. SUOKU ROYALE! INSTRUTION OOK TM For or more Players For Ages and Up ONTENTS game mat game chips ( sets of colors) travel bag OJET Players take turns solving a sudoku

More information

T H E M A T H O F S U D O K U

T H E M A T H O F S U D O K U T H E M A T H S U D O K U O F Oscar Vega. Department of Mathematics. College of Science and Mathematics Centennial Celebration. California State University, Fresno. May 13 th, 2011. The Game A Sudoku board

More information

Synthesizing Interpretable Strategies for Solving Puzzle Games

Synthesizing Interpretable Strategies for Solving Puzzle Games Synthesizing Interpretable Strategies for Solving Puzzle Games Eric Butler edbutler@cs.washington.edu Paul G. Allen School of Computer Science and Engineering University of Washington Emina Torlak emina@cs.washington.edu

More information

Beyond Prolog: Constraint Logic Programming

Beyond Prolog: Constraint Logic Programming Beyond Prolog: Constraint Logic Programming This lecture will cover: generate and test as a problem solving approach in Prolog introduction to programming with CLP(FD) using constraints to solve a puzzle

More information

HP-71B Sudoku Generator... & Coach!

HP-71B Sudoku Generator... & Coach! HP-71B Sudoku Generator... & Coach! Valentín Albillo (#1075, PPC #4747) After my original article HP-71B Short & Sweet Sudoku Solver first appeared in Datafile V24N2P22, shortly followed by the modestly

More information

Sudoku: More Than 200 Fun And Challenging Japanese Number Puzzles By Tammy Seto READ ONLINE

Sudoku: More Than 200 Fun And Challenging Japanese Number Puzzles By Tammy Seto READ ONLINE Sudoku: More Than 200 Fun And Challenging Japanese Number Puzzles By Tammy Seto READ ONLINE See more ideas about Sudoku puzzles, Puzzles and Crossword. Japanese Sudoku World Champion on Winning It All

More information

Enumerating 3D-Sudoku Solutions over Cubic Prefractal Objects

Enumerating 3D-Sudoku Solutions over Cubic Prefractal Objects Regular Paper Enumerating 3D-Sudoku Solutions over Cubic Prefractal Objects Hideki Tsuiki 1,a) Yohei Yokota 1, 1 Received: September 1, 2011, Accepted: December 16, 2011 Abstract: We consider three-dimensional

More information

It Stands to Reason: Developing Inductive and Deductive Habits of Mind

It Stands to Reason: Developing Inductive and Deductive Habits of Mind It Stands to Reason: Developing Inductive and Deductive Habits of Mind Jeffrey Wanko Miami University wankojj@miamioh.edu Presented at a Meeting of the Greater Cleveland Council of Teachers of Mathematics

More information

Mathematics of Magic Squares and Sudoku

Mathematics of Magic Squares and Sudoku Mathematics of Magic Squares and Sudoku Introduction This article explains How to create large magic squares (large number of rows and columns and large dimensions) How to convert a four dimensional magic

More information

Solution Algorithm to the Sam Loyd (n 2 1) Puzzle

Solution Algorithm to the Sam Loyd (n 2 1) Puzzle Solution Algorithm to the Sam Loyd (n 2 1) Puzzle Kyle A. Bishop Dustin L. Madsen December 15, 2009 Introduction The Sam Loyd puzzle was a 4 4 grid invented in the 1870 s with numbers 0 through 15 on each

More information

Mega Sudoku 16x16 - Facile - Volume Puzzle (Italian Edition) By Nick Snels READ ONLINE

Mega Sudoku 16x16 - Facile - Volume Puzzle (Italian Edition) By Nick Snels READ ONLINE Mega Sudoku 16x16 - Facile - Volume 30-276 Puzzle (Italian Edition) By Nick Snels READ ONLINE If you are looking for the ebook by Nick Snels Mega Sudoku 16x16 - Facile - Volume 30-276 Puzzle (Italian Edition)

More information

Solving Who Am I? Puzzles. Building Who Am I? Puzzles. t u Who Am I? The product of my digits is 16. The sum of my digits is 8. Who Am I?

Solving Who Am I? Puzzles. Building Who Am I? Puzzles. t u Who Am I? The product of my digits is 16. The sum of my digits is 8. Who Am I? Solving Puzzles The product of my digits is 7. The sum of my digits is 8. My units digit is greater than my tens digit. I am even. My tens digit is. h t u The product of my three digits is 2. h is four

More information

CPM Educational Program

CPM Educational Program CC COURSE 2 ETOOLS Table of Contents General etools... 5 Algebra Tiles (CPM)... 6 Pattern Tile & Dot Tool (CPM)... 9 Area and Perimeter (CPM)...11 Base Ten Blocks (CPM)...14 +/- Tiles & Number Lines (CPM)...16

More information

of Nebraska - Lincoln

of Nebraska - Lincoln University of Nebraska - Lincoln DigitalCommons@University of Nebraska - Lincoln MAT Exam Expository Papers Math in the Middle Institute Partnership 7-2009 Sudoku Marlene Grayer University of Nebraska-Lincoln

More information

Minimum Zero-Centre-Pandiagonal Composite Type II (a) Magic Squares over Multi Set of Integer Numbers as a Semiring

Minimum Zero-Centre-Pandiagonal Composite Type II (a) Magic Squares over Multi Set of Integer Numbers as a Semiring Minimum Zero-Centre-Pandiagonal Composite Type II (a) Magic Squares over Multi Set of Integer Numbers as a Semiring Babayo A.M. 1, Moharram Ali Khan 2 1. Department of Mathematics and Computer Science,

More information

Colossal Cave Collection Sampler

Colossal Cave Collection Sampler Collection Sampler by Roger Barkan GRANDMASTER PUZZLES LE UZZ Z S P E Z S U U G M E SZ P L Z UZ M www. GMPUZZLES.com Notes: This sampler contains (out of 100) puzzles from the full title, as well as the

More information

Overview. The Big Picture... CSC 580 Cryptography and Computer Security. January 25, Math Basics for Cryptography

Overview. The Big Picture... CSC 580 Cryptography and Computer Security. January 25, Math Basics for Cryptography CSC 580 Cryptography and Computer Security Math Basics for Cryptography January 25, 2018 Overview Today: Math basics (Sections 2.1-2.3) To do before Tuesday: Complete HW1 problems Read Sections 3.1, 3.2

More information

The patterns considered here are black and white and represented by a rectangular grid of cells. Here is a typical pattern: [Redundant]

The patterns considered here are black and white and represented by a rectangular grid of cells. Here is a typical pattern: [Redundant] Pattern Tours The patterns considered here are black and white and represented by a rectangular grid of cells. Here is a typical pattern: [Redundant] A sequence of cell locations is called a path. A path

More information

Dice Activities for Algebraic Thinking

Dice Activities for Algebraic Thinking Foreword Dice Activities for Algebraic Thinking Successful math students use the concepts of algebra patterns, relationships, functions, and symbolic representations in constructing solutions to mathematical

More information

CS/COE 1501

CS/COE 1501 CS/COE 1501 www.cs.pitt.edu/~lipschultz/cs1501/ Brute-force Search Brute-force (or exhaustive) search Find the solution to a problem by considering all potential solutions and selecting the correct one

More information

UKPA Presents. March 12 13, 2011 INSTRUCTION BOOKLET.

UKPA Presents. March 12 13, 2011 INSTRUCTION BOOKLET. UKPA Presents March 12 13, 2011 INSTRUCTION BOOKLET This contest deals with Sudoku and its variants. The Puzzle types are: No. Puzzle Points 1 ChessDoku 20 2 PanDigital Difference 25 3 Sequence Sudoku

More information

SUDOKU SURPRISE. Hosted by Logic Masters India November Puzzles set by David McNeill Tested by Tom Collyer, Yuhei Kusui and Robert Vollmert

SUDOKU SURPRISE. Hosted by Logic Masters India November Puzzles set by David McNeill Tested by Tom Collyer, Yuhei Kusui and Robert Vollmert SUDOKU SURPRISE Hosted by Logic Masters India November 2014 Puzzles set by David McNeill Tested by Tom Collyer, Yuhei Kusui and Robert Vollmert I was exhausted after the World Puzzle and Sudoku Championships.

More information

Some results on Su Doku

Some results on Su Doku Some results on Su Doku Sourendu Gupta March 2, 2006 1 Proofs of widely known facts Definition 1. A Su Doku grid contains M M cells laid out in a square with M cells to each side. Definition 2. For every

More information

FreeCell Puzzle Protocol Document

FreeCell Puzzle Protocol Document AI Puzzle Framework FreeCell Puzzle Protocol Document Brian Shaver April 11, 2005 FreeCell Puzzle Protocol Document Page 2 of 7 Table of Contents Table of Contents...2 Introduction...3 Puzzle Description...

More information

A. Rules of blackjack, representations, and playing blackjack

A. Rules of blackjack, representations, and playing blackjack CSCI 4150 Introduction to Artificial Intelligence, Fall 2005 Assignment 7 (140 points), out Monday November 21, due Thursday December 8 Learning to play blackjack In this assignment, you will implement

More information

Week 1 Assignment Word Search

Week 1 Assignment Word Search Week 1 Assignment Word Search Overview For this assignment, you will program functionality relevant to a word search puzzle game, the game that presents the challenge of discovering specific words in a

More information

Simon Nestler Florian Echtler Andreas Dippon Gudrun Klinker

Simon Nestler Florian Echtler Andreas Dippon Gudrun Klinker Simon Nestler Florian Echtler Andreas Dippon Gudrun Klinker Introduction Motivation: mass casualty incidents Collaboration between.. Paramedics and doctors (mobile hand-helds) Operation control center

More information

A comparison of a genetic algorithm and a depth first search algorithm applied to Japanese nonograms

A comparison of a genetic algorithm and a depth first search algorithm applied to Japanese nonograms A comparison of a genetic algorithm and a depth first search algorithm applied to Japanese nonograms Wouter Wiggers Faculty of EECMS, University of Twente w.a.wiggers@student.utwente.nl ABSTRACT In this

More information

Arithmetic Sequences Read 8.2 Examples 1-4

Arithmetic Sequences Read 8.2 Examples 1-4 CC Algebra II HW #8 Name Period Row Date Arithmetic Sequences Read 8.2 Examples -4 Section 8.2 In Exercises 3 0, tell whether the sequence is arithmetic. Explain your reasoning. (See Example.) 4. 2, 6,

More information