arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.09681cs.CC
收藏

受限彩色令牌交换问题的复杂性阈值

Complexity Thresholds for the Constrained Colored Token Swapping Problem

University of L’Aquila(拉奎拉大学)

Davide Bilò, Stefano Leucci, Andrea Martinelli

AI总结:

研究确定了受限彩色令牌交换问题在不同生物类型数量下的复杂性阈值,证明当生物类型数量为4时问题PSPACE难,而当数量为3或更少时可多项式时间解决。

摘要:

考虑以下谜题:一片农田由多个田地组成,每个田地被农民、狐狸、鸡或毛毛虫占据。相邻田地中的生物可以交换位置,但必须避免狐狸与农民相遇、鸡与狐狸相遇以及毛毛虫与鸡相遇。目标是决定是否存在一个交换序列,将生物重新排列到所需的最终配置,同时避免任何不愉快的相遇。上述谜题可以被建模为一个具有k=4种颜色(即生物类型)的彩色令牌交换问题实例,其中只有某些颜色对可以交换。我们证明此类问题在农田表示图是平面且立方时仍然是PSPACE难的。我们还证明当最多三种生物类型参与时,该问题可以在多项式时间内解决。我们通过提供一个更通用的算法来实现这一点,该算法可以解决任意k值的实例,只要所有允许的生物类型之间的交换诱导出一个“spanning star”。我们的结果解决了Yang和Zhang在IPL 2025中明确留下的问题,该问题为八种生物类型建立了PSPACE完全性,并在生物类型数量在三到七之间时留下的复杂性状态未解决。

英文摘要:

Consider the following puzzle: a farmland consists of several fields, each occupied by either a farmer, a fox, a chicken, or a caterpillar. Creatures in neighboring fields can swap positions as long as the fox avoids the farmer, the chicken avoids the fox, and the caterpillar avoids the chicken. The objective is to decide whether there exists a sequence of swaps that rearranges the creatures into a desired final configuration, while avoiding any unwanted encounters. The above puzzle can be cast an instance of the \emph{colored token swapping} problem with $k = 4$ colors (i.e., creature types), in which only certain pairs of colors can be swapped. We prove that such problem is $\mathsf{PSPACE}$-hard even when the graph representing the farmland is planar and cubic. We also show that the problem is polynomial-time solvable when at most three creature types are involved. We do so by providing a more general algorithm deciding instances with arbitrary values of $k$, as long as the set of all admissible swaps between creature types induces a \emph{spanning star}. Our results settle a problem explicitly left open in [Yang and Zhang, IPL 2025], which established $\mathsf{PSPACE}$-completeness for eight creature types and left the complexity status unresolved when the number of creature types is between three and seven.

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

↑