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

Similar documents
THE GAME CREATION OPERATOR

Another Form of Matrix Nim

A Winning Strategy for the Game of Antonim

Subtraction games with expandable subtraction sets

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

On Variations of Nim and Chomp

Ultimately bipartite subtraction games

Obliged Sums of Games

Game Theory and Algorithms Lecture 19: Nim & Impartial Combinatorial Games

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

Guest Lecture, October

On Variants of Nim and Chomp

Analyzing ELLIE - the Story of a Combinatorial Game

Impartial Games and Recursive Functions

Two-Player Tower of Hanoi

Solutions to Part I of Game Theory

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

2-PILE NIM WITH A RESTRICTED NUMBER OF MOVE-SIZE IMITATIONS

CS 491 CAP Intro to Combinatorial Games. Jingbo Shang University of Illinois at Urbana-Champaign Nov 4, 2016

Figure 1. Mathematical knots.

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

Jim and Nim. Japheth Wood New York Math Circle. August 6, 2011

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

PRIMES STEP Plays Games

Tutorial 1. (ii) There are finite many possible positions. (iii) The players take turns to make moves.

NIM Games: Handout 1

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

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

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

Some Chip Transfer Games Thomas S. Ferguson University of California, Los Angeles

arxiv: v1 [math.co] 30 Jul 2015

arxiv: v1 [cs.dm] 13 Feb 2015

Senior Math Circles February 10, 2010 Game Theory II

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

Crossing Game Strategies

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

PRIMES IN SHIFTED SUMS OF LUCAS SEQUENCES. Lenny Jones Department of Mathematics, Shippensburg University, Shippensburg, Pennsylvania

18.204: CHIP FIRING GAMES

RESTRICTED PERMUTATIONS AND POLYGONS. Ghassan Firro and Toufik Mansour Department of Mathematics, University of Haifa, Haifa, Israel

Wythoff s Game. Kimberly Hirschfeld-Cotton Oshkosh, Nebraska

Peeking at partizan misère quotients

Episturmian words: extremal properties & quasiperiodicity

Section 8.1. Sequences and Series

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

arxiv: v2 [cs.cc] 18 Mar 2013

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)

Restricted Permutations Related to Fibonacci Numbers and k-generalized Fibonacci Numbers

(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.

arxiv: v1 [math.co] 3 Jun 2015

Zhanjiang , People s Republic of China

SOLITAIRE CLOBBER AS AN OPTIMIZATION PROBLEM ON WORDS

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

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

Sequential games. We may play the dating game as a sequential game. In this case, one player, say Connie, makes a choice before the other.

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

Week 1. 1 What Is Combinatorics?

ON SPLITTING UP PILES OF STONES

One-Dimensional Peg Solitaire, and Duotaire

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

Classes of permutations avoiding 231 or 321

132-avoiding Two-stack Sortable Permutations, Fibonacci Numbers, and Pell Numbers

GAME THEORY. Thomas S. Ferguson

Games, Triangulations, Theory

Walking on Numbers and a Self-Referential Formula

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

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

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

On Modular Extensions to Nim

arxiv: v1 [math.co] 14 Apr 2016

Combinatorial Expressions Involving Fibonacci, Hyperfibonacci, and Incomplete Fibonacci Numbers

Ramanujan-type Congruences for Overpartitions Modulo 5. Nankai University, Tianjin , P. R. China

Narrow misère Dots-and-Boxes

#A13 INTEGERS 15 (2015) THE LOCATION OF THE FIRST ASCENT IN A 123-AVOIDING PERMUTATION

Combinatorics in the group of parity alternating permutations

Latin Squares for Elementary and Middle Grades

The Strong Finiteness of Double Mersenne Primes and the Infinity of Root Mersenne Primes and Near-square Primes of Mersenne Primes

Congruences Modulo Small Powers of 2 and 3 for Partitions into Odd Designated Summands

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

Surreal Numbers and Games. February 2010

Staircase Rook Polynomials and Cayley s Game of Mousetrap

A STUDY OF EULERIAN NUMBERS FOR PERMUTATIONS IN THE ALTERNATING GROUP

Project Report - The Locker Puzzle

LUCAS-SIERPIŃSKI AND LUCAS-RIESEL NUMBERS

Arithmetic Sequences Read 8.2 Examples 1-4

An improvement to the Gilbert-Varshamov bound for permutation codes

A FAMILY OF t-regular SELF-COMPLEMENTARY k-hypergraphs. Communicated by Behruz Tayfeh Rezaie. 1. Introduction

Arithmetic Properties of Combinatorial Quantities

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

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

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

Definition 1 (Game). For us, a game will be any series of alternating moves between two players where one player must win.

Enumeration of Two Particular Sets of Minimal Permutations

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

Stacking Blocks and Counting Permutations

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

arxiv:math/ v1 [math.co] 22 Aug 2000

Corners in Tree Like Tableaux

Evacuation and a Geometric Construction for Fibonacci Tableaux

Edge-disjoint tree representation of three tree degree sequences

International Journal of Combinatorial Optimization Problems and Informatics. E-ISSN:

Transcription:

INVARIANT GAMES Eric Duchêne (Univ. Claude Bernard Lyon 1) Michel Rigo (University of Liège) http://www.discmath.ulg.ac.be/ Words 2009, Univ. of Salerno, 14th September 2009

COMBINATORIAL GAME THEORY FOR WORD COMBINATORISTS E. R. Berlekamp, J. H. Conway, R. K. Guy, Winning Ways for Your Mathematical Plays, vol. 1 4, A K Peters, Ltd (2001).

COMBINATORIAL GAME THEORY FOR WORD COMBINATORISTS What is a (combinatorial) game? There are just two players. There are several, usually finitely many, positions, and often a particular starting position. There are clearly defined rules that specify the moves that either player can make from a given position (options). The two players play alternatively. Both players know what is going on (complete information). There are no chance moves. In the normal play convention a player unable to move loses. The rules are such that play will always come to an end because some player will be unable to move (ending condition).

COMBINATORIAL GAME THEORY FOR WORD COMBINATORISTS WYTHOFF S GAME (1907) Two players play alternatively Two piles of tokens Remove any positive number of tokens from one pile (Nim rule) or, the same positive number from the two piles. The one who takes the last token wins the game (last move wins). Set of moves: M W = {(i, 0), i > 0} {(0, j), j > 0} {(k, k), k > 0}

COMBINATORIAL GAME THEORY FOR WORD COMBINATORISTS 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9

COMBINATORIAL GAME THEORY FOR WORD COMBINATORISTS 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9

COMBINATORIAL GAME THEORY FOR WORD COMBINATORISTS 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9

COMBINATORIAL GAME THEORY FOR WORD COMBINATORISTS 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9

COMBINATORIAL GAME THEORY FOR WORD COMBINATORISTS 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9

COMBINATORIAL GAME THEORY FOR WORD COMBINATORISTS 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9

COMBINATORIAL GAME THEORY FOR WORD COMBINATORISTS 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9

COMBINATORIAL GAME THEORY FOR WORD COMBINATORISTS 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9

COMBINATORIAL GAME THEORY FOR WORD COMBINATORISTS 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9

COMBINATORIAL GAME THEORY FOR WORD COMBINATORISTS P-POSITION A P-position is a position q from which the previous player (moving to q) can force a win. 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 (0, 0), (1, 2), (3, 5), (4, 7), (6, 10), (8, 13), (9, 15),...

COMBINATORIAL GAME THEORY FOR WORD COMBINATORISTS W. A. Wythoff, A modification of the game of Nim, Nieuw Arch. Wisk. 7 (1907), 199 202. PROPOSITION The nth P-position of Wythoff s game is given by ( nτ, nτ 2 ) τ = (1 + 5)/2. COROLLARY The P-positions are coded by the Fibonacci word! abaababaabaababaababa Look at the nth occurrence of a and the nth occurrence of b. One can also use the Fibonacci numeration system.

EXAMPLES OF GAMES RELATED TO MORPHIC WORDS Words coding P-positions Wythoff s game Fibonacci word A. S. Fraenkel, Flora Game (4 piles) images by morphisms of the Fibonacci word A bac, B da. E. Duchêne, M.R., A morphic approach to combinatorial games : the Tribonacci case, Theor. Inform. Appl. 42 (2008), 375 393. Extension of Wythoff s game on three piles of token Tribonacci word E. Duchêne, M.R., Cubic Pisot Unit Combinatorial Games, Monat. fur Math. 155 (2008), 217 249. A class of games on three piles for s 2, fixed point of σ : a a s b, b ac, c a.

EXAMPLES OF GAMES RELATED TO MORPHIC WORDS Let us also mention the well-known game of Nim (with 2 heaps) p. 448 A two-dimensional array (a(m, n)) m,n 0 is k-regular if there exist a finite number of two-dimensional arrays (a i (m, n)) m,n 0 such that each sub-array of the form (a(k e m + r, k e n + s) m,n 0 with e 0, 0 r, s < k e is a Z-linear combination of the a i.

EXAMPLES OF GAMES RELATED TO MORPHIC WORDS Sprague-Grundy function : Mex(Opt(p)) 0 1 2 3 4 5 6 7 8 9 0 0 1 2 3 4 5 6 7 8 9 1 1 0 3 2 5 4 7 6 9 8 2 2 3 0 1 6 7 4 5 10 11 3 3 2 1 0 7 6 5 4 11 10 4 4 5 6 7 0 1 2 3 12 13 5 5 4 7 6 1 0 3 2 13 12 6 6 7 4 5 2 3 0 1 14 15 7 7 6 5 4 3 2 1 0 15 14 8 8 9 10 11 12 13 14 15 0 1 9 9 8 11 10 13 12 15 14 1 0..... Nim-sum: t t a i 2 i b i 2 i = i=0 i=0 t (a i + b i mod 2) 2 i i=0

EXAMPLES OF GAMES RELATED TO MORPHIC WORDS What about the Sprague-Grundy function for Wythoff s game? 0 1 2 3 4 5 6 7 8 9 0 0 1 2 3 4 5 6 7 8 9 1 1 2 0 4 5 3 7 8 6 10 2 2 0 1 5 3 4 8 6 7 11 3 3 4 5 6 2 0 1 9 10 12 4 4 5 3 2 7 6 9 0 1 8 5 5 3 4 0 6 8 10 1 2 7 6 6 7 8 1 9 10 3 4 5 13 7 7 8 6 9 0 1 4 5 3 14 8 8 6 7 10 1 1 5 3 4 15 9 9 10 11 12 8 7 13 14 15 16....

EXAMPLES OF GAMES RELATED TO MORPHIC WORDS OPEN QUESTION Is there some regular-structure related to this Wythoff array? A. S. Fraenkel, the Sprague-Grundy function for Wytoff s game, Theoret. Comput. Sci. 75 (1990), 311 333. E. Duchêne, A. S. Fraenkel, R. Nowakowski, M.R., Extensions and restrictions of wythoff s game preserving wythoff s sequence as set of P-positions, to appear in J. Combin. Theory Ser. A.

EXAMPLES OF GAMES RELATED TO MORPHIC WORDS

INVARIANT GAMES Informal/arguable definition of what could be a game that is easy to play. DEFINITION A possible answer : same options for all positions (provided that enough token are available), i.e., always the same moves. Such a game is called invariant. REMARK There is no clear formal framework to decide the quality of given game rules. Invariant does not necessarily mean easy.

INVARIANT GAMES EXAMPLES OF INVARIANT GAMES CAN BE FOUND IN... game of Nim Wythoff s game E. Duchêne, S. Gravier, Geometrical extensions of Wythoff s game, Disc. Math. 309 (2009), 3595 3608. A. S. Fraenkel, Heap games, numeration systems and sequences, Ann. Comb. 2 (1998), 197 210. A. S. Fraenkel, I. Borosh, A generalization of Wythoff s game, J. Combin. Theory Ser. A 15 (1973), 175 191. A. S. Fraenkel, D. Zusman, A new heap game, Theoret. Comput. Sci. 252 (2001), 5 12. Subtraction games given in Winning ways

INVARIANT GAMES EXAMPLE OF VARIANT GAME : TRIBONACCI GAME I. Any positive number of tokens from up to two piles can be removed. II. Let α, β, γ be three positive integers such that 2 max{α,β,γ} α + β + γ. Then one can remove α (resp. β, γ) from the first (resp. second, third) pile. III. Let β > 2α > 0. From position (a, b, c) one can remove the same number α of tokens from any two piles and β tokens from the unchosen one with the following condition. If a (resp. b, c ) denotes the number of tokens in the pile which contained a (resp. b, c) tokens before the move, then the configuration a < c < b is not allowed.

INVARIANT GAMES SOME EXAMPLES OF VARIANT GAMES A. S. Fraenkel, The Raleigh game, Combinatorial number theory, 199 208, de Gruyter, Berlin, (2007). A. S. Fraenkel, The Rat and the Mouse game. A. S. Fraenkel, The Flora game. Tribonacci game, Cubic Pisot Unit games,... Usually the dependence of the game rules to the actual position is restricted to some simple logical formula.

INVARIANT GAMES GENERAL REMARK Given an infinite sequence S = (A n, B n ) of nonnegative integers with (A 0, B 0 ) = (0, 0), a game on two heaps having S as set of P-positions can always be defined. from any position (x, y) S, a unique allowed move (x, y) (0, 0) from any position (A n, B n ) S, any move is allowed except those leading to another position in S. QUESTION Given an infinite sequence S = (A n, B n ) of nonnegative integers with (A 0, B 0 ) = (0, 0), find an invariant game on two heaps having S as set of P-positions?

INVARIANT GAMES Our goal : define a family of invariant games. GET A VARIATION OF WYTHOFF S GAME BASED ON A. S. Fraenkel, How to beat your Wythoff games opponent on three fronts, Amer. Math. Monthly 89 (1982), 353 361. where is considered an invariant extension of Wythoff s game whose set of P-positions is given by a pair of complementary Beatty sequences based on α = (1; k). 1 α + 1 β = 1, (A n, B n ) = ( nα, nβ ). V. Berthé, Autour du système de numération d Ostrowski, Bull. Belg. Math. Soc. 8 (2001), 209) 239.

INVARIANT GAMES DEFINITION The game G(α k ), k N 1, has set of moves M W \ {(2i, 2i) 0 < i < k} {(2k + 1, 2k + 2),(2k + 2, 2k + 1)}. Defining an invariant game is easy but we provide nice characterizations of the set of P-positions (A n, B n ) n 0 REMARK For k = 1, M W {(3, 4),(4, 3)}, we have exactly the same P-positions as for Wythoff s game.

INVARIANT GAMES EXAMPLE (k = 2) Remove any positive number of tokens from one pile or, 3 tokens from one pile and 4 from the other one or, the same positive number ( 2) from the two piles. n 0 1 2 3 4 5 6 7 8 A n 0 1 3 5 6 8 10 12 13 B n 0 2 4 7 9 11 14 16 18

INVARIANT GAMES (THEOREM 1) Let k 2. RECURSIVE CHARACTERIZATION OF (A n, B n ) n 0 (A 0, B 0 ),...,(A k, B k ) = (0, 0),(1, 2),(3, 4),...,(2k 1, 2k), A n = Mex{A i, B i i < n}. For all n k, if the following condition holds true A n+1 A n = 2 [ (B n A n = B n k+1 A n k+1 + 1 A n+1 A n k 2k + 1) ] B n k A n k B n A n 1 then B n+1 A n+1 = B n A n, otherwise B n+1 A n+1 = B n A n + 1.

INVARIANT GAMES (THEOREM 1) Proof. The set is stable and absorbing. An acyclic digraph has a unique kernel.

INVARIANT GAMES (THEOREM 2) ALGEBRAIC CHARACTERIZATION OF (A n, B n ) n 0 Let α k be the quadratic irrational number (1; 1, k) and β k be such that α 1 k + β 1 k = 1. Then we have (A n, B n ) = ( nα k, nβ k ). and α k = 1 + k 2 + 4k k 2 β k = 3 2 + k 2 + 4k 2k [ 1 + 5, 2) 2 (2, 3 + 5. 2

INVARIANT GAMES (THEOREM 2) Proof. The sequence ( nα k, nβ k ) satisfies the previous recursive definition. REMARK We have complementary Beatty sequences. n 0 1 2 3 4 5 6 7 8 A n 0 1 3 5 6 8 10 12 13 B n 0 2 4 7 9 11 14 16 18

INVARIANT GAMES SOME OF THE TOOLS BEHIND THE PROOFS... γ (n) := (n + 1)γ nγ. The sequence ( αk (n)) n 1 (resp. ( βk (n)) n 1 ) is a Sturmian sequence over {1, 2} (resp. {2, 3}). LEMMAS α = α k, β = β k If α (n) = 1, then β (n) = 2. If β (n) = 3, then α (n) = 2. α (n) α (n + k 1) {2 k } {2 i 12 k i 1 i = 0,...,k 1}. If α (n) α (n + k 1) = 2 k, then β (n) β (n + k 1) {2 i 32 k i 1 i = 0,...,k 1}. If β (n) β (n + k) = 32 k 1 3, then α (n) α (n + k) = 2 k+1.

INVARIANT GAMES COROLLARY Thm. 1 (recursive characterization of (A n, B n ) n 0 ) provides a recursive characterization of a class of Sturmian words : ( α (n)) n 0 and ( β (n)) n 0.

INVARIANT GAMES CONJECTURE Given a pair of complementary Beatty sequences S = (A n, B n ), there exists an invariant game having S as set of P-positions.