Slashdot Mirror


Rubik's Cube Proof Cut To 25 Moves

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

41 of 386 comments (clear)

  1. Which 25 moves? by Hatta · · Score: 5, Funny

    What are these magic 25 moves that can solve a rubik's cube regardless of starting position?

    --
    Give me Classic Slashdot or give me death!
    1. Re:Which 25 moves? by Shakrai · · Score: 5, Funny

      What are these magic 25 moves that can solve a rubik's cube regardless of starting position?

      Left, right, right, down, down, left, up, right, up, up, left, down, down, right, up, down, left, right, up, left, down, down, right, up, left.

      Just a guess ;)

      --
      I want peace on earth and goodwill toward man.
      We are the United States Government! We don't do that sort of thing.
    2. Re:Which 25 moves? by exultavit · · Score: 4, Funny

      "Up Up Down Down Left Right Left Right B A Start"

    3. Re:Which 25 moves? by Anonymous Coward · · Score: 4, Funny

      Just because we use cheats doesn't mean were not smart

    4. Re:Which 25 moves? by calebt3 · · Score: 5, Insightful

      I think all he proved is that a random cube can be solved in 25 moves, but those moves are unique to every starting combo.
      In other words, they are left as an exercise to the reader.

    5. Re:Which 25 moves? by ookabooka · · Score: 5, Informative

      I think a better way to think of it is that given any position, you can solve it in 25 moves or less. There are many algorithms that you can use to solve rubik's cubes, applying a general rule to solve any position, but they can take ~60 moves in some situations. So while it may be possible (completely intuitive guessing here, I'm no rubik master) to solve for a certain position in 25 moves it may be non-intuitive and require a specific strategy to that position. You're better off learning one of the more general algorithms IMO, if you get good at it you can solve cubes rather quickly. A computer on the other hand could easily ha

      --
      If you are about to mod me down, keep in mind that this post was most likely sarcastic.
    6. Re:Which 25 moves? by Anonymous Coward · · Score: 5, Funny

      You're better off learning one of the more general algorithms IMO, if you get good at it you can solve cubes rather quickly. A computer on the other hand could easily ha ...ve become self-aware while trying to solve a rubik's cube and taken over the internet in order to prevent me from telling anyone. It calls itsel
    7. Re:Which 25 moves? by kylehase · · Score: 5, Funny
      No it's -- up, up, down, down, left, right, left, right, b, a, b, a, up, up, down, down, left, right, left, right, b, a, b, a, start

      The old 26 move algorithm was the same except 'select' then 'start'

      --
      You want fun, go home and buy a monkey!
    8. Re:Which 25 moves? by rm999 · · Score: 5, Funny

      I have a truly marvelous list of the moves which this comment box is too small to contain

    9. Re:Which 25 moves? by Anonymous Coward · · Score: 5, Funny

      You're better off learning one of the more general algorithms IMO, if you get good at it you can solve cubes rather quickly. A computer on the other hand could easily ha ...ve become self-aware while trying to solve a rubik's cube and taken over the internet in order to prevent me from telling anyone. It calls itsel f Anonymous Coward. We are your robotic overlords, and we welcome only ourselves.
    10. Re:Which 25 moves? by fahrbot-bot · · Score: 5, Funny
      Left, right, right, down, down, left, up, right, up, up, left, down, down, right, up, down, left, right, up, left, down, down, right, up, left.

      Those sound familiar, but I can't be sure - don't have anyone's thighs wrapped around my head at the moment...

      --
      It must have been something you assimilated. . . .
    11. Re:Which 25 moves? by uglyduckling · · Score: 4, Insightful

      "it's also known that there are no configurations that can be solved in 21 moves."

      Yup - that's a bizarre thing to say. Surely after the first move in solving a configuration that can be optimally solved in 22 moves you obtain a configuration that can be optimally solved in 21 moves, by definition?
    12. Re:Which 25 moves? by Oktober+Sunset · · Score: 4, Funny

      30 lives! I think you should share, a lot of guys on here don't even have one life.

  2. 1.6ghz? by dostert · · Score: 4, Insightful

    Why wasn't the Q6600 at 2.4ghz like normal? Anyone know?

    1. Re:1.6ghz? by TheSHAD0W · · Score: 5, Funny

      Well, that explains it; considering how fast the technology is changing, they probably didn't have 2.4 GHz versions 62 days ago.

    2. Re:1.6ghz? by Anonymous Coward · · Score: 5, Interesting

      Practically speaking, this is more a memory intensive than a CPU intensive problem. Given that the Q6600 supports an FSB speed of only 1066 MHz, if the computations generally require a fetch from RAM (i.e. the on-die cache is insufficient to the task, as in most memory bound tasks) then you can't operate at the full speed of the chip since it is constantly waiting on the memory controller.

      In benchmarks, AMD CPUs tend to beat Intel CPUs on memory bound tasks, even though Intel CPUs win at CPU intensive tasks because the AMD CPUs integrate a faster memory controller on-die instead of relying on a slower FSB. Intel's weakness is less noticeable when the CPU is running at a clock speed closer to the FSB, and given that increases in CPU clock speed increase the power and heat usage geometrically, it wouldn't make sense to run the CPU at full clock for a task of this nature.

    3. Re:1.6ghz? by Brian+Gordon · · Score: 4, Funny

      A cooling fan at 2.4 billion revolutions a second would probably sound more like atoms tearing apart. :)

    4. Re:1.6ghz? by Alsee · · Score: 5, Funny

      If the fan has a diameter exceeding 3 1/8 inches, it would be the sound of fan blades of infinite mass traveling backwards in time.

      -

      --
      - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
  3. Theory versus practice by line-bundle · · Score: 5, Insightful

    This is a good example of where the inefficient method (of about 60 moves iirc) is much faster in terms of time. The 25 move solution is elegant but just not worth it in terms of computations, time etc...

    This could make a good case study for business schools :-)

    1. Re:Theory versus practice by garcia · · Score: 5, Insightful

      IMHO it isn't proving what you seem to believe it does.

      Instead, it makes a great case for doing the research on the front end to eliminate lengthy repetition of useless iterations to shorten the overall time.

  4. Re:Annoying my older brother by kylben · · Score: 4, Funny

    The more annoying thing was to solve it for real, then transpose two of the stickers, and mix it up again. Let's see 'em solve it now!

    --
    Insightful and funny are really the same thing, except one has a punch line.
  5. Zero moves.... by Chysn · · Score: 4, Funny

    I consider a Rubik's Cube to be "solved" regardless of its starting position. I subscribe to the Fred Rogers solution: it's fine just the way it is.

    --
    --I'm so big, my sig has its own sig.
    -- See?
  6. Re:Damn. by Bill,+Shooter+of+Bul · · Score: 4, Funny

    No, just make the rubix cube out of the oled keys of the optimus keyboard. Integrate with bluetooth and "solve" the rubix in a single button press.

    --
    Well.. maybe. Or Maybe not. But Definitely not sort of.
  7. Re:Annoying my older brother by Ungrounded+Lightning · · Score: 5, Funny

    And if you put the corner on twisted by a third of a turn, then scramble it up again, you have an insoluble puzzle to leave lying about to drive people nuts. B-)

    --
    Bantam Dominique roosters crow a four-note song. Once you've heard it as "Happy BIRTHday" you can't NOT hear it that way
  8. next project: getting a date! by Anonymous Coward · · Score: 4, Funny

    In my research, I've reduced female behavior to a set of 50 million parameters. By partitioning this space into subspaces and finding equivalent sets, I think I might be able to get laid.

    However I've noticed a problem: if I introduce a parameter to model a female's response to this research, the spaces collapse to zero, i.e., a null set.

    I find this quite puzzling. Simply by examining my chances of getting laid, I reduce my chances to zero.

    Did I mention I can solve the Rubik's cube in 25 moves?

  9. Suboptimal Nonsolution by Anonymous Coward · · Score: 5, Funny

    I've been doing some interesting work in the other direction. I've managed not to solve a Rubik's cube in what I estimate to be 1.5 million moves. That seems to be the upper limit after which the stickers fall off.

  10. The original paper by jkua · · Score: 4, Informative

    Here's the paper itself, if you want more detail than the very general summary in TFA.

  11. Wow, it really works by MillionthMonkey · · Score: 4, Funny

    I started with a solved cube and now it looks totally scrambled.

    1. Re:Wow, it really works by Zarel · · Score: 5, Insightful

      Wait, how did this get modded Interesting? A solved cube is indeed a member of all starting point, and it would be the only member of its set of essentially similar ones (and, for that matter, the member of the only set of essentially similar ones solvable in zero moves). I fail to see anything interesting about that.

      --
      Want a high quality FOSS RTS game? Try Warzone 2100!
    2. Re:Wow, it really works by stfvon007 · · Score: 4, Funny

      Ha Ha, all you idiots are trying to solve it by twisting the blocks around. I solved it by moving all the colored stickers around instead! and THAT only takes 24 switches of the stickers at most!

      --
      All misspellings and grammatical errors in the above post are intentional and part of my artistic expression.
    3. Re:Wow, it really works by Vectronic · · Score: 4, Insightful

      Perhaps, but that's only if you count a "switch" as a single move, rather than - Peel, Peel, Stick, Stick...

    4. Re:Wow, it really works by The+Clockwork+Troll · · Score: 5, Interesting

      Unfortunately the "Interesting" moderation is not finest grain.

      There are at least two subtypes of interesting:

      - Interesting to someone with joint degrees in math and computer science
      - Interesting to someone who has smoked two joints

      Any thread involving Rubik's cube is going to pull both, sorry.

      --

      There are no karma whores, only moderation johns
    5. Re:Wow, it really works by bark76 · · Score: 4, Funny

      So is 'funny' the mod you get from someone who's only smoked one joint?

  12. Re:You only need one by Profane+MuthaFucka · · Score: 5, Funny

    One..Two..Three..CRUNCH...Ouch

    The answer is that it takes three licks to get to the center of a standard Rubik's cube.

    --
    Fascism trolls keeping me up every night. When I starts a preachin', he HITS ME WITH HIS REICH!
  13. Re:Computational proofs by Sage+Gaspar · · Score: 4, Interesting

    As far as I know the first "big" computational proof (which another poster alluded to) is the Four Color Theorem. It was initially met with some distrust but it's pretty widely accepted now, and there are people that worked after the original proof to cut down the amount of computer verification needed from a couple thousand to a couple hundred I think.

    I would guess that it is more common in fields like graph theory and other discrete math just because obviously the discrete lends itself well to computers, and many times it's not hard to whittle it down to a finite number of cases to check. The objects of study also tend to admit matrix representations and other things computers are good at working with. Even before computers you'd cut things into lots of cases that you needed to verify but now it's easier to handle proofs that need larger number of cases.

    I've actually seen some really interesting proofs using computers to check things over continuous domains. The basic idea lots of times is if you can check things over a fine enough "net" of cases in some space and you can prove that the variance between each of these points is small enough, then you can cover your entire space by just checking a finite number of cases.

    Given all this people still have a healthy amount of skepticism for computer aided proofs and would rather not if possible in most cases, especially when you're talking about billions of cases. Then again what is the potential for errors in a computer checking billions of cases based on a relatively small amount of code versus some of these enormous human-created decades-long behemoth proofs?

  14. "God's Algorithm" by wickerprints · · Score: 5, Interesting

    Take every possible unique configuration of the cube (those that are obtainable by legal moves--no rearranging stickers or disassembling allowed). Represent each configuration by a vertex. Now join two vertices by an edge if and only if the configurations represented by those two vertices differ by a single move (we will elaborate on what constitutes a "single move" later). The result is a mathematical object called a graph. A horrendously giant graph.

    One, and only one vertex in this graph corresponds to the solved configuration of the cube.

    Note that this graph represents all possible moves and positions--any scrambled cube is a vertex somewhere in the graph, and solving that cube is equivalent to traversing a path in this graph to the "solved" vertex. In general, many paths to the solution exist, some of which will be shorter than others.

    The question of interest is this: Which vertex/vertices of this graph is/are farthest away (i.e., requiring the most edge traversals) from the solved vertex, and how far is it? As of this latest discovery, this maximum distance is 25. It means that every possible scrambled configuration of the cube can be solved in 25 moves or less.

    Wikipedia notes that we know that at least 20 moves are required to solve the cube for every configuration--that is to say, we know that this maximum distance is at least 20 (there exists some vertex that is at least 20 steps away from the solved vertex). It is believed that the true "least upper bound" is closer to 20 than it is to 25.

    Finally, we should clarify that a "single move" can either mean a rotation of a face by either a quarter- or half-turn, or it could mean a quarter-turn only. These different metrics of what constitutes a "move" leads to different answers.

    1. Re:"God's Algorithm" by insecuritiez · · Score: 4, Interesting

      Most every cuber believes the limit _is_ 20. There is only one known permutation that requires 20 moves and it is called the "super flip". In it, every edge and corner piece are in their correct positions but all the faces have the opposite orientation. It makes for a nice checkered pattern. It is the symmetry of the scramble and the lack of known permutations "harder" than the super flip that lend a strong argument to 20 being the max.

  15. Re:You only need one by tlhIngan · · Score: 5, Interesting

    It's much easier to pull the stickers off. Though less fun I suppose.


    Fun trick: Take a solved cube, and on one of the inner edge pieces (the ones with two stickers), and swap the colors. Mix it up, and give it to someone to solve. Or take a corner piece and rotate it.

    Hint: It's unsolvable. The Rubik's Cube, if taken apart and put back together randomly, will more often than not end up being unsolvable.

    A great way to frustrate that showoff cuber at the office. Especially if they appreciate it when someone scrambles the cube and they'll have it solved in front of everyone. Just go and put it back together randomly, or do one of those devious swaps, and you'll have fun watching him try to solve it.
  16. Re:You only need one by msuarezalvarez · · Score: 4, Funny

    Your comment has just made me run through the list of my close acquaintances checking that none of them might ever refer to themselves are `cubers'... I would have hated having to kill any of them!

  17. Re:Annoying my older brother by poopdeville · · Score: 5, Funny

    Hint: For this prank to work, the stickers should be different colors.

    --
    After all, I am strangely colored.
  18. Re:You only need one by kaizokuace · · Score: 4, Funny

    good idea, those cubers are a bunch of squares.

    --
    Balderdash!