Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Graduate School
La Purisima St., Zamboanga City
A requirement in
Leonardo D Dumadag, Ph D
The Four Cubes Problem is an intriguing recreational puzzle, also called Instant Insanity,
concern four cubes whose faces are colored red, blue green, and yellow. These cubes are depicted in
R R Y B
R Y G B R Y B G B B R Y G Y R G
R Y Y Y
The colored cubes problem: Let C = {c1, c2, c3…, cq} be a set of cubes in which every face in each
one of them has been coloured using one color in a set K = {k1, k2, k3…, kq} of q colors. The problem we
are dealing with is to raise if it is possible, a pile with the q cubes in such a way that every one of the q
colors will appear once in every one of the four sides of the pile.
Using trial and error approach for this problem is inadvisable, since there are 24 symmetries of
the cube, in doing this puzzle with four blocks which can be placed in 24 different positions; that is:
But then again, the answer to the problem is to pile the cubes on top of each other so that all
four colours appear on each side of the resulting “stack”. The possibility of getting the said stack might
The main concern of the problem is to make sure that the opposite pairs of faces and which
among the three opposite pairs should appear on the sides of the stack.
The solution to this problem is to represent each cube by a graph, with four vertices R, B, G, Y
(corresponding to the four colors) wherein the two vertices are adjacent when the cube in question has
2|Page
The graphs for the above set of cubes are:
R B R B R G R G
G Y G Y Y B Y B
Legend:
Cube 1
Y B
Cube 2
Cube 3
G R
Cube 4
The solution to the four cubes problem is to find two subgraphs H1 and H2 of G. The first
subgraph shows which pair of colours appear on the front and back faces of each cube, while the other
subgraph shows which pair of colours appears on the left-hand and right hand faces of each cube. The
Property 1: Each subgraph contains exactly one edge from the graph of each cube
-each cube has a front and a back, and a left side and a right side, and the subgraphs H1 and H2 tells us
-Faces appearing on the front and back of a cube cannot be the same as those appearing on the sides.
3|Page
STATEMENT OF THE PROBLEM
-Each color appears exactly twice on the sides of the stack (once on each side), and exactly twice on the
front and back (once on the front and once on the back).
The only solution for the said cubes above is shown below:
R 3 B R 2 B
4 1 1 3
G 2 Y G 4 Y
The subgraphs H1 and H2 tell us that the cube 1 has yellow on the front and blue on the back (from H1)
and red on the left and green on the right (from H2), and similarly for the other cubes.
The said solution is the only possible answer. But for other instances, there may exist several
This case study would like to extend the Four Cubes Problem, by looking at two sets of different cubes.
Set 1:
Y G Y Y
R G B R R G B G R Y R B R G R Y
4|Page
EXPLORATION, RESULTS, AND CONCLUSION
Y R G B
and
Set 2:
G B Y B
Y G R B G R R Y R Y G B Y B G R
R G Y B
Set 1:
Y G Y Y
R G B R R G B G R Y R B R G R Y
Y R G B
EXPLORATION
5|Page
First step in solving the problem is to represent each cube by a graph, with four vertices R, B, G,
Y (corresponding to the four colors) wherein the two vertices are adjacent when the cube in question
has the corresponding colors on opposite faces. The graphs for the above set of cubes are:
R G R G R G R G
B Y B Y B Y B Y
Legend:
Cube 1
R G
Cube 2
Cube 3
B Y
Cube 4
Third Step is to find two subgraphs H1 and H2 of G which must possess three properties:
Property 1: Each subgraph contains exactly one edge from the graph of each cube
6|Page
Property 3: Each vertex is incident with two edges
The following are the possible subgraphs for the given graph above:
Subgraph 1:
R 1 B R 2 B
2 4 1 3
G 3 Y G 4 Y
Subgraph 2:
R 1 B R 2 B
2 3 1 4
G 4 Y G 3 Y
Subgraph 3:
R 2 B R 1 B
1 4 2 3
G 3 Y G 4 Y
Subgraph 4:
R 2 B R 1 B
1 3 2 4
G 4 Y G 3 Y
The subgraphs H1 and H2 tell us that the cube 1 has yellow on the front and blue on the back (from H1)
and red on the left and green on the right (from H2), and similarly for the other cubes.
7|Page
RESULTS
Subgraph 1:
R 1 B R 2 B
2 4 1 3
3 Y 4 Y
G G
Front Side Opposite Side
Subgraph 2:
R 1 B R 2 B
2 3 1 4
G 4 Y G 3 Y
Subgraph 3:
8|Page
R 2 B R 1 B
1 4 2 3
G 3 Y G 4 Y
Subgraph 4:
R 2 B R 1 B
1 3 2 4
G 4 Y G 3 Y
9|Page
EXPLORATION, RESULTS, AND CONCLUSION
Set 2:
G B Y B
Y G R B G R R Y R Y G B Y B G R
R G Y B
EXPLORATION
First step in solving the problem is to represent each cube by a graph, with four vertices R, B, G,
Y (corresponding to the four colors) wherein the two vertices are adjacent when the cube in question
has the corresponding colors on opposite faces. The graphs for the above set of cubes are:
R G R G R G R G
10 | P a g e
Y B Y B Y B Y B
Legend:
Cube 1
R G
Cube 2
Cube 3
Y B
Cube 4
Third Step is to find two subgraphs H1 and H2 of G which must possess three properties:
Property 1: Each subgraph contains exactly one edge from the graph of each cube
RESULTS
11 | P a g e
REFERENCES
There are no possible subgraphs than can be made which will possess all three properties. Thus,
it is impossible to create a stack of 4 cubes all of which each side or face has 4 different colors on it.
Aldous, Joan M. & Wilson, Robin J. (2000). GRAPHS AND APPLICATIONS: AN INTRODUCTORY APPROACH.
Springer: London
Hinder, Michael. (2014) VARIATIONS OF THE FOUR CUBE PROBLEM. University of Wisconsin Oshkosh
12 | P a g e