How to Solve the Rubik's Cube

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search


This page describes one of many methods of solving the popular Rubik's Cube puzzle.

Contents

[edit] Notation

There are several notations; please refer to this notation guide.

Briefly:

  • There are six sides to the cube, presented as Front, Back, Left, Right, Up and Down. They are usually referred to by their one-letter abbreviations.
  • In the isometric diagrams below, where a corner points out at you, you see the F, R and U sides. The F faces to the left.
  • Movements are presented as one quarter rotation (90 degrees) of an external face per movement. This means that the center tile colors are not changed. In our diagrams, F is blue, R is red and U is yellow. The other three colors are typically orange opposite red, green opposite blue and white opposite yellow
  • Quarter-rotations of that face's layer default to clockwise. Counter-clockwise rotations are often referred to as "inverted" and indicated by ′, for instance, R′. (The ′ is commonly read as "prime", "apostrophe", "tick mark", "anti-clockwise", "anti" or "i" for inverted). Half-rotations (180 degrees) are indicated by the digit "2", for instance, R2 (meaning 2 quarter-rotations following the one-letter abbreviation).
  • In order to display what is happening on the sides of the other three colors, the cube will be rotated as a whole described as rotating along the x, y, z space axis, all pointing out of the page. x is R, y is U and z is F, but since this sort of move also changes the colors of the center-tiles, it is used sparingly.
B Rubiks B.svg D Rubiks D1.svg F Rubiks F 1.svg L Rubiks L.svg R Rubiks R.svg U Rubiks U.svg

[edit] Example solve

As an example, let's consider a complete solve. 25 move scrambles are used to mix up the cube. Our sample scramble is:

U B′ R2 D′ U′ R U2 B R′ B2 L2 R F2 R2 U2 R B U2 F2 L2 F2 D R B2 R2 (demo: scramble)

The solve is:

R′ B R D2 F2 L U′ F U R′ D R F D F′ F′ D′ F U2 R′ D′ R U2 U′ F′ D′ F U U B′ D′ B U′ y2 F D2 F2 R F R′ B′ D F D′ B D F′ F2 D M D2 M′ D F2 (54 moves, demo)

[edit] Step 1: Top edge pieces (cross)

A Rubik's cube with the top edges already solved.

The cube is assumed to be scrambled. The first thing to do is to choose a color, say white (it tends to stand out from the other colors on the cube). It's also a very good idea to always do a specific color first, since you will remember which colors are adjacent, which speeds things up considerably.

How to read cubie positions: a cubie is either a corner or an edge piece. The UL piece, for instance, is an edge piece because it has only two colors. It is the edge piece with a sticker on the U face and a sticker on the L face. Similarly, the URF piece is a corner (it has three stickers), and it has a sticker on the U, R and F faces. The piece that is referred to depends on the orientation of the cube, which is why most solutions tell you to keep the cube with a certain color on top and a certain color in front (looking at the center sticker, since that one never moves).

When talking about a white-other color edge, this is an edge with one white sticker and one other color, which on a standard cube could be red, orange, blue or green.

The first step is to form a cross on the top face of the cube. Orient the cube so that the white center piece is on top. The aim is to get the correct pieces in the UL, UB, UR and UF locations. If you started with white, these pieces will be colored white-red, white-orange, white-yellow and white-green (using a Rubik's brand cube). So, some of the following moves are needed (be sure to do those in the first step first):

  • If a white-other color edge piece is on the U face:
    • If white is in the U position, simply rotate the U face until the edge is lined up with its center. You should now see four stickers connected, e.g., white (center), white (edge), red (edge), red (center).
    • If the piece is flipped in the up layer, then place the edge in the front layer and perform F U′ R U (demo).
  • If the piece is in the middle slice of the cube (the second layer):
    • Hold the cube so that white is still on the U face and your piece is in the FR location. Find the spot where the piece should go. Rotate U until either F′ or R can be applied to move the piece in the correct spot, so that the white face will move to the top. Make sure that the order of the edges in the top layer will still be correct. On a Rubik's brand cube, the order would be blue, red, green, orange. After placing the piece in the top layer, you can turn the U face until all correctly placed edges connect to their centers (demo F, demo R). An alternative to this method is to move the white sticker to D face (if possible without disturbing the current cross pieces) and move on to the next step.
  • If the white is on the D face, simply rotate D (or D′) until the piece is directly underneath its center, and apply F2 (assuming the piece is at the FD position) to put it in the correct location (demo).
    • If the other color is on the D face (the flipped version of the previous state), keep the piece in the F layer. Rotate D so that the piece is in the RD position, and apply R F′ R′ (demo). (R′ is not needed if the UR piece has not been placed correctly yet.)

There should now be a white cross formed on the top of the cube. By now, it will be possible to think how the edge pieces are located relative to one another, which should speed things up.

[edit] Step 2: Top corner pieces

Rubik's cube with first layer solved.

The second step is to correctly position three of the U face corner pieces. The reason that only three and not four will be put into place is that this method uses a "working space" which greatly simplifies the later steps. There are three basic possibilities for putting corner pieces into place:

  • The piece is on the D slice, with the white side not on the D side. In this case, rotate the D face so that it is directly underneath the location that it should go to. Now, hold the cube so that the piece is in the DRF spot, and the intended location is the UFR spot.
    • If white is on the R side of the corner piece in DRF, apply R′ D′ R (demo).
    • If white is on the F side of the corner piece in DRF, apply F D F′ (demo).
  • The corner piece is on the D slice, but the white face is on the D side. Rotate the D face so that the corner piece is in the DRF spot, and the intended location is the URF spot.

    Now apply R′ D2 R D R′ D′ R (demo): Note that what is being done is R′ D2 R to move the white side off the bottom of the cube, so that one of the moves in the previous section can be used.

    Also note that equivalent to this is: F D2 F′ D′ F D F′ (demo): for left-handed people this might make things easier. A right-handed person would probably do the "R′ D2 R …" move, without thinking about it.

  • The corner piece in question is in the right spot but incorrectly rotated. Therefore, it must be rotated. Hold the cube so that it is in the URF location. Now,
    • If the white side is on the R face, apply R′ D′ R D R′ D′ R (demo).
    • If the white side is on the F face, apply F D F′ D′ F D F′ (demo).

So now one side should be done, except for one corner piece. This location will be used to swap corner pieces in and out, greatly simplifying later processes. The moves in the first two steps are really quite intuitive. After only a few repetitions, they will be simple and that's what you do.

[edit] Step 3: Middle edge pieces

Rubik's cube with first two layers solved.

This step involves correctly placing three of the four edge pieces on the "middle" layer of the cube.

For these moves hold the cube so that the white face is on the bottom. The only middle layer edge piece that is not to be positioned is the one right above the corner piece that was not positioned correctly in step 2.

Before you begin positioning edge pieces, you should rotate the middle layer so that all of the center pieces are correctly positioned.

First of all, make sure the white side is on the bottom, and the "empty" (i.e., incorrect) corner piece on the white side is in the DRF location. The middle layer edge pieces will all be positioned in this step, except for the FR one.

To move a piece into position, rotate the cube about its vertical axis, so that the intended location is the FR location. (For example, the FL piece is to be put in place. Rotate the cube a quarter turn counter-clockwise.) Now rotate the bottom slice so that the incorrect corner piece is in the DRF location. (So in the previous example – for the FL piece – first turn the cube, then apply D′.)

Now all is prepared for the move. The move to put the new edge piece into place can only be done if it is on the U slice. If it is, note which side is NOT on the U face. Either F′ or R will need to be applied, depending on the orientation of the edge piece to be moved. Now, apply U until the piece to be moved is in the UF or UR (depending on the previous move) location, and then F or R′, to get it back to normal.

Here is an example: Yellow is the F center. Orange is the R center. The Yellow-Orange edge piece is to be positioned, to the FR position. The D face has already been rotated so that the DRF location does not contain a white corner piece. The Yellow-Orange piece is in the UB location. The Orange is the U side, and Yellow is the B side. Thus, apply F′ U2 F (demo).

To continue, simply keep rotating D or D′ and moving the cube to set up the same position, with an "empty" corner in DRF, the intended location at RF, and the piece to move in the U slice. Note that in some cases the piece may already be in the correct location, but oriented incorrectly. In this case take it out first (i.e., put any edge piece with the color whose center is opposite white on the cube into that location) and then put it back in that spot. In other words, with the DRF corner "empty" and the offending piece in the FR spot, apply F′ U′ F U R U′ R′ (demo).

Now two thirds of the cube should be done, less two pieces: a middle layer edge piece and its adjacent corner piece, that appears to take a chunk out of the bottom (white) layer. Note that it is possible for the "empty" corner piece on the bottom layer to get solved by accident. If so, just ignore it, and pretend that it is unsolved.

[edit] Step 4: Solve remaining edge pieces

[edit] Solve first three remaining edge pieces (UF, UL, UB)

There are two basic parts to this step, as follows:

The goal of the whole step is to solve all of the 5 remaining edge pieces. The first part is to solve three of these (UF, UL, UB), and the second part is to solve the other two together.

First of all, hold the cube so that the "empty" edge piece is in the BR position, and thus the "empty" corner piece is in the RDB position. To do moves in this part, first of all move a piece into the BR location, then move it to the U face, to one of those UF, UL, or UB positions.

The move is as follows. First, optionally rotate U. Then, apply R′ or B. Then rotate U the desired amount. Then do R or B′ (to undo the first part of this move).

An example: Say the Blue-Yellow piece is in the BR location. Furthermore, Blue is the U color, and Yellow is the L color. The order would be: U (to put the UL location – the destination – in the right spot), B U′ B′.

However, when actually trying to solve the cube quickly, instead of applying U′ in the previous move, look to find the next edge piece that is required to put in the right location.

So rotate U until it is in the UB location, and then by applying B′ return the cube to a stable position. Then, rotate U some amount to get the UL piece (Blue-Yellow in the example) back to the right place.

There is a tremendous amount of freedom in this sequence of moves. In fact, there is no need to return the edge pieces to the correct spots in between repetitions of this move.

Simply realize how the pieces go with respect to one another, and then finally align them, when all three (UF, UL, UB) are done.

[edit] Remaining two edge pieces (BR, UR)

This is the only step that requires any actual memorization. The moves from the other steps should become very natural after a short time.

There are four possibilities. The remaining edge pieces are the BR piece and the UR piece. Do the following:

  • Luckily, the pieces are correct. Move to the next step.
  • The pieces are in the correct locations, but incorrectly oriented. Apply B U′ B′ U R′ U R U′ (demo).
  • Both edge pieces (BR and UR) have the same color on the R side of the piece, which is the same color as the R center. Apply U′ R′ U′ R U′ R′ U′ R U′ (demo).
  • The other case (the UR piece has the R color on its U side, and B color on its R side, and the BR piece has the U color on its R side, and the R color on its B side). Apply B U B′ U B U B′ U2 (demo).

To reduce memorization at the expense of some speed, two of these moves suffice. In other words, apply all three of these moves in any sequence to an all-edges correct cube, and the result will be an all-edges correct cube.

[edit] Step 5: Position corner pieces

This step will move the remaining 4 unsolved corner pieces to their correct positions, irrespective of orientation. The basic strategy is to move the "empty" corner piece to DRB and the corner piece to be moved to UFL. A move (L D2 L′) is used to swap the two corners (as well as temporarily jumble up the cube). Then U slice is rotated such that the correct position for the corner (now in DRB) is in UFL. Then the move (L D2 L′) is applied again to undo the cube jumbling as well as move the corner to the correct position.

This shouldn't need to be done more than 3 times (since there are only 4 corners to move and the last two will swap with each other to their correct positions).

This step can be a little confusing at first. First of all, make sure the DRB piece is that "empty" (unsolved … not missing!) corner piece.

Say the UFL piece is Blue-Yellow-Orange. But that piece should go in the URB position. Do the following moves: L D2 L′ (move the piece in question out of the way – to the DRB position), U2 (move the correct position to the UFL spot), L D2 L′ (move the piece in question back to the U slice), U2 (undo the U twist done earlier).

One thing to note when doing this move, make sure the original UFL piece does not contain the color of the bottom face (white in the ongoing example).

Also note that it is satisfactory to rotate the U face before the move so that a particular corner piece can be moved into the UFL position so that it can be worked on. The only (slight) difference will be a need to rotate U at the end to make up for that.

Note that these U-rotations should be very obvious. Simply line up the top-layer edge pieces with their respective centers.

[edit] Step 6: Orient corner pieces correctly

Corner pieces must be rotated in pairs – one clockwise and one counter-clockwise. If you combine two clockwise or counter-clockwise rotations, the rest of your cube will be compromised.

Find two incorrectly rotated corner pieces that are on the same slice. Hold the cube so that one of the pieces in the UFL position and the other is somewhere on the U slice.

  • To rotate a piece clockwise, apply L D2 L′ F′ D2 F (demo).
  • To rotate a piece counter-clockwise, apply F′ D2 F L D2 L′ (demo).

Note that after orienting the first corner piece, apply U until the other corner piece goes in the UFL location. When the second corner piece has been oriented, turn U to undo the previous twisting (this should be fairly obvious).

Here's an explicit example – the UFL piece needs rotating counter-clockwise, and the UFR piece needs rotating clockwise. The full sequence would be as follows: F′ D2 F L D2 L′ (orient UFL piece), U (position other corner), L D2 L′ F′ D2 F (orient original UFR piece), U′ (undoes rotation of U that was done earlier). (Demo.)

This pattern may need to be applied up to three times. Note that with this method only one clockwise and one counter-clockwise twist can be done; other methods twist 3 corners but have side-effects on edges.

If the two remaining corner pieces are diametrically opposed (e.g., at UFL and DRB), then apply R2 (in this case) to bring both of them onto the U slice. Then, do the sequence. Then apply R2 again to get to the original configuration (demo).

Congratulations, your cube should now be solved!

A solved Rubik's cube.

[edit] Rotating the center faces

Some cubes have multi-color designs on each face rather than a single color, in which case the orientation of the center faces is an issue. Usually, solving the cube with the center faces oriented correctly is possible, and the fastest method; but there exists a (very slow) way to rotate two of the center faces at a time without affecting the rest of the cube. If you want to rotate the F and R center faces (both clockwise), simply repeat F R a full 105 times after each other. If you want to rotate F clockwise and R counter-clockwise, do F R′, etc. This method can be very time-consuming, however, so planning ahead while solving the rest of the cube is preferred – that is, match the side center faces to the top edges, and hope the bottom turns out correctly. This less time-consuming sequence will rotate the top center face counter-clockwise (ccw) and the left center face clockwise (cw), each n quarter turns:

(L′ R F′B U′ D) Ln (D′ U B′ F R′ L) U′n

With different notation, the sequence (n = 1) can be abbreviated (demo):

(M E M′) U (M E′ M′) U′

The result is the same when combined with a sequence to rotate the top center face two quarter turns:

(U R L U2 R′ L′)2

Left and top center faces are turned one quarter in same sense.

[edit] Faster methods

While the above method may be good for a beginner, it is too slow to be used in speedcubing. The most popular method for speedcubers is very similar to the method above, except steps 2 and 3 are combined, and the last layer is solved in two steps instead of three. The inventor of this common method is Jessica Fridrich. With this method, speedcubers with good dexterity and memory can average under 20 seconds after a few months of hard practice. However, to learn the method you must learn 78 algorithms. There are methods just as fast that require far fewer algorithms to be memorized. Here is a brief synopsis of several popular speedcubing methods:

[edit] Layer by Layer methods

Fridrich Method: A very fast First 2 Layers (or F2L) method, start by solving a cross on one face, then proceeding to solve the First 2 Layers pairing up edge and corner combinations and putting them into their slot. This is followed by solving the Last Layer in two steps, first orienting all pieces (one color on the last layer), then permuting them (solving the ring around the last layer). The basic method has 78 algorithms (without the inverse of them), and is recognized as one of the fastest methods currently in use. [1]

F2L Alternatives: Methods that follow the same principle as Fridrich's method, but using different algorithms. Many of the algorithms are shared but there are a few differences, so there should be one to suit your fingers:

  • Bob Burton: [2]
  • Shotaro 'Macky' Makisumi: [3]
  • Speedcubing.com Collection: speedcubinglovers.com

ZB method: This method was developed independently by Ron van Bruchem and Zbigniew Zborowski in 2003. After solving the cross and three c/e pairs, the final F2L pair is solved while orienting LL edges. This is known as ZBF2L. The last layer can then be solved in one algorithm, known as ZBLL. The ultimate method requires several hundred algorithms. To date, no one has learned the entire method. Lars Vandenbergh's site has ZBF2L algorithms, used in his VH system. [4] ZBLL algorithms can be found on Doug Li's webpage. [5]

ZZ method: This method was created in 2006 by Zbigniew Zborowski, the co-creator of the ZB method. It has three basic steps: EOLine, F2L, and LL. [6] EOLine stands for Edge Orientation Line. The orientation of edges is defined as either good or bad. Good meaning the edge can be placed into the correct position with a combination of R, L, U, D, F2, or B2, moves. Bad meaning it would require an F, F′, B, or B′ move to be moved into its correct position. Any F, F′, B, or B′ move will cause the four edges on that slice to change from its current state, good or bad, to the opposite state. The Line portion of EOLine is forming a line on the bottom of the cube that consists of the DB edge and the DF edge in their correct positions. The next step is F2L, First 2 Layers. This process is similar to the F2L of the other three Layer By Layer methods with two variations. The first being that blocking building techniques similar to those in the Petrus, Roux, and Heise methods can be used to solve the c/e pairs. The second variation is the ability to solve the entire F2L using only R, U, and L moves. This allows for very quick solving of F2L as it does not require cube rotation. The final step of the ZZ method is LL, Last Layer, and it can be broken into multiple steps or maintained as one depending on the algorithms used. There are two main approaches to this method OLL [7] and PLL [8], Orientation of LL and Permutation of LL, and COLL [9] and EPLL [10], Corner OLL and Edge PLL. The first, OLL and PLL, is to use one of 7 algorithms to solve the top layer (OLL) and then permute the the edge and corners into their correct positions (PLL), this requires 21 algorithms. The total algorithms required for the first approach of solving LL is 28. The second approach to solving LL is to solve the top and the corners in one algorithm (COLL) and then solve the edges (EPLL). COLL requires 40 algorithms and EPLL requires 4, making the total 44 algorithms. The second approach is faster due the ease of recognition and speed of execution of EPLL.

VH method: Created by Lars Vandenbergh and Dan Harris, as a stepping stone from Fridrich to ZB. First, F2L without one c/e-pair is solved with Fridrich or some other method. Then the last pair is paired up, but not inserted. Then it's inserted to F2L and LL edges are oriented in one go. Then, using COLL, corners of LL are solved while preserving edge orientation. Then edges are permuted. [11]

[edit] Block methods

Petrus System: Created by Lars Petrus. One of the shortest methods in terms of face turns per solve, the Petrus method is often used in fewest moves contests. Petrus reasoned that as you construct layers, further organization of the cube's remaining pieces is restricted by what you have already done. In order for a layer-based solution to continue after the first layer had been constructed, the solved portion of the cube would have to be temporarily disassembled while the desired moves were made, then reassembled afterward. Petrus sought to get around this quagmire by solving the cube outwards from one corner, leaving him with unrestricted movement on several sides of the cube as he progressed. There are not as many algorithms to learn compared to the other F2L methods, but it takes a lot of dedication to master. The basis of the method is to create a 2 × 2 × 3 block on the cube, then proceed to solve a 3 × 3 × 2 block, but also flipping the edges on the Last Layer. Then the Last Layer is solved in two steps, first corners and then edges. [12]

Heise method: Created by Ryan Heise, this method doesn't require any algorithms. First, one inner square and three outer squares are built intuitively. Then they are placed correctly while orienting remaining edges. After that you create two c/e-pairs, and solve the remaining edges. The last 3 corners are solved using a commutator. [13]

Gilles Roux Method: Another unique method, but works in blocks like the Petrus method. You start by solving a 1 × 2 × 3 block and then solve another 1 × 2 × 3 block on the other side of the cube. Next you solve the last 4 corners and finally the edges and centers. Has only 24 algorithms to learn. [14]

[edit] Corners first methods

Waterman Method: Created by Mark Waterman. Advanced corners first method, with about 90 algorithms to learn. Solve a face on L, do the corners on R and then solve the edges. An extremely fast method. [15]

Jelinek Method: Created by Josef Jelinek. This method is very similar to Waterman's. [16]

Create a solved 4 × 4 × 4 cube on one corner and rotate the remaining blocks (it may take a while but you will eventually solve it).

[edit] Other solution pages

Here are some of the more popular solution pages listed. All are different, although they mostly use a similar layer by layer method. Usually you will need java to see the animations used.

Using animations:

Using pictures:

using video

text only

[edit] Alternative methods

[edit] Solving Programs

[edit] Background on math

[edit] Related puzzles