Related Links

  • Science Fair Project Guide

Project Summary

Difficulty  9  –  10 
Time required Long (a couple of weeks)
Prerequisites To do this project you should enjoy solving puzzles and thinking in three dimensions.
Material Availability Readily available
Cost Very Low (under $20)
Safety No issues

Donate to Science Buddies

Sponsor

Sponsored by a generous grant from Motorola

Abstract

If you're the kind of person who has taken apart your Rubik's cube in order to grease the inside parts so it will move more smoothly, this could be a great project for you. We'll show you three sets of move sequences that accomplish specific rearrangements of the cube. Can you devise a way to solve the cube using only these three move sequences?

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.

diagram of Rubik's cube, showing front, left and top sides
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!

diagram showing the core of the Rubik's cube
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
location of center pieces
location of corner pieces
location of edge pieces
# 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.

  1. When a side is rotated clockwise one quarter turn, the shorthand notation for the move is simply the letter of the side. For example, if you're supposed to rotate the right side one quarter turn clockwise, the shorthand would be R.
  2. When a side is rotated counterclockwise one quarter turn, the shorthand notation for the move is the letter + an apostrophe ('). For example, if you're supposed to rotate the right side counterclockwise one quarter turn, the shorthand would be R'.
  3. When a side is rotated twice (direction does not matter in this case), the shorthand notation for the move is the letter + 2. For example, if you're supposed to rotate the front side twice, the shorthand would be F2.
  4. For some of the moves, you will be moving only the center column of a side. For a clockwise rotation of one quarter turn, the shorthand is the letter of the side, followed by 'c' (for center column). For example, if you're supposed to rotate the center column of the front side one quarter turn clockwise, the shorthand would be Fc.
  5. Finally, if you're supposed to rotate the center column of a side counterclockwise one turn, just add an apostrophe ('). For example, if you're supposed to rotate the center column of the front side one quarter turn counterclockwise, the shorthand would be Fc'.

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.
move sequence 3, before and after 'flipping' three consecutive edge pieces
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:

  1. Hold the cube so that the edge pieces are arranged in the center slice as shown in Figure 5. (The fourth edge is in the bottom plane, away from you on the cube, and will not be altered by this sequence.)
  2. Rotate the left side clockwise.
  3. Rotate the right side counterclockwise.
  4. Rotate the front side twice.
  5. Rotate the left side counterclockwise.
  6. Rotate the right side clockwise.
  7. Rotate the upper side twice.

Shorthand: L R' F2 L' R U2

The Java applet above illustrates move sequence #1. Use the VCR-style buttons to navigate through the sequence.  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.

move sequence 2, before and after 'flipping' three corner pieces
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:

  1. Hold the cube so that the corners you wish to rotate are on the front side (as shown above). The corner which you do not wish to rotate should be at the upper right of the front side.
  2. Rotate the upper side clockwise.
  3. Rotate the front side clockwise twice.
  4. Rotate the upper side counterclockwise.
  5. Rotate the front side clockwise.
  6. Rotate the upper side clockwise.
  7. Rotate the front side clockwise.
  8. Rotate the upper side counterclockwise.
  9. Rotate the front side clockwise twice.

Shorthand: U F2 U' F U F U' F2

The Java applet above illustrates move sequence #2. Use the VCR-style buttons to navigate through the sequence.

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.

move sequence 1, before and after 'flipping' an edge piece
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:

  1. Hold the cube as shown, so that the edge pieces you want to 'flip' are on the upper side, in the front and back positions.
  2. Rotate the center column of the front side clockwise (up).
  3. Rotate the upper side counterclockwise.
  4. Repeat steps 2 and 3 two more times.
  5. Rotate the upper side counterclockwise.
  6. Rotate the center column of the front side counterclockwise (down).
  7. Repeat steps 5 and 6 two more times.
  8. Rotate the upper side counterclockwise two times.

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. Use the VCR-style buttons to navigate through the sequence.

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

  1. Do your background research so that you are familiar with the terms, concepts, and questions, above.
  2. If you can already solve Rubik's cube before doing this project, your first step should be to measure your average solution time. Time yourself for each of 5–10 trials, and calculate your average solution time. The cube should be well-randomized for each trial.
  3. Study the three sets of moves covered in the Introduction.
  4. Practice using each set of moves on your Rubik's cube.
    1. Verify that each sequence works as described.
    2. Become familiar enough with each set of moves so that you can step through the sequence in your imagination, without having the cube in your hands or within sight.
  5. Figure out a logical sequence for applying these three sets of moves in order to solve the cube systematically. In other words, use the three sets of moves as the basis for developing an algorithm to solve Rubik's cube.
    1. During this step, it is important to determine whether the three move sequences presented in the Introduction are sufficient to solve the cube. In other words, is it possible to solve the cube with only these three move sequences, or do you need additional move sequences?
    2. If you determine that additional move sequences are needed, be prepared to show why they are needed. Develop one or more move sequences to fill in the missing rearrangements needed to solve the cube.
  6. Once you have developed your algorithm, time yourself for 10 or more trials and see how long it takes you, on average, to solve the puzzle. The cube should be well randomized for each trial.
  7. If you could solve the puzzle before you started the project, did your average solution time improve?

Variations

Credits

Andrew Olson, Ph.D., Science Buddies

Sources

This project is based on:


Last edit date: 2009-04-29 22:00:00


Career Focus

If you like this project, you might enjoy exploring careers in Pure Mathematics.

Statistician
Statisticians use the power of math and probability theory to answer questions that affect the lives of millions of people. They tell educators which teaching method works best, tell policy-makers what levels of pesticides are acceptable in fresh fruit, tell doctors which treatment works best, tell builders which type of paint is the most durable. They are employed in virtually every type of industry imaginable, from engineering, manufacturing, and medicine to animal science, food production, transportation, and education. Everybody needs a statistician!
 



Join Science Buddies

Become a Science Buddies member! It's free! As a member you will be the first to receive our new and innovative project ideas, news about upcoming science competitions, science fair tips, and information on other science related initiatives.


Support Science Buddies

If this website has helped you, won't you consider a small gift so we may continue developing resources to help teachers and students?

 



 

Science Buddies gratefully acknowledges its Presenting Sponsor
 
It's free! As a member you will be the first to receive our new and innovative project ideas, news about upcoming science competitions, science fair tips, and information on other science related initiatives.


Science Fair Project Home      Our Sponsors      Partners      About Us      Volunteer      Donate      Contact Us      Research Grants & Outreach      Site Map

Science Fair Project Ideas      Science Fair Project Guide      Ask an Expert      Blog      Teacher Resources      Parent Resources      Student Resources      Science Careers      Join Science Buddies     


Privacy Policy Science Buddies

Copyright © 2002-2010 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.