Computing the Remoteness Function of Exact NIM(n,k) with
Vladimir Gurvich, Mariya Naumova, Artem Parfenov, Mikhail Vyalyi
Abstract
We obtain an explicit formula for the Smith remoteness function of the impartial game Exact NIM(n,k) when under the normal-play convention (the case is trivial). A legal move in this game decreases exactly of piles of tokens by any positive amounts. Even characterizing the P-positions of NIM(5,2) was an open problem for at least ten years. For each position we consider the corresponding Bouton matrix, introduce the concept of its rank, and define capacity as the maximal possible number of piles that can be decreased while preserving the rank. Then, P-positions are exactly those of capacity smaller than . Generalizing this result, we also express the remoteness function in the same terms. We provide an algorithm computing the rank and capacity in polynomial time even if and are part of the input. For fixed , we provide a finite-state automaton recognizing the P-positions and nondeterministic finite-state transducers that output the rank and an optimal move (the winner wins as quickly as possible; the loser resists as long as possible). From this we conclude that, for Exact NIM(n,k) with and , P-membership belongs to logspace uniform , while computing the remoteness function and an optimal move belongs to ; these problems can therefore be solved in logarithmic space.
Create a lesson
Metadata
- Categories
- math.CO, cs.CC
Related papers
Positive Greedoids from Concave Phylogenetic Functions
Shared title terminologymath.CODarij Grinberg, Benjamin Liber
Set-coloring Erdős--Gyárfás function
Shared title terminologymath.COGuantao Chen, Qiong Fan, Chunxiang Wang
Recursive statistics for the monomial expansions of q-Whittaker and Hall--Littlewood functions
Shared title terminologymath.COTirtharaj Basu, Aritra Bhattacharya
Shift-invariant functions with the polynomial composition property
Shared title terminologymath.COBjörn Kriepke
Distinct parts of Plancherel random partitions: exact formulas and complete asymptotic expansions
Shared title terminologymath.COGuo-Niu Han, Huan Xiong
Exact Rado Numbers for Polynomial Difference Equations
Shared title terminologymath.COIshan Kumthekar, William Gasarch