COMBINATORIAL GAMES: MODULAR N-QUEEN

Similar documents
1 In the Beginning the Numbers

A Combinatorial Game Mathematical Strategy Planning Procedure for a Class of Chess Endgames

GEOGRAPHY PLAYED ON AN N-CYCLE TIMES A 4-CYCLE

HKUST Theoretical Computer Science Center Research Report HKUST-TCSC

Circular Nim Games. S. Heubach 1 M. Dufour 2. May 7, 2010 Math Colloquium, Cal Poly San Luis Obispo

THE GAME OF HEX: THE HIERARCHICAL APPROACH. 1. Introduction

A Winning Strategy for the Game of Antonim

European Journal of Combinatorics. Staircase rook polynomials and Cayley s game of Mousetrap

Staircase Rook Polynomials and Cayley s Game of Mousetrap

Legend. The Red Goal. The. Blue. Goal

On Variants of Nim and Chomp

Perfect Domination for Bishops, Kings and Rooks Graphs On Square Chessboard

CHECKMATE! A Brief Introduction to Game Theory. Dan Garcia UC Berkeley. The World. Kasparov

Open Problems at the 2002 Dagstuhl Seminar on Algorithmic Combinatorial Game Theory

Three Pile Nim with Move Blocking. Arthur Holshouser. Harold Reiter.

Narrow misère Dots-and-Boxes

Alessandro Cincotti School of Information Science, Japan Advanced Institute of Science and Technology, Japan

VARIATIONS ON NARROW DOTS-AND-BOXES AND DOTS-AND-TRIANGLES

Partizan Kayles and Misère Invertibility

Subtraction games with expandable subtraction sets

Obliged Sums of Games

Foundations of Artificial Intelligence

Impartial Combinatorial Games Berkeley Math Circle Intermediate II Ted Alper Evans Hall, room 740 Sept 1, 2015

arxiv: v2 [math.ho] 23 Aug 2018

Higher Nimbers in Pawn Endgames on Large Chessboards

Analyzing ELLIE - the Story of a Combinatorial Game

NIM WITH A MODULAR MULLER TWIST. Hillevi Gavel Department of Mathematics and Physics, Mälardalen University, Västerås, Sweden

On Variations of Nim and Chomp

Received: 10/24/14, Revised: 12/8/14, Accepted: 4/11/15, Published: 5/8/15

Eight Queens Puzzle Solution Using MATLAB EE2013 Project

Higher nimbers in pawn endgames on large chessboards

Closed Almost Knight s Tours on 2D and 3D Chessboards

Analysis of Don't Break the Ice

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

arxiv: v1 [math.co] 30 Jul 2015

arxiv: v1 [math.co] 24 Oct 2018

Separation Numbers of Chessboard Graphs. Doug Chatham Morehead State University September 29, 2006

N-Queens Problem. Latin Squares Duncan Prince, Tamara Gomez February

Restoring Fairness to Dukego

Reflections on the N + k Queens Problem

MATHEMATICS ON THE CHESSBOARD

Tangent: Boromean Rings. The Beer Can Game. Plan. A Take-Away Game. Mathematical Games I. Introduction to Impartial Combinatorial Games

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

Locally Informed Global Search for Sums of Combinatorial Games

On Drawn K-In-A-Row Games

Gale s Vingt-et-en. Ng P.T. 1 and Tay T.S. 2. Department of Mathematics, National University of Singapore 2, Science Drive 2, Singapore (117543)

Tic-Tac-Toe on graphs

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

1 Introduction The n-queens problem is a classical combinatorial problem in the AI search area. We are particularly interested in the n-queens problem

The pairing strategies of the 9-in-a-row game

Week 1. 1 What Is Combinatorics?

STRATEGY AND COMPLEXITY OF THE GAME OF SQUARES

EXPLORING TIC-TAC-TOE VARIANTS

5.4 Imperfect, Real-Time Decisions

Figure 1. Mathematical knots.

array of square cells as a sum of elements not of the "domino" form as in the Tough Hut problem, but of the form

1 The Buildup. Samee Ullah Khan Ishfaq Ahmad

Another Form of Matrix Nim

Game, Set, and Match Carl W. Lee September 2016

Games, Triangulations, Theory

PRIMES STEP Plays Games

THE ASSOCIATION OF MATHEMATICS TEACHERS OF NEW JERSEY 2018 ANNUAL WINTER CONFERENCE FOSTERING GROWTH MINDSETS IN EVERY MATH CLASSROOM

SUDOKU Colorings of the Hexagonal Bipyramid Fractal

Temperatures of Combinatorial Games

Lecture 6: Latin Squares and the n-queens Problem

Game, Set, and Match Carl W. Lee September 2016

Crossing Game Strategies

Solving Dots-And-Boxes

Surreal Numbers and Games. February 2010

New Toads and Frogs Results

Peeking at partizan misère quotients

arxiv: v2 [cs.cc] 18 Mar 2013

arxiv: v1 [cs.cc] 12 Dec 2017

An Optimal Algorithm for a Strategy Game

Eric Duchêne (Univ. Claude Bernard Lyon 1) Michel Rigo (University of Liège)

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

Vadim V. Anshelevich

Asymptotic Results for the Queen Packing Problem

LESSON 2: THE INCLUSION-EXCLUSION PRINCIPLE

Graph Nim. PURE Insights. Breeann Flesch Western Oregon University,

OCTAGON 5 IN 1 GAME SET

A Novel Approach to Solving N-Queens Problem

arxiv: v1 [math.co] 24 Nov 2018

Lecture 19 November 6, 2014

UKPA Presents. March 12 13, 2011 INSTRUCTION BOOKLET.

Chameleon Coins arxiv: v1 [math.ho] 23 Dec 2015

4th Pui Ching Invitational Mathematics Competition. Final Event (Secondary 1)

12th Bay Area Mathematical Olympiad

Which Rectangular Chessboards Have a Bishop s Tour?

Ian Stewart. 8 Whitefield Close Westwood Heath Coventry CV4 8GY UK

Towards Strategic Kriegspiel Play with Opponent Modeling

IMOK Maclaurin Paper 2014

Grade 6 Math Circles Combinatorial Games - Solutions November 3/4, 2015

Grade 7/8 Math Circles Game Theory October 27/28, 2015

Caltech Harvey Mudd Mathematics Competition February 20, 2010

Pennies vs Paperclips

Second Annual University of Oregon Programming Contest, 1998

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

One-Dimensional Peg Solitaire, and Duotaire

Senior Math Circles February 10, 2010 Game Theory II

Transcription:

COMBINATORIAL GAMES: MODULAR N-QUEEN Samee Ullah Khan Department of Computer Science and Engineering University of Texas at Arlington Arlington, TX-76019, USA sakhan@cse.uta.edu Abstract. The classical n-queen problem has been used as a benchmark for goal searching in a solution space by the Artificial Intelligence community. The original problem was confined to 8 queens on a regular chessboard. Over the years, it has transformed into many forms. In this paper, we will talk about yet another variation of the n-queen problem, the Modular n-queen Problem, and ask if the readers are able to answer the open problems. Introduction. Chess was invented by the Indians in the 6 th Century. On the other hand Xiangqi and Backgammon evolved from an ancient Chinese game called Liubo that was invented some 3,500 years ago [Lin 1991]. Chess and its variants, are purely strategic games without any random moves, it should, at least in principle, be possible to decide whether there is a winning strategy for the first or the second player, or whether the game always ends with a draw (assuming perfect play). Such games are called combinatorial games, and combinatorial game theory (CGT) is a branch of mathematics devoted to their analysis [Berlekamp et al. 1982]. A rich theory on how to evaluate game positions has been developed in recent years, and it has been successfully applied to analyze certain endgame positions of Chess [Elkies 1996] and Go [Berlekamp et al. 1994], for example. Unfortunately, CGT cannot directly be applied to Chess and Xiangqi, due to the fact that draws do not qualify as a game in CGT [Berlekamp et al. 1982]. What is the n-queen problem? Consider an n n ordinary chessboard. It is always possible to find n queens positioned in such a way, that no two attack each other. This is although only true, when n 4. Another way to pose the question is: How many

such placements can be found, when there are no such two queens who share a row, column or a diagonal? The original problem was only for 8 queens on a regular chessboard. For the original 8 queens problem, 92 solutions to this date have been identified. Of these 92, there are 12 distinct patterns. Thus all of the 92 solutions can be transformed into the 12 unique patterns, using reflection and rotation. These 12 patterns are show in Table 1. Sol. Row 1 Row 2 Row 3 Row 4 Row 5 Row 6 Row 7 Row 8 1 1 5 8 3 3 7 2 4 2 1 6 8 7 7 4 2 5 3 2 4 6 3 3 1 7 5 4 2 5 7 3 3 8 6 4 5 2 5 7 1 1 8 6 3 6 2 6 1 4 4 8 3 5 7 2 6 8 1 1 4 7 5 8 2 7 3 8 8 5 1 4 9 2 7 5 8 1 4 6 3 10 3 5 2 8 1 7 4 6 11 3 5 8 4 1 7 2 6 12 3 6 2 5 8 1 7 4 Table 1: 12 unique patterns for the 8-queen problem. For instance, if one is to constructing solution number 1, then the queen for chessboard row 1 should be placed in column 1, the queen for row 2 should be placed in column 5, and so on. Modular Chessboard N-queen problem. A modular chess board is a one where the diagonals run on the other side of the board. Thus a queen can still be under attack, even if it is not directly under attack from another queen on the diagonal. This fact is illustrated in figure 1. The basic question asked for a modular chessboard is: What is the maximum number of queens that can be accommodated on a modular chessboard, such that no two Queens attack each other? In other words if an n n chessboard is transformed into a torus by identifying the opposite side, we want to place n queens in such a way that none attack each other. This number is denoted as M(n). The basic modular chessboard n-queen problem is accredited to Polya [Polya 1921]. Known Results. There has been a lot of work done on the modular n-queen problem. The first major result was by Polya [Polya 1921]. He proved that if and only if gcd(n,6)=1 then there are n queens on the modular board. The same result was proved by many others see

[Heden 1992]. Later Klöve [Klöve 1981], improved the result and gave the following theorem: Theorem (Klöve). The modular chessboard has solutions of the following form: i. M(n)=n if gcd(n,6)=1, ii. M(n)=n-2 if gcd(n,6)=3, iii. n-3 M(n) n-1 if gcd(n,6)=2, iv. n-5 M(n) n-1 if gcd(n,6)=6, Figure 1: Modular chessboard Later Heden [Heden 1992] further improved Klöve s work and gave a much simpler proof and summarized the results as follows: Theorem (Heden). The modular chessboard has solutions of the following form: i. M(n)=n if gcd(n,6)=1, ii. M(n)=n-1 if gcd(n,12)=2, iii. M(n)=n-2 if gcd(n,6)=3 or 4, iv. n-4 M(n) n-2 if gcd(n,12)=6, v. n-5 M(n) n-2 if gcd(n,12)=12, Heden used the concept of chains of queens and colored queens to prove his results. A chain of queens on a diagonal is a set of queens (Q 1, Q 2, Q 3,. Q k ) such that the following two conditions hold: i. No three queens are on the same diagonal or bi-diagonal. ii. Two queens marked consecutively are always in the same diagonal or bi-diagonal. A chain is closed, if Q 1 = Q k. Similarly, chaining can be defined for rows and columns. Heden defined four colors for queens as A,

B, C and D. A queen colored in color A is called A-queen. A queen colored in either A or D is called AD-queen, and so on. This helped in defining the colorings for the diagonal and bi-diagonal, which are the bases of his proof. This approach is so much so effective, that he was able to give a partial solution without the aid of computer towards the modular 12-double queen problem, with 22 queens. A modular double queen problem is an extension of the normal modular queen problem, where there can be at most two queens on a single row, column, or a diagonal. Open Problems. i. If M(n) denotes the maximum number of queens on a modular chessboard such that no two queens attack each other, then is there a proof for M(n) = n-2 if 6 divides n? ii. For higher dimensional play of modular n-queen problem, Nudelman [Nudelman 1995] concluded that if there exists a complete solution for d-dimensional modular n-queen problem, than no prime less than 2d can divide n. Can someone determine M(n,d) (where n is the number of queens and d is the dimension) in case of incomplete solutions? References E.R. Berlekamp, J.H. Conway, and R.K. Guy. Winning Ways for your Mathematical Plays I. Academic Press, London, 1982. E.R. Berlekamp and D. Wolfe. Mathematical Go: Chilling Gets the Last Point. A.K. Peters, Ltd., 1994. N.D. Elkies. On number and endgames: Combinatorial game theory in Chess endgames. In R.J. Nowakowski, editor, Proceedings of the 1994 MSRI Workshop on Combinatorial Games, pages 135-150, Cambridge University Press, Cambridge, England 1996. O. Heden. On the modular n-queen problem. Discrete Mathematics, volume 102, pages 155-161, 1992. T. Klöve. The modular n-queen problem II. Discrete Mathematics, volume 36, pages 33-48, 1981. R. Lin. Chinese Chess. The Alternative Press, Hong Kong, 1991.

S.P. Nudelman. The modular n-queens problem in higher dimensions. Discrete Mathematics, volume 146, pages 159-167, 1995. G. Polya. Uber die doppelt-periodishen Lösungen des n- Damen-Problems. In: W. Ahrens, editor, Mathematische Unterhaltungen and Spiele, volume 2, 2 nd ed. 1921.