谁是见证人?在《证人》中寻找证人很难,有时甚至是不可能的。
Who witnesses The Witness? Finding witnesses in The Witness is hard and sometimes impossible
摘要:
我们分析了2016年益智视频游戏《见证者》中许多类型的纸与纸风格谜题的计算复杂性。在所有的谜题中,目标都是在一个矩形网格图中画出一条从起点到终点的简单路径。不同的谜题类型对路径有不同的限制:防止某些边被访问(破边);强制访问某些边或顶点(六边形);强制某些像元具有一定数量的入射路径边(三角形);或者迫使由路径形成的区域部分单色(正方形),具有正好两个特殊单元(星形),或者由给定形状(多角形)和/或负计数形状(反多角形)单独覆盖。我们表明,这些线索类型中的任何一个(除了第一个)是足以使路径查找NP完全(“证人存在,但很难找到”),即使是矩形板。此外,我们表明,最终的线索类型(抗体),这必然“取消”的影响,另一个线索在同一地区,使路径查找$Σ_2$ -完整(“证人不存在”),即使有一个单一的抗体(结合许多反/polyominoes),和问题变得更难与许多抗体。在积极的一面,我们给出了一个多项式时间算法的monomino线索,通过减少到六边形线索的边界上的难题,即使在存在断裂的边缘,并解决“子集哈密顿路径”的终端上的边界上的嵌入平面图在多项式时间。
英文摘要:
We analyze the computational complexity of the many types of pencil-and-paper-style puzzles featured in the 2016 puzzle video game The Witness. In all puzzles, the goal is to draw a simple path in a rectangular grid graph from a start vertex to a destination vertex. The different puzzle types place different constraints on the path: preventing some edges from being visited (broken edges); forcing some edges or vertices to be visited (hexagons); forcing some cells to have certain numbers of incident path edges (triangles); or forcing the regions formed by the path to be partially monochromatic (squares), have exactly two special cells (stars), or be singly covered by given shapes (polyominoes) and/or negatively counting shapes (antipolyominoes). We show that any one of these clue types (except the first) is enough to make path finding NP-complete ("witnesses exist but are hard to find"), even for rectangular boards. Furthermore, we show that a final clue type (antibody), which necessarily "cancels" the effect of another clue in the same region, makes path finding $Σ_2$-complete ("witnesses do not exist"), even with a single antibody (combined with many anti/polyominoes), and the problem gets no harder with many antibodies. On the positive side, we give a polynomial-time algorithm for monomino clues, by reducing to hexagon clues on the boundary of the puzzle, even in the presence of broken edges, and solving "subset Hamiltonian path" for terminals on the boundary of an embedded planar graph in polynomial time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。