Slashdot Mirror


Four-Dimensional Rubik's Cube Craziness

roice writes "Rubik's junkies and puzzlers will be interested in this software rendered four-dimensional analog of Rubik's Cube. With over 1.75E120 possible combinations, it's a mind bender. Free versions are available for both Windows and Linux, and they even publish their source code for download. Solving it will get your name listed in their Hall Of Fame, and there is also a running competition for the most efficient solution. To help get you started, you can check out a solution algorithm based on techniques used to solve the popular three-dimensional version."

50 of 296 comments (clear)

  1. Great. by inertia187 · · Score: 4, Funny

    Heck with solving it. There are some things that just aren't worth solving. Now where can I find a software rendered four dimensional analog of a hammer and nail?

    --
    A programmer is a machine for converting coffee into code.
    1. Re:Great. by YoungFelon · · Score: 5, Funny

      instead of greasing it to make it go faster, you ad space-time fabric softener.

  2. nooo by marvy666 · · Score: 5, Funny

    it took me long enough to finish the real thing.

    1. Re:nooo by Jason1729 · · Score: 4, Interesting

      Rubik's makes a special cube for "less intelligent puzzlers". You might want to pick up one of these.

      Jason
      ProfQuotes

    2. Re:nooo by Oscar_Wilde · · Score: 2, Funny

      Right. So you get a blank cube and a set of stickers...

      Why are the Do-it-yourself instructions needed?

      Hmm, who are these people who open the box and say "What no directions?! How will I tell which yellow sticker goes where?"

    3. Re:nooo by tsvk · · Score: 2, Informative
      Haha, it only took me a minute to solve the 3D version!

      Bah, as long as one minute? You are slow.

      Check out this site, especially the multimedia section. There are videos of guys that solve the cube in less than 20 seconds!

  3. Not interested... by rosewood · · Score: 4, Funny

    I can't even figure out the regular one. Hell, I am lucky I can tie my shoelaces in the morning!

    1. Re:Not interested... by ari_j · · Score: 4, Funny

      You sound like you could borrow my Rubik's Square. It only took me about half an hour to solve, once I realized that all the squares are the same color.

    2. Re:Not interested... by k-0s · · Score: 2, Funny

      There's your problem...a Rubik's cube isn't to be used to tie your shoes. Pshhh some people.

  4. Technique number one by RLiegh · · Score: 5, Funny

    Apply a screwdriver to it; reassemble in the proper order.

    Um, though that may be a little hard with the program, I'll admit.

    Maybe if I apply the screwdriver to the ~~++5#Q%NO CARRIER

    1. Re:Technique number one by ewhac · · Score: 4, Funny

      That's a violation of your End-User License Agreement and the DMCA.

      Please lie face down on the ground, with your legs and arms apart. BSA agents will be arriving shortly to take you into custody.

      Schwab

    2. Re:Technique number one by nitekrow · · Score: 3, Funny

      Here's a solving technique that works everytime: Simply twist and turn the cube until all sides match up. No additional tools required or embarassing adhesive related situations to deal with...

  5. Comment removed by account_deleted · · Score: 5, Funny

    Comment removed based on user account deletion

  6. damn it.... by deadsaijinx* · · Score: 4, Interesting

    you know how long I've been working on my three dimensional one? over a year. Perhaps I'm stupid, but that thing is impossible to solve. Anyone have any clue how long it would take a computer to solve your standard rubics cube through brute force?

    --
    YOU SUCK BALLS!
    1. Re:damn it.... by Waffle+Iron · · Score: 4, Informative
      you know how long I've been working on my three dimensional one? over a year. Perhaps I'm stupid, but that thing is impossible to solve.

      Maybe somebody subjected you to one of my favorite old tricks. Take one corner off of a solved cube and rotate it so that the colors don't match the rest of the cube. Reassemble in this orientation. Presto: unsolveable cube.

    2. Re:damn it.... by deadsaijinx* · · Score: 2, Informative

      thank you, that side eventually led me to my answer

      --
      YOU SUCK BALLS!
    3. Re:damn it.... by hawkstone · · Score: 4, Funny

      Maybe somebody subjected you to one of my favorite old tricks. Take one corner off of a solved cube and rotate it so that the colors don't match the rest of the cube. Reassemble in this orientation. Presto: unsolveable cube.

      Kinda funny -- I've inadvertently subjected myself to this same trick as a child. It always took so long to scramble the thing, it was easier to take it apart and put it back together in random order. Little did I realize there was a very good chance of creating an unsolvable cube.

      Furthermore, I went so far as to buy a "how to solve the rubik's cube" book. Followed every goddamn step in that thing, and was pissed when it wasn't working. Eventually I tried it on my sibling's and it worked, and I came to the conclusion that mine was defective. Not sure how long it took me to figure out how mine became defective, but the blame was fully mine. :)

      Gotta say, trying to solve an unsolveable puzzle sure kept me busy. It may have gotten my frustration tolerance up high enough that I can stand to debug those really nasty programs....

    4. Re:damn it.... by xA40D · · Score: 2, Funny

      Maybe somebody subjected you to one of my favorite old tricks. Take one corner off of a solved cube and rotate it so that the colors don't match the rest of the cube. Reassemble in this orientation. Presto: unsolveable cube.

      Way back in the mists of time I tried that on my school's Rubik's wizard. I took three pieces and rotated them. Gave it to the wizard and waited. Five minutes later he returned the almost complete cube, pointing out the _one_ piece he was unable to get right as it had been rotated.

      --
      Do you mind, your karma has just run over my dogma.
  7. thats an easy one by becktabs · · Score: 5, Funny

    and there is also a running competition for the most efficient solution.

    duh...just peel off the stickers.

    1. Re:thats an easy one by Aliencow · · Score: 2, Funny

      Wouldn't that be a violation of the DMCA ?

  8. Umm by Anonymous Coward · · Score: 2, Funny

    Can someone plz send me a link to a trainer for this. Thx. also no-cd version much appericated.

  9. *Four* dimensional Rubiks Cube? by The+Cydonian · · Score: 4, Funny

    What, you have to step into the future to solve it? :-D

    1. Re:*Four* dimensional Rubiks Cube? by Anonymous Coward · · Score: 2, Funny

      Most slashdot readers don't know about in and out...

  10. Tried it a while back. by Anonymous Coward · · Score: 2, Interesting

    Neat game. It's been around a while. I've been able to solve 7 random twists. The first thing you have to do is start with a ordered cube and see what happens when you twist it different ways. Not consistently, though. The trick is to figure out what the last move probably was, reverse it, the one before it, reverse that, and so on. After 3 random twists, you might be able to make a bad guess and recover from it. After 7, one wrong turn is a good reason for starting over. Never was able to solve a regular 3d rubiks cube puzzle though.

  11. Be pepared... by LeiGong · · Score: 5, Funny

    Just a word of warning to the foolish and brave. Before you tackle the 4^4 hypercube, make sure you buy an ergonomic mouse and mousepad. My guess is you'll probably develop super-carpal tunnel syndrome before you even you match one side of the damn cube. Also be sure to stockpile a few extra mouses, there's no knowing how many of them you'll be throwing against the wall.

  12. Anyone remember "Cubey"? by Nova+Express · · Score: 3, Interesting
    For those spared this atrocity, it was a Saturday morning cartoon featuring, I kid you not, a living Rubik's Cube. It was an idea that filled me with loathing even at that age, and I can't tell you what it was about because I always switched to something else as soon as it came on.



    The 1980s certainly seemed the nadir of American animation...

    --
    Lawrence Person (lawrencepersonh@gmailh.com (remove all "h"s to mail)

    http://www.lawrenceperson.com/

  13. Comment removed by account_deleted · · Score: 5, Informative

    Comment removed based on user account deletion

  14. When I was a kid by Anonymous Coward · · Score: 5, Funny

    I memorized the solutions to the Rubik's Cube so everyone would think I was smart! Haha, fooled them!

    Now I just get drunk and masturbate a lot.

  15. Re:Lego Solution by Anonymous Coward · · Score: 5, Funny

    Ahhhhhhhh!

    It's LEGO, not LEGO's, not Lego's, not lego's, not lEGO's, not leGO's, not legO's, not lego'S, not LeGo's, not lEgO'S.

    It's not LEGOS, legos, LEGOS'.. ITS LEGO

    "I have one LEGO, I have two LEGO, I have many LEGO. I enjoy playing with LEGO"

    1 LEGO = LEGO
    2 LEGO = STILL LEGO

    No farking S!!

    Ok I feel better now. :)

  16. Is this actualy 4D ? by Forge · · Score: 4, Interesting

    I don't know. It looks like a more complex 3D version that's just real togh to build with plastic.

    Maybe it's because I read some quack's claim that the 4th dimension was time. In which case a 4D rubics cube would solve itself over time or be onsolvable because it rescrambled while you were trying to solve.

    --
    --= Isn't it surprising how badly I spell ?
    1. Re:Is this actualy 4D ? by cascino · · Score: 4, Informative

      Maybe it's because I read some quack's claim that the 4th dimension was time. In which case a 4D rubics cube would solve itself over time or be onsolvable because it rescrambled while you were trying to solve.
      The 4th dimension is whatever you define it as. There's no "true" 4th dimension. Einstein had the idea that time could be treated in a fashion similar to that of the spatial dimensions, and so, in his work, he defined the 4th dimension as the temporal dimension.
      However, for this program's purposes, it's assumed that we're talking about the 4th *spatial* dimension. You can (kinda) visualize it if you think of the progression of first 3 dimensions: a line (1st d) can be rotated 90 degrees to itself to form a square (2nd d) which can be rotated 90 degrees to itself to form a cube (3rd d). The 4th dimension is thus hypothesized as the space defined by a cube rotated 90 degrees to itself.
      (Granted, I'm no mathematician, so if someone has a better understanding, please correct me.)

    2. Re:Is this actualy 4D ? by Jonathan+the+Nerd · · Score: 4, Informative
      If you've ever read the story "And He Build a Crooked House" by Robert Heinlein, it contains a very good description of what a four-dimensional hypercube would look like. Imagine a small cube in the middle, six cubes surrounding it (one on each side, squashed together so that they share faces), and one big cube on the outside. Alternately, imagine two intersecting cubes (one corner of each cube is in the middle of the other cube), where each face of one cube is connected to each face of the other cube by another cube. Confused yet? So am I! Read the story, it's quite interesting.

      This puzzle uses the first model mentioned above, except that you can only see seven cubes at once (the outer cube is hidden so that it won't block the view of the others). If you rotate the model (with Shift-left or Shift-right click), the outer cube comes into view.

      --
      Disclaimer: The opinions expressed are not necessarily my own, as I've not yet had my medication today.
    3. Re:Is this actualy 4D ? by blincoln · · Score: 4, Interesting

      Here's a Java animation that will show you a 2D projection of a 4D hypercube:

      http://dogfeathers.com/java/hyprcube.html

      It's really tough to wrap your head around another spatial dimension. Books like Flatland and Realware make the comparison to a 2D person's world being interrupted by one of us.

      For example, if you were 2D, living on your flat plane, and a 3D person passed an orange through the plane, you would perceive it as a round shape which grew out of nothingness, got bigger and changed shape for awhile, then shrank and disappeared.

      A 3D person could also see into your house, because a 2D person would just build four walls and no ceiling or floor. Similarly, a 4D creature could see through all of us and our buildings, because we only build in three dimensions.

      --
      "...always new atoms but always doing the same dance, remembering what the dance was yesterday." -Richard Feynman
    4. Re:Is this actualy 4D ? by BernardMarx · · Score: 2, Interesting

      A better way to visualize a hypercube (and to draw one on paper) is as follows:

      0. Start with a point. Zero dimensions. (Draw a dot.)

      1. Expand each vertex in a direction you haven't used yet. (Draw a horizontal line from the dot, and put a dot at the end of it.)

      Now you have a line, one dimension.

      2. Expand each vertex in a direction you haven't yet, and connect them. (Draw vertical line from each dot, and a horizontal line connecting the two new dots.)

      Now you have a square, two dimensions.

      3. Expand each vertex in a direction you haven't yet, and connect them. Since we have run out of actual dimensions on our sheet of paper, we will have to create virtual dimentions. Sorry if I've offended a topologist, I don't know the technical terms. (Draw one diagonal line from each of the four dots of the square, to the top and right. Connect the four new dots with another square. Most of you are probably familiar with this 2D projection of a 3D cube.)

      Now you have a cube, three dimensions.

      4. Expand each vertex in a direction you haven't yet, and connect them. We have to create more virtual dimensions, so this might seem a little tricky. (Imagine a cube in 3D-space, and imagine what it would look like with lines protruding from the center of the cube, through each corner. Draw these eight lines, then connect their endpoints, one square on top of the cube, one square on the bottom, then four vertical lines connecting each of the two new squares.)

      If you did it correctly, you should end up with what looks like a cube, encased within a larger cube, with lines from the corners of the inner cube to the corresponding corners of the outer cube.

    5. Re:Is this actualy 4D ? by adamruck · · Score: 2, Interesting

      after taking calc III, Ive come up with a great way to describe 4d objects.

      Example, take a room, it has 3 standard dimensions, now lets add another dimension, lets say temperature. Now we have a 4d object, we could even try and make a function to model temperature based on postion, temp = f(x,y,z);

      You can even do neat things like make 3d objects out of 4d objects by taking a level surface of the 4d object. In simpler terms, take all of the points in the room that are one temperature, that will form a 3d object.

      I think the easiest way to portray a 4d object is by using colour. Image taking a pair of thermal gogles and walking around a room. The only problem is that a colour approach cant be used for rubix cubes, becuase colour is already used to distinguish different sides of the cube. Perhaps to visualize a 4d rubix cube the different sides of the cube could be represented by shapes, or perhaps a numbering system. I think that taking the 4d cube and trying to flatten it into 3d looks ugly.

      --
      Selling software wont make you money, selling a service will.
  17. Most efficient solution by anon*127.0.0.1 · · Score: 4, Funny

    1) Click OPTIONS
    2) Click SOLVE

    Two clicks... anyone do better?

    --
    I am NOT a man!
    I am a free number!
    1. Re:Most efficient solution by fidget42 · · Score: 5, Funny
      1) Click OPTIONS
      2) Click SOLVE

      Two clicks... anyone do better?
      Umm..
      3) PROFIT?
      --
      The dogcow says "Moof!"
  18. No it won't by Rhinobird · · Score: 2, Funny

    Um, though that may be a little hard with the program, I'll admit.


    No it won't, we just have to wait for someone to come up with a software implimented 4 dimensional hammer...there's probably already one written for emacs...

    --
    If Mr. Edison had thought smarter he wouldn't sweat as much. --Nikola Tesla
  19. Re:Not complete by bad_fx · · Score: 2, Informative

    That would be like having regular 3D rubik's cube and not be able to turn the white face.

    Not quite. It's like having a physical 3D rubik's cube and not being able to see all 6 faces at the same time. You can however turn a physical cube around so you can see the hidden face. It's a similar idea in this one. The way to see the hidden "face" is given in the FAQ:

    Q: I can turn a real cube around so that I can see the hidden faces, can
    I do something similar to see the invisible eighth "face"?
    A: Yes. If you hold down the control key and click either mouse button
    on any part of a "face", the puzzle will "rotate" in 4D until that "face"
    is in the center. That "rotation" will bring the invisible face into the
    same position as the one you clicked on. The "face" on the opposite side
    of the puzzle will "rotate" out until it turns inside-out and becomes the
    invisible "face". This "turning inside-out" motion is very typical of 4D
    "rotations". Notice that control-clicking either mouse button on the
    central "face" does nothing because it's already in the center.

  20. You were close... by bazmonkey · · Score: 4, Informative

    The best way to solve a given cube is called "God's algorithm" to us Rubik's geeks (I can average about 50 s. solving a cube, which is ok, but not phenomenal). It's 18 moves. The method behind it is far too complicated for a person to do without a computer to assist, but using a rather simple method, a person can very easily solve a cube in around 65 moves, but slowly. The record-breaking solution times are closer to a hundred moves, but rather than remembering a move-efficient but thought-intensive way to solve it, one remembers many more algos that whose situation can be recognized much more quickly.

    And for the previous posts asking how long it takes a computer to do it... it's very, very low. Under a second. Many people can do it, manually (a computer just has to give the moves, it can ignore the time required to actually turn the cube) in under 20 seconds (For the people out there in disbelief, Dan Knights has a video of him actually doing it in 17, it's for real. I won't post the link, because I'm not going to be responsible for slashdotting his site).

    There's a huge difference between a computer solving it "brute force", and a person or computer solving it through established algorithms. By brute force, just twirling the cube until the solution popped up, it would take on average however long it takes your computer to process half of the possible combinations. That's quite a long time. However, a computer solving a cube how we would, focusing on time rather than least amount of moves, could easily solve more than one a second.

  21. Not "Cubey", by teamhasnoi · · Score: 2, Informative

    Information on the "Rubik, The Amazing Cube" television show

    Premiered on ABC: September 10, 1983-September 1, 1984.

    The series ran for 1 year, and had a total of 12 episodes. It was
    originally broadcast as "The Pac-Man/Rubik, The Amazing Cube Hour"
    on Saturday mornings in colour with each Rubik segment lasting
    22 minutes.

    The Plot
    --------

    Rubik is discovered by a young boy (Carlos) who brings the colourful cube
    to life - after he aligns all the cube's sides - an sets out on a magical
    adventure tour along with his brother and sister, Renaldo and Lisa.
    The series was rebroadcast in the spring of 1985 as a mid-season replacement.
    Ruby-Spears Enterprises produced the series.

    Voices
    ------

    Rubik: Ron Palillo
    Carlos: Michael Saucedo
    Renaldo: Michael Saucedo
    Lisa: Jennifer Fajardo
    Ruby Rodriguez: Michael Bell
    Marla Rodriguez: Angela Moya

    Episode List
    ------------

    "Rubik, The Amazing Cube," "Rubik And The Lucky Helmet," "Back Packin'
    Rubik," "Super Power Lisa," "Rubik And The Mysterious Man," "Rubik And The
    Pooch-Nappers," "Rubik And The Buried Treasure," "Rubik And The Science
    Fair," "Honolulu Rubik," "Rubik's First Christmas," "Rubik In Wonderland"
    and "Saturday Night Rubik."

  22. Rotates too fast by rollingcalf · · Score: 2, Insightful

    My problem with this is that it rotates so fast, that I can't figure out what the effect of a rotation is supposed to be. The speed also makes learning by observing it solving itself useless ... just some flashes and 0.25 seconds later it's done. Any way to slow it down?

    --
    ---------
    There is inferior bacteria on the interior of your posterior.
  23. Movie References by HeXetic · · Score: 5, Informative

    Puzzled by the cube? Try renting two (relatively low-budget, unknown) sci-fi flicks. - Cube: Buncha people, trapped in a buncha cubes, with a buncha deadly traps. - Cube 2: Hypercube: Buncha people, trapped in a hypercube, with less deadly traps but more confusion as to wtf is going on. Both movies are fairly puzzling in their own right, with that sort of "unknown" sci-fi ending that is commonly found in lower-budgeted movies (e.g. Pi).

    --
    http://www.chmodoplusr.com/
  24. Ok, where's the 5D and 6D? by vfwlkr · · Score: 2, Funny

    Heck, It was just too easy.. solved it in less than a minute.

    But I won't submit my entry into the hall of fame, otherwise the FBI will come looking for this "human computer" that can perform 10^30 trops, and exceeds export regulations :P

    --
    If you're not using firefox, you're not surfing the web, you're suffering it.
    ---
  25. 4D analogs for mathematics behind Rubik's cube? by kevinatilusa · · Score: 2, Interesting

    Another way of viewing the 3D Rubik's cube (for the mathematicians out there) is as a group on 6 generators, meaning that any reachable configuration could be gotten by merely repeating the same 6 operations in some order (I believe the 6 generators being rotating the two outer 3x3x1 squares 90 degrees clockwise along any of the 3 axes).

    Using this group, you could do various things like find the odds that a random arrangement of stickers is actually solvable (take the size of the group divided by the number of possible arrangements). Are there computations involving this for the 4D cube on the web anywhere?

  26. 1-D Rubik's Cube! by pyrote · · Score: 5, Funny

    I found this great 1-D Rubik's Cube, here, I can embed it here on this page:

    .

    The interface is simple: just look at it. Quantum mechnaics dictates that observing it changes it's state so just assume it's solved.

    Here is a magnified version:

    .

    If you still have trouble with it, my book will be coming out pretty soon.

    --
    THE WORLD IS GOING TO END!!!! eventually.
  27. Hofstadter's the best source for rubik weirdness by aziraphale · · Score: 5, Informative

    Douglas Hofstadter wrote a couple of excellent columns on Rubik's cube and variations on the theme for his Metamagical Themas column in Scientific American back in the eighties (you can buy his collected columns in this book). In particular, he talks about the various ways you can modify the basic 3x3x3 cube concept - for example, 4x4x4 cubes, 3x3x3 tetrahedra, alternate colour schemes, and so on (along the way, investigating the spark of inspiration that encourages people to try out different variations on a theme - something he refers to elsewhere in his books as 'conceptual slippage' - this hypercube would be a 'slip' along a different axis to those hofstadter explores - I'm sure he'd appreciate it :) ). He goes into plenty of detail about the mathematical approaches you can use to solving the cube, and some intriguing analogues to subatomic physics that crop up in the maths of rubik... anybody wanting an introduction to the kinds of topics the people behind this hypercube are exploring could do worse than to read those articles.

    There's also some excellent stuff in that book on Lisp, quantum mechanics, chaos theory, Alan Turing, and nuclear war... great selection of articles by an extremely interesting mind.

  28. Nope... by Jerf · · Score: 2, Informative

    Those are only descriptions of a hypercube that is projected onto a three-dimensional space or intersected with a three-dimensional space.

    A real hypercube looks like a hypercube, not a cube with lines or anything else... of course you need to be five-dimensional to perceive the whole thing at once.

    In general you need N+1 dimensions to perceive an N-dimensional object; for example, we can only fully perceive two dimensional objects all at once. Three dimensional objects we only see a particular side of, and generally only the surface. A four-dimensional being could potentially see the entire three dimensional object all at once, just as we perceive two-dimensional objects all at once. A two-dimensional being only sees one dimension around him, and can only see a certain side of, say, a square.

    Note that there's nothing magical about any of this, or particularly unbelievable; if you're having trouble believing it's this simple your mind has been corrupted by bad sci-fi, probably Star Trek.

  29. Oh my eyes! by swordgeek · · Score: 2, Interesting

    The colours, the horrible colours!

    Blue links and black test on a dark grey background. What was this guy thinking?

    --

    "People who do stupid things with hazardous materials often die." -- Jim Davidson on alt.folklore.urban
  30. Re:Lego Solution by JSR+$FDED · · Score: 2, Funny

    > It's not LEGOS, legos, LEGOS'.. ITS LEGO

    It's not "ITS", it's "IT'S".