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

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.

Advertisement

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

 

Get your daily dose of tech news, reviews, and insights, in under 80 characters on Gadgets 360 Turbo. Connect with fellow tech lovers on our Forum. Follow us on X, Facebook, WhatsApp, Threads and Google News for instant updates. Catch all the action on our YouTube channel.

Further reading: AI, Rubiks Cube
Advertisement

Related Stories

Popular Mobile Brands
  1. Motorola Edge 70 Pro+ vs Vivo V70 vs Nothing Phone 4a Pro Compared
  2. Netflix Games Launches FIFA World Cup: Launch Edition Ahead of FIFA World Cup 2026
  3. Xiaomi 17T First Impressions
  4. Google's New Gemini Avatar Lets Users Create AI Versions of Themselves
  5. Redmi Turbo 5 India Launch Date Revealed as Company Confirms Key Specs
  6. New OTT Releases This Week : Dhurandhar 2, Maa Behen, The Pyramid Scheme, and More
  7. OnePlus 15, Nord 6, Pad 4 Receive Discounts During Community Sale 2026
  8. Marvel's Wolverine Will Be a Linear Adventure, Not an Open World Game
  9. iPhone 18 Pro Max Leak Suggests It Has the Same Thickness as This iPhone
  1. Asics GEL-Kayano 33 Launched in India With New Stability Tech, FluidSupport System
  2. Netflix Games Launches FIFA World Cup: Launch Edition Ahead of FIFA World Cup 2026
  3. Marvel's Wolverine Will Be a Linear Adventure, Not an Open World Game, Says Insomniac
  4. Googlebook Lineup Tipped to Include Eight Devices; Intel May Power Four Models
  5. New Apple Arcade Games Coming in June 2026: Here's the Full List
  6. Bitcoin Extends Decline to $62,000 as ETF Outflows and Capital Rotation Persist
  7. Redmi Turbo 5 India Launch Date Announced; Confirmed to Feature MediaTek Dimensity 8500 Ultra Chip
  8. Boat Slazer Series Grooming Solutions Launched in India With Interchangeable Attachments, Travel Kit Bundle
  9. Apple's MacBook Ultra With OLED Screen Said to Launch Later This Year; Screen Sizes Suggested
  10. Apple Rolls Out New App Store Age-Verification Rules for Texas Users Following Court Ruling
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.