Odd king tours on even chessboards

Similar documents
Some forbidden rectangular chessboards with an (a, b)-knight s move

Which Rectangular Chessboards Have a Bishop s Tour?

MATHEMATICS ON THE CHESSBOARD

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

STRATEGY AND COMPLEXITY OF THE GAME OF SQUARES

Senior Math Circles February 10, 2010 Game Theory II

arxiv: v1 [math.co] 24 Nov 2018

PRIMES STEP Plays Games

1.6 Congruence Modulo m

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

Solutions for the Practice Questions

Notes for Recitation 3

Mistilings with Dominoes

Two Parity Puzzles Related to Generalized Space-Filling Peano Curve Constructions and Some Beautiful Silk Scarves

Lower Bounds for the Number of Bends in Three-Dimensional Orthogonal Graph Drawings

SOLITAIRE CLOBBER AS AN OPTIMIZATION PROBLEM ON WORDS

SOLUTIONS FOR PROBLEM SET 4

arxiv: v1 [cs.cc] 21 Jun 2017

Math 255 Spring 2017 Solving x 2 a (mod n)

More Great Ideas in Theoretical Computer Science. Lecture 1: Sorting Pancakes

LESSON 2: THE INCLUSION-EXCLUSION PRINCIPLE

Asymptotic Results for the Queen Packing Problem

Ivan Guo. Broken bridges There are thirteen bridges connecting the banks of River Pluvia and its six piers, as shown in the diagram below:

Bishop Domination on a Hexagonal Chess Board

NON-OVERLAPPING PERMUTATION PATTERNS. To Doron Zeilberger, for his Sixtieth Birthday

18.204: CHIP FIRING GAMES

Tilings with T and Skew Tetrominoes

Graph Theory: The Four Color Theorem

The Archbishop's Odyssey

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

Edge-disjoint tree representation of three tree degree sequences

arxiv: v1 [math.co] 24 Oct 2018

Permutation Groups. Definition and Notation

Math 127: Equivalence Relations

CLASS NOTES. A mathematical proof is an argument which convinces other people that something is true.

Minimal tilings of a unit square

Pattern Avoidance in Unimodal and V-unimodal Permutations

17. Symmetries. Thus, the example above corresponds to the matrix: We shall now look at how permutations relate to trees.

Permutation Groups. Every permutation can be written as a product of disjoint cycles. This factorization is unique up to the order of the factors.

arxiv: v1 [math.co] 30 Nov 2017

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

Generating trees and pattern avoidance in alternating permutations

Week 1. 1 What Is Combinatorics?

Greedy Flipping of Pancakes and Burnt Pancakes

Primitive Roots. Chapter Orders and Primitive Roots

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

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

Domination game and minimal edge cuts

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

Touring a torus. A checker is in the Southwest corner of a standard 8 8 checkerboard. Dave Witte. Can the checker tour the board?

12. 6 jokes are minimal.

Caltech Harvey Mudd Mathematics Competition February 20, 2010

Determinants, Part 1

Non-overlapping permutation patterns

Corners in Tree Like Tableaux

Stupid Columnsort Tricks Dartmouth College Department of Computer Science, Technical Report TR

arxiv: v2 [cs.cc] 20 Nov 2018

On shortening u-cycles and u-words for permutations

16 Alternating Groups

PARITY, SYMMETRY, AND FUN PROBLEMS 1. April 16, 2017

Research Article Knight s Tours on Rectangular Chessboards Using External Squares

The Tilings of Deficient Squares by Ribbon L-Tetrominoes Are Diagonally Cracked

Perfect Difference Families and Related Variable-Weight Optical Orthogonal Codess

Lecture 6: Latin Squares and the n-queens Problem

1111: Linear Algebra I

1 = 3 2 = 3 ( ) = = = 33( ) 98 = = =

PUZZLES ON GRAPHS: THE TOWERS OF HANOI, THE SPIN-OUT PUZZLE, AND THE COMBINATION PUZZLE

CRACKING THE 15 PUZZLE - PART 4: TYING EVERYTHING TOGETHER BEGINNERS 02/21/2016

14th Bay Area Mathematical Olympiad. BAMO Exam. February 28, Problems with Solutions

Number Theory - Divisibility Number Theory - Congruences. Number Theory. June 23, Number Theory

Permutation Tableaux and the Dashed Permutation Pattern 32 1

Wilson s Theorem and Fermat s Theorem

THE ERDŐS-KO-RADO THEOREM FOR INTERSECTING FAMILIES OF PERMUTATIONS

Positive Triangle Game

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

arxiv: v1 [math.co] 30 Jul 2015

Constructions of Coverings of the Integers: Exploring an Erdős Problem

The Chinese Remainder Theorem

A theorem on the cores of partitions

TROMPING GAMES: TILING WITH TROMINOES. Saúl A. Blanco 1 Department of Mathematics, Cornell University, Ithaca, NY 14853, USA

Combinatorics. Chapter Permutations. Counting Problems

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

An Optimal Algorithm for a Strategy Game

On the Periodicity of Graph Games

arxiv: v2 [math.gt] 21 Mar 2018

A tournament problem

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

TILLING A DEFICIENT RECTANGLE WITH T-TETROMINOES. 1. Introduction

SOLUTIONS TO PROBLEM SET 5. Section 9.1

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

CCO Commun. Comb. Optim.

Unique Sequences Containing No k-term Arithmetic Progressions

arxiv: v2 [math.co] 7 Jul 2016

Combinatorics in the group of parity alternating permutations

On uniquely k-determined permutations

Three of these grids share a property that the other three do not. Can you find such a property? + mod

To Your Hearts Content

A STUDY OF EULERIAN NUMBERS FOR PERMUTATIONS IN THE ALTERNATING GROUP

Tile Number and Space-Efficient Knot Mosaics

Domino Tilings of Aztec Diamonds, Baxter Permutations, and Snow Leopard Permutations

Transcription:

Odd king tours on even chessboards D. Joyner and M. Fourte, Department of Mathematics, U. S. Naval Academy, Annapolis, MD 21402 12-4-97 In this paper we show that there is no complete odd king tour on an even chessboard, partially answering a question raised in [BK], [S]. A king can move on a m n checkered board to any of its neighboring squares, where m > 1 and n > 1 are integers. There are 8 neighboring squares if the king is not on the edge of the board, 5 if the king is on the edge but not in a corner, and 3 otherwise. A tour on an m n board of a given chess piece is a sequence of legal moves of that piece on an m n checkered board which has the property that each square of the board is visited at most once in that sequence. A complete tour on an m n board of a given chess piece is a tour which has the property that each square of the board is visited exactly once in that sequence. For example, a complete king tour is easy to find but a complete knight tour is relatively hard to find. An odd king tour is a tour which has the property that each square the king visits can have only an odd number of neighboring squares which have been previously visited. An analogous definition can be given for even king tours. A complete king tour on an m n board may be represented graph theoretically as a Hamiltonian cycle on a particular graph with mn vertices, of which (m 2) (n 2) of them have degree 8, 2(m + n 4) have degree 5 and the remaining 4 vertices have 1

1 BACKGROUND 2 degree 3. The problem of finding an algorithm to find a hamiltonian circuit in a general graph is known to be NP complete [GJ]. The problem of finding an efficient algorithm to search for such a tour therefore appears to be very hard problem. In [BK], C. Bailey and M. Kidwell proved that complete even king tours do not exist. They left the question of the existence of complete odd tours open but showed that if they did exist then it would have to end at the edge of the board. We shall show that Theorem 1 No complete odd king tours exist on an m n board, except possibly in the following cases: m = n = 7 m = 7 and n = 8, m > 7, n > 7 and m or n (or both) is odd, m > 7, n > 7 and the tour is rapidly filling. The definition of rapidly filling requires some technical notation and will be given later. 1 Background Before proving this, we recall briefly some definitions and results from [BK] which we shall use in our proof. Definition 2 Two squares are called a neighbor pair if they have a common edge or common vertex. A neighbor pair is called completed if both squares have been visited by the the king at some point in a tour, including the case where the king is still on one of the squares. A foursome is a collection of four squares which form a 2 2 array of neighboring squares on the board. A foursome is called completed if all four squares have been visited by the the king at some point in a tour, including the case where the king is still on one of the four squares.

1 BACKGROUND 3 Unless stated otherwise, after a given move of a given odd king tour, let F denote the change in the number of completed foursomes and let N denote the change in the number of completed neighbor pairs. Note that N is equal to the total number of previously visited squares which are neighboring the king. The following result was proven in [BK] using a counting argument: Lemma 3 (a) The number of neighbor pairs of an m n board is 2mn + 2(m 1)(n 1) m n. (b) The number of foursomes of an m n board is (m 1)(n 1). The following result was proven in [BK] using a case-by-case argument: Lemma 4 After a particular move in a given even king tour, let F denote the change in the number of completed foursomes and let N denote the change in the number of completed neighbor pairs. If F = 0 then N 2. If F = 1 then N 4. If F = 2 then N 6. If F = 3 then N = 8. We shall need the proof of this lemma (for which we refer the reader to [BK]) rather than the lemma itself. The proof of this lemma implies the following: Lemma 5 For an odd king tour: If F = 0 then N 1. If F = 1 then N 3. If F = 2 then N 5. If F = 3 then N = 7. We shall leave the proof of this to the reader. Definition 6 We call an odd king tour rapidly filling if there is a move in the tour such that 2 F + 1 < N and 1 F.

2 THE PROOF OF THE THEOREM 4 2 The proof of the theorem Proposition 7 If m and n are both even then no complete odd king tour exists. proof: Let N denote the total number of completed neighbor pairs after a given point of a given odd king tour. We may represent the values of N as a sequence of numbers, 0, 1, 2,... Here 0 is the total number of completed neighbor pairs after the first move, 1 for after the second move, and so on. Each time the king moves, N must increase by an odd number of neighbors - either 1, 3, 5, or 7. In particular, the parity of N alternates between odd and even after every move. If m and n are both even and if a complete odd king tour exists then the the final parity of N must be odd. By the lemma above, the value of N after any complete king tour is 2mn + 2(m 1)(n 1) m n, which is obviously even. This is a contradiction. It therefore suffices to prove the above theorem in the case where at least one of m, n is odd. Let N denote the total number of completed neighbor pairs in a given odd king tour. Let F denote the number of completed foursomes in a given odd king tour. Let M denote the number of moves in a given odd king tour. Let T = N 2M 2F + 4. Lemma 8 Let T = N 2 2 F, where N, F are defined as above. Then T equals 1, 1, 3, or 5. If the tour is not rapidly filling then T 1 only occurs when F = 0. proof: We prove this on a case-by-case basis. Lemma 5 of the previous section implies the following statement. For each i = 0, 1, 2, 3, we have if F = i then T { 1, 1, 3, 5}. Further, if T 1 then F = 0, when the tour is not rapidly filling. Since these are the only possible values of F, the lemma is proven. second proof of the proposition: Suppose that there is a complete odd king tour on an m n board. The values of T may

2 THE PROOF OF THE THEOREM 5 be represented as a sequence 2,... (since after the first move, N = 0, F = 0, M = 1). The final value of T is, by Lemma 3, 4 m n. Since each time the king moves, T changes by an odd number, the parity of T alternates between even and odd after each move. If m, n are both even then the final parity of T is odd but the final value is even. Lemma 9 Let H(m, n) denote the largest number of non-overlapping 2 2 blocks which will fit in the m n board. There are no labelings of the m n checkerboard by 0 s and 1 s with no 2 2 blocks of 1 s and fewer than H(m, n) 0 s. In particular, if there are no 2 2 blocks of 1 s then there must be at least [m/2][n/2] 0 s. proof: This follows from reasoning similar to Sands Gunport Problem analysis [Sa]. The details are left to the reader. Let T = N M 2F + 1. By Lemma 8, we have that T is monotonically increasing. Moreover, if the tour is not rapidly filling then T increases only when the king moves to a square which does not complete a new foursome (i.e., when F = 0). The initial value of T is 0 and the final value is, by Lemma 3, mn m n + 1. In particular, there are exactly m+n 1 of the mn total moves which complete a foursome. We show that this is impossible if either m or n are greater than 7. Recall that we have assumed that both m, n are greater than 1. Imagine now the checkerboard labeled with the move numbers of a complete odd king tour. Relabel those moves which completed a foursome in some way, 1, 2,..., m+n 1. Delete these moves, so that no completed foursome remains. This contradicts the lemma above if m, n are so large that m+n 1 < [m/2][n/2]. The theorem has therefore been proven for all (m, n) for which min(m, n) 8. We tabulate some maximum odd king tour lengths obtained by a backtracking computer program written in C:

REFERENCES 6 1 2 3 4 5 6 7 8 9 1 1 2 3 4 5 6 7 8 9 2 2 2 5 6 7 8 9 10 11 3 3 5 7 10 13 16 18 21 24 4 4 6 10 14 18 22 27 30 34 5 5 7 13 18 23 28 34 39? 6 6 8 16 22 28 34 41?? 7 7 9 18 27 34 41??? 8 8 10 21 30 39???? 9 9 11 24 34????? By Proposition 7, we know that there are no complete odd king tours on a 6 8 or 8 8 board, since 6, 8 are both even. Therefore, the only boards for which the main theorem has not been proven is the 7 7, 7 8 boards. The above-mentioned program for the 7 7 tour ran for 2 weeks on a Sun ultra computer without completion, at which point the program was terminated. We conclude this article with a question. Remark 10 An odd king tour of length mn 1 on an m n board will be called nearly complete. Which boards have nearly complete odd king tours? Based on the above table, we Conjecture 11 If n > 3 then all 7 n boards have nearly complete odd king tours. Acknowledgement: We thank the Computer Science department at the U. S. Naval Academy, especially John Goetz and Cathie Style, for help obtaining computer time to run the backtracking program. We also thank Mark Kidwell for pointing out some errors in an earlier version. References [BK] C. Bailey, M. Kidwell, A king s tour of the chessboard, Math. Mag.58(1985)285-286

REFERENCES 7 [GJ] M. Garey and D. Johnson, COMPUTERS AND IN- TRACTIBILITY, W. H. Freeman, New York, 1979 [S] S. Sacks, odd and even, Games 6(1982)53 [Sa] B. Sands, The gunport problem, Math. Mag.44(1971)193-194