English

Solving the Rubik's Cube Optimally is NP-complete

Computational Complexity 2018-04-30 v2 Computational Geometry Combinatorics

Abstract

In this paper, we prove that optimally solving an n×n×nn \times n \times n Rubik's Cube is NP-complete by reducing from the Hamiltonian Cycle problem in square grid graphs. This improves the previous result that optimally solving an n×n×nn \times n \times n Rubik's Cube with missing stickers is NP-complete. We prove this result first for the simpler case of the Rubik's Square---an n×n×1n \times n \times 1 generalization of the Rubik's Cube---and then proceed with a similar but more complicated proof for the Rubik's Cube case.

Cite

@article{arxiv.1706.06708,
  title  = {Solving the Rubik's Cube Optimally is NP-complete},
  author = {Erik D. Demaine and Sarah Eisenstat and Mikhail Rudoy},
  journal= {arXiv preprint arXiv:1706.06708},
  year   = {2018}
}

Comments

35 pages, 8 figures

R2 v1 2026-06-22T20:24:40.782Z