Search arXiv⌕ Search

arXiv subjects

Artem Parfenov

Publications and source records attributed to Artem Parfenov.

3 recordsLinked to original sources

Computing the Remoteness Function of Exact NIM(n,k) with $n \leq 3k$

We obtain an explicit formula for the Smith remoteness function of the impartial game Exact NIM(n,k) when $2k\leq n \leq 3k$ under the normal-play convention (the case $n<2k$ is trivial). A legal move in this game decreases exactly $k$ of $n$ 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 $k$. 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 $n$ and $k$ are part of the input. For fixed $k$, 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 $k=O(1)$ and $n\leq 3k$, P-membership belongs to logspace uniform $NC^1$, while computing the remoteness function and an optimal move belongs to $FNC^1$; these problems can therefore be solved in logarithmic space.

math.CO↗

On the Complexity of Recurrence Evaluation

In this paper, we study the complexity of the recurrence evaluation problem. We are interested in finitely valued recurrent functions. We present two results in this direction. First, we study the recurrence problem for sequences, assuming that a recurrence relation is defined by a fixed function, while the offsets are part of the input. Depending on the form of presentation (whether the offsets are given in unary or in binary), the problem is PSPACE-complete or EXP-complete. Second, we study recurrences defined by the NAND function. They are related to impartial games. We prove PP-hardness of the recurrence evaluation problem for a very simple 3-dimensional game, in which the offset vectors are coordinate vectors (1,0,0), (0,1,0) and (0,0,1) but the boundary conditions are arbitrary. In other words, we consider generalized winning conditions for the game extending the normal and the misère winning conditions.

cs.CC↗

Experimental Study of the Game Exact Nim(5, 2)

We compare to different extensions of the ancient game of nim: Moore's nim$(n, \leq k)$ and exact nim$(n, = k)$. Given integers $n$ and $k$ such that $0 < k \leq n$, we consider $n$ piles of stones. Two players alternate turns. By one move it is allowed to choose and reduce any (i) at most $k$ or (ii) exactly $k$ piles of stones in games nim$(n, \leq k)$ and nim$(n, = k)$, respectively. The player who has to move but cannot is the loser. Both games coincide with nim when $k=1$. Game nim$(n, \leq k)$ was introduced by Moore (1910) who characterized its Sprague-Grundy (SG) values 0 (that is, P-positions) and 1. The first open case is SG values 2 for nim$(4, \leq 2)$. Game nim$(n, = k)$, was introduced in 2018. An explicit formula for its SG function was computed for $2k \geq n$. In contrast, case $2k < n$ seems difficult: even the P-positions are not known already for nim$(5,=2)$. Yet, it seems that the P-position of games nim$(n+1,=2)$ and nim$(n+1,\leq 2)$ are closely related. (Note that P-positions of the latter are known.) Here we provide some theoretical and computational evidence of such a relation for $n=5$.

math.CO↗