Latest in Science

Image credit:

Scientists develop algorithm to solve Rubik's cubes of any size

Share
Tweet
Share

Sponsored Links

A computer solving a Rubik's cube? P'shaw. Doing it in 10.69 seconds? Been there, record set. But to crack one of any size? Color us impressed. Erik Demaine of MIT claims to have done just that -- he and his team developed an algorithm that applies to cubes no matter how ambitious their dimensions. Pretty early on, he realized he needed to take a different angle than he would with a standard 3 x 3 x 3 puzzle, which other scientists have tackled by borrowing computers from Google to consider all 43 quintillion possible moves -- a strategy known simply as "brute force." As you can imagine, that's not exactly a viable solution when you're wrestling with an 11 x 11 x 11 cube. So Demaine and his fellow researchers settled on an approach that's actually a riff on one commonly used by Rubik's enthusiasts, who might attempt to move a square into its desired position while leaving the rest of the cube as unchanged as possible. That's a tedious way to go, of course, so instead the team grouped several cubies that all needed to go in the same direction, a tactic that reduced the number of moves by a factor of log n, with n representing the length of any of the cube's sides. Since moving individual cubies into an ideal spot requires a number of moves equal to n², the final algorithm is n²/log n. If we just lost you non-math majors with that formula, rest assured that the scientists expect folks won't be able to apply it directly, per se, though they do say it could help cube-solvers sharpen their strategy. Other that, all you overachievers out there, you're still on your own with that 20 x 20 x 20.

All products recommended by Engadget are selected by our editorial team, independent of our parent company. Some of our stories include affiliate links. If you buy something through one of these links, we may earn an affiliate commission.
Share
Tweet
Share

Popular on Engadget

The 2020 Engadget Holiday Gift Guide

The 2020 Engadget Holiday Gift Guide

View
macOS Big Sur review: A mix of new and familiar

macOS Big Sur review: A mix of new and familiar

View
DoorDash lets restaurants add their own delivery drivers to its service

DoorDash lets restaurants add their own delivery drivers to its service

View
The gold, 8th-generation iPad returns to $299 at Amazon

The gold, 8th-generation iPad returns to $299 at Amazon

View
Samsung's Galaxy Buds Pro sports updated design in leaked images

Samsung's Galaxy Buds Pro sports updated design in leaked images

View

From around the web

Page 1Page 1ear iconeye iconFill 23text filevr