Al Solves Rubik’s Cube In Less Than A Second

This AI Can Solve Rubik Cube Faster Than Any Human

Researchers and mathematicians at the University of California (UCI), Irvine have developed an artificial intelligence (AI) algorithm that can solve the Rubik’s Cube in just over a second.

Dubbed as DeepCubeA, this deep reinforcement learning algorithm can solve the Rubik’s Cube in a fraction of a second “without any domain knowledge or in-game coaching from humans,” according a press release from the university.

DeepCubeA, the subject of the study, was published in Nature Machine Intelligence on July 15, 2019.

“Artificial intelligence can defeat the world’s best human chess and Go players, but some of the more difficult puzzles, such as the Rubik’s Cube, had not been solved by computers, so we thought they were open for AI approaches,” Pierre Baldi, one of the developers of the algorithm and distinguished Professor of Computer Science at UCI, said in a statement.

“This work presents an AI system that can automatically learn how to solve the iconic Rubik’s Cube and other problems characterized by a vast number of possibilities and a very small number of solutions, and where random moves are unlikely to lead to a solution,” Baldi added.

Related- This Robot Solves A Rubik’s Cube In 0.637 Seconds

“The solution to the Rubik’s Cube involves more symbolic, mathematical and abstract thinking, so a deep learning machine that can crack such a puzzle is getting closer to becoming a system that can think, reason, plan and make decisions.

In the study, the researchers demonstrated that DeepCubeA solved 100% of all test configurations and found the shortest path to the solution about 60 percent of the time, where all six sides displayed a solid color.

The algorithm also works on other combinatorial games such as the sliding tile puzzle, Lights Out and Sokoban, say the researchers.

What makes this AI special is that it learned how to solve the Rubik on its own. Researchers were interested in understanding how and why the AI made its moves and how long it took to perfect its method.

They started with a computer simulation of a completed puzzle and then scrambled the cube. Once the code was in place and running, DeepCubeA trained in isolation for two days, solving an increasingly difficult series of combinations.

“It learned on its own,” Baldi noted.

Even some people, particularly teenagers, who can solve the Rubik’s Cube in a hurry, take about 50 moves.

“Our AI takes about 20 moves, most of the time solving it in the minimum number of steps. Right there, you can see the strategy is different, so my best guess is that the AI’s form of reasoning is completely different from a human’s,” he added.

According to Baldi, the ultimate goal of projects such as this one is to build a new generation of AI deep-learning systems, which are more advanced than those used in commercially available apps such as Siri and Alexa.

Related- Difference Between AI, Machine Learning And Deep Learning

“But these systems are not really intelligent; they’re brittle, and you can easily break or fool them. How do we create advanced AI that is smarter, more robust and capable of reasoning, understanding, and planning? This work is a step toward this hefty goal.”

Subscribe to our newsletter

To be updated with all the latest news

Kavita Iyer
Kavita Iyer
An individual, optimist, homemaker, foodie, a die hard cricket fan and most importantly one who believes in Being Human!!!


  1. I’ve seen a YouTube video where a mathematician has proved that even the most scrambled Rubick Cube is no more than 20 moves away from being completed. I think he said 18 moves was the most common solve. I’d be interested to know if this type of AI would be of any use in solving the Eternity 2 Puzzle, that was released on 28th July, 2007 with a prize of $2million. The deadline for solving it was 31st December, 2010…and it remains unsolved. It is an edge-matching puzzle which I believe makes it an NP-complete problem. The P vs NP debate is probably well-known to those at the UCI.


Please enter your comment!
Please enter your name here

Subscribe to our newsletter

To be updated with all the latest news

Read More

Suggested Post