-
A Family of Slow Exact $k$-Nim Games
Authors:
Silvia Heubach,
Matthieu Dufour
Abstract:
Slow Exact $k$-Nim is a variant of the well-known game of Nim. The rules of this variant are that in each move, $k$ of the $n$ stacks are selected and then one token is removed from each of the $k$ stacks. We will extend known results by proving results on the structure of the P-positions for the infinite family of Slow Exact $k$-Nim games where we play on all but one of the $n$ stacks. In additio…
▽ More
Slow Exact $k$-Nim is a variant of the well-known game of Nim. The rules of this variant are that in each move, $k$ of the $n$ stacks are selected and then one token is removed from each of the $k$ stacks. We will extend known results by proving results on the structure of the P-positions for the infinite family of Slow Exact $k$-Nim games where we play on all but one of the $n$ stacks. In addition, we will introduce a more general family of "slow" Nim variants, Slow SetNim($n$,$A$) which specifies the allowed moves via the set $A$. This family of games contains both Slow Exact $k$-Nim and the slow version of Moore's $k$-Nim. We give results for the infinite family of Slow SetNim($n$,$A$) for $A=\{n-1,n\}$, whose P-positions are closely related to those of Slow Exact $k$-Nim for $k=n-1$.
△ Less
Submitted 1 August, 2024; v1 submitted 9 April, 2024;
originally announced April 2024.
-
Circular Nim CN(7,4)
Authors:
Matthieu Dufour,
Silvia Heubach
Abstract:
Circular Nim is a two-player impartial combinatorial game consisting of $n$ stacks of tokens placed in a circle. A move consists of choosing $k$ consecutive stacks and taking at least one token from one or more of the stacks. The last player able to make a move wins. The question of interest is: Who can win from a given position if both players play optimally? In an impartial combinatorial game, t…
▽ More
Circular Nim is a two-player impartial combinatorial game consisting of $n$ stacks of tokens placed in a circle. A move consists of choosing $k$ consecutive stacks and taking at least one token from one or more of the stacks. The last player able to make a move wins. The question of interest is: Who can win from a given position if both players play optimally? In an impartial combinatorial game, there are only two types of positions. An $\mathcal{N}$-position is one from which the next player to move has a winning strategy. A $\mathcal{P}$-position is one from which the next player is bound to lose, no matter what moves s/he makes. Therefore, the question who wins is answered by identifying the $\mathcal{P}$-positions. We will prove results on the structure of the $\mathcal{P}$-positions for $n = 7$ and $k = 4$, extending known results for other games in this family. The interesting feature of the set of $\mathcal{P}$-positions of this game is that it splits into different subsets, unlike the structure for the known games in this family.
△ Less
Submitted 17 March, 2021;
originally announced March 2021.
-
A misère play $\star$-operator
Authors:
Matthieu Dufour,
Silvia Heubach,
Urban Larsson
Abstract:
We study the $\star$-operator (Larsson et al. 2011) of impartial vector subtraction games (Golomb 1965). Here we extend the notion to the misère-play convention, and prove convergence and other properties; notably more structure is obtained under misère-play as compared with the normal-play convention (Larsson 2012).
We study the $\star$-operator (Larsson et al. 2011) of impartial vector subtraction games (Golomb 1965). Here we extend the notion to the misère-play convention, and prove convergence and other properties; notably more structure is obtained under misère-play as compared with the normal-play convention (Larsson 2012).
△ Less
Submitted 24 August, 2016;
originally announced August 2016.
-
Keeping Your Distance is Hard
Authors:
Kyle Burke,
Silvia Heubach,
Melissa Huggan,
Svenja Huntemann
Abstract:
We study the computational complexity of distance games, a class of combinatorial games played on graphs. A move consists of colouring an uncoloured vertex subject to it not being at certain distances determined by two sets, D and S. D is the set of forbidden distances for colouring vertices in different colors, while S is the set of forbidden distances for the same colour. The last player to move…
▽ More
We study the computational complexity of distance games, a class of combinatorial games played on graphs. A move consists of colouring an uncoloured vertex subject to it not being at certain distances determined by two sets, D and S. D is the set of forbidden distances for colouring vertices in different colors, while S is the set of forbidden distances for the same colour. The last player to move wins. Well-known examples of distance games are Node-Kayles, Snort, and Col, whose complexities were shown to be PSPACE-hard. We show that many more distance games are also PSPACE-hard.
△ Less
Submitted 8 February, 2019; v1 submitted 22 May, 2016;
originally announced May 2016.
-
Building Nim
Authors:
Eric Duchêne,
Matthieu Dufour,
Silvia Heubach,
Urban Larsson
Abstract:
The game of nim, with its simple rules, its elegant solution and its historical importance is the quintessence of a combinatorial game, which is why it led to so many generalizations and modifications. We present a modification with a new spin: building nim. With given finite numbers of tokens and stacks, this two-player game is played in two stages (thus belonging to the same family of games as e…
▽ More
The game of nim, with its simple rules, its elegant solution and its historical importance is the quintessence of a combinatorial game, which is why it led to so many generalizations and modifications. We present a modification with a new spin: building nim. With given finite numbers of tokens and stacks, this two-player game is played in two stages (thus belonging to the same family of games as e.g. nine-men's morris): first building, where players alternate to put one token on one of the, initially empty, stacks until all tokens have been used. Then, the players play nim. Of course, because the solution for the game of nim is known, the goal of the player who starts nim play is a placement of the tokens so that the Nim-sum of the stack heights at the end of building is different from 0. This game is trivial if the total number of tokens is odd as the Nim-sum could never be 0, or if both the number of tokens and the number of stacks are even, since a simple mimicking strategy results in a Nim-sum of 0 after each of the second player's moves. We present the solution for this game for some non-trivial cases and state a general conjecture.
△ Less
Submitted 27 August, 2015; v1 submitted 13 February, 2015;
originally announced February 2015.
-
Circular Nim Games
Authors:
Matthieu Dufour,
Silvia Heubach
Abstract:
A circular Nim game is a two player impartial combinatorial game consisting of n stacks of tokens placed in a circle. A move consists of choosing k consecutive stacks, and taking at least one token from one or more of the k stacks. The last player able to make a move wins. We prove results on the structure of the losing positions for small n and k and pose some open questions for further investiga…
▽ More
A circular Nim game is a two player impartial combinatorial game consisting of n stacks of tokens placed in a circle. A move consists of choosing k consecutive stacks, and taking at least one token from one or more of the k stacks. The last player able to make a move wins. We prove results on the structure of the losing positions for small n and k and pose some open questions for further investigations.
△ Less
Submitted 1 November, 2012;
originally announced November 2012.
-
Avoiding substrings in compositons
Authors:
Silvia Heubach,
Sergey Kitaev
Abstract:
A classical result by Guibas and Odlyzko obtained in 1981 gives the generating function for the number of strings that avoid a given set of substrings with the property that no substring is contained in any of the others. In this paper, we give an analogue of this result for the enumeration of compositions that avoid a given set of prohibited substrings, subject to the compositions' length (numb…
▽ More
A classical result by Guibas and Odlyzko obtained in 1981 gives the generating function for the number of strings that avoid a given set of substrings with the property that no substring is contained in any of the others. In this paper, we give an analogue of this result for the enumeration of compositions that avoid a given set of prohibited substrings, subject to the compositions' length (number of parts) and weight. We also give examples of families of strings to be avoided that allow for an explicit formula for the generating function. Our results extend recent results by Myers on avoidance of strings in compositions subject to weight, but not length.
△ Less
Submitted 23 June, 2009; v1 submitted 30 March, 2009;
originally announced March 2009.
-
Partially ordered patterns and compositions
Authors:
Silvia Heubach,
Sergey Kitaev,
Toufik Mansour
Abstract:
A partially ordered (generalized) pattern (POP) is a generalized pattern some of whose letters are incomparable, an extension of generalized permutation patterns introduced by Babson and Steingrimsson. POPs were introduced in the symmetric group by Kitaev [Partially ordered generalized patterns, Discrete Math. 298 (2005), 212-229; Introduction to partially ordered patterns, Discrete Appl. Math.,…
▽ More
A partially ordered (generalized) pattern (POP) is a generalized pattern some of whose letters are incomparable, an extension of generalized permutation patterns introduced by Babson and Steingrimsson. POPs were introduced in the symmetric group by Kitaev [Partially ordered generalized patterns, Discrete Math. 298 (2005), 212-229; Introduction to partially ordered patterns, Discrete Appl. Math., to appear], and studied in the set of $k$-ary words by Kitaev and Mansour [Partially ordered generalized patterns and $k$-ary words, Annals of Combinatorics 7 (2003) 191-200]. Moreover, Kitaev et al. [S. Kitaev, T. McAllister and K. Petersen, Enumerating segmented patterns in compositions and encoding with restricted permutations, preprint] introduced segmented POPs in compositions. In this paper, we study avoidance of POPs in compositions and generalize results for avoidance of POPs in permutations and words. Specifically, we obtain results for the generating functions for the number of compositions that avoid shuffle patterns and multi-patterns. In addition, we give the generating function for the distribution of the maximum number of non-overlapping occurrences of a segmented POP $τ$ (that is allowed to have repeated letters) among the compositions of $n$ with $m$ parts in a given set, provided we know the generating function for the number of compositions of $n$ with $m$ parts in the given set that avoid $τ$. This result is a $q$-analogue of the main result in [S. Kitaev, T. Mansour, Partially ordered generalized patterns and $k$-ary words, Annals of Combinatorics 7 (2003) 191-200].
△ Less
Submitted 30 September, 2006;
originally announced October 2006.
-
Enumeration of 3-letter patterns in compositions
Authors:
S. Heubach,
T. Mansour
Abstract:
Let A be any set of positive integers and n a positive integer. A composition of n with parts in A is an ordered collection of one or more elements in A whose sum is n. We derive generating functions for the number of compositions of n with m parts in A that have r occurrences of 3-letter patterns formed by two (adjacent) instances of levels, rises and drops. We also derive asymptotics for the n…
▽ More
Let A be any set of positive integers and n a positive integer. A composition of n with parts in A is an ordered collection of one or more elements in A whose sum is n. We derive generating functions for the number of compositions of n with m parts in A that have r occurrences of 3-letter patterns formed by two (adjacent) instances of levels, rises and drops. We also derive asymptotics for the number of compositions of n that avoid a given pattern. Finally, we obtain the generating function for the number of k-ary words of length m which contain a prescribed number of occurrences of a given pattern as a special case of our results.
△ Less
Submitted 13 March, 2006;
originally announced March 2006.
-
Counting rises, levels, and drops in compositions
Authors:
Silvia Heubach,
Toufik Mansour
Abstract:
A composition of $n\in\NN$ is an ordered collection of one or more positive integers whose sum is $n$. The number of summands is called the number of parts of the composition. A palindromic composition of $n$ is a composition of $n$ in which the summands are the same in the given or in reverse order. In this paper we study the generating function for the number of compositions (respectively pali…
▽ More
A composition of $n\in\NN$ is an ordered collection of one or more positive integers whose sum is $n$. The number of summands is called the number of parts of the composition. A palindromic composition of $n$ is a composition of $n$ in which the summands are the same in the given or in reverse order. In this paper we study the generating function for the number of compositions (respectively palindromic compositions) of $n$ with $m$ parts in a given set $A\subseteq\NN$ with respect to the number of rises, levels, and drops. As a consequence, we derive all the previously known results for this kind of problem, as well as many new results.
△ Less
Submitted 14 October, 2003;
originally announced October 2003.