Instant Insanity

Instant Insanity puzzle in the "solved" configuration. The colors (from left to right) on the rear of the cubes are blue, red, green, and white. On the bottom, (L-R) WGBR.

The "Instant Insanity" puzzle consists of four cubes with faces colored with four colors (commonly red, blue, green, and white). The objective of the puzzle is to stack these cubes in a column so that each side (front, back, left, and right) of the stack shows each of the four colors. The distribution of colors on each cube is unique.

This problem has a graph-theoretic solution in which a graph with four vertices labeled B, G, R, W (for blue, green, red, and white) can be used to represent each cube; there is an edge between two vertices if the two colors are on the opposite sides of the cube, and a loop at a vertex if the opposite sides have the same color. Trial and error is a slow way to solve this problem, as there are 41,472 arrangements of the four cubes, only one of which is a solution. A generalized version of the puzzle with more than four cubes is NP-complete.[1][2]

The puzzle was created by Franz Owen Armbruster, also known as Frank Armbruster, and published by Parker Brothers in 1967. Over 12 million puzzles were sold. The puzzle is isomorphic to numerous older puzzles, among them the Katzenjammer puzzle,[3][4] patented[5] by Frederick A. Schossow in 1900, and The Great Tantalizer (circa 1940, and the most popular name prior to Instant Insanity).

The puzzle is currently being marketed by Winning Moves.

A Solution to the problem with four cubes

Given the already colored cubes and the four distinct colors are (Red, Green, Blue, Yellow), we will try to generate a graph which gives a clear picture of all the positions of colors in all the cubes. The resultant graph will contain four vertices one for each color and we will number each edge from one through four (one number for each cube). If an edge connects two vertices (Red and Green) and the number of the edge is three, then it means that the third cube has Red and Green faces opposite to each other.

Image 1 shows four cubes and their colors.

The images are steps to solve the instant insanity problem

Image 2 shows the graph generated by the four cubes.

The images are steps to solve the instant insanity problem

To find a solution to this problem we need the arrangement of four faces of each of the cubes. To represent the information of two opposite faces of all the four cubes we need a directed subgraph instead of an undirected one because two directions can only represent two opposite faces, but not whether a face should be at the front or at the back.

So if we have two directed subgraphs, we can actually represent all the four faces (which matter) of all the four cubes.

We cannot randomly select any two subgraphs - so what is the criteria for selecting?

We need to choose graphs such that:

  1. the two subgraphs have no edges in common, because if there is an edge which is common that means at least one cube has the pair of opposite faces of exactly same color. Meaning: A cube has Red and Blue as front and rear face as well as left and right face.
  2. a subgraph contains only one edge from each cube, because the sub graph has to account for all the cubes and one edge can completely represent a pair of opposite faces.
  3. a subgraph can contain only vertices of degree two, because a degree of two means a color can only be present at faces of two cubes. Easy way to understand is that there are eight faces to be equally divided into four colors. So, two per color.

After understanding these restrictions if we try to derive the two sub graphs, we may end up with one possible set as shown in Image 3. Each edge color represents a cube.

The images are steps to solve the instant insanity problem

From the first sub graph we will derive the front and the rear face colors of the corresponding cube. For e.g.:

  1. The black arrow from Yellow to Blue says that the first cube will have Yellow in the front face and Blue at the Rear.
  2. The blue arrow from Green to Yellow says that the second cube will have Green in the front face and Yellow at the Rear.
  3. The orange arrow from Blue to Red says that the third cube will have Blue in the front face and Red at the Rear.
  4. The purple arrow from Red to Green says that the fourth cube will have Red in the front face and Green at the Rear.

From the second sub graph we will derive the left and the right face colors of the corresponding cube. For e.g.:

  1. The black arrow from Red to Green says that the first cube will have Red in the left face and Green at the Right.
  2. The blue arrow from Blue to Red says that the first cube will have Blue in the left face and Red at the Right.
  3. The orange arrow from Yellow to Blue says that the first cube will have Yellow in the left face and Blue at the Right.
  4. The purple arrow from Green to Yellow says that the first cube will have Green in the left face and Yellow at the Right.

The third image shows the derived stack of cube which is the solution to the problem.

It is important to note that:

  1. You can arbitrarily label the cubes as one such solution will render 23 more by swapping the positions of the cubes but not changing their configurations.
  2. The two directed subgraphs can represent front-to-back, and left-to-right interchangeably, i.e. one of them can represent front-to-rear or left-to-right. This is because one such solution also render 3 more just by rotating. Adding the effect in 1., we generate 95 more solutions by providing only one. To put it into perspective, such four cubes can generate 243 × 3 = 41472 configurations.
  3. It is not important to take notice of the top and the bottom of the stack of cubes.

References

  1. Garey, M. R.; Johnson, D. S. (1979), Computers and Intractibility: a guide to the theory of NP-completeness, W.H. Freeman, p. 258 (problem GP15);
  2. Robertson, E.; Munro, I. (1978), "NP-completeness, puzzles, and games", Util. Math. 13: 99–116.
  3. Slocum; Botermans (1986), Puzzles Old & New, p. 38
  4. http://home.comcast.net/~stegmann/pattern.htm
  5. U.S. Patent 646,463
This article is issued from Wikipedia - version of the Saturday, April 09, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.