rubiks-cube

Deep learning algorithm can solve a Rubik’s Cube faster than most humans

Published: 06:59, July 16, 2019

Researchers at the University of California, Irvine, created an artificial intelligence system that can solve a Rubik’s Cube faster than most humans, according to a new study published in Nature Machine Intelligence.

The deep learning algorithm, known as DeepCubeA, learns how to solve increasingly difficult states in reverse from the goal state without the need for any specific domain knowledge or coaching from humans.

While there are some incredibly talented people that are capable of solving a Rubik’s Cube in a matter of seconds, most people attempting to solve a cube in a hurry require about 50 moves to complete the puzzle. In comparison, the AI system developed by the UCI researchers only needs around 20 moves to finish. 

“Our AI takes about 20 moves, most of the time solving it in the minimum number of steps,” said the study’s senior author, Pierre Baldi, UCI Distinguished Professor of computer science.

“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.”

It’s not an easy task for an AI system to complete considering there are literally billions of different completion paths for a Rubik’s cube to reach its goal state – each of the cube’s six sides must display a solid color.

According to the abstract of the study, DeepCubeA was able to solve 100% of all test configurations, finding a shortest path to the goal state 60.3% of the time.

The algorithm also works for other combinatorial games.

“DeepCubeA generalizes to other combinatorial puzzles and is able to solve the 15 puzzle, 24 puzzle, 35 puzzle, 48 puzzle, Lights Out and Sokoban, finding a shortest path in the majority of verifiable cases,” the abstract said.

Pierre Baldi said:

“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.

“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.”


Journal Citation

“Solving the Rubik’s cube with deep reinforcement learning and search”
Forest Agostinelli, Stephen McAleer, Alexander Shmakov & Pierre Baldi
Nature Machine Intelligence (2019)
DOI: https://doi.org/10.1038/s42256-019-0070-z


Interesting related article: “What is an algorithm?”

Christian Nordqvist Avatar

Other News

Canada’s trade surplus shrinks as exports to the US fall

Sep 5, 2026

El Niño strengthens into 2027, raising risks for food prices, power and trade

Sep 5, 2026

Nvidia agrees to buy Hugging Face for $12.93 billion, pledges to keep platform open

Sep 5, 2026

Global food prices rise as sugar leads August increases

Sep 5, 2026

A weaker currency can lift overseas profits without reviving factories at home

Sep 5, 2026

AI shortcuts may weaken managers’ judgment, researchers warn

Sep 4, 2026

Alibaba updates Qwen3.8 Max as Chinese AI rivals target workplace tools

Sep 3, 2026

Uber and Wayve begin supervised autonomous rides in London

Sep 3, 2026

Dutch central bank raises London share of gold reserves to 32.1%

Sep 3, 2026

Europe’s housing squeeze is becoming a labor market problem

Sep 3, 2026

Vertiv agrees $1.45 billion deal to expand onsite power for AI data centers

Sep 2, 2026

Advanced-economy bond yields are lifting borrowing costs for developing countries

Sep 2, 2026

‘Buy Now, Pay Later’ may lift prices for shoppers who pay upfront, model finds

Sep 1, 2026

Fast delivery can shield nearby sellers from competition

Sep 1, 2026

World Bank says domestic reforms could unlock more trade within Africa

Sep 1, 2026

GoPro agrees Starman merger as action-camera maker looks to AI infrastructure

Sep 1, 2026

UK opens first challenges under £100 million AI procurement scheme

Aug 31, 2026

SLB to buy Kelvion in $4.1 billion deal as it expands into data center cooling

Aug 31, 2026

EU online sellers declared €38.8 billion in VAT through one-stop systems in 2025

Aug 31, 2026

IMF says stablecoins could cut payment costs but weaken monetary control

Aug 30, 2026