Easy Games and Hard Games

Size: px
Start display at page:

Download "Easy Games and Hard Games"

Transcription

1 Easy Games and Hard Games Igor Minevich April 30, 2014

2 Outline 1 Lights Out Puzzle 2 NP Completeness 3 Sokoban 4 Timeline 5 Mancala

3 Original Lights Out Puzzle There is an m n grid of lamps that can be on or off. Clicking a lamp switches the state of it and the lamps adjacent to it (vertically and horizontally). Starting with all lamps on (or some subset of lamps on), the goal is to switch them all off.

4 Generalized Lights Out Puzzle There is an undirected graph with vertices that are black or white. Click a vertex makes it and all its adjacent vertices switch color. Goal: starting with all vertices black, make all vertices white.

5 Mathematical Interpretation The vertices are elements of a vector with entries in F 2. Black = 0; White = 1. Let A be the adjacency matrix of the graph (A ij = 1 vertex i is adjacent to vertex j). A is symmetric, and its diagonal entries are all 1. We want a vector x such that A x = 1, the all-1 s vector.

6 My Theorem Theorem Let A be a symmetric matrix over F 2. Then the vector d composed of the diagonal entries of A is in the range of A. Proof We want to show d Range(A) = Range(A T ) = Nul(A). Thus we want to show d x = 0 if A x = 0. WLOG x = (1,..., 1, 0,..., 0) T where the first k elements are 1 (otherwise, permute corresponding rows and columns of A). Computation shows d x = k i=1 A ii = 0.

7 Computation If A is N N and A(1,..., 1, 0,..., 0) T = 0 then for all j = 1,..., N k 1 A jk = A jj + Therefore, i=1 i j A ji k 1 k 1 A kk = A kj = j=1 j=1 k 1 k 1 k 1 k 1 = A jj + A ji = A jj + 2 j=1 Therefore, j=1 i=1 i j j=1 k A jj = 0 j=1 A jk k 1 j>i 1 A ji k 1 = j=1 A jj

8 The Theorem is Sharp Other Fields A = ( ) B = ( 1 θ θ θ 2 A shows the theorem does not hold in any characteristic p 2, and B shows it does not hold in F 2 2, hence in any F 2 n. Here, θ is a generator for the multiplicative group of F 2 2. Not Symmetric The theorem is not true if the matrix is not symmetric: e.g. ( ) 1 0 C = 1 0 )

9 Solving the Lights Out Puzzle Just write down the adjacency matrix A and solve A x = 1. Gaussian elimination takes O(n 3 ) operations if A is n n. If we work with even a 4 4 grid, then n = 16; computation is already difficult for a human. For a standard computer, even n = 1000 is easily doable. Strategy for the grid version: start with an arbitrary combination on the bottom row and then work upwards. Try all combos until you get one that works.

10 Classes of Problems P ( polynomial time ) is the class of problems (involving a variable n of inputs) which can be solved in polynomial time (in terms of n). NP ( nondeterministic polynomial time ) is the class of problems whose solution is verifiable in polynomial time. NP-hard is the class of problems that are at least as hard as the hardest NP problems, i.e. a problem p is NP-hard iff any NP problem can be reduced to p in polynomial time. NP-complete = NP NP-hard P vs. NP problem: Does P = NP?

11 Some NP-Complete Problems Hamiltonian Path Problem Subset Sum Problem Generalized Sudoku (n 2 n 2 board with n n blocks) Bejeweled Kakuro Battleship Puzzle

12 Sokoban Sokoban means warehouse worker in Japanese. Setup: there is a warehouse (a rectangular grid) with boxes, walls, storage locations, and a worker (these are all 1 1). Goal: the worker needs to push all the boxes into storage locations. Rules: The worker cannot move a wall, and he cannot push more than one box at a time.

13 PSPACE Completeness PSPACE is the class of all problems that can be solved using polynomial space. PSPACE-complete is the class of problems p in PSPACE such that any PSPACE problem can be reduced to p in polynomial time. Sokoban is PSPACE-complete, hence much harder than an NP-complete problem.

14 Mahjong The usual solitaire game is PSPACE-complete (the goal is to determine the play which is likeliest to yield a win). If peeking under the tiles is allowed, Mahjong is NP-complete.

15 Start of Timeline 3000 BC: Earliest game similar to checkers found 500 BC: Mahjong invented by Confucius (according to myth) 700 AD: Earliest instance of Mancala-like game found 1971: P vs. NP introduced by Stephen Cook 1979: Sudoku was probably invented by Howard Garns from Connersville, IN 1981: Sokoban created

16 End of Timeline 1983: Vulcan Electronics released XL-25, later known as Lights Out (Tiger Toys in 1995) 1994: I was introduced to Sokoban 1997: Sokoban proven PSPACE-complete by Joseph Culberson 2012: I proved my theorem. Last Wednesday: I defended my thesis!

17 Rules The board consists of two rows of holes with marbles in them and also two score-keeping holes called kallahah on the sides. Players start with 4 (or 5 or 6, etc.) marbles in each hole. They take turns sowing by taking all the marbles in one of the holes on their side and distributing them counterclockwise to the other holes, excluding the opponent s kallahah. If the last sown marble lands in an empty hole on the player s side, the player captures it and all the marbles in the opposite hole on the opponent s side. If the last sown marble lands in the player s kallahah, the player goes again. If a player cannot move because he has no marbles left, the opponent captures all the marbles on his side and the game ends.

18 Analysis As far as I know, generalizations such as n 2 boards or starting with n marbles in each hole have not been considered. It is difficult enough to analyze the usual game. One way to analyze positions is to disregard the captured marbles, using induction.

19 Oware Captures are different: if the last marble sown ends on the opponent s side and as a result the tally for that hole is 2 or 3, the player captures those 2 or 3 marbles. In case of a capture, one goes clockwise backwards and applies the same procedure: if the tally had increased to 2 or 3, then those marbles are captured. Game cycles can occur in Oware (same position happens more than once). The game-tree complexity of Oware is much larger.

20 Other Rules The player must make sure the opponent has marbles to play with, if possible. The player cannot capture all of the opponent s pieces. Ethiopian rules: a player cannot sow from a hole that only has one marble, but he can sow in either direction.

Pennies vs Paperclips

Pennies vs Paperclips Pennies vs Paperclips Today we will take part in a daring game, a clash of copper and steel. Today we play the game: pennies versus paperclips. Battle begins on a 2k by 2m (where k and m are natural numbers)

More information

Problem Set 4 Due: Wednesday, November 12th, 2014

Problem Set 4 Due: Wednesday, November 12th, 2014 6.890: Algorithmic Lower Bounds Prof. Erik Demaine Fall 2014 Problem Set 4 Due: Wednesday, November 12th, 2014 Problem 1. Given a graph G = (V, E), a connected dominating set D V is a set of vertices such

More information

Pearl Puzzles are NP-complete

Pearl Puzzles are NP-complete Pearl Puzzles are NP-complete Erich Friedman Stetson University, DeLand, FL 32723 efriedma@stetson.edu Introduction Pearl puzzles are pencil and paper puzzles which originated in Japan [11]. Each puzzle

More information

arxiv:cs/ v2 [cs.cc] 27 Jul 2001

arxiv:cs/ v2 [cs.cc] 27 Jul 2001 Phutball Endgames are Hard Erik D. Demaine Martin L. Demaine David Eppstein arxiv:cs/0008025v2 [cs.cc] 27 Jul 2001 Abstract We show that, in John Conway s board game Phutball (or Philosopher s Football),

More information

Positive Triangle Game

Positive Triangle Game Positive Triangle Game Two players take turns marking the edges of a complete graph, for some n with (+) or ( ) signs. The two players can choose either mark (this is known as a choice game). In this game,

More information

How hard are computer games? Graham Cormode, DIMACS

How hard are computer games? Graham Cormode, DIMACS How hard are computer games? Graham Cormode, DIMACS graham@dimacs.rutgers.edu 1 Introduction Computer scientists have been playing computer games for a long time Think of a game as a sequence of Levels,

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

Heuristic Search with Pre-Computed Databases

Heuristic Search with Pre-Computed Databases Heuristic Search with Pre-Computed Databases Tsan-sheng Hsu tshsu@iis.sinica.edu.tw http://www.iis.sinica.edu.tw/~tshsu 1 Abstract Use pre-computed partial results to improve the efficiency of heuristic

More information

2048 IS (PSPACE) HARD, BUT SOMETIMES EASY

2048 IS (PSPACE) HARD, BUT SOMETIMES EASY 2048 IS (PSPE) HRD, UT SOMETIMES ESY Rahul Mehta Princeton University rahulmehta@princeton.edu ugust 28, 2014 bstract arxiv:1408.6315v1 [cs.] 27 ug 2014 We prove that a variant of 2048, a popular online

More information

28,800 Extremely Magic 5 5 Squares Arthur Holshouser. Harold Reiter.

28,800 Extremely Magic 5 5 Squares Arthur Holshouser. Harold Reiter. 28,800 Extremely Magic 5 5 Squares Arthur Holshouser 3600 Bullard St. Charlotte, NC, USA Harold Reiter Department of Mathematics, University of North Carolina Charlotte, Charlotte, NC 28223, USA hbreiter@uncc.edu

More information

Introduction Solvability Rules Computer Solution Implementation. Connect Four. March 9, Connect Four 1

Introduction Solvability Rules Computer Solution Implementation. Connect Four. March 9, Connect Four 1 Connect Four March 9, 2010 Connect Four 1 Connect Four is a tic-tac-toe like game in which two players drop discs into a 7x6 board. The first player to get four in a row (either vertically, horizontally,

More information

Weighted Polya Theorem. Solitaire

Weighted Polya Theorem. Solitaire Weighted Polya Theorem. Solitaire Sasha Patotski Cornell University ap744@cornell.edu December 15, 2015 Sasha Patotski (Cornell University) Weighted Polya Theorem. Solitaire December 15, 2015 1 / 15 Cosets

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

An Exploration of the Minimum Clue Sudoku Problem

An Exploration of the Minimum Clue Sudoku Problem Sacred Heart University DigitalCommons@SHU Academic Festival Apr 21st, 12:30 PM - 1:45 PM An Exploration of the Minimum Clue Sudoku Problem Lauren Puskar Follow this and additional works at: http://digitalcommons.sacredheart.edu/acadfest

More information

Physical Zero-Knowledge Proof: From Sudoku to Nonogram

Physical Zero-Knowledge Proof: From Sudoku to Nonogram Physical Zero-Knowledge Proof: From Sudoku to Nonogram Wing-Kai Hon (a joint work with YF Chien) 2008/12/30 Lab of Algorithm and Data Structure Design (LOADS) 1 Outline Zero-Knowledge Proof (ZKP) 1. Cave

More information

Week 1. 1 What Is Combinatorics?

Week 1. 1 What Is Combinatorics? 1 What Is Combinatorics? Week 1 The question that what is combinatorics is similar to the question that what is mathematics. If we say that mathematics is about the study of numbers and figures, then combinatorics

More information

Formidable Fourteen Puzzle = 6. Boxing Match Example. Part II - Sums of Games. Sums of Games. Example Contd. Mathematical Games II Sums of Games

Formidable Fourteen Puzzle = 6. Boxing Match Example. Part II - Sums of Games. Sums of Games. Example Contd. Mathematical Games II Sums of Games K. Sutner D. Sleator* Great Theoretical Ideas In Computer Science Mathematical Games II Sums of Games CS 5-25 Spring 24 Lecture February 6, 24 Carnegie Mellon University + 4 2 = 6 Formidable Fourteen Puzzle

More information

Lecture 19 November 6, 2014

Lecture 19 November 6, 2014 6.890: Algorithmic Lower Bounds: Fun With Hardness Proofs Fall 2014 Prof. Erik Demaine Lecture 19 November 6, 2014 Scribes: Jeffrey Shen, Kevin Wu 1 Overview Today, we ll cover a few more 2 player games

More information

arxiv: v2 [math.ho] 23 Aug 2018

arxiv: v2 [math.ho] 23 Aug 2018 Mathematics of a Sudo-Kurve arxiv:1808.06713v2 [math.ho] 23 Aug 2018 Tanya Khovanova Abstract Wayne Zhao We investigate a type of a Sudoku variant called Sudo-Kurve, which allows bent rows and columns,

More information

CSE548, AMS542: Analysis of Algorithms, Fall 2016 Date: Sep 25. Homework #1. ( Due: Oct 10 ) Figure 1: The laser game.

CSE548, AMS542: Analysis of Algorithms, Fall 2016 Date: Sep 25. Homework #1. ( Due: Oct 10 ) Figure 1: The laser game. CSE548, AMS542: Analysis of Algorithms, Fall 2016 Date: Sep 25 Homework #1 ( Due: Oct 10 ) Figure 1: The laser game. Task 1. [ 60 Points ] Laser Game Consider the following game played on an n n board,

More information

Intriguing Problems for Students in a Proofs Class

Intriguing Problems for Students in a Proofs Class Intriguing Problems for Students in a Proofs Class Igor Minevich Boston College AMS - MAA Joint Mathematics Meetings January 5, 2017 Outline 1 Induction 2 Numerical Invariant 3 Pigeonhole Principle Induction:

More information

Which Rectangular Chessboards Have a Bishop s Tour?

Which Rectangular Chessboards Have a Bishop s Tour? Which Rectangular Chessboards Have a Bishop s Tour? Gabriela R. Sanchis and Nicole Hundley Department of Mathematical Sciences Elizabethtown College Elizabethtown, PA 17022 November 27, 2004 1 Introduction

More information

37 Game Theory. Bebe b1 b2 b3. a Abe a a A Two-Person Zero-Sum Game

37 Game Theory. Bebe b1 b2 b3. a Abe a a A Two-Person Zero-Sum Game 37 Game Theory Game theory is one of the most interesting topics of discrete mathematics. The principal theorem of game theory is sublime and wonderful. We will merely assume this theorem and use it to

More information

More NP Complete Games Richard Carini and Connor Lemp February 17, 2015

More NP Complete Games Richard Carini and Connor Lemp February 17, 2015 More NP Complete Games Richard Carini and Connor Lemp February 17, 2015 Attempts to find an NP Hard Game 1 As mentioned in the previous writeup, the search for an NP Complete game requires a lot more thought

More information

STAJSIC, DAVORIN, M.A. Combinatorial Game Theory (2010) Directed by Dr. Clifford Smyth. pp.40

STAJSIC, DAVORIN, M.A. Combinatorial Game Theory (2010) Directed by Dr. Clifford Smyth. pp.40 STAJSIC, DAVORIN, M.A. Combinatorial Game Theory (2010) Directed by Dr. Clifford Smyth. pp.40 Given a combinatorial game, can we determine if there exists a strategy for a player to win the game, and can

More information

This watermark does not appear in the registered version - Sokoban Protocol Document

This watermark does not appear in the registered version -  Sokoban Protocol Document AI Puzzle Framework Sokoban Protocol Document Josh Wilkerson June 7, 2005 Sokoban Protocol Document Page 2 of 5 Table of Contents Table of Contents...2 Introduction...3 Puzzle Description... 3 Rules...

More information

arxiv: v1 [cs.cc] 21 Jun 2017

arxiv: v1 [cs.cc] 21 Jun 2017 Solving the Rubik s Cube Optimally is NP-complete Erik D. Demaine Sarah Eisenstat Mikhail Rudoy arxiv:1706.06708v1 [cs.cc] 21 Jun 2017 Abstract In this paper, we prove that optimally solving an n n n Rubik

More information

Edge-disjoint tree representation of three tree degree sequences

Edge-disjoint tree representation of three tree degree sequences Edge-disjoint tree representation of three tree degree sequences Ian Min Gyu Seong Carleton College seongi@carleton.edu October 2, 208 Ian Min Gyu Seong (Carleton College) Trees October 2, 208 / 65 Trees

More information

Senior Math Circles February 10, 2010 Game Theory II

Senior Math Circles February 10, 2010 Game Theory II 1 University of Waterloo Faculty of Mathematics Centre for Education in Mathematics and Computing Senior Math Circles February 10, 2010 Game Theory II Take-Away Games Last Wednesday, you looked at take-away

More information

Undergraduate Research Opportunity Programme in Science. The Game of Kalah

Undergraduate Research Opportunity Programme in Science. The Game of Kalah Undergraduate Research Opportunity Programme in Science The Game of Kalah Pok Ai Ling, Irene 1 Special Programme in Science Supervised by Tay Tiong Seng Department of Mathematics National University of

More information

Permutations. = f 1 f = I A

Permutations. = f 1 f = I A Permutations. 1. Definition (Permutation). A permutation of a set A is a bijective function f : A A. The set of all permutations of A is denoted by Perm(A). 2. If A has cardinality n, then Perm(A) has

More information

The first player to construct his or her obelisk is the winner, and if a player has no legal moves, he or she immediately loses the game.

The first player to construct his or her obelisk is the winner, and if a player has no legal moves, he or she immediately loses the game. Obelisk 1. Object Obelisk is a two-player strategy board game, and each player controls three stones. The largest base stone is the cornerstone. The smaller rectangular stone is the keystone. The pyramid-shaped

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

Sokoban: Reversed Solving

Sokoban: Reversed Solving Sokoban: Reversed Solving Frank Takes (ftakes@liacs.nl) Leiden Institute of Advanced Computer Science (LIACS), Leiden University June 20, 2008 Abstract This article describes a new method for attempting

More information

UNO is hard, even for a single playe. Demaine, Erik D.; Demaine, Martin L. Citation Theoretical Computer Science, 521: 5

UNO is hard, even for a single playe. Demaine, Erik D.; Demaine, Martin L. Citation Theoretical Computer Science, 521: 5 JAIST Reposi https://dspace.j Title UNO is hard, even for a single playe Demaine, Erik D.; Demaine, Martin L. Author(s) Nicholas J. A.; Uehara, Ryuhei; Uno, Uno, Yushi Citation Theoretical Computer Science,

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

Surreal Numbers and Games. February 2010

Surreal Numbers and Games. February 2010 Surreal Numbers and Games February 2010 1 Last week we began looking at doing arithmetic with impartial games using their Sprague-Grundy values. Today we ll look at an alternative way to represent games

More information

Permutation group and determinants. (Dated: September 19, 2018)

Permutation group and determinants. (Dated: September 19, 2018) Permutation group and determinants (Dated: September 19, 2018) 1 I. SYMMETRIES OF MANY-PARTICLE FUNCTIONS Since electrons are fermions, the electronic wave functions have to be antisymmetric. This chapter

More information

Chapter 4 Number Theory

Chapter 4 Number Theory Chapter 4 Number Theory Throughout the study of numbers, students Á should identify classes of numbers and examine their properties. For example, integers that are divisible by 2 are called even numbers

More information

12. 6 jokes are minimal.

12. 6 jokes are minimal. Pigeonhole Principle Pigeonhole Principle: When you organize n things into k categories, one of the categories has at least n/k things in it. Proof: If each category had fewer than n/k things in it then

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

New Sliding Puzzle with Neighbors Swap Motion

New Sliding Puzzle with Neighbors Swap Motion Prihardono AriyantoA,B Kenichi KawagoeC Graduate School of Natural Science and Technology, Kanazawa UniversityA Faculty of Mathematics and Natural Sciences, Institut Teknologi Bandung, Email: prihardono.ari@s.itb.ac.id

More information

The Complexity of Generalized Pipe Link Puzzles

The Complexity of Generalized Pipe Link Puzzles [DOI: 10.2197/ipsjjip.25.724] Regular Paper The Complexity of Generalized Pipe Link Puzzles Akihiro Uejima 1,a) Hiroaki Suzuki 1 Atsuki Okada 1 Received: November 7, 2016, Accepted: May 16, 2017 Abstract:

More information

I.M.O. Winter Training Camp 2008: Invariants and Monovariants

I.M.O. Winter Training Camp 2008: Invariants and Monovariants I.M.. Winter Training Camp 2008: Invariants and Monovariants n math contests, you will often find yourself trying to analyze a process of some sort. For example, consider the following two problems. Sample

More information

On the fairness and complexity of generalized k-in-a-row games

On the fairness and complexity of generalized k-in-a-row games Theoretical Computer Science 385 (2007) 88 100 www.elsevier.com/locate/tcs On the fairness and complexity of generalized k-in-a-row games Ming Yu Hsieh, Shi-Chun Tsai 1001 University Road, Department of

More information

Plan. Related courses. A Take-Away Game. Mathematical Games , (21-801) - Mathematical Games Look for it in Spring 11

Plan. Related courses. A Take-Away Game. Mathematical Games , (21-801) - Mathematical Games Look for it in Spring 11 V. Adamchik D. Sleator Great Theoretical Ideas In Computer Science Mathematical Games CS 5-25 Spring 2 Lecture Feb., 2 Carnegie Mellon University Plan Introduction to Impartial Combinatorial Games Related

More information

(b) In the position given in the figure below, find a winning move, if any. (b) In the position given in Figure 4.2, find a winning move, if any.

(b) In the position given in the figure below, find a winning move, if any. (b) In the position given in Figure 4.2, find a winning move, if any. Math 5750-1: Game Theory Midterm Exam Mar. 6, 2015 You have a choice of any four of the five problems. (If you do all 5, each will count 1/5, meaning there is no advantage.) This is a closed-book exam,

More information

Mathematics Competition Practice Session 6. Hagerstown Community College: STEM Club November 20, :00 pm - 1:00 pm STC-170

Mathematics Competition Practice Session 6. Hagerstown Community College: STEM Club November 20, :00 pm - 1:00 pm STC-170 2015-2016 Mathematics Competition Practice Session 6 Hagerstown Community College: STEM Club November 20, 2015 12:00 pm - 1:00 pm STC-170 1 Warm-Up (2006 AMC 10B No. 17): Bob and Alice each have a bag

More information

arxiv: v1 [cs.cc] 14 Jun 2018

arxiv: v1 [cs.cc] 14 Jun 2018 Losing at Checkers is Hard Jeffrey Bosboom Spencer Congero Erik D. Demaine Martin L. Demaine Jayson Lynch arxiv:1806.05657v1 [cs.cc] 14 Jun 2018 Abstract We prove computational intractability of variants

More information

SOLITAIRE CLOBBER AS AN OPTIMIZATION PROBLEM ON WORDS

SOLITAIRE CLOBBER AS AN OPTIMIZATION PROBLEM ON WORDS INTEGERS: ELECTRONIC JOURNAL OF COMBINATORIAL NUMBER THEORY 8 (2008), #G04 SOLITAIRE CLOBBER AS AN OPTIMIZATION PROBLEM ON WORDS Vincent D. Blondel Department of Mathematical Engineering, Université catholique

More information

Math 152: Applicable Mathematics and Computing

Math 152: Applicable Mathematics and Computing Math 152: Applicable Mathematics and Computing May 8, 2017 May 8, 2017 1 / 15 Extensive Form: Overview We have been studying the strategic form of a game: we considered only a player s overall strategy,

More information

THE GAMES OF COMPUTER SCIENCE. Topics

THE GAMES OF COMPUTER SCIENCE. Topics THE GAMES OF COMPUTER SCIENCE TU DELFT Feb 23 2001 Games Workshop Games Workshop Peter van Emde Boas ILLC-FNWI-Univ. of Amsterdam References and slides available at: http://turing.wins.uva.nl/~peter/teaching/thmod00.html

More information

Advanced Automata Theory 4 Games

Advanced Automata Theory 4 Games Advanced Automata Theory 4 Games Frank Stephan Department of Computer Science Department of Mathematics National University of Singapore fstephan@comp.nus.edu.sg Advanced Automata Theory 4 Games p. 1 Repetition

More information

A GRAPH THEORETICAL APPROACH TO SOLVING SCRAMBLE SQUARES PUZZLES. 1. Introduction

A GRAPH THEORETICAL APPROACH TO SOLVING SCRAMBLE SQUARES PUZZLES. 1. Introduction GRPH THEORETICL PPROCH TO SOLVING SCRMLE SQURES PUZZLES SRH MSON ND MLI ZHNG bstract. Scramble Squares puzzle is made up of nine square pieces such that each edge of each piece contains half of an image.

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

arxiv: v1 [cs.cc] 7 Mar 2012

arxiv: v1 [cs.cc] 7 Mar 2012 The Complexity of the Puzzles of Final Fantasy XIII-2 Nathaniel Johnston Department of Mathematics and Statistics, University of Guelph, Guelph, Ontario N1G 2W1, Canada arxiv:1203.1633v1 [cs.cc] 7 Mar

More information

Generalized Amazons is PSPACE Complete

Generalized Amazons is PSPACE Complete Generalized Amazons is PSPACE Complete Timothy Furtak 1, Masashi Kiyomi 2, Takeaki Uno 3, Michael Buro 4 1,4 Department of Computing Science, University of Alberta, Edmonton, Canada. email: { 1 furtak,

More information

The Symmetric Traveling Salesman Problem by Howard Kleiman

The Symmetric Traveling Salesman Problem by Howard Kleiman I. INTRODUCTION The Symmetric Traveling Salesman Problem by Howard Kleiman Let M be an nxn symmetric cost matrix where n is even. We present an algorithm that extends the concept of admissible permutation

More information

Lumines is NP-complete

Lumines is NP-complete DEGREE PROJECT, IN COMPUTER SCIENCE, FIRST LEVEL STOCKHOLM, SWEDEN 2015 Lumines is NP-complete OR AT LEAST IF YOUR GAMEPAD IS BROKEN ANDRÉ NYSTRÖM & AXEL RIESE KTH ROYAL INSTITUTE OF TECHNOLOGY SCHOOL

More information

Grade 6 Math Circles March 7/8, Magic and Latin Squares

Grade 6 Math Circles March 7/8, Magic and Latin Squares Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Grade 6 Math Circles March 7/8, 2017 Magic and Latin Squares Today we will be solving math and logic puzzles!

More information

The Complexity of Escaping Labyrinths and Enchanted Forests

The Complexity of Escaping Labyrinths and Enchanted Forests The Complexity of Escaping Labyrinths and Enchanted Forests Florian D. Schwahn 1 Department of Mathematics, University of Kaiserslautern, Paul-Ehrlich-Str. 14, D-67663 Kaiserslautern, Germany fschwahn@mathematik.uni-kl.de

More information

Question Score Max Cover Total 149

Question Score Max Cover Total 149 CS170 Final Examination 16 May 20 NAME (1 pt): TA (1 pt): Name of Neighbor to your left (1 pt): Name of Neighbor to your right (1 pt): This is a closed book, closed calculator, closed computer, closed

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

Coin Cappers. Tic Tac Toe

Coin Cappers. Tic Tac Toe Coin Cappers Tic Tac Toe Two students are playing tic tac toe with nickels and dimes. The player with the nickels has just moved. Itʼs now your turn. The challenge is to place your dime in the only square

More information

Sudoku goes Classic. Gaming equipment and the common DOMINARI - rule. for 2 players from the age of 8 up

Sudoku goes Classic. Gaming equipment and the common DOMINARI - rule. for 2 players from the age of 8 up Sudoku goes Classic for 2 players from the age of 8 up Gaming equipment and the common DOMINARI - rule Board Sudoku goes classic is played on a square board of 6x6 fields. 4 connected fields of the same

More information

1 Introduction. 2 An Easy Start. KenKen. Charlotte Teachers Institute, 2015

1 Introduction. 2 An Easy Start. KenKen. Charlotte Teachers Institute, 2015 1 Introduction R is a puzzle whose solution requires a combination of logic and simple arithmetic and combinatorial skills 1 The puzzles range in difficulty from very simple to incredibly difficult Students

More information

Zsombor Sárosdi THE MATHEMATICS OF SUDOKU

Zsombor Sárosdi THE MATHEMATICS OF SUDOKU EÖTVÖS LORÁND UNIVERSITY DEPARTMENT OF MATHTEMATICS Zsombor Sárosdi THE MATHEMATICS OF SUDOKU Bsc Thesis in Applied Mathematics Supervisor: István Ágoston Department of Algebra and Number Theory Budapest,

More information

Lecture 1, CS 2050, Intro Discrete Math for Computer Science

Lecture 1, CS 2050, Intro Discrete Math for Computer Science Lecture 1, 08--11 CS 050, Intro Discrete Math for Computer Science S n = 1++ 3+... +n =? Note: Recall that for the above sum we can also use the notation S n = n i. We will use a direct argument, in this

More information

Realizing Strategies for winning games. Senior Project Presented by Tiffany Johnson Math 498 Fall 1999

Realizing Strategies for winning games. Senior Project Presented by Tiffany Johnson Math 498 Fall 1999 Realizing Strategies for winning games Senior Project Presented by Tiffany Johnson Math 498 Fall 1999 Outline of Project Briefly show how math relates to popular board games in playing surfaces & strategies

More information

CS 32 Puzzles, Games & Algorithms Fall 2013

CS 32 Puzzles, Games & Algorithms Fall 2013 CS 32 Puzzles, Games & Algorithms Fall 2013 Study Guide & Scavenger Hunt #2 November 10, 2014 These problems are chosen to help prepare you for the second midterm exam, scheduled for Friday, November 14,

More information

1st UKPA Sudoku Championship

1st UKPA Sudoku Championship st UKPA Sudoku Championship COMPETITION PUZZLES Saturday 6th Sunday 7th November 00 Championship Duration: hours. Puzzles designed by Tom Collyer # - Classic Sudoku ( 4) 0pts #8 - No Touch Sudoku 5pts

More information

Graphs of Tilings. Patrick Callahan, University of California Office of the President, Oakland, CA

Graphs of Tilings. Patrick Callahan, University of California Office of the President, Oakland, CA Graphs of Tilings Patrick Callahan, University of California Office of the President, Oakland, CA Phyllis Chinn, Department of Mathematics Humboldt State University, Arcata, CA Silvia Heubach, Department

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

Combined Games. Block, Alexander Huang, Boao. icamp Summer Research Program University of California, Irvine Irvine, CA

Combined Games. Block, Alexander Huang, Boao. icamp Summer Research Program University of California, Irvine Irvine, CA Combined Games Block, Alexander Huang, Boao icamp Summer Research Program University of California, Irvine Irvine, CA 92697 August 17, 2013 Abstract What happens when you play Chess and Tic-Tac-Toe at

More information

Combinatorial Game Theory: An Introduction to Tree Topplers

Combinatorial Game Theory: An Introduction to Tree Topplers Georgia Southern University Digital Commons@Georgia Southern Electronic Theses & Dissertations Graduate Studies, Jack N. Averitt College of Fall 2015 Combinatorial Game Theory: An Introduction to Tree

More information

Scrabble is PSPACE-Complete

Scrabble is PSPACE-Complete Scrabble is PSPACE-Complete Michael Lampis 1, Valia Mitsou 2, and Karolina So ltys 3 1 KTH Royal Institute of Technology, mlampis@kth.se 2 Graduate Center, City University of New York, vmitsou@gc.cuny.edu

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

Bulgarian Solitaire in Three Dimensions

Bulgarian Solitaire in Three Dimensions Bulgarian Solitaire in Three Dimensions Anton Grensjö antongrensjo@gmail.com under the direction of Henrik Eriksson School of Computer Science and Communication Royal Institute of Technology Research Academy

More information

Data Analysis and Probability

Data Analysis and Probability Data Analysis and Probability Vocabulary List Mean- the sum of a group of numbers divided by the number of addends Median- the middle value in a group of numbers arranged in order Mode- the number or item

More information

The Classification of Quadratic Rook Polynomials of a Generalized Three Dimensional Board

The Classification of Quadratic Rook Polynomials of a Generalized Three Dimensional Board Global Journal of Pure and Applied Mathematics. ISSN 0973-1768 Volume 13, Number 3 (2017), pp. 1091-1101 Research India Publications http://www.ripublication.com The Classification of Quadratic Rook Polynomials

More information

arxiv: v2 [cs.cc] 18 Mar 2013

arxiv: v2 [cs.cc] 18 Mar 2013 Deciding the Winner of an Arbitrary Finite Poset Game is PSPACE-Complete Daniel Grier arxiv:1209.1750v2 [cs.cc] 18 Mar 2013 University of South Carolina grierd@email.sc.edu Abstract. A poset game is a

More information

Contents. MA 327/ECO 327 Introduction to Game Theory Fall 2017 Notes. 1 Wednesday, August Friday, August Monday, August 28 6

Contents. MA 327/ECO 327 Introduction to Game Theory Fall 2017 Notes. 1 Wednesday, August Friday, August Monday, August 28 6 MA 327/ECO 327 Introduction to Game Theory Fall 2017 Notes Contents 1 Wednesday, August 23 4 2 Friday, August 25 5 3 Monday, August 28 6 4 Wednesday, August 30 8 5 Friday, September 1 9 6 Wednesday, September

More information

A1 Problem Statement Unit Pricing

A1 Problem Statement Unit Pricing A1 Problem Statement Unit Pricing Given up to 10 items (weight in ounces and cost in dollars) determine which one by order (e.g. third) is the cheapest item in terms of cost per ounce. Also output the

More information

Game Theory Lecturer: Ji Liu Thanks for Jerry Zhu's slides

Game Theory Lecturer: Ji Liu Thanks for Jerry Zhu's slides Game Theory ecturer: Ji iu Thanks for Jerry Zhu's slides [based on slides from Andrew Moore http://www.cs.cmu.edu/~awm/tutorials] slide 1 Overview Matrix normal form Chance games Games with hidden information

More information

Mathematics (JUN11MD0201) General Certificate of Education Advanced Level Examination June Unit Decision TOTAL.

Mathematics (JUN11MD0201) General Certificate of Education Advanced Level Examination June Unit Decision TOTAL. Centre Number Candidate Number For Examiner s Use Surname Other Names Candidate Signature Examiner s Initials Mathematics Unit Decision 2 Monday 20 June 2011 General Certificate of Education Advanced Level

More information

LMI-MONTHLY TEST JUN 2010 'SPEED SIXES'

LMI-MONTHLY TEST JUN 2010 'SPEED SIXES' LMI-MONTHLY TEST JUN 2010 'SPEED SIXES' 6/6/2010 166 MINUTES 1666 POINTS INSTRUCTION BOOKLET (Sudokus by Tejal Phatak / Rohan Rao) http://rohanrao.blogspot.com/ WEBPAGE: http://logicmastersindia.com/forum/forums/thread-view.asp?

More information

A year ago I investigated a mathematical problem relating to Latin squares. Most people, whether knowing it or not, have actually seen a Latin square

A year ago I investigated a mathematical problem relating to Latin squares. Most people, whether knowing it or not, have actually seen a Latin square 1 How I Got Started: A year ago I investigated a mathematical problem relating to Latin squares. Most people, whether knowing it or not, have actually seen a Latin square at some point in their lives and

More information

LMI Monthly Test May 2010 Instruction Booklet

LMI Monthly Test May 2010 Instruction Booklet Submit at http://www.logicmastersindia.com/m201005 LMI Monthly Test May 2010 Instruction Booklet Forum http://logicmastersindia.com/forum/forums/thread-view.asp?tid=53 Start Time 22-May-2010 20:00 IST

More information

UNO is hard, even for a single player

UNO is hard, even for a single player UNO is hard, even for a single player The MIT Faculty has made this article openly available. Please share how this access benefits you. Your story matters. Citation As Published Publisher Demaine, Erik

More information

Analyzing Games: Solutions

Analyzing Games: Solutions Writing Proofs Misha Lavrov Analyzing Games: olutions Western PA ARML Practice March 13, 2016 Here are some key ideas that show up in these problems. You may gain some understanding of them by reading

More information

Counting Permutations by Putting Balls into Boxes

Counting Permutations by Putting Balls into Boxes Counting Permutations by Putting Balls into Boxes Ira M. Gessel Brandeis University C&O@40 Conference June 19, 2007 I will tell you shamelessly what my bottom line is: It is placing balls into boxes. Gian-Carlo

More information

The Galaxy. Christopher Gutierrez, Brenda Garcia, Katrina Nieh. August 18, 2012

The Galaxy. Christopher Gutierrez, Brenda Garcia, Katrina Nieh. August 18, 2012 The Galaxy Christopher Gutierrez, Brenda Garcia, Katrina Nieh August 18, 2012 1 Abstract The game Galaxy has yet to be solved and the optimal strategy is unknown. Solving the game boards would contribute

More information

COCI 2008/2009 Contest #3, 13 th December 2008 TASK PET KEMIJA CROSS MATRICA BST NAJKRACI

COCI 2008/2009 Contest #3, 13 th December 2008 TASK PET KEMIJA CROSS MATRICA BST NAJKRACI TASK PET KEMIJA CROSS MATRICA BST NAJKRACI standard standard time limit second second second 0. seconds second 5 seconds memory limit MB MB MB MB MB MB points 0 0 70 0 0 0 500 Task PET In the popular show

More information

Computational aspects of two-player zero-sum games Course notes for Computational Game Theory Section 3 Fall 2010

Computational aspects of two-player zero-sum games Course notes for Computational Game Theory Section 3 Fall 2010 Computational aspects of two-player zero-sum games Course notes for Computational Game Theory Section 3 Fall 21 Peter Bro Miltersen November 1, 21 Version 1.3 3 Extensive form games (Game Trees, Kuhn Trees)

More information

Multiagent Systems: Intro to Game Theory. CS 486/686: Introduction to Artificial Intelligence

Multiagent Systems: Intro to Game Theory. CS 486/686: Introduction to Artificial Intelligence Multiagent Systems: Intro to Game Theory CS 486/686: Introduction to Artificial Intelligence 1 1 Introduction So far almost everything we have looked at has been in a single-agent setting Today - Multiagent

More information

FOM 11 Ch. 1 Practice Test Name: Inductive and Deductive Reasoning

FOM 11 Ch. 1 Practice Test Name: Inductive and Deductive Reasoning FOM 11 Ch. 1 Practice Test Name: Inductive and Deductive Reasoning Multiple Choice Identify the choice that best completes the statement or answers the question. 1. Justin gathered the following evidence.

More information

Table of Contents. Table of Contents 1

Table of Contents. Table of Contents 1 Table of Contents 1) The Factor Game a) Investigation b) Rules c) Game Boards d) Game Table- Possible First Moves 2) Toying with Tiles a) Introduction b) Tiles 1-10 c) Tiles 11-16 d) Tiles 17-20 e) Tiles

More information

1. Non-Adaptive Weighing

1. Non-Adaptive Weighing 1. Non-Adaptive Weighing We consider the following classical problem. We have a set of N coins of which exactly one of them is different in weight from the others, all of which are identical. We want to

More information

Game Theory and an Exploration of 3 x n Chomp! Boards. Senior Mathematics Project. Emily Bergman

Game Theory and an Exploration of 3 x n Chomp! Boards. Senior Mathematics Project. Emily Bergman Game Theory and an Exploration of 3 x n Chomp! Boards Senior Mathematics Project Emily Bergman December, 2014 2 Introduction: Game theory focuses on determining if there is a best way to play a game not

More information

Solitaire Games. MATH 171 Freshman Seminar for Mathematics Majors. J. Robert Buchanan. Department of Mathematics. Fall 2010

Solitaire Games. MATH 171 Freshman Seminar for Mathematics Majors. J. Robert Buchanan. Department of Mathematics. Fall 2010 Solitaire Games MATH 171 Freshman Seminar for Mathematics Majors J. Robert Buchanan Department of Mathematics Fall 2010 Standard Checkerboard Challenge 1 Suppose two diagonally opposite corners of the

More information