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.

Advertisement
By Indo-Asian News Service | Updated: 17 July 2019 09:42 IST
This AI Algorithm Can Solve Rubik's Cube in Less Than a Second

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.

Advertisement

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.

Advertisement

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.

Advertisement

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

 

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
Advertisement

Related Stories

Popular Mobile Brands
  1. Vivo Y400 Pro 5G India Launch Today: All You Need to Know
  2. OTT Releases This Week: Ground Zero, Detective Sherdil, Found S2, and More
  3. Oppo Reno 14 5G Series Teased to Launch in India Soon
  4. Samsung Galaxy M36 5G India Launch Date and Key Features Revealed
  5. Nothing Phone 3 to Get New Glyph Matrix Interface on the Rear Panel
  6. Samsung Galaxy Z Fold 7, Z Flip 7 Launch Date Leaked Online
  7. OnePlus Bullets Wireless Z3 With Up to 36 Hours Battery Launched in India
  8. Poco F7 5G to Be Equipped With a Snapdragon 8s Gen 4 SoC
  9. Gemini and ChatGPT Would Not Exist Without This Dutch Company: Know Why
  10. Iran Crypto Exchange Nobitex Hit by Hackers, $90 Million Destroyed
  1. Vivo Y400 Pro 5G Launching Today: Price in India, Expected Features and Specifications
  2. Fast Radio Bursts Reveal Universe’s Missing Matter Hidden in Cosmic Intergalactic Fog
  3. Apollo Astronauts Found Orange Glass Beads on the Moon, Scientists Now Know Why
  4. World’s Oldest Tailored Dress Found in Egyptian Tomb Dates Back Over 5,000 Years
  5. Ancient Footprints in White Sands Confirm Humans Reached America 23,000 Years Ago
  6. Humanoid Robot Achieves Controlled Flight Using Jet Propulsion and AI Systems
  7. Curiosity Rover Reaches Uyuni Quad, Begins New Mars Mapping and Surface Analysis Campaign
  8. NASA to Gather Reentry Imagery of European Commercial Capsule Using High-Altitude Aircraft
  9. ESA's Proba-3 Unveils First-Ever Artificial Solar Eclipse Images from Precision Satellite Formation
  10. My Hero Academia Final Season OTT Release Date Revealed: Everything You Need to Know
Gadgets 360 is available in
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2025. All rights reserved.