Sunday, April 7, 2024

Robbie's 5-Cube Tutorial

The 3D puzzle craze continues with the 5x5x5 cube, a.k.a. the 5-cube, a.k.a. the "Professor's Cube," which was invented by someone named Udo Krell in 1981. With five layers moving in each of six directions, it could (in theory) be scrambled into approximately 2.82x1074 possible configurations. Significantly, the number of atoms in the observable universe is estimated to be between 1078 and 1082. And yet the world record for the fastest single solve is 32.08 seconds, times 10 to the power of nothing. Aren't people amazing?

It's just like the 4-cube, except that it has 5 rows and columns of cubies on each side, and so the centers you need to build are 3x3 squares, and the edges you need to "pair" have three pieces (you can still bring an edge together in a single move, though), and there could be a new parity case that you'd never see on the 4-cube, and oh yes by the way that never-fails method for solving the last two edges on the 4-cube now never works, instead! And there are other examples of what we have been calling "new wrinkles," which is why I downloaded and keep on my phone a two-page diagram of "L2E" (last two edges) cases with the steps to solve them, as well as "L2C" diagrams for the last two centers. I'm going to try to make that step simpler in the tutorial below. But I won't deny that having those sheets to cheat from has been helpful, for example, as a starting point to deduce moves that could apply to L2C cases on the 7-cube.

If you've gotten the impression that the 5-cube is a little more trouble to solve than the 4-, you've read me right. But it isn't so much more trouble that I haven't worked on it a lot. I've enjoyed my time with it and I've come to appreciate the little bit of extra time and effort that it takes to build those centers and edges. And after all, it follows pretty much the same solve pattern as the 4-cube, only with 1x3 bars now becoming building blocks for 3x3 centers, etc.

Let's start with a scramble, using the 5x5x5 scramble generator on that website I've linked to more than once, so you should have bookmarked it by now.
STEP ONE: Start working on the white center, putting together 1x3 bars one at a time and dialing them onto the same side.
You may experience some frustration in this before you learn to keep your existing white bars out of the way while matching up new ones; this can be as simple as rotating the existing edge to a different orientation. Bask in your sense of accomplishment when this first step is done.
You know by now what STEP TWO is. Enjoy this picture illustrating the strategy of chasing one yellow bar with another, after which you'll rotate the following bar and pull the leading one back into place, on the side opposite to the white center.
I won't bore you with pictures of the whole process. The only new thing about it is that you have to do three bars, and sometimes it's a little tricky to push a yellow piece off the top layer to join up with two other yellow pieces waiting for it to join their bar. Think strategically before you make a move so you don't end up breaking an existing white or yellow bar.

STEP THREE is, again, solving the other four centers. Here, to speed us a long, is just a picture of the last two centers (L2C) with just one piece to be swapped between each of them.
In this particular case, purely for example, there's one orange piece in a corner of the green center and vice versa. I put the green center on top and the orange center at front with the problem pieces at the lower right and upper right, respectively. Then I did the moves Rw U Rw' U Lw F2 Lw'. Here's that algorithm round about that Lw move—perhaps you can see how nearly intuitive it is, becoming the kind of move you'll do pretty much every time you build centers.
And the result:
STEP FOUR is, again, the edge "pairing," only with three edge pieces coming together.
Try to avoid cases of what we're going to call Edge Parity, where the middle of the three edge pieces is flipped the wrong way, by rotating it up, around and down on the other side of the other two edges to bring it in from the opposite direction. If you can't (because, say, two edge pieces are already paired together and one of them is flipped the wrong way), don't worry about it; we'll deal with that issue later. Anyway, once the three edge pieces are lined up, do what you know to do from the 4-cube: Rotate the edge up and out of the way, and rotate an unsolved edge into its place.
Then, don't forget to fix the centers that were broken when you put your edge together.
STEP FIVE is, again, the L2E (last two edges) and I'm afraid the rumor that I started is true: Uw' + edge flipping algorithm + Uw no longer works like it did on the 4-cube. I recommend the "5x5 L2E Algorithms" page that I downloaded from here, and its corresponding cheat sheet for L2C algorithms as well. They live in my phone's otherwise uncluttered downloads folder in case I get stuck. I don't worry too much about finding exactly the right algorithm for which way each piece is flipped, because there's a way to fix an Edge Parity error if you get one. During my sample solve, I was confronted with this case:
The steps I followed to swap those two middle edge pieces, at front and back on the top layer, were Rw2 F2 U2 Rw2 U2 F2 Rw2, which is probably one of two or three L2E formulas worth getting down by heart. I'll spare you a picture of the outcome. Take my word for it, this formula solved the last two edges for me. Look up other cases for yourself; it's what I do.

STEP SIX: Before we move on to the old "Make Like It's a 3-Cube" step, check your edges. There's a chance that you've got some of those dreaded Edge Parity cases, where the middle piece of an edge is flipped the wrong way around.
Have you been practicing the OLL Parity algorithm that I gave you for the 4-cube? Good. Simply put the problem edge at top front and use that. I actually originally had a different algorithm for this (or maybe it went the other way around), but I found out by accident that the same algorithm works for both parity errors and that saved me having to memorize two complicated formulas. In case you've lost it, it's r' U2 l F2 l' F2 r2 U2 r U2 r' U2 F2 r2 F2, where (once again) those lower-case letters are pronounced "r-slice prime, l-sliece," etc., and mean moving the next layer in from the outer layer of the indicated side. While I didn't see fit to shoot a picture of this algorithm in action, here's what you see when you complete that final F2 move—which doesn't do anything, really, except bring the repaired edge back up for you to gaze upon with a feeling of proud accomplishment.
STEP SEVEN: Moving only the outer layers, do the eight-step cha-cha for solving a 3-cube, applying the OLL and/or PLL parity algorithms from the 4-cube if and as needed. I probably don't need to show these to you again, but here they are anyway. Lo, the Daisy:
and the white cross with sox:
and the bottom layer solved:
After solving the side edges, here are the unsolved sides of the yellow cross at 3 and 6 o'clock—though, remember, you won't always get this configuration. This just happened to be an ideal case.
So ideal, in fact, that when I completed the "F U R U' R' F'" step, I got to the PLL move (top corners) without having to do OLL (getting the whole top layer yellow-side-up). Remember to put the layer, if any, with matching top corners (like orange in this picture) at the back before doing R' F R' B2 R F' R' B2 R2 U'.
And in another happy bonus, upon completing the OLL step, I had solved the cube without having to do the usual last step, and with none of those tricky parity cases from the 4x4x4. So that's that!
I may have given the impression that the 5-cube irritates me a bit. I actually had that impression, myself, when I was getting used to it. But I didn't give up. I kept trying and I got better at it, which I think is a net benefit for my reasoning skills and all those other areas that I think practicing these puzzles is good for. (Reread my 3-cube tutorial if you've forgotten.) I hardly ever go anywhere for an overnight stay without bringing this cube, along with a handful of others. While I readily admit that the 4-cube is special to me on a level only approached by the Megaminx, if at all—we'll get to that, don't worry—the added challenge of the 5-cube is sometimes just the mental stimulation that I need. And when I know I'm going to have hours to blow with a gobblebox yakking in my general direction (TV doesn't hold that much interest for me), I take ever growing satisfaction from scrambling all my cubes—from 2 to 7 now—and going down the line, solving one after another. I've even been working on trying to choose whatever puzzle will fill the time I need to fill, like yesterday when I played with my 7-cube during a long car ride and almost had it finished by the end of the trip. I'll never be a speed cuber, but I'll get faster at it after I've had more time with it. And for me, it's not about speed; it's about enjoying the puzzle and getting lost in the patterns.

Friday, April 5, 2024

Robbie's 4-Cube Tutorial

This will be one of the longer entries in this group of cube puzzle tutorials. One reason is that things start to happen when you add an additional layer of cubies beyond the original 3x3x3 cube. Some additional notation comes into play. Also, the solution starts with a whole series of steps that weren't part of the 3-cube solution—then settles into the eight-step solution for the 3-cube, only with a couple of added wrinkles. Parity cases can arise that you never see with the 3-cube, requiring (in one case) a rather long and complicated algorithm to correct the error; and one or both of them hits about half the time. So get practicing on these new algorithms! The sooner mastered, the more fun cubes 4x4x4 and above will be. Believe me; my favorite, go-to, comfort cube at present is the 4x4x4. By the way, notice this fine example of a stickerless cube. Stickerless totally rules!

Originally marketed as "Rubik's Revenge," and more recently as the Master Cube, the 4-cube was invented in 1981 by Sebestény Péter. I'm not sure but I think that's a Hungarian name, which means the surname might come first. With 16 cubies per side, the Master has no fixed center, as all four layers on each side can rotate independently. This makes possible some 7.4x1045 different arrangements of the puzzle. Whatever you call that number, rounded to two significant digits, it's a 74 followed by 44 zeros. Let that sink in. But that doesn't mean it takes bazillions of years to solve it. No indeed; the current world record for the fastest single solve, as I write this, is 16.79 seconds. I say, seconds.

Here are examples of some the additional terminology, notation and moves besides what I introduced in my 3-cube tutorial. A caveat is in order; every internet explainer, tutorial and puzzle scrambler seems to use their own variants of this notation, and I'm not pretending that my version is identical with what they use for sanctioned competition, etc. In different corners of the internet, "slice" moves and "wide" moves seem to refer to the same thing. But in my internal monologue, as I repeat to myself the moves I'm making while I'm solving these puzzles, a "slice" move is when you move one of the inside layers, like the second layer from the right, all by itself while holding the outside layer next to it, and a "wide" move is when you move both layers together. On this puzzle scrambler, for cube sizes of 4x4x4 and up, letter notation followed by a subscript 2, such as R2, U2, etc. could mean either a slice move or a wide move; I'm frankly not sure which. I suspect it's intended to mean a wide move because I always go the slice route instead (I just feel it that way), but when I compare my completed scramble to the picture, it doesn't match. This discrepancy doesn't bother me much because I don't plan on ever entering a sanctioned competition, where you have to get the scramble just so. All I care about is starting from a random position. But we're in the weeds; let's get back to the path.

For the purposes of my tutorial and the algorithms presented from here on, let's call the moves where an inner layer turns by itself "slice" and the moves where two adjacent layers move as one "wide." Now for the notation. Outside that puzzle scrambler, most everybody seems to use either a capital or lowercase dubya (W or w) to symbolize a wide move. So this would be either Rw or Lw:
Fw or Bw:
Uw or Dw:
And don't forget that there can be a prime sign ('), meaning counterclockwise, or a big 2, meaning a half-turn, after any of these. Say Fw as "F wide," Lw' as "L-wide prime," etc.

Meanwhile, the notation I like for the slice moves is whatever lowercase letter relates to the side of the cube whose inside layer you're moving. Again, allowing for prime signs and big 2s, behold r:
and l (that's an ell, not a one):
and f:
and b:
and u:
and d:
Say rw as "R-slice wide," u' as "U-slice prime," etc. Is that everybody? I hope so.

SKIP THIS PARAGRAPH, I IMPLORE YOU. Actually, there is a notation for moving the center layers on all three planes, but I find it so confusing that every time I need to know which one does what, I have to look them up. And I don't use them much anyway. Mostly they're for advanced patterns and a few special-case algorithms that come up but rarely. But if you're looking for them, here they are for the record: M, meaning middle, is the middle layer between R and L and, unmodified by a prime sign, it moves in the direction of an L turn (that's right; I told you this was going to be confusing). E, meaning equatorial, circles the waist of the cube between U and D and turns in the same direction as F. S, meaning standing, is the middle layer between F and B and it turns like F. Before you ask how there can be a middle layer when there is an even number of layers, please consider that you can turn all the inner layers as a group, while holding the outer layers in place. Got it? Anyway, there are a few people in history whose shins, if I could go back in time, I would kick; one of them is the yutz who decided that x and M would go in opposite directions.

There's one more point I want to drive home before you get too deep in trying to solve this puzzle. I mentioned before that, unlike the 3-cube, the 4-cube has no fixed centers. So, it's up to you to make sure you not only solve each side, but you solve them in the correct order going around the cube. Since the solution starts with building 2x2 centers on all six sides of the cube, it's possible, but not disastrous, to get them mixed around. I mean, it's disastrous if you don't notice they're out of alignment, because then you'll never completely solve the cube. But it's not too hard to fix. Relax and look at the next two pictures, which illustrate the way the centers should appear in relation to each other.
As I hinted in the 2-cube tutorial, with white and yellow opposite each other and white to your left, the other four sides in ascending order should spell out B-O-G-R (blue, orange, green, red). If your cube has a non-standard color sceme, make a note of it before you scramble.

So, now let's scramble this sucker.
STEP ONE: Solve the first center. By this I mean, create a 2x2, solid-color square in the center of one side. You're free to make that whatever color you like, but I always start with white. This step and the next few after it are somewhat intuitive; another way of saying, use your common sense. But if you want a helpful tip, put the white center together one 1x2 bar ...
at a time.
STEP TWO: Solve the opposite center. Assuming white was the first center, that means yellow. Keep doing that 1x2 bar thing, which isn't hard when you realize you can rotate each side to put the yellow pieces where you need them to be. The trick is getting both yellow bars on the side opposite to white without busting up the white center you so carefully built. There are a few ways you can do this, depending on the case you find yourself in. First, if one of your yellow bars comes together on a side adjacent to white, put white at the bottom.
Then, twist the side with the yellow bar so it points up and down; move that side up to the top (either a wide or a slice move, your choice), give the top layer a half turn, and twist the same side back down. This'll bring a white bar up from the bottom, then put it back while leaving the yellow bar on top.
Second, when you've built the second yellow bar on one of the sides and you want to put it up on top with the first, line it up under the first one, then do a similar up-twist-down move. This will put the second bar at the top while pushing the first one out of the way and, at the same time, pulling a white bar up from the bottom; then, after the twist, it will bring both bars back into place and complete the yellow side.
There's a possible third case, when in order to build a yellow bar, you have to push a yellow piece off the top layer alongside another yellow piece. When this happens, just twist that side to line up the yellow bar with the slot it needs to fill, and turn that side up to put it in place. This will also restore a white bar that got pushed up on the opposite side of the cube when you pushed that single yellow piece off the top. Either way, the result is a solved yellow side:
STEP THREE: Solve the other four centers. There are algorithms but you shouldn't need them. Just apply the methods used in steps 1 and 2 to line up 1x2 bars of each color and put them together into 2x2 squares. I've seen some of those algorithms with M in them suggested for swapping centers that come together in the wrong order. You don't need them. Just keep applying the principle of letting two bars of the same color chase each other around the cube on adjacent sides, and strategically turning one of them into the opposite lane and putting them side-by-side again where they belong. You'll experience some trial and error as you learn this, but once you've got it down, fun with the 4-cube can properly begin. Here are some pictures from representative moments along the way from putting together one bar ...
to seeing the centers start coming together ...
to all the centers being in place.
STEP FOUR: Edge pairing. Now the 4-cube presents another new wrinkle. Instead of having edge pieces ready to go for you like the 3-cube, the 4-cube expects you to build your own edges by pairing up matching colors in 1x2 bars, all the way around the cube. Like, 12 of them. First you have to find the matching pieces and put them opposite each other on adjacent layers of the cube, which may seem tricky enough when you're starting out. In my early days with the 4-cube, I spent a lot of time doing an "edge-flipping algorithm" so matching edge pieces were in the correct position to be paired. And while it is a handy algorithm to know, I find I don't need it so much for its original, edge-flipping purpose. If you want to know, and you should, that algorithm (with the edge to be flipped at front right) is R U R' F R' F' R. But you'll stop using it to flip edges, for the most part, when you realize that you can accomplish the same thing by dialing the upside-down edge up to the top, giving the top layer a half turn, and bringing the same edge down on the opposite side of the cube. None of these maneuvers mess up anything you've already solved, and it lines up the two matching pieces so you can do what this step is really about. First, do a wide move (Uw or Uw', for example) to bring the matching edge pieces together.
Then, twist that side up or down to put that edge on the top or bottom layer; rotate that layer to put an unsolved edge in its place; twist that side back to where your newly matched edge pair was a moment ago; and undo that wide move to heal the center that you had to break in order to pair up that edge. Strategically, you will sometimes need to plan a move or two ahead, making sure there's an unsolved edge on the top or bottom layer to swap with your next, newly paired edge.

STEP FIVE: Last two edges. Obviously, you can't simply pair up the the last two edge pieces, twist them out of the way, put an unsolved edge in their place and restore your centers, because there aren't any unsolved edges left at this point.
Not to worry, there's a move that solves this every time—for the 4-cube anyway. (Ominous foreshadowing...) So, when you get down to the last two colors that have to be paired to complete all your edges, and you haven't lucked out and solved them by accident when you paired the third-to-last edge, do this: Turn the outer layers so the two unsolved edges are on opposite sides (left and right) of front, and the matching pieces for each pair are on the same level. You read that right; this isn't like those other times where they had to be on opposite layers. And I swear you can do this without the edge flipping algorithm, but you do you. Now do a Uw' turn (i.e. twist the top two layers 1/4 turn counterclockwise).
Then do that edge-flip algorithm you're so glad you memorized even though you don't really need it for that purpose. What is that algorithm again? R U R' F R' F' R. Learn it, live it, love it. Oh, and then undo that wide move with a Uw. Voila! Those last two edges are paired.

STEP SIX: Make like a 3-cube. Only move the outer layers from here on, preserving the 2x2 centers as if they were the fixed center pieces of a 3x3x3. You'll see all the familiar old landmarks, like the Daisy ...
and the white cross ...
The white corners ...
eventually leading to the solved bottom layer (here on its side) ...
and the side edges step ...
The 9 o'clock sign (where I think you can begin to see what I meant about 3 and 6 being maybe more important to look at than 9 and 12) ...
and the yellow cross ...
and I swear I didn't forget a step, but my sample solve allowed me to skip directly from Orient Last Layer (OLL) to Permute Last Layer (PLL) ...
and here's the last move of the last step as it all comes together:
Awesome, huh? Well, I said a ways back that there were going to be some extra wrinkles. Parity problems that don't arise on a 3-cube but that start to manifest on each higher size. The two that kick in at 4x4x4 and above are the OLL and PLL parity errors, part of the reason why I've been trying to acquaint you with those terms as we go along.

OLL Parity is this thing that can happen at the end of the Yellow Cross step (F U R U' R' F', remember), when for some reason, the last yellow edge refuses to flip yellow-side-up, no matter what you do.
No moves you learned for the 3-cube will fix this, because it can't happen on a 3-cube. But for 4 and above, it happens a goodly percentage of the time. I have good news and bad news. The goood news is there's an algorithm for this and it works a treat. In fact, you can solve more than one issue with it (more on that when we get to the 5-cube). The bad news is, it's a bitch. It's going to take serious effort to memorize this and, until you've got the moves well and truly locked in, you're going to mess it up (and with it, the cube) about every second or third time you try it. So, get practicing. The algorithm goes like this: With the problem edge at top and front, do r' U2 - l F2 l' F2 - r2 U2 r U2 r' U2 - F2 r2 F2. Got that? And remember, that lowercase notation stands for slice moves. If you do it right, you'll come out of this maneuver with the yellow cross on top and you can move on the PLL step. But that's when you may encounter ...

PLL Parity, where you've just gotten all the top corners aligned, but the top edges won't rotate into place no matter what you do. You never had this problem on the 3x3 either. Either it's because the top edges are out of order, so you can keep doing the final step but they just spin around and around, or it's because you have an impossible number of completely solved sides. You should only have one side, at most, fully solved before you complete the final step. But on the 4-cube, you sometimes find yourself with two solved sides, and somehow this is incompatible with solving the puzzle ... unless you do this (and, thank God, it's a simple and fun algorithm): Putting one of the unsolved sides at front, do r2 U2 r2 Uw2 r2 u2. You read that right: this algorithm has an outer layer move, a wide move and a slice move, all on the top layer. So much fun!
That's the 4-cube. I may have struggled with it a bit, at first, but that was mainly because that OLL parity algorithm is heck to memorize and execute without a mistake until you've practiced it a bazillion times. This was the first 3D puzzle I acquired and learned to solve after the 3-cube, where it all started. I actually bought the 5-cube at the same time and started working on it almost immediately, as well. But even as both puzzles have become like second nature to me, this is still the one I feel I can relax into. It's more challenging than the 3-cube to a degree that makes me enjoy it more, and easier than the 5-cube to a degree that makes me think of it as my comfort cube. Everything I love about cubing is present in this particular puzzle, and sticky issues that irritate me just a bit don't kick in until the 5x5x5. It has a couple of algorithms you need to learn by rote, but it also has more reasoning-based, intuitive steps than the smaller cubes. It's the sweet spot of cubing. And the specific model I bought also happens to be a nice, smooth-turning, sticklerless speed cube that, even though I'm not a speedster, just feels good in my hands. But whatever. If you've got the 3-cube down, think about leveling up.

In summary:
  1. Build white center (critical thinking)
  2. Build yellow center (ditto)
  3. Build BOGR centers (ditto)
  4. Pair edges (ditto)
  5. Pair last two edges (Uw' R U R' F R' F' R Uw)
  6. Solve like a 3-cube
  7. OLL parity: r' U2 l F2 l' F2 r2 U2 r U2 r' U2 F2 r2 F2
  8. PLL parity: r2 U2 r2 Uw2 r2 u2