Skip to main content
Logo image

Applied Discrete Structures

Section 15.3 Permutation Groups

Subsection 15.3.1 The Symmetric Groups

At the risk of boggling the reader’s mind, we will now examine groups whose elements are functions. Recall that a permutation on a set A is a bijection from A into A. Suppose that A={1,2,3}. There are 3!=6 different permutations on A. We will call the set of all 6 permutations S3. They are listed in the following table. The matrix form for describing a function on a finite set is to list the domain across the top row and the image of each element directly below it. For example r1(1)=2.
Table 15.3.1. Elements of S3
i=(123123) r1=(123231) r2=(123312)
f1=(123132) f2=(123321) f3=(123213)
The operation that will give {i,r1,r2,f1,f2,f3} a group structure is function composition. Consider the “product” r1f3:
r1f3(1)=r1(f3(1))=r1(2)=3r1f3(2)=r1(f3(2))=r1(1)=2r1f3(3)=r1(f3(3))=r1(3)=1.
The images of 1, 2, and 3 under r1f3 and f2 are identical. Thus, by the definition of equality for functions, we can say r1f3=f2 . The complete table for the operation of function composition is given in Table 15.3.2.
Table 15.3.2. Operation Table for S3
ir1r2f1f2f3iir1r2f1f2f3r1r1r2if3f1f2r2r2ir1f2f3f1f1f1f2f3ir1r2f2f2f3f1r2ir1f3f3f1f2r1r2i
List 15.3.3.
We don’t even need the table to verify that we have a group. Based on the following observations, the set of all permutations on any finite set will be a group.
  1. Function composition is always associative.
  2. The identity for the group is i. If g is any one of the permutations on A and xA,
    (gi)(x)=g(i(x))=g(x)(ig)(x)=i(g(x))=g(x)
    Therefore gi=ig=g.
  3. A permutation, by definition, is a bijection. In Chapter 7 we proved that this implies that it must have an inverse and the inverse itself is a bijection and hence a permutation. Hence all elements of S3 have an inverse in S3. If a permutation is displayed in matrix form, its inverse can be obtained by exchanging the two rows and rearranging the columns so that the top row is in order. The first step is actually sufficient to obtain the inverse, but the sorting of the top row makes it easier to recognize the inverse.
    For example, let’s consider a typical permutation on {1,2,3,4,5}, f=(1234553214).
    f1=(5321412345)=(1234543251).

Note 15.3.4.

From Table 15.3.2, we can see that S3 is non-abelian. Remember, non-abelian is the negation of abelian. The existence of two elements that don’t commute is sufficient to make a group non-abelian. In this group, r1 and f3 is one such pair: r1f3=f2 while f3r1=f1, so r1f3f3r1. Caution: Don’t take this to mean that every pair of elements has to have this property. There are several pairs of elements in S3 that do commute. In fact, the identity, i, must commute with everything. Also every element must commute with its inverse.

Definition 15.3.5. Symmetric Group.

Let A be a nonempty set. The set of all permutations on A with the operation of function composition is called the symmetric group on A, denoted SA.
The cardinality of a finite set A is more significant than the elements, and we will denote by Sn the symmetric group on any set of cardinality n, n1.

Example 15.3.6. The significance of S3.

Our opening example, S3, is the smallest non-abelian group. For that reason, all of its proper subgroups are abelian: in fact, they are all cyclic. Figure 15.3.7 shows the Hasse diagram for the subgroups of S3.
described in detail following the image
Lattice diagram of subgroups of S3
Figure 15.3.7. Lattice diagram of subgroups of S3

Example 15.3.8. Smallest Symmetric Groups.

The only abelian symmetric groups are S1 and S2 , with 1 and 2 elements, respectively. The elements of S2 are i=(1212) and α=(1221). S2 is isomorphic to Z2.

Proof.

The first part of the theorem follows from the extended rule of products (see Chapter 2). We leave the details of proof of the second part to the reader after the following hint. Consider f in Sn where f(1)=2, f(2)=3, f(3)=1, and f(j)=j for 3<jn. Therefore the cycle representation of f is (1,2,3). Now define g in a similar manner so that when you compare f(g(1)) and g(f(1)) you get different results.

Subsection 15.3.2 Cycle Notation

A second way of describing a permutation is by means of cycles, which we will introduce first with an example. Consider fS8 defined using the now-familiar matrix notation:
f=(1234567882765413)
Consider the images of 1 when f is applied repeatedly. The images f(1), f(f(1)), f(f(f(1))), are 8,3,7,1,8,3,7,. In Figure 15.3.10(a), this situation is represented by a graph with vertices 1, 8, 3, and 7 and shows that the values that you get by repeatedly applying f cycle through those values. This is why we refer to this part of f as a cycle of length 4. Of course starting at 8, 3, or 7 also produces the same cycle with only the starting value changing.
Representations of a cycle of length 4
Figure 15.3.10. Representations of a cycle of length 4
Figure 15.3.10(a) illustrates how the cycle can be represented in a visual manner, but it is a bit awkward to write. Part (b) of the figure presents a more universally recognized way to write a cycle. In (b), a cycle is represented by a list where the image of any number in the list is its successor. In addition, the last number in the list has as its image the first number.
The other elements of the domain of f are never reached if you start in the cycle (1,8,3,7), and so looking at the images of these other numbers will produce numbers that are disjoint from the set {1,8,3,7}. The other disjoint cycles of f are (2), (4, 6), and (5). We can express f as a product of disjoint cycles: f=(1,8,3,7)(2)(4,6)(5) or f=(1,8,3,7)(4,6), where the absence of 2 and 5 implies that f(2)=2 and f(5)=5.

Note 15.3.11. Disjoint Cycles.

We say that two cycles are disjoint if no number appears in both cycles, as is the case in our expressions for f above. Disjoint cycles can be written in any order. Thus, we could also say that f=(4,6)(1,8,3,7).

Note 15.3.12. Composition of Permutations.

We will now consider the composition of permutations written in cyclic form by an example. Suppose that f=(1,8,3,7)(4,6) and g=(1,5,6)(8,3,7,4) are elements of S8. To calculate fg, we start with simple concatenation:
(15.3.1)fg=(1,8,3,7)(4,6)(1,5,6)(8,3,7,4)
Although this is a valid expression for fg, our goal is to express the composition as a product of disjoint cycles as f and g were individually written. We will start by determining the cycle that contains 1. When combining any number of cycles, they are always read from right to left, as with all functions. The first cycle in (15.3.1) does not contain 1; thus we move on to the second. The image of 1 under that cycle is 5. Now we move on to the next cycle, looking for 5, which doesn’t appear. The fourth cycle does not contain a 5 either; so fg(1)=5.
At this point, we would have written “fg=(1,5” on paper. We repeat the steps to determine fg(5). This time the second cycle of (15.3.1) moves 5 to 6 and then the third cycle moves 6 to 4. Therefore, fg(5)=4. We continue until the cycle (1, 5, 4, 3) is completed by determining that fg(3)=1. The process is then repeated starting with any number that does not appear in the cycle(s) that have already been completed.
The final result for our example is fg=(1,5,4,3)(6,8,7). Since f(2)=2 and g(2)=2, fg(2)=2 and we need not include the one-cycle (2) in the final result, although it can be included.

Example 15.3.13. Some Compositions.

  1. (1,2,3,4)(1,2,3,4)=(1,3)(2,4)
  2. (1,4)(1,3)(1,2)=(1,2,3,4).
Notice that cyclic notation does not indicate the set which is being permuted. The examples above could be in S5, where the image of 5 is 5. This ambiguity is usually overcome by making the context clear at the start of a discussion.

Definition 15.3.14. Transposition.

A transposition is a cycle of length 2.

Observation 15.3.15. About transpositions.

f=(1,4) and g=(4,5) are transpositions in S5. However, fg=(1,4,5) and gf=(1,5,4) are not transpositions; thus, the set of transpositions is not closed under composition. Since f2=ff and g2=gg are both equal to the identity permutation, f and g are their own inverses. In fact, every transposition is its own inverse.

Proof.

We need only indicate how the product of transpositions can be obtained. It is easy to verify that a cycle of length k, (a1,a2,a3,,ak), is equal to the following product of k1 transpositions:
(a1,ak)(a1,a3)(a1,a2)
Of course, a product of cycles can be written as a product of transpositions just as easily by applying the rule above to each cycle. For example,
(1,3,5,7)(2,4,6)=(1,7)(1,5)(1,3)(2,6)(2,4)
Unlike the situation with disjoint cycles, we are not free to change the order of these transpositions.

Subsection 15.3.3 Parity of Permutations and the Alternating Group

A decomposition of permutations into transpositions makes it possible to classify them and identify an important family of groups.
The proofs of the following theorem appears in many abstract algebra texts.
Theorem 15.3.17 suggests that Sn can be partitioned into its “even” and “odd” elements. For example, the even permutations of S3 are i, r1=(1,2,3)=(1,3)(1,2) and r2=(1,3,2)=(1,2)(1,3). They form a subgroup, {i,r1,r2} of S3.
In general:

Definition 15.3.18. The Alternating Group.

Let n2. The set of even permutations in Sn is a proper subgroup of Sn called the alternating group on {1,2,,n}, denoted An.
We justify our statement that An is a group:

Proof.

In this proof, the symbols si and ti stand for transpositions and p, q are even nonnegative integers. If f,gAn, we can write the two permutations as products of even numbers of transpositions, f=s1s2sp and g=t1t2tq. Then
fg=s1s2spt1t2tq
Since p+q is even, fgAn, and An is closed with respect to function composition. With this, we have proven that An is a subgroup of Sn by Theorem 11.5.5.
To prove the final assertion, let Bn be the set of odd permutations and let τ=(1,2). Define θ:AnBn by θ(f)=fτ. Suppose that θ(f)=θ(g). Then fτ=gτ and by the right cancellation law, f=g. Hence, θ is an injection. Next we show that θ is also a surjection. If hBn, h is the image of an element of An. Specifically, h is the image of hτ.
θ(hτ)=(hτ)τ=h(ττ) Why?=hi Why?=h
Since θ is a bijection, |An|=|Bn|=n!2.

Example 15.3.20. The Sliding Tile Puzzle.

Consider the sliding-tile puzzles pictured in Figure 15.3.21. Each numbered square is a tile and the dark square is a gap. Any tile that is adjacent to the gap can slide into the gap. In most versions of this puzzle, the tiles are locked into a frame so that they can be moved only in the manner described above. The object of the puzzle is to arrange the tiles as they appear in Configuration (a). Configurations (b) and (c) are typical starting points. We propose to show why the puzzle can be solved starting with (b), but not with (c).
Configurations of the sliding tile puzzle
Figure 15.3.21. Configurations of the sliding tile puzzle
We will associate a change in the configuration of the puzzle with an element of S16. Imagine that a tile numbered 16 fills in the gap. For any configuration of the puzzle, the identity i, is the function that leave the configurate “as is.” In general, if fS16, and 1k16, f(k) is the position to which the tile in position k is moved by f that appears in the position of k in configuration (a). If we call the functions that, starting with configuration (a), result in configurations (b) and (c) by the names f1 and f2, respectively,
f1=(1,5,3,7)(2,6,4,8)(9,10)(11,14,13,12)(15)(16)
and
f2=(1,5,3,7,15)(2,6,4,8)(9,10)(11,14,13,12)(16).
How can we interpret the movement of one tile as a permutation? Consider what happens when the 12 tile of i slides into the gap. The result is a configuration that we would interpret as (12,16), a single transposition. Now if we slide the 8 tile into the 12 position, the result is or (8,16,12). Hence, by “exchanging” the tiles 8 and 16, we have implemented the function (8,12)(12,16)=(8,12,16).
described in detail following the image
The configuration (8,12,16)
Figure 15.3.22. The configuration (8,12,16)
Every time you slide a tile into the gap, the new permutation is a transposition composed with the old permutation. Now observe that to start with initial configuration and terminate after a finite number of moves with the gap in its original position, you must make an even number of moves. Thus, configuration corresponding any permutation that leaves 16 fixed cannot be solved if the permutation is odd. Note that f2 is an odd permutation; thus, Puzzle (c) can’t be solved. The proof that all even permutations, such as f1, can be solved is left to the interested reader to pursue.

Subsection 15.3.4 Dihedral Groups

Observation 15.3.23. Realizations of Groups.

By now we’ve seen several instances where a group can appear through an isomorphic copy of itself in various settings. The simplest such example is the cyclic group of order 2. When this group is mentioned, we might naturally think of the group [Z2;+2], but the groups [{1,1};] and [S2;] are isomorphic to it. None of these groups are necessarily more natural or important than the others. Which one you use depends on the situation you are in and all are referred to as realizations of the cyclic group of order 2. The next family of groups we will study, the dihedral groups, has two natural realizations, first as permutations and second as geometric symmetries.
The family of dihedral groups is indexed by the positive integers greater than or equal to 3. For k3, Dk will have 2k elements. We first describe the elements and the operation on them using geometry.
We can describe Dn in terms of symmetries of a regular n-gon (n=3: equilateral triangle, n=4: square, n=5: regular pentagon,). Here we will only concentrate on the case of D4. If a square is fixed in space, there are several motions of the square that will, at the end of the motion, not change the apparent position of the square. The actual changes in position can be seen if the corners of the square are labeled. In Figure 15.3.24, the initial labeling scheme is shown, along with the four axes of symmetry of the square.
Axes of symmetry of the square
Figure 15.3.24. Axes of symmetry of the square
It might be worthwhile making a square like this with a sheet of paper. Be careful to label the back so that the numbers match the front. Two motions of the square will be considered equivalent if the square is in the same position after performing either motion. There are eight distinct motions. The first four are 0, 90, 180, and 270 clockwise rotations of the square, and the other four are the 180 flips along the axes l1, l2, l3, and l4. We will call the rotations i,r1, r2, and r3, respectively, and the flips f1, f2, f3, and f4, respectively. Figure 15.3.25 illustrates r1 and f1. For future reference, we also include the permutations to which they correspond.
described in detail following the image
Two elements of D4
Figure 15.3.25. Two elements of D4
What is the operation on this set of symmetries? We will call the operation “followed by” and use the symbol to represent it. The operation will be to combine motions, applying motions from right to left, as with functions. We will illustrate how is computed by finding r1f1. Starting with the initial configuration, if you perform the f1 motion, and then immediately perform r1 on the result, we get the same configuration as if we just performed f4, which is to flip the square along the line l4. Therefore, r1f1=f4. An important observation is that f1r1f4, meaning that this group is nonabelian. The reader is encouraged to verify this on their own.
We can also realize the dihedral groups as permutations. For any symmetric motion of the square we can associate with it a permutation. In the case of D4, the images of each of the numbers 1 through 4 are the positions on the square that each of the corners 1 through 4 are moved to. For example, since corner 4 moves to position 1 when you perform r1, the corresponding function will map 4 to 1. In addition, 1 gets mapped to 2, 2 to 3 and 3 to 4. Therefore, r1 is the cycle (1,2,3,4) . The flip f1 transposes two pairs of corners and corresponds to (1,4)(2,3). If we want to combine these two permutations, using the same names as with motions, we get
r1f1=(1,2,3,4)(1,4)(2,3)=(1)(2,4)(3)=(2,4)
Notice that this permutation corresponds with the flip f4.
Although D4 isn’t cyclic (since it isn’t abelian), it can be generated from the two elements r1 and f1:
D4=r1,f1={i,r1,r12,r13,f1,r1f1,r12f1,r13f1}
It is quite easy to describe any of the dihedral groups in a similar fashion. Here is the formal definition

Definition 15.3.26. Dihedral Group.

Let n be a positive integer greater than or equal to 3. If r=(1,2,,n), an n-cycle, and f=(1,n)(2,n1) Then
Dn=r,f={i,r,r2,,rn1,f,rf,r2f,,rn1f}
is the nth dihedral group.

Note 15.3.27. Caution.

You might notice that we use a script D, D, for the dihedral groups. Occasionally you might see an ordinary D in other sources for the dihedral groups. Don’t confuse it with the set of divisors of n, which we denote by Dn. Normally the context of the discussion should make the meaning of Dn clear.

Example 15.3.28. A Letter-facing Machine.

An application of D4 is in the design of a letter-facing machine. Imagine letters entering a conveyor belt to be postmarked. They are placed on the conveyor belt at random so that two sides are parallel to the belt. Suppose that a postmarker can recognize a stamp in the top right corner of the envelope, on the side facing up. In Figure 15.3.29, a sequence of machines is shown that will recognize a stamp on any letter, no matter what position in which the letter starts. The letter P stands for a postmarker. The letters R and F stand for rotating and flipping machines that perform the motions of r1 and f1.
A letter facer
Figure 15.3.29. A letter facer
The arrows pointing up indicate that if a letter is postmarked, it is taken off the conveyor belt for delivery. If a letter reaches the end, it must not have a stamp. Letter-facing machines like this have been designed (see [16]). One economic consideration is that R-machines tend to cost more than F-machines. R-machines also tend to damage more letters. Taking these facts into consideration, the reader is invited to design a better letter-facing machine. Assume that R-machines cost $800 and F-machines cost $500. Be sure that all corners of incoming letters will be examined as they go down the conveyor belt.

Exercises 15.3.5 Exercises

1.

Given f=(12342143), g=(12342341), and h=(12343241), compute
  1. fg
  2. gh
  3. (fg)h
  4. f(gh)
  5. h1
  6. h1gh
  7. f1
Answer.
  1. (12341432)
  2. (12344312)
  3. (12343421)
  4. (12343421)
  5. (12344213)
  6. (12343142)
  7. (12342143)

2.

Write f, g, and h from Exercise 1 as products of disjoint cycles and determine whether each is odd or even.

3.

Do the left cosets of A3={i,r1,r2} over S3 form a group under the induced operation on left cosets of A3? What about the left cosets of f1?
Answer.
S3/A3 is a group of order two. The operation on left cosets of H=f1 is not well defined and so a group cannot be formed from left cosets of H.

4.

In its realization as permutations, the dihedral group D3 is equal to S3. Can you give a geometric explanation why? Why isn’t D4 equal to S4?

5.

  1. Complete the list of elements of D4 and write out a table for the group in its realization as symmetries.
  2. List the subgroups of D4 in a lattice diagram. Are they all cyclic? To what simpler groups are the subgroups of D4 isomorphic?
Answer.
D4={i,r,r2,r3,f1,f2,f3,f4} Where i is the identity function, r=(12342341), and
f1=(12344321)f2=(12342143)f3=(12343214)f4=(12341432)
The operation table for the group is
 irr2r3f1f2f3f4irr2r3f1f2f3f4irr2r3f1f2f3f4rr2r3if4f3f1f2r2r3irf2f1f4f3r3irr2f3f4f2f1f1f3f2f4ir2rr3f2f4f1f3r2ir3rf3f2f4f1r3rir2f4f1f3f2rr3r2i
A lattice diagram of its subgroups is
described in detail following the image
Subgroups of D4
Figure 15.3.30. Subgroups of D4
All proper subgroups are cyclic except {i,r2,f1,f2}  and {i,r2,f3,f4}. Each 2-element subgroup is isomorphic to Z2 ; {i,r,r2,r3} is isomorphic to Z4 ; and {i,r2,f1,f2}  and {i,r2,f3,f4} are isomorphic to Z2×Z2.

6.

Design a better letter-facing machine (see Example 15.3.28). How can you verify that a letter-facing machine does indeed check every corner of a letter? Can it be done on paper without actually sending letters through it?

7.

Prove by induction that if r1 and each ti, is a transposition, then (t1t2tr)1=trt2t1
Answer.
One solution is to cite Exercise 3 at the end of Section 11.3. It can be directly applied to this problem. An induction proof of the problem at hand would be almost identical to the proof of the more general statement. (t1t2tr)1=tr1t21t11 by Exercise 3 of Section 11.3=trt2t1  since each transposition inverts itself. 

8.

How many elements are there in D5 ? Describe them geometrically.

9.

Complete the proof of Theorem 15.3.9.
Answer.
Part I: That |Sk|=k! follows from the Rule of Products.
Part II: Let f be the function defined on {1,2, ...,n} by f(1)=2, f(2)=3, f(3)=1, and f(j)=j for 4jn; and let g be defined by g(1)=1, g(2)=3, g(3)=2, and g(j)=j for 4jn. Note that f and g are elements of Sn. Next, (fg)(1)=f(g(1))=f(1)=2, while (gf)(1)=g(f(1))=g(2)=3, hence fggf and Sn is non-abelian for any n3.

10.

How many left cosets does An, n2 have?

11.

Prove that fr=rn1f in Dn.

12.

  1. Prove that the tile puzzles corresponding to A16{fS16|f(16)=16} are solvable.
  2. If f(16)16, how can you determine whether f’s puzzle is solvable?

13.

  1. Prove that S3 is isomorphic to R3, the group of 3×3 rook matrices (see Section 11.2 exercises).
  2. Prove that for each n2, Rn is isomorphic to Sn.
Answer.
  1. Both groups are non-abelian and of order 6; so they must be isomorphic, since only one such group exists up to isomorphism. The function θ:S3R3 defined by θ(i)=Iθ(f1)=F1θ(r1)=R1θ(f2)=F2θ(r2)=R2θ(f3)=F3 is an isomorphism,
  2. Recall that since every function is a relation, it is natural to translate functions to Boolean matrices. Suppose that fSn. We will define its image, θ(f), by
    θ(f)kj=1  f(j)=k
    That θ is a bijection follows from the existence of θ1. If A is a rook matrix,
    θ1(A)(j)=k The 1 in column j of A appears in row kAkj=1
    For f,gSn,
    θ(fg)kj=1 (fg)(j)=kl such that g(j)=l and f(l)=kl such that θ(g)lj=1 and θ(f)kl=1(θ(f)θ(g))kj=1
    Therefore, θ is an isomorphism.
You have attempted of activities on this page.