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.

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

Advertisement

"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. Cloudflare Is Down Again For the Second Time in Weeks: See Affected Sites
  2. OnePlus 15R Surfaces on Benchmarking Site Ahead of India Launch
  3. ACT Fibernet Launches New Broadband Plans With Free OTT Subscriptions
  4. Motorola Edge 70 Will Launch in India Soon via This E-Commerce Platform
  5. Motorola Edge 70 With Pantone's 2026 Colour, Swarovski Crystals Launched
  6. Airtel Discontinues These Prepaid Recharge Packs in India
  7. Xiaomi May Launch This Tri-Fold Phone to Rival the Samsung Galaxy Z TriFold
  8. Nothing Phone 3a Lite Goes on Sale in India at This Price
  9. Here's What India Searched For the Most on Google in 2025
  10. OTT Releases of the Week (Dec 1 – Dec 7): Know What to Watch
  1. Google's Year in Search 2025 Reveals Gemini 3, Nano Banana Pro and Other AI Search Features Launched in India 2025
  2. Polar Loop Screen-Free Fitness Tracker Launched in India With Up to Eight Days of Battery Life: Price, Specifications
  3. Motorola Edge 70 India Launch Teased; Flipkart Availability Confirmed: Expected Specifications, Features
  4. Google’s Year in Search 2025: Top Trending Topics in India—From Gemini to Squid Games
  5. Vivo S50 Colour Options, Key Features Surface Online; Could Launch in India as Vivo V70
  6. CFTC Clears Path for Spot Crypto Trading on Regulated Platforms for the First Time
  7. Realme 16 Pro+ 5G Colour Options, Memory Configurations Leaked Again; Tipped to Launch With 7,000mAh Battery
  8. Cloudflare Outage Blocks Access to Several Websites Including BookMyShow, SpaceX, Coinbase
  9. Samsung Galaxy S26 Series to Offer Built-In Support for Company's 25W Magnetic Qi2 Charger: Report
  10. Airtel Discontinues Two Prepaid Recharge Packs in India With Data Benefits, Free Airtel Xtreme Play Subscription
Gadgets 360 is available in
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2025. All rights reserved.