arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1106.5736cs.DScs.CCcs.CGmath.CO
收藏

魔方的算法

Algorithms for Solving Rubik's Cubes

Erik D. Demaine, Martin L. Demaine, Sarah Eisenstat, Anna Lubiw, Andrew Winslow

摘要:

魔方也许是世界上最著名和最具标志性的谜题,众所周知它有着丰富的数学结构(群论)。在本文中,我们表明,魔方也有一个丰富的底层算法结构。具体地说,我们证明了n x n x n魔方,以及n x n x 1魔方的变体,具有Theta(n^2/log n)的“上帝数”(配置空间的直径)。上界来自有效地并行化标准Theta(n^2)解决方案算法,而下界来自计数参数。该上界给出了在最坏情况下求解一般魔方的渐近最优算法。给定一个特定的起始状态,我们展示了如何在一个n x O(1)x O(1)的魔方中找到最短的解。最后,我们发现,找到这个最佳的解决方案成为NP-困难的n × n × 1魔方时,一些立方体的位置和颜色被忽略(不用于确定是否解决立方体)。

英文摘要:

The Rubik's Cube is perhaps the world's most famous and iconic puzzle, well-known to have a rich underlying mathematical structure (group theory). In this paper, we show that the Rubik's Cube also has a rich underlying algorithmic structure. Specifically, we show that the n x n x n Rubik's Cube, as well as the n x n x 1 variant, has a "God's Number" (diameter of the configuration space) of Theta(n^2/log n). The upper bound comes from effectively parallelizing standard Theta(n^2) solution algorithms, while the lower bound follows from a counting argument. The upper bound gives an asymptotically optimal algorithm for solving a general Rubik's Cube in the worst case. Given a specific starting state, we show how to find the shortest solution in an n x O(1) x O(1) Rubik's Cube. Finally, we show that finding this optimal solution becomes NP-hard in an n x n x 1 Rubik's Cube when the positions and colors of some of the cubies are ignored (not used in determining whether the cube is solved).

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

↑