Skip to main content
QUICK REVIEW

[Paper Review] Twenty-Five Moves Suffice for Rubik's Cube

Tomas Rokicki|ArXiv.org|Mar 24, 2008
Manufacturing Process and OptimizationEngineering2 references6 citations
TL;DR

This paper proves that any scrambled 3×3×3 Rubik’s Cube can be solved in 25 moves or fewer using a combination of symmetry reduction, optimized set-solving algorithms, and exhaustive computation. By dividing the cube space into over two billion sets and leveraging Kociemba’s algorithm with parallel transformations, the authors eliminate positions requiring more than 25 moves, reducing the upper bound from 26 to 25 in the face-turn metric.

ABSTRACT

How many moves does it take to solve Rubik's Cube? Positions are known that require 20 moves, and it has already been shown that there are no positions that require 27 or more moves; this is a surprisingly large gap. This paper describes a program that is able to find solutions of length 20 or less at a rate of more than 16 million positions a second. We use this program, along with some new ideas and incremental improvements in other techniques, to show that there is no position that requires 26 moves.

Motivation & Objective

  • To reduce the upper bound on the number of moves required to solve any Rubik’s Cube position from 26 to 25 in the face-turn metric.
  • To develop and apply an optimized, high-throughput set-solving algorithm capable of processing billions of cube positions simultaneously.
  • To leverage symmetry and group-theoretic reductions to minimize computational search space while maintaining completeness.
  • To demonstrate that no position requires more than 25 moves by systematically proving bounds on all relevant cube state sets.

Proposed method

  • The cube state space is partitioned into approximately 2 billion sets, each containing 20 billion positions, using a subgroup H based on fixed middle edges.
  • An enhanced version of Kociemba’s two-phase algorithm is used to solve multiple symmetric transformations of each position simultaneously, accelerating solution finding.
  • The algorithm is adapted into a 'set solver' that computes upper bounds on the distance of entire sets of positions at once, rather than individual positions.
  • Redundant and neighbor sets are eliminated via graph propagation, and a greedy selection strategy prioritizes sets that most reduce the maximum distance estimate.
  • A hybrid approach combines the set solver with simple greedy algorithms to select and process sets in a way that minimizes total computation while ensuring full coverage.
  • The method relies on symmetry reduction and the fact that every position in the cube group is within a bounded number of moves from some representative in the set system.

Experimental results

Research questions

  • RQ1Can the upper bound on the number of moves required to solve any Rubik’s Cube position be reduced below 26?
  • RQ2Can a high-performance, set-based algorithm efficiently compute distance bounds for billions of cube positions simultaneously?
  • RQ3To what extent can symmetry and group structure be exploited to reduce the computational complexity of solving the God’s Number problem?
  • RQ4Is it possible to prove that no position requires more than 25 moves using a combination of algorithmic optimization and parallel computation?

Key findings

  • The paper proves that every position of the 3×3×3 Rubik’s Cube can be solved in 25 moves or fewer in the face-turn metric.
  • The authors identify and solve 3,868 sets of cube positions, including 3,226 sets with a distance bound of 20 or less and 621 with a bound of 19 or less.
  • By combining 21 sets with a proven distance of 18 and four additional sets with bounds of 19 or 20, the authors establish that all positions are within 27 moves, which is used as a stepping stone to the final 25-move bound.
  • The computation required to reproduce the proof is estimated at approximately 1,500 CPU hours, using a modern CPU and optimized solver settings.
  • The authors believe that with minor algorithmic extensions—specifically, removing the restriction that middle edges must be fixed—the bound could be further reduced to 24 with only a few more CPU months of computation.
  • The method successfully reduces the search space by eliminating redundant and neighboring sets, significantly improving computational efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.