Rubik's Cube Algorithm Cut Again, Down to 23 Moves
Bryan writes "The number of moves necessary to solve an arbitrary Rubik's cube configuration has been cut down to 23 moves, according to an update on Tomas Rokicki's homepage (and here). As reported in March, Rokicki developed a very efficient strategy for studying cube solvability, which he used it to show that 25 moves are sufficient to solve any (solvable) Rubik's cube. Since then, he's upgraded from 8GB of memory and a Q6600 CPU, to the supercomputers at Sony Pictures Imageworks (his latest result was produced during idle-time between productions). Combined with some of Rokicki's earlier work, this new result implies that for any arbitrary cube configuration, a solution exists in either 21, 22, or 23 moves. This is in agreement with informal group-theoretic arguments (see Hofstadter 1996, ch. 14) suggesting that the necessary and sufficient number of moves should be in the low 20s. From the producers of Spiderman 3 and Surf's Up, we bring you: 2 steps closer to God's Algorithm!"
Call me when it's down to 10 moves! :)
Learn about Programming (C++ ASM) and Web Design and Development (PHP, CSS, Photoshop) from InfernoDevelopment.com
And here I used to think my method was faster; but since there's more than 23 stickers on the cube I guess it ain't any more...
in 48 moves or less. Luckily the center sticker is always in the right place so I don't need to move that one.
If you could reason with religious people, there would be no religious people
"Combined with with some of Rokicki's earlier work, this new result implies that for any arbitrary cube configuration, a solution exists in either 21, 22, or and 23 moves"
Or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or and 20 moves.
Mathematically, the limit is a hard 18 (by faces): 6^2 / 2. alternatively by squares per face: ((9 * 6) / 3) ^ 2 / (2^2)
The math isn't hard. It's finding those correct 18 moves that is.
The summary says for every solvable cube. What does that mean. Every configuration is a solvable one. If you remove a corner and rotate it, and place it back in the cube, the cube is no longer solvable, but I would argue that it's no longer a rubik's cube either.
Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
1. Pour paint on Cube
2. Let Dry
3. PROPHET
Previously: "Linux... Toward the Sunrise..." Now: "Linux... Toward the-- No, now, part of Every Sunrise"
"Be grateful for what you have. You may never know when you may lose it."
1. Solve cube
I bet Chuck Norris can solve any rubik's cube in 1 move tho...
Maybe he should next try and find the minimum number of edits to fix the grammar in a Slashdot article submission.
After that, solve for the max number of edits a Slashdot editor will actually do before just posting the article anyway.
paintball
I know it's not a Rubik's cube, but I can solve any Mastermind puzzle in seven moves.
http://en.wikipedia.org/wiki/Mastermind_(board_game)
No sig for you. YOU GET NO SIG!
that 4th dimensional rotational axis means you have to reach forward in time in order to solve one side in the present, without affecting any other sides you solved in the past, meaning you can't twist it to the present, without affecting what you've already solved in the future
rubik's hypercube has me stumped
intellectual property law is philosophically incoherent. it is your moral duty to ignore it or sabotage it
I commend you for your CISC style of cube solving!
It really depends if solvability is implied in the definition of a rubik's cube. The game of Solitaire is not always winnable from initial given cards - does that mean that the dealt cards aren't a legal Solitaire game, or just not winnable?
James Tiberius Kirk: "Spock, the women on your planet are logical. No other planet in the galaxy can make that claim."
Blend the fucker - http://www.youtube.com/watch?v=NrqHHBibRvs
There, saved you from another 22 pointless moves.
Thanks for clearing that up for me^H^H^Hus.
I actually found one of the solutions (obviously not uniquely) for the Rubiks Cube myself. It ended up to be the "corners first"-type of solution which I think is quite a natural way to reach a solution (it's basically a divide and conquer algorithm). If you can put the corners in their right place you only need to use a 8 move permutation to solve the rest which I call "the cross"-pieces.
So I'm curious if anyone else has experienced this as being the obvious but not perfect solution?
Captain obvious sez: YOUR DOING IT WRONG! :)
I'll take my +5 Wiseguy now, KTHXBIE
hate to quote Kirk... but, "What does God need with a..." Rubik's Cube?
Previously: "Linux... Toward the Sunrise..." Now: "Linux... Toward the-- No, now, part of Every Sunrise"
Because the Internet was coming and I knew that I'd have to sit through the 80's over and over again for the rest of my life.
This is Slashdot - you're allowed to quote Kirk.
This is just using a powerful computer to solve it by brute force... it's not really an algorithm, it's just a proof of a new upper bound.
(I know, technically speaking, brute force probably does count as an algorithm, but it's not a very impressive one.)
Perhaps slightly off-topic, but the Hofstadter cited (via Metamagical Themas) is the same Douglas Scott Hofstader that wrote Goedel, Escher, Bach -- one of the greatest books ever written.
Call me when it's down to 10 moves!
Step 1: Drop cube in can of paint. Done.
When our name is on the back of your car, we're behind you all the way!
Stuff that Matters -> Whut?
And here I used to think my method was faster; but since there's more than 23 stickers on the cube I guess it ain't any more...
So that would be, um, each face is three by three, um, nine stickers on each face. Then multiply that times the number of sides, so six times nine would be, uh, ...
Forty two.
My other car is a 1984 Nark Avenger.
I don't care how smart this guy thinks he is, somebody please buy him a freakin' domain name.
-Billco, Fnarg.com
When the limit was proved to be no worse than 25, there were lots of comments on Slashdot that misunderstood various aspects of what this means.
Here are clarifications for some common points of confusion:
1. What Tom has shown, that "an arbitrary cube can be solved in 23 moves", it means the nastiest legal cube needs no more than 23 face turns to solve. Obviously many starting configurations can be done in less.
2. This type of research doesn't tell you WHICH 23 moves. Only that it's 100% certain that there exists a 23-moves-or-shorter solution, for any legal cube.
3. It's easy to figure out the total number of permutations of the cube. Given that, it can be determined that 17 face-turns doesn't produce enough different permutations, but 18 does, so there is a definite lower bound of 18 moves, that is, there exists at least some configurations that MUST be 18 moves or more away from solved.
4. Specific configurations have been found that provably need 20 face turns to solve. So the worst-case will never get better than that.
5. It may be possible to narrow the limit further, showing that all cubes can be solved in 22 face turns or less. Maybe 21. Maybe 20. It will never get lower than that.
Put succinctly, as of today, the worst-case number of face-turns to solve a cube is no worse than 23. It's been known for a while that the worst case is no better than 20.
You know, if you want to make faster progress I suggest you consult the experts of all things cube.
Professor Cooperman will be avenged.
Terrorists can attack freedom, but only Congress can destroy it.
...I would like to see someone solve it in 21 moves with only their feet.http://tw.youtube.com/watch?v=pvXXnT35-70
Physics is imagination in a straight jacket. ~John Moffat
What's interesting to note is that the method for solving the cube in the least number of moves is NOT the fastest - there are very few speedcubers that use this method in competition.
The majority of speedcubers (myself included) use a method developed by Jessica Fridrich over 20 years ago commonly referred to as F2L (first two layers).
It takes quite a few more turns to solve the cube, but when you are executing 4-6 quarter-turns per second it's not speed of turning that slows you down, it's how fast you can recognize your next move.
As a kid my best time was 1 min ! Used to just take off all the stickers on all faces and put them back in correct order. Friends were confused though as to why i want to solve it alone in a room and not in front of them.
Ah, Tomas Rokicki... running AmigaTeX off two 3,5" floppies and 20 disks, those were good times, good times.
Ever wondered whats wrong with the world? http://www.ishmael.org/
I remember "Computer Tom" sitting near the back of the class with headphones on, programming in BASIC on a SHARP. When the prof dared ask Tom a question, Tom invariably got it right and often pointed out a mistake earlier in the problem. I wonder if he recalls the "Nun-inverting" amplifier?
:)
If you read this Tom, hope we didn't take up too much of your valuable programming time and thanks for the VAX account elevation.
Invenio via vel creo
An enumeration is not a proof, since there may be some bug in the program.
Although it's an impressive achievement, this result will only be accepted when someone else will verify this result with a different method.
The point being: it is possible to solve a cube from any arbitrary configuration in N moves, where N is 21, 22 or 23 (it's not yet known which).
On third reading, I get it. I thought, as presumably did the AC above, that Rokicki had shown that from an arbitrary start position it can always be solved in either 21, 22 or 23 moves.But I think you mean "it is possible to solve a cube from any arbitrary configuration in no more than N moves, where N is 21, 22 or 23". If it starts out only 1 move away from completion, I don't really just have twiddle it round an extra 20 moves, do I?
Nobody is too smart! Nobody is too slow! Everybody is equal!
http://thepeoplescube.com/red/viewtopic.php?t=64
...and I approve of this algorithm!
I've never heard it called that before.
Be careful, you may go blind.
Genesis 1:32 And God typed
On a related note, when I was a kid some people thought sliding a middle slice was a move, when it was clear to me that it was really 2 "face turns". From the terminology you use, we seem to agree on that. I just thought I'd mention it.
So much brainpower spent on trying to figure out a toy.
"It's the height of ridiculousness to say for those 9 lines you get hundreds of millions."
I just take them apart and reassemble them as solved.
"It's the height of ridiculousness to say for those 9 lines you get hundreds of millions."
"solve any (solvable) Rubik's cube"
Utilizing the synergization of benchmark e-solutions to pre-workaround action items!
Supercomputer? I've got a small little book that tells you how to do it. :-)
Coder's Stone: The programming language quick ref for iPad
The Rubik's cube has a finite number of configurations reachable from the solved configuration using the rules of transformation. Therefore, it is possible by elaborating all of the sequences of transformations until loops are found to create a set of transformation sequences that reaches all possible configurations. The question is, have you found the optimal sequence in every case. The answer is yes if you have enumerated every sequence of shorter length.
So, in order to prove that 23 is the longest distance from a solved state, you have to compute the result of all possible 22-move sequences without reaching the 23-move state.
At any position, you can make one of 9 moves (rotate by 90 degrees any of the three planes in any of the 3 dimensions). So there are 9^22 possible sequences to enumerate.
9^22 is 984,770,902,183,611,232,881.
Hmmmm...tricky...
Of course, you can probably eliminate sequences that loop in fewer than 22 moves by working up from 1, meaning you don't need to revisit with those starting sequences as you go longer. There is where things get elegant.
Anyone have the phone number for Magrathea? I'll be over here doing some designing...
Time is not a spatial dimension!
I've seen a movie in the news block couple weeks ago where 9-year kid is beating his adult opponents in the Rubik's Cube tournament. He did it in about 2 min!