Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Rubik's Cube Algorithm Cut Again, Down to 23 Moves

Posted by timothy on Thu Jun 05, 2008 06:08 PM
from the at-this-rate-one-will-soon-be-enough dept.
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!"
+ -
story

Related Stories

[+] Rubik's Cube Proof Cut To 25 Moves 386 comments
KentuckyFC writes "A scrambled Rubik's cube can be solved in just 25 moves, regardless of the starting configuration. Tomas Rokicki, a Stanford-trained mathematician, has proven the new limit (down from 26 which was proved last year) using a neat piece of computer science. Rather than study individual moves, he's used the symmetry of the cube to study its transformations in sets. This allows him to separate the 'cube space' into 2 billion sets each containing 20 billion elements. He then shows that a large number of these sets are essentially equivalent to other sets and so can be ignored. Even then, to crunch through the remaining sets, he needed a workstation with 8GB of memory and around 1500 hours of time on a Q6600 CPU running at 1.6GHz. Next up, 24 moves."
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • by ASMworkz (1302279) on Thursday June 05 2008, @06:09PM (#23675935) Homepage
    Call me when it's down to 10 moves! :)
  • by ricebowl (999467) on Thursday June 05 2008, @06:10PM (#23675947)
    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...
  • by Brad1138 (590148) * <brad1138@yahoo.com> on Thursday June 05 2008, @06:13PM (#23675995)
    in 48 moves or less. Luckily the center sticker is always in the right place so I don't need to move that one.
  • Or... (Score:5, Insightful)

    by Anonymous Coward on Thursday June 05 2008, @06:15PM (#23676023)
    "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.
    • Re:Or... (Score:5, Funny)

      by this great guy (922511) on Friday June 06 2008, @03:25AM (#23679497)
      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."

        • Re: (Score:3, 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).

  • by BadAnalogyGuy (945258) <BadAnalogyGuy@gmail.com> on Thursday June 05 2008, @06:18PM (#23676047)
    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.
    • Re: (Score:2, Informative)

      Sorry, that second one is from another algo.

      It should be 2(3^3)/3
    • by IWannaBeAnAC (653701) on Thursday June 05 2008, @06:33PM (#23676193)
      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.
        • Re: (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.
    • Re: (Score:3, 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).
  • Solvable? (Score:5, Interesting)

    by CastrTroy (595695) on Thursday June 05 2008, @06:20PM (#23676071) Homepage
    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.
    • by pwnies (1034518) * <jjcm.linux+slashdot@gmail.com> on Thursday June 05 2008, @06:28PM (#23676149) Homepage Journal
      It may not be a rubiks cube, but it would be quite humorous if strategically placed in an "Obsessive Compulsive Puzzle Solvers Anonymous" meeting.
      • Re:Solvable? (Score:5, Insightful)

        by ampathee (682788) on Thursday June 05 2008, @06:40PM (#23676265)
        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.
        • by Fred Ferrigno (122319) on Thursday June 05 2008, @08:10PM (#23677063)
          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.
      • Re: (Score:3, 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.
      • 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.
    • But if you're given an arbitrary cube, how do you know if it's been tampered with such that it's no longer solvable? It may be the case that the simplest way to determine that, that works in every case, is to try and solve the cube and discover you can't. I don't believe it's a trivial problem to stare at a cube and figure out if a simple change like a rotated corner has been made to it.
      • Re: (Score:2, Informative)

        by Anonymous Coward
        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
    • Re: (Score:3, 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.
    • 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?
  • by davidsyes (765062) on Thursday June 05 2008, @06:23PM (#23676101) Homepage Journal
    1. Pour paint on Cube
    2. Let Dry
    3. PROPHET

  • 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.
  • 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) [wikipedia.org]
  • 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
  • by FoolsGold (1139759) on Thursday June 05 2008, @07:02PM (#23676515)
    Blend the fucker - http://www.youtube.com/watch?v=NrqHHBibRvs [youtube.com]

    There, saved you from another 22 pointless moves.
  • Slightly offtopic (Score:3, Interesting)

    by KokorHekkus (986906) on Thursday June 05 2008, @07:10PM (#23676573)
    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?
  • Hofstadter (Score:3, Informative)

    by pez (54) * on Thursday June 05 2008, @07:53PM (#23676923) Homepage Journal
    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.
  • by Anonymous Coward on Thursday June 05 2008, @09:58PM (#23677923)
    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.