洪水填充游戏的复杂性
The Complexity of Flood Filling Games
摘要:
我们研究的复杂性,流行的一个球员组合游戏被称为洪水,它。在这个游戏中,玩家是一个n由n板的瓷砖,每个瓷砖被分配的c种颜色之一。目标是通过尽可能短的泛色操作序列使所有瓷砖的颜色相等。在标准版本中,泛洪操作包括玩家选择颜色k,然后将连接到左上方的单色区域中的所有瓷砖的颜色更改为k。在已经执行该操作之后,已经具有所选颜色k的相邻区域然后也将变得连接,从而扩展板的单色区域。我们发现,找到最小数量的洪水操作是NP-难的c>=3,这甚至持有时,玩家可以执行洪水操作从任何位置上的董事会。然而,我们表明,这种“自由”的变体是在P为c=2。我们还证明,对于无限数量的颜色,洪水,它仍然是NP难的高度至少为3的板,但在P的高度为2的板。接下来,我们将展示如何c-1近似和随机2c/3近似算法可以得出,并没有多项式时间常数因子,独立于c,近似算法存在,除非P=NP。然后,我们研究了“最苛刻”的n乘n棋盘(需要最多走棋的棋盘)需要走多少步,并表明这个数字的增长速度与Theta(n*c^0.5)一样快。最后,我们考虑了随机选择瓷砖颜色的棋盘,并表明对于c>=2,淹没整个棋盘所需的移动次数是Omega(n)的概率很高。
英文摘要:
We study the complexity of the popular one player combinatorial game known as Flood-It. In this game the player is given an n by n board of tiles where each tile is allocated one of c colours. The goal is to make the colours of all tiles equal via the shortest possible sequence of flooding operations. In the standard version, a flooding operation consists of the player choosing a colour k, which then changes the colour of all the tiles in the monochromatic region connected to the top left tile to k. After this operation has been performed, neighbouring regions which are already of the chosen colour k will then also become connected, thereby extending the monochromatic region of the board. We show that finding the minimum number of flooding operations is NP-hard for c>=3 and that this even holds when the player can perform flooding operations from any position on the board. However, we show that this "free" variant is in P for c=2. We also prove that for an unbounded number of colours, Flood-It remains NP-hard for boards of height at least 3, but is in P for boards of height 2. Next we show how a c-1 approximation and a randomised 2c/3 approximation algorithm can be derived, and that no polynomial time constant factor, independent of c, approximation algorithm exists unless P=NP. We then investigate how many moves are required for the "most demanding" n by n boards (those requiring the most moves) and show that the number grows as fast as Theta(n*c^0.5). Finally, we consider boards where the colours of the tiles are chosen at random and show that for c>=2, the number of moves required to flood the whole board is Omega(n) with high probability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。