Slashdot Mirror


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

48 of 202 comments (clear)

  1. I still can't do it. by ASMworkz · · Score: 5, Funny

    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
    1. Re:I still can't do it. by Hankapobe · · Score: 5, Funny

      Call me when it's down to 10 moves! :)

      I can do it in one .... I outsource it.

    2. Re:I still can't do it. by Kjella · · Score: 5, Funny

      I can do it in zero, I just declare that it's fine just the way it is and accuse anyone that tries to argue otherwise for being segregationists trying to keep all the different colors apart.

      --
      Live today, because you never know what tomorrow brings
    3. Re:I still can't do it. by fizzup · · Score: 4, Funny

      Call me when it's down to 10 moves! :)

      I can do it in one .... I outsource it.

      I can solve it faster .... I defenestrate it.

    4. Re:I still can't do it. by Daimanta · · Score: 4, Funny

      Yes, but does the window run Linux?

      Please, disregard the previous sentence.

      Please, disregard the previous sentence.

      --
      Knowledge is power. Knowledge shared is power lost.
    5. Re:I still can't do it. by Herkum01 · · Score: 3, Funny

      When I was a kid I had a rubix cube which one day resulted in this,

      Angry Kid + Teacher(target) + Rubix Cube = defenestrate + one half rubix cube + dozens little pieces of a cube.

      Afterwards I felt pretty bad about the whole thing...

    6. Re:I still can't do it. by Fishead · · Score: 4, Funny

      I like to buy a new one, solved, and in the package, then using some CA (krazy glue) glue it together so nobody can "un-solve" it.

    7. Re:I still can't do it. by khallow · · Score: 3, Funny

      This method has firm group theoretic underpinnings too. An alternate way to view this excellent solution is to realize that moves don't matter. Thus, you can say all states of the Cube linked by moves are equivalent in their state of fineness and hence the entire orbit is a single equivalence class of acceptability. This reduces the overly complex and uninteresting problem to a trivial one. Perfectly mathematical thing to do.

    8. Re:I still can't do it. by this+great+guy · · Score: 3, Funny
      What did the verb "defenestrate" apply to ?
      • 1. the cube
      • 2. the kid
    9. Re:I still can't do it. by SQLGuru · · Score: 4, Funny

      This post intentionally left blank

  2. That's quick by ricebowl · · Score: 5, Funny

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

    1. Re:That's quick by Hankapobe · · Score: 3, Funny

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

      Try spray paint.

    2. Re:That's quick by Tumbleweed · · Score: 4, Funny

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

      This would definitely faster than my method of taking it apart and reassembling it in the correct order.

    3. Re:That's quick by Chris+Burke · · Score: 5, Funny

      I just buy a new one.

      --

      The enemies of Democracy are
  3. I can always do it.... by Brad1138 · · Score: 4, Funny

    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
    1. Re:I can always do it.... by tangent3 · · Score: 3, Insightful

      With 6 colours and 9 squares per face, there will always be 2 squares of the same colour per face, so it can always be done in 42 moves or less.

  4. Or... by Anonymous Coward · · Score: 5, Insightful

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

    1. Re:Or... by FrangoAssado · · Score: 2, Informative

      Well, he did say any arbitrary configuration.

      It is currently known that there is at least one configuration that is not solvable in 20 moves or less.

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

    2. Re:Or... by harryjohnston · · Score: 2, Insightful

      He said "I doubt that it is 1 for any arbitrary configuration." That translates to "there is no configuration which can be solved in 1 step" which obviously isn't true. What he presumably meant to say was "I doubt that it is 1 for *all* configurations." (The word "arbitrary" is redundant.)

    3. Re:Or... by this+great+guy · · Score: 4, Funny
      You could share the script you used to output that sentence...

      #!/bin/sh echo "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."

  5. 18 moves is the limit by BadAnalogyGuy · · Score: 4, Informative

    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.

    1. Re:18 moves is the limit by BadAnalogyGuy · · Score: 2, Informative

      Sorry, that second one is from another algo.

      It should be 2(3^3)/3

    2. Re:18 moves is the limit by IWannaBeAnAC · · Score: 4, Informative

      No, that is just a lower bound: by counting the number of possible configurations it can be shown that there exists at least one configuration that takes 18 or more steps to solve. It says nothing about an upper bound, which could (and is!) somewhat larger.

    3. Re:18 moves is the limit by mikael · · Score: 2, Interesting

      But there is more than one solution - the centre cube on each face can have any one of four orientations. If you were to paint arrows onto each cube, scrambled the cube, and then solved it, the arrows would not necessarily be aligned with the rest of the cubes on that side.

      So there might be actually 4^6 solutions (4096).

      --
      Vintage computer adverts: http://www.vintageadbrowser.com/computers-and-software-ads
    4. Re:18 moves is the limit by Sunthalazar · · Score: 3, Insightful

      There are 2 statements.

      1) "there exists" a configuration for which the minimum number of steps is "18".

      2) "for all" configurations, "there exists" a solution that takes less than XX steps to solve.

      We are trying to find the answer to #2. We know that #1 exists, so we know that the lower bound of a perfect solver (#2) is 18.

      The article seems to be saying that the upper bound of #2 is 21-23.

  6. Solvable? by CastrTroy · · Score: 5, Interesting

    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. Re:Solvable? by pwnies · · Score: 5, Funny

      It may not be a rubiks cube, but it would be quite humorous if strategically placed in an "Obsessive Compulsive Puzzle Solvers Anonymous" meeting.

    2. Re:Solvable? by Kjella · · Score: 2, Insightful

      Probably because it's more work to find what all the permutations starting from a solved rubik's cube are, instead you start with a general cube and quickly eliminate the unsolvable ones. Techincally you're solving a slightly more general problem with the rubik's cube as a special case, so "solvable cube" is probably correct in the paper but equals rubik's cube in practical life.

      --
      Live today, because you never know what tomorrow brings
    3. Re:Solvable? by ampathee · · Score: 4, Insightful

      Not really. Anyone who could solve a cube would find the rotated corner in a minute or two. My group of friends were into rubiks cubes a few years ago, and that trick got old fast.

    4. Re:Solvable? by Kjella · · Score: 2, Insightful

      Not for very long. While nowhere near the minimum number of steps, there are fairly simple techniques to solve a Rubik's cube so they'd quite quickly conclude it's been tampered with.

      --
      Live today, because you never know what tomorrow brings
    5. Re:Solvable? by Anonymous Coward · · Score: 2, Informative

      Nah. It's pretty easy to tell if a scrambled cube is solvable. You can see which individual edge pieces are "flipped" and which corner pieces are correct or rotated (either clockwise or counter-clockwise). In a solvable cube, you must have either 0 flips or an even number of flipped "edge" pieces. If you assign a value of 1 to clockwise turned corner pieces and a value of 2 to counterclockwise pieces, adding up the values must be divisible by 3. Assuming these criteria are met, a scrambled cube can be deemed as "solvable". This is determined in a manner of seconds for us blindfold solvers but can be learned by just about anyone in less than an hour.

    6. Re:Solvable? by Deanalator · · Score: 2, Funny

      I once spent and hour or so working on a cube before I realized that one of the two color pieces had two colors from opposite sides of the cube :-(

      It is pretty annoying when people do the sticker trick to only solve one side of a cube.

    7. Re:Solvable? by Fred+Ferrigno · · Score: 3, Funny

      My friends decided to flip two pieces without telling me, thinking that would really annoy me. They were quite disappointed when I solved the cube, as the second flip perfectly counteracted the effect of the first.

  7. LET THERE BE THREE moves... by davidsyes · · Score: 3, Funny

    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"
    1. Re:LET THERE BE THREE moves... by GoodNicksAreTaken · · Score: 4, Funny

      3. PROPHET
      That must be part of the God's algorithm the summary mentions.
  8. I can do it in 2... by El_Oscuro · · Score: 3, Funny
    1. Take apart
    2. Put back together (wait... why are there parts left over????)
    --
    "Be grateful for what you have. You may never know when you may lose it."
  9. Only one move required... by FoolsGold · · Score: 5, Funny

    Blend the fucker - http://www.youtube.com/watch?v=NrqHHBibRvs

    There, saved you from another 22 pointless moves.

  10. Slightly offtopic by KokorHekkus · · Score: 2, Interesting

    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?

    1. Re:Slightly offtopic by SuperMonkeyCube · · Score: 2, Interesting
      Corners first, when initially stumbled upon by accidentally solving the corners, does seem rather obvious. Many of the people that were fast in the early days of cubing were using corners first solutions. Any of us that were trying to make funny patterns on the cube were familiar with moving groups of edges around that didn't disturb the corners. Also, the easiest move to flip edges left everything else undisturbed, and flipped one edge on the top layer and three in the middle layer. (That would be RERERERE.) These things combined to make corners first commonplace.

      As someone who still carries a cube around, I would have to say that you can still be well under a minute with a corners first solution, and not have to memorize as many routines (15-20 tops) as someone using the more efficient Fridrich F2L solution (76 much longer routines minimum) not to mention the additional difficulty of having to locate two cubes at a time for corner-edge pairs. This is, as a task, rather like human computing. Do you stick with a short program that's less error prone, or do you write a more complicated one that hogs more memory in the hope of getting it done a few cycles sooner? I'm surprised at how many so-called 'nerds' on this thread disregard the cube as some sort of frustrating toy that can't be done except by paint or sticker removal (especially when disassembly is more reliable :P) instead of wanting to understand the behavior of groups and physically grasping algorithm efficiency. Cudos to KokorHekks for solving it himself!

  11. Hofstadter by pez · · Score: 2, Informative

    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.

  12. Easy by camperdave · · Score: 4, Funny

    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!
    1. Re:Easy by felipekk · · Score: 2, Funny

      Actually, that's more than 10 moves:

      1 Drive to Home Depot
      2 Buy bucket and paint
      3 Drive back home
      4 Open the paint enclosure
      5 Drop paint into bucket
      6 Clean the floor
      7 Clean yourself
      8 Drop the cube
      9 Pickup the cube
      10 Realize that white paint won't make it look solved
      11 Drive back to Home Depot
      12 Buy a new bucket and dark paint
      13 Drive back home
      14 Open
      15 Drop
      16 Clean yourself (you actually learned not to mess the floor)
      17 Drive to Toys-R-Us
      18 Buy another Rubik's cube
      19 Drive back
      20 Drop the cube
      21 Pick it up

      Solved!

    2. Re:Easy by Jay+L · · Score: 2, Funny

      Drop cube in can of paint.

      Paint is so 1987. Sears now sells powder coaters for $150.

      There is nothing that can't be improved with a little powder coating. Pencils, silverware, desks...

  13. Re:Brute force by rokicki · · Score: 2, Informative

    This result required the use of *many* computers to solve *many* positions (approximately four million billion positions), and each found solution was 20 moves or less.

    Yes, in some terms it was brute force, but consider how big a number four million billion is, and how long it takes to solve just a single position in 20 moves or less.

  14. Do the math, quick! by HiggsBison · · Score: 5, Funny

    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.
    1. Re:Do the math, quick! by something_wicked_thi · · Score: 2, Funny

      No.

      It's 42.

      Trust me.

  15. Recapping what it means by Anonymous Coward · · Score: 5, Informative

    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.

  16. my best time -1 min by ami.one · · Score: 5, Funny

    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.