arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.06498math.CO
收藏

关于具有k+1堆的精确慢速k-NIM的遥远度函数

On Remoteness Functions of Exact Slow $k$-NIM with $k+1$ Piles

V. Gurvich, D. Martynov, V. Maximchuk, M. Vyalyi

AI总结:

本文研究具有k+1堆的精确慢速k-NIM(其中2 ≤ k = n-1),计算Smith遥远度函数以确定P-位置,并证明保留最大奇数堆或最小偶数堆并减少其余堆的简单策略对双方均最优。

摘要:

给定整数n和k,满足0 < k ≤ n,以及n堆石子,两名玩家轮流行动。一次移动允许选择任意k堆,并从每堆中恰好移除一颗石子。轮到行动但无法行动的玩家为输家。k=1和k=n的情形是平凡的。对于k=2,该游戏在n ≤ 6时已被解决。对于n ≤ 4,Sprague-Grundy函数已被高效计算(包括正规版本和misère版本)。对于n = 5,6,已获得计算P-位置的多项式算法。本文考虑2 ≤ k = n-1的情形,并计算Smith的遥远度函数,其偶数值定义了P-位置。事实上,最优移动总是由以下简单规则定义:如果所有堆都是奇数,则保留最大的一堆并减少所有其他堆;如果存在偶数堆,则保留其中最小的一堆并减少所有其他堆。这种策略对两名玩家都是最优的,此外,它允许从N-位置尽快获胜,并从P-位置尽可能长时间地抵抗。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑