This AI Algorithm Can Solve Rubik's Cube in Less Than a Second

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

This AI Algorithm Can Solve Rubik's Cube in Less Than a Second
Advertisement

Researchers have developed an AI algorithm that can solve a Rubiks Cube in a fraction of a second, faster than most humans. The work is a step toward making AI systems that can think, reason, plan and make decisions. The study, published in the journal Nature Machine Intelligence, shows DeepCubeA - a deep reinforcement learning algorithm programmed by University of California computer scientists and mathematicians - can solve the Rubik's Cube in a fraction of a second, without any specific domain knowledge or in-game coaching from humans.

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 not be found through random moves.

"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 study author Pierre Baldi, Professor at the University of California.

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

For the study, the researchers demonstrated that DeepCubeA solved 100 percent of all test configurations, finding the shortest path to the goal state about 60 percent of the time.

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

The researchers were interested in understanding how and why the Artificial Intelligence (AI) made its moves and how long it took to perfect its method.

"It learned on its own, 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 added.

According to the researchers, the ultimate goal of projects such as this one is to build the next generation of AI systems.

Comments

For the latest tech news and reviews, follow Gadgets 360 on X, Facebook, WhatsApp, Threads and Google News. For the latest videos on gadgets and tech, subscribe to our YouTube channel. If you want to know everything about top influencers, follow our in-house Who'sThat360 on Instagram and YouTube.

Further reading: AI, Rubiks Cube
Amazfit GTR Smartwatch With 12 Sports Modes, Up to 72 Days Battery Life Launched
Lunar Eclipse Marks Moon Landing's 50th Anniversary, to Be Visible in Five Continents on July 16-17 Night
Share on Facebook Gadgets360 Twitter Share Tweet Snapchat Share Reddit Comment google-newsGoogle News
 
 

Advertisement

Follow Us

Advertisement

© Copyright Red Pixels Ventures Limited 2024. All rights reserved.
Trending Products »
Latest Tech News »