Slide and Swap on Cubic Graphs

Slide and Swap is a tile-sliding permutation game played on cubic (3-regular) graphs, similar to the familiar 15 Puzzle and its generalization to arbitrary graphs. In Slide and Swap, you may slide any adjacent tile into the open space (just click the tile you want to slide), but the other two neighbors of the tile you slide will be swapped as well. When the hole returns to its initial vertex after a sequence of slides, the numbered tiles will have been permuted, and these permutations of the tiles form a group under composition.
As a puzzle, it can be a considerable challenge to return the tiles to their initial position once they have been scrambled. From a theoretical standpoint, it is interesting to consider which groups may be generated by these tile-sliding permutations. With one exception, the graphs included in this Demonstration all generate the full alternating group; all even permutations of the tiles can be achieved. The exception is the 4-prism, or cube graph, which generates a group isomorphic to the projective special linear PSL(2,7), the simple group of order 168. That means that if the tiles were placed randomly on the cube, there is only a 1/60 chance that the game could be solved by legal moves!
The 4-vertex graph of the tetrahedron (not included) is also "exceptional" (in that it fails to generate the full alternating group), but it is not very interesting. An unproven conjecture is that the cube and the tetrahedron are the only exceptions, and all other 3-regular graphs generate a full alternating group.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


[1] A. F. Archer, "A Modern Treatment of the 15 Puzzle," American Mathematical Monthly, 106, 1999 pp. 793–799.
[2] R. M. Wilson, "Graph Puzzles, Homotopy, and the Alternating Group," Journal of Combinatorial Theory Series B, 16, 1974 pp. 86–96.
[3] Wikipedia, "PSL (2,7)." (Aug 17, 2011) http://en.wikipedia.org/wiki/PSL%282,7%29.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2017 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+