Objective
The goal of this project is to devise an algorithm for solving Rubik's cube, using three sets of moves that each accomplish a specific function.
Introduction
Rubik's cube is an interesting 3-dimensional puzzle that challenges your spatial imagination and memory. The goal is to arrange the cube so that each side is a solid color, as shown in Figure 1.
![]() |
| Figure 1. Diagram of a solved Rubik's cube. The six sides are named in pairs—up-down, front-back, and left-right. The up (U), front (F), and right (R) sides are visible. The remaining sides—left (L), back (B), and down (D)—are shown by the projected images. |
Figure 1 also shows the labels we will be using when referring to sides of the cube. The six sides are named in pairs—up-down, front-back, and left-right. To refer to a specific side, we'll use the one-letter abbreviations shown in Figure 1 (U, D, F, B, L, R).
The cube is built in such a way that each side, row, and column can rotate (see Figure 2). With a few turns, the colors can be thoroughly mixed up. How can you get all of the squares back to their original positions? It's quite a puzzle to get the colors arranged properly again!
![]() |
| Figure 2. Diagram of the core of a Rubik's cube. The core enables each side, row, and column of the cube to rotate. |
In this project you'll learn three sequences of moves that accomplish specific rearrangements of the squares on the cube. Can you figure out how to use these three move sequences to solve the cube?
Before we present the moves, we need to introduce some more terminology, so that we can distinguish individual pieces on the cube. Rubik's cube is made of three different types of pieces. We will refer to them as center, corner, and edge pieces. The puzzle has six center pieces, one in the middle of each face. Each center piece has only one visible face. There are eight corner pieces on the puzzle. Each corner piece has three visible faces. The remaining twelve pieces are edge pieces, occupying the middle position along each edge of the cube. Each edge piece has two visible faces.
| Center Piece | Corner Piece | Edge Piece | |
| location | ![]() |
![]() |
![]() |
| # in entire cube | 6 | 8 | 12 |
| visible faces | 1 | 3 | 2 |
Now we're almost ready to present the move sequences. Remember that each move sequence accomplishes a specific rearrangement of the pieces in the cube. For each move sequence, we'll describe that specific rearrangement both with a diagram and with words. Then we'll describe the move sequence in words and in a shorthand notation. You'll soon find that the shorthand makes it easier to execute the moves quickly and memorize them.
The shorthand notation is easy to learn. There are just five rules you need to know.
Move Sequence #1
The first exchanges the positions of three edge pieces at once, altering nothing else. The three affected edge pieces are all on the center column: the bottom and top edge on the left side, and the opposite edge on the top side (see Figure 5). Repeating this sequence three times will restore the cube to its original configuration.
![]() |
| Figure 5. Move sequence #1: exchanging three consecutive edge pieces in the center 'slice' of the cube (yellow arrows at left). No other pieces are altered by this move sequence. Repeating this sequence three times restores the cube to its original configuration. |
|
Detailed move explanation:
Shorthand: L R' F2 L' R U2 |
The Java applet above illustrates move sequence #1. Note: if you see a gray box with a red "X" in the corner, you will need to update your Java Runtime Environment in order to run this applet. Go to http://www.java.com to get the latest version. |
Move Sequence #2
The second sequence 'cycles' five corner pieces: the four corners of the front face, plus the upper right corner. It also exchanges the positions of three the front side edge pieces, as shown in Figure 4.
![]() |
| Figure 4. Move sequence #2: 'cycling' the four corner pieces of the front face. This sequence changes the positions of five corner pieces (yellow arrows) and three edge pieces (blue arrows). Compare the before and after pictures carefully. Repeating this sequence fifteen times restores the cube to it's original position. |
|
Detailed move explanation:
Shorthand: U F2 U' F U F U' F2 |
The Java applet above illustrates move sequence #2. |
Move Sequence #3
The third sequence 'flips' each of two opposite edge pieces in the upper layer without altering anything else on the cube, as shown in Figure 5. The two edge pieces wind up back in their original places, but with the original colors 'flipped.' Compare the before and after views to verify that this is true. Note that repeating this sequence twice restores the cube to the original position.
![]() |
| Figure 5. Move sequence #3: 'flipping' two opposite edge pieces (marked by *'s in the 'before' view). The effect of this sequence is to 'flip' each of these two opposite edge pieces, without altering anything else. The two pieces will be in their original positions, but with colors reversed. Repeating this sequence restores the cube to the original position. |
|
Detailed move explanation:
Shorthand: L R' F' L R' D' L R' B2 L' R D' L' R F' L' R U2 |
The Java applet above illustrates move sequence #3. |
Note: move sequence #3 is much easier to remember (and can be done more quickly) if you move the center column of the front side (a center 'slice' of the cube) rather than moving the left and right sides. Try this out with your own cube and verify that it does the same thing. (Unfortunately, the Java applet used for the animated diagrams does not provide for movements of center slices, so we can't show you this alternate sequence with an animated diagram.) Here is the move sequence in shorthand, using center slice moves (Fc means to rotate the center slice 'up' and Fc' means to rotate the center slice 'down'):
Alternate shorthand: [Fc U'] 3 times, then [U' Fc'] 3 times, then U2.
Can you figure out how to solve Rubik's cube using only these three sequences of moves?
Terms, Concepts and Questions to Start Background Research
To do this project, you should do research that enables you to understand the following terms and concepts:
Questions
Bibliography
Materials and Equipment
To do this experiment you will need the following materials and equipment:
Experimental Procedure
Variations
Credits
Andrew Olson, Ph.D., Science Buddies
Sources
This project is based on:
Last edit date: 2007-02-13 22:00:00
Science Buddies gratefully acknowledges its Presenting Sponsor
Science Fair Project Home
Our Sponsors
About Us
Volunteer
Donate
Contact Us
Online Store
Privacy Policy
Image Credits
Site Map
Science Fair Project Ideas
Science Fair Project Guide
Ask an Expert
Teacher Resources
Science Fair Competitions
Copyright © 2002-2008 Kenneth Lafferty Hess Family Charitable Foundation. All rights reserved.
Reproduction of material from this website without written permission is strictly prohibited.
Use of this site constitutes acceptance of our
Terms and Conditions of Fair Use.