2009/11/14GPW20091 Analysis of the Behavior of People Solving Sudoku Puzzles Reijer Grimbergen School of Computer Science, Tokyo University of Technology.

Slides:



Advertisements
Similar presentations
Computing Science 1P Large Group Tutorial 19 Simon Gay Department of Computing Science University of Glasgow 2006/07.
Advertisements

Department of Mathematics and Science
How to play SUDOKU adapted from Tilda Rosander.
Number Grid Task Task 1Task 2Task 3Task 4 Task 5Task 6Task 7Task 8 Task 9Task 10 NC Level 5 to 8.
Input & Output Machines
Project Proposal.
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.
Sudoku. Introduction In this presentation I will cover the Sudoku puzzle, some basics of its complexity as well as specifically discussing the complexity.
October 28th 2001GPW20011 Using Castle and Assault Maps for Guiding Opening and Middle Game Play in Shogi Reijer Grimbergen (Saga University) Jeff Rollason.
1 CSC 421: Algorithm Design & Analysis Spring 2013 See online syllabus: (also on BlueLine2) Course.
Representing a Game Board In a game, we represent the action taking place using an array – In a very simple game, we use individual variables to represent.
Structured Graphs and Applications
Connect Four Michelle Chen Felix Chung Annabel Hung Raymond Wong.
Is Sampling Useful in Data Mining? A Case in the Maintenance of Discovered Association Rules S.D. Lee, D. W. Cheung, B. Kao Department of Computer Science.
Liang, Introduction to Programming with C++, Second Edition, (c) 2010 Pearson Education, Inc. All rights reserved Chapter 8 Multidimensional.
Random Administrivia In CMC 306 on Monday for LISP lab.
CS305j Introduction to Computing Two Dimensional Arrays 1 Topic 22 Two Dimensional Arrays "Computer Science is a science of abstraction -creating the right.
The Mathematics of Sudoku Helmer Aslaksen Department of Mathematics National University of Singapore
Algorithm design techniques
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
Copyright © 2011 Kristina Fornažar Agić. Look! This column already has numbers 4, 3 and 1. 2 The missing number is 2. Now we’ll fill the blank spot with.
Artificial Intelligence Introduction (2). What is Artificial Intelligence ?  making computers that think?  the automation of activities we associate.
1 CSC 427: Data Structures and Algorithm Analysis Fall 2011 See online syllabus (also available through BlueLine): Course goals:
Set Theory Topic 1: Logical Reasoning. I can determine and explain a strategy to solve a puzzle. I can verify a strategy to win a game. I can analyze.
NTeQ Student Centered Lesson Exploring Area and Perimeter.
2004/11/13GPW20041 What Shogi Programs Still Cannot Do - A New Test Set for Shogi - Reijer Grimbergen and Taro Muraoka Department of Informatics Yamagata.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Topic 26 Two Dimensional Arrays "Computer Science is a science of abstraction -creating the right model for a problem and devising the appropriate mechanizable.
Black-box Testing.
CONFIDENTIAL1 Today we will discuss about the topic: Patterns to multiply by 2, 10, 100 Good Afternoon! Let’s Warm up:. 1) 4 x 3 = x 2) 2 x 1 = 3) 7 x.
Computing Science 1P Large Group Tutorial 20 Simon Gay Department of Computing Science University of Glasgow 2006/07.
Whiteboardmaths.com © 2008 All rights reserved
Sudoku Solver Comparison A comparative analysis of algorithms for solving Sudoku.
Propositional Satisfiability A compound proposition is satisfiable if there is an assignment of truth values to its variables that make it true. When no.
Topic 3 Games and Puzzles Unit 1 Topic 1. You just used reasoning to determine what happened in the story. In this unit, we are going to do the same.
Boolean Minimizer FC-Min: Coverage Finding Process Petr Fišer, Hana Kubátová Czech Technical University Department of Computer Science and Engineering.
IWEC20021 Threat Stacks to Guide Pruning and Search Extensions in Shogi Reijer Grimbergen Department of Information Science Saga University, Japan.
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.
PYIWIT'021 Threat Analysis to Reduce the Effects of the Horizon Problem in Shogi Reijer Grimbergen Department of Information Science Saga University.
Analytic Hierarchy Process (AHP)
eNRICHing Number & Algebra Bromley February 2015
Definitions of AI There are as many definitions as there are practitioners. How would you define it? What is important for a system to be intelligent?
2008/09/30Computers and Games Cognitive Modeling of Knowledge-Guided Information Acquisition in Games Reijer Grimbergen Department of Informatics.
2006/6/30SIGGI-161 The Society of Shogi - A Research Agenda - Reijer Grimbergen Department of Informatics Yamagata University.
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.
Decimals and Decimal Computations. 10 x 10 Model Square is seen as a whole. How many squares make up the whole? How many squares are in a half? How many.
How do I multiply a triple digit number by a double digit? 145 x 67 = ? 267 x 19 = ? I’m sure that you’ll agree that there are many methods that we can.
2008/11/08GPW20081 A Reproduction Experiment Concerning the Relation Between Perceptual Features and Memory in Shogi Reijer Grimbergen Department of Informatics.
Search Strategies: Hi-Lo Game Clif Kussmaul, Muhlenberg College SIGCSE 2013 Special Session: Engaging Mathematical Reasoning.
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 -
Using Castle Maps for Guiding Opening and Middle Game Play in Shogi Reijer Grimbergen (Saga University) Jeff Rollason (Oxford Softworks)
SUDOKU SOLVER Will Bazil, Ryan Covert, Ricky Parker.
Securing number facts, relationships and calculating.
Cognitive Modeling Cogs 4961, Cogs 6967 Psyc 4510 CSCI 4960 Mike Schoelles
Instructions Materials: Blank multiplication grid and two 10-sided (0-9) dice per pair, coloured pencils. In pairs, students take turns to roll the dice.
Teacher Notes Supplies Needed: Class set of sudoku puzzles.
Legos, lunch time, and lollipops Two-way Frequency Tables
Example Fill in the grid so that every row, column and box contains each of the numbers 1 to 9:
Analytic Hierarchy Process (AHP)
9.3 Lego’s, Lunch and Lots More Two-way Frequency Tables
On the Relation Between Perception, Memory and Cognition in Games
Word Problems extra information.
Sudoku.
© T Madas.
Year 2 Summer Term Week 2 Lesson 2
Year 2 Summer Term Week 2 Lesson 2
Presentation transcript:

2009/11/14GPW20091 Analysis of the Behavior of People Solving Sudoku Puzzles Reijer Grimbergen School of Computer Science, Tokyo University of Technology Akihiro Nakamura Department of Informatics, Yamagata University

2009/11/14GPW20092 Outline Why Sudoku? Sudoku rules Sudoku solving behavior Recording human behavior Rule extraction Computer simulation Simulation vs. Human behavior Rule set and comparison Conclusions and future work

Why Sudoku? Our goal is to implement Marvin Minsky’s Society of Mind theory for two-player games like shogi First analyze the behavior of humans solving puzzles Advantage: No interaction with other players Sudoku is a popular puzzle that has not been used for cognitive modeling before 2009/11/14GPW20093

Sudoku rules 9  9 grid with nine 3  3 subgrids Fill each row, column and subgrid with the numbers from 1 to 9 No row, column or subgrid should have a number more than once 2009/11/14GPW

Sudoku Solving Behavior Steps in analyzing the behavior of humans A number of subjects were asked to solve a Sudoku puzzle and explain their decisions The output of the subjects was used to extract a number of rules The rules were implemented in a computer program The output of the program was compared with the original output of the subjects 2009/11/14GPW20095

Recording human behavior Five subjects in their early twenties Two Sudoku puzzles For each step P in a Sudoku puzzle, a number N P has to be penciled on square S P Explain the reason for selecting N P and S P 2009/11/14GPW20096

Rule Extraction The written protocols were analyzed to find rules guiding problem solving behavior Example rule If there is only one empty square on a row or column, fill it with the missing number 2009/11/14GPW20097 Too specific, so we used more general rules

Computer Simulation Input: A Sudoku position P Output: A set of squares {SP1,…, SPn} that were selected based on the our rules Note: No actual numbers were suggested 2009/11/14GPW

Simulation vs. Human Behavior Compare the output of the program to the output of the subjects Output ratio A measure of how many unnecessary candidates are produced by the rules Should be as small as possible (1 is ideal) Cover ratio Number of positions where a square selected by the human solver was generated by the program Should be as close to 100% as possible 2009/11/14GPW20099

Simulation vs. Human Behavior Output ratio Single position C P is the total number of candidate squares, B P is the total number of blank squares Whole puzzle 2009/11/14GPW200910

Simulation vs. Human Behavior Cover Ratio here R c is the number of times the square selected by the human solver was part of the generated candidates, S is the number of positions in the Sudoku puzzle 2009/11/14GPW200911

Rule Set and Comparison Likely strategies of human subjects Give priority to rows and columns with three empty squares or less Try to fill subgrids, rows and columns with few empty squares Explore subgrids, rows and columns with only 2 or 3 empty squares 2009/11/14GPW200912

Rule Set and Comparison Rule 1 Generate all squares with corresponding subgrid, row or column having less than T 1 empty squares Rule 2 Generate all squares in a subgrid with less than T 2 empty squares Rule 3 Generate all squares in a row or column with less than T 3 empty squares 2009/11/14GPW200913

Results for Sudoku Puzzle 1 Individual rule results Ordered rule results 1.Rule 1 with T 1 = 2 2.Rule 2 with T 2 = 1 3.Rule 3 with T 3 = /11/14GPW RuleThresholdOutput ratioCover ratio %96.8% %94.7% %95.8% Output ratio: 40.0% Cover ratio: 92.1%

Results for Sudoku Puzzle 2 Individual rule results Ordered rule results 1.Rule 2 with T 2 = 1 2.Rule 1 with T 1 = /11/14GPW RuleThresholdOutput ratioCover ratio %97.1% %91.8% %98.0% Output ratio: 20.8% Cover ratio: 98.4%

Conclusions and Future Work Conclusions The rules suggest that human Sudoku solvers prefer rows and columns over subgrids General rules that can be applied to all puzzles are hard to find Future work Look at more complex rules Include search to decide between multiple candidates Add suggestions for numbers to pencil in 2009/11/14GPW200916