Scientists have developed a new artificial intelligence (AI) based algorithm that can solve the Rubik's Cube logic puzzle in a fraction of a second, without any specific domain knowledge or in-game coaching from humans.
Since its invention by a Hungarian architect in 1974, the Rubik's Cube has furrowed the brows of many who have tried to solve it.
However, DeepCubeA, a deep reinforcement learning algorithm programmed by researchers at the University of California, Irvine (UCI) in the US can find the solution in a fraction of a second.
This is no simple task considering that the cube has completion paths numbering in the billions but only one goal state -- each of six sides displaying a solid colour -- which apparently can't be found through random moves, researchers said.
The study, published in the journal Nature Machine Intelligence, demonstrated that DeepCubeA solved 100 per cent of all test configurations, finding the shortest path to the goal state about 60 per cent of the time.
The algorithm also works on other combinatorial games such as the sliding tile puzzle, Lights Out and Sokoban.
"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," said Pierre Baldi, UCI Distinguished Professor of computer science.
"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," Baldi said.
The 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.
There are some people, particularly teenagers, who can solve the Rubik's Cube in a hurry, but even they take about 50 moves.
"Our AI takes about 20 moves, most of the time solving it in the minimum number of steps," Baldi said.
"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 said.
The ultimate goal of projects such as this one is to build the next generation of AI systems, researchers said.
People are touched by AI every day through apps such as Siri and Alexa and recommendation engines working behind the scenes of their favourite online services, they said.
"But these systems are not really intelligent; they are brittle, and you can easily break or fool them," Baldi said.
"How do we create advanced AI that is smarter, more robust and capable of reasoning, understanding and planning? This work is a step towards this hefty goal," said Baldi.
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
)