Northeastern University researchers solve Rubik's Cube in 26 moves

May 31, 2007
Rubik's cube

It’s a toy that most kids have played with at one time or another, but the findings of Northeastern University Computer Science professor Gene Cooperman and graduate student Dan Kunkle are not child’s play. The two have proven that 26 moves suffice to solve any configuration of a Rubik's cube – a new record. Historically the best that had been proved was 27 moves.

Why the fascination with the popular puzzle? “The Rubik's cube is a testing ground for problems of search and enumeration,” says Cooperman. “Search and enumeration is a large research area encompassing many researchers working in different disciplines – from artificial intelligence to operations. The Rubik's cube allows researchers from different disciplines to compare their methods on a single, well-known problem.”

Cooperman and Kunkle were able to accomplish this new record through two primary techniques: They used 7 terabytes of distributed disk as an extension to RAM, in order to hold some large tables and developed a new, “faster faster” way of computing moves, and even whole groups of moves, by using mathematical group theory.

Cooperman and Kunkle put all of the configurations of a Rubik's cube in a family of sets of configurations (called a family of cosets in mathematical group theory). They then looked at the result of applying a single move to all of the configurations of a coset at once. They simulated this on a computer at a rate of 100,000,000 times per second, using a new technique in mathematical group theory.

In May 1997, U.C.L.A. computer science Professor Richard Korf announced that he had found the first optimal solutions to Rubik's Cube. His research showed that the median optimal solution was 18 moves, and he believed any cube could be solved in no more than 20 moves. However, he was unable to prove this, and no one has ever been able to prove that it could be solved in less than 27 moves.

“Korf had written a program that spends a long time to find optimal solutions for single states of the Rubik's cube,” says Kunkle. “Our program first does a large pre-computation and then it very quickly - in about a second - finds a solution in 26 moves or less for any state of Rubik's cube.

Cooperman and Kunkle used computers at Teragrid ( and at Northeastern, part of the first node from a $200,000 grant Cooperman and colleagues received from the National Science Foundation in 2006 to obtain 20 terabytes of storage.

Rubik's Cube, invented in the late 1970s by Erno Rubik of Hungary, is perhaps the most famous combinatorial puzzle of its time. Its packaging boasts billions of combinations, which is actually an understatement. In fact, there are more than 43 quintillion (4.3252 x 10**19) different states that can be reached from any given configuration.

Source: Northeastern University

Explore further: Record-seeking pair show off robot solving Rubik's Cube

Related Stories

Record-seeking pair show off robot solving Rubik's Cube

January 26, 2016

After the first wave of satisfaction in solving a Rubik's Cube puzzle comes recognition that there are higher rungs to reach: not only solving it but solving it quickly. How quickly? That's the stuff of which world contests ...

How to solve a Rubik's cube in five seconds

November 30, 2015

This week, 14-year-old Lucas Etter set a new world record for solving the classic Rubik's cube in Clarksville, Maryland, in the US, solving the scrambled cube in an astonishing 4.904 seconds.

Recommended for you

Study into who is least afraid of death

March 24, 2017

A new study examines all robust, available data on how fearful we are of what happens once we shuffle off this mortal coil. They find that atheists are among those least afraid of dying... and, perhaps not surprisingly, ...

Scientists make new discovery about bird evolution

March 24, 2017

In a new paper published in National Science Review, a team of scientists from the Institute of Vertebrate Paleontology and Paleoanthropology, the Shandong Tianyu Museum of Nature, and the Nanjing Institute of Geology and ...

Mathematical framework explains diverse plant stem forms

March 23, 2017

It is well known that as plants grow, their stems and shoots respond to outside signals like light and gravity. But if plants all have similar stimuli, why are there so many different plant shapes? Why does a weeping willow ...

How chewing like a cow helped early mammals thrive

March 23, 2017

You probably haven't given much thought to how you chew, but the jaw structure and mechanics of almost all modern mammals may have something to do with why we're here today. In a new paper published this week in Scientific ...

'Pay to publish' schemes rampant in science journals

March 22, 2017

Dozens of scientific journals appointed a fictive scholar to their editorial boards on the strength of a bogus resume, researchers determined to expose "pay to publish" schemes reported Wednesday.


Please sign in to add a comment. Registration is free, and takes less than a minute. Read more

Click here to reset your password.
Sign in to get notified via email when new comments are made.