[Paper Review] On Remoteness Functions of Exact Slow $k$-NIM with $k+1$ Piles
This paper solves the exact slow $k$-NIM game with $k+1$ piles by proving that a simple strategy—keeping the largest pile if all are odd, or the smallest even pile if any exist—optimally determines the remoteness function. The authors establish a polynomial-time algorithm to compute the Smith remoteness function and identify P-positions, showing the strategy ensures fastest win from N-positions and longest resistance from P-positions.
Given integer $n$ and $k$ such that $0 < k \leq n$ and $n$ piles of stones, two player alternate turns. By one move it is allowed to choose any $k$ piles and remove exactly one stone from each. The player who has to move but cannot is the loser. Cases $k=1$ and $k = n$ are trivial. For $k=2$ the game was solved for $n \leq 6$. For $n \leq 4$ the Sprague-Grundy function was efficiently computed (for both the normal and misère versions). For $n = 5,6$ a polynomial algorithm computing P-positions was obtained. Here we consider the case $2 \leq k = n-1$ and compute Smith's remoteness function, whose even values define the P-positions. In fact, an optimal move is always defined by the following simple rule: if all piles are odd, keep a largest one and reduce all other; if there exist even piles, keep a smallest one of them and reduce all other. Such strategy is optimal for both players, moreover, it allows to win as fast as possible from an N-position and to resist as long as possible from a P-position.
Motivation & Objective
- To determine the structure of P-positions and the remoteness function in exact slow $k$-NIM with $k+1$ piles.
- To prove that a specific move rule—based on parity and size of piles—defines optimal play for both players.
- To develop an efficient algorithm for computing the Smith remoteness function and identifying P-positions in polynomial time.
- To show that the set of P-positions is semilinear, supporting the broader conjecture on multidimensional subtraction games.
Proposed method
- Define the M-rule: if all piles are odd, reduce all but the largest; if any even piles exist, reduce all but the smallest even pile.
- Prove that the M-rule defines a unique optimal move from any position, up to pile reordering.
- Introduce the remoteness function $\mathcal{R}(x)$, computed via iterative labeling of positions by distance to terminal states.
- Use reverse lexicographical ordering on $(k+1)$-tuples to efficiently compute basic positions $\ell(x,b)$ for even $b$.
- Define $b_t(x)$ as the maximal even $b$ such that a basic position $z \preceq x$ with $z_i = b$ for $i \geq t$ and $|x_i - z_i| \leq 1$ for $i < t$.
- Construct $E(x) = \max_t b_t(x)$, and derive $\mathcal{B}(x)$ from $E(x)$ and the M-move outcome, enabling polynomial-time computation of $\mathcal{R}(x)$.
Experimental results
Research questions
- RQ1Can the Smith remoteness function be computed efficiently for exact slow $k$-NIM with $k+1$ piles?
- RQ2Does the M-rule strategy yield optimal play in terms of minimizing game length from N-positions and maximizing it from P-positions?
- RQ3Is the set of P-positions in this game semilinear, as predicted by the conjecture on multidimensional subtraction games?
- RQ4Can the remoteness function be computed in polynomial time when $k$ is part of the input?
- RQ5What structural properties of the game allow for a simple, rule-based optimal strategy?
Key findings
- The M-rule strategy—based on parity and size—defines a unique optimal move from any position in exact slow $k$-NIM with $k+1$ piles.
- The Smith remoteness function $\mathcal{R}(x)$ equals the number of moves from $x$ to a terminal position when both players follow the M-rule.
- A polynomial-time algorithm computes $\mathcal{R}(x)$, and thus identifies P-positions, even when $k$ is part of the input.
- For non-exceptional positions, $\mathcal{B}(x)$ is computed via $E(x) = \max_t b_t(x)$, where $b_t(x)$ is derived from linear constraints on pile values.
- The set of P-positions is semilinear, providing an infinite family of nontrivial subtraction games with this property.
- The remoteness function $\mathcal{R}(x)$ is even if and only if $x$ is a P-position, confirming the function's role in position classification.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.