maths.freeCombinatorics & Graph Theory › 15. Pólya's Enumeration Theorem › Permutation Groups

Permutation Groups

Entire books have been written on the theory of the mathematical structures known as groups.

Permutation Groups

Entire books have been written on the theory of the mathematical structures known as groups. However, our study of Pólya's enumeration theorem requires only a few facts about a particular class of groups that we introduce in this section. First, recall that a bijection from a set \(X\) to itself is called a permutation. A permutation group is a set \(P\) of permutations of a set \(X\) so that

  1. \(\iota\)\(P\)
  2. \(\pi_1,\pi_2\in P\)\(\pi_2\circ \pi_1\in P\)
  3. \(\pi_1\in P\)\(\pi_1\inv\in P\)
For our purposes, \(X\) will always be finite and we will usually take \(X=[n]\) for some positive integer \(n\). The symmetric group on \(n\) elements, denoted \(S_n\), is the set of all permutations of \([n]\). Every finite permutation group (and more generally every finite group) is a subgroup of \(S_n\) for some positive integer \(n\).

As our first example of a permutation group, consider the set of permutations we discussed in , called the dihedral group of the square. We will denote this group by \(D_8\). We denote by \(D_{2n}\) the similar group of transformations for a regular \(n\)-gon, using \(2n\) as the subscript because there are \(2n\) permutations in this group.Some authors and computer algebra systems use \(D_n\) as the notation for the dihedral group of the \(n\)-gon. The first criterion to be a permutation group is clearly satisfied by \(D_8\). Verifying the other two is quite tedious, so we only present a couple of examples. First, notice that \(r_2\circ r_1=r_3\). This can be determined by carrying out the composition of these functions as permutations or by noting that rotating \(90^\circ\) clockwise and then \(180^\circ\) clockwise is the same as rotating \(270^\circ\) clockwise. For \(v\circ r\), we find \(v\circ r(1) = 1\), \(v\circ r(3)=3\), \(v\circ r(2)=4\), and \(v\circ r(4)=2\), so \(v\circ r=n\). For inverses, we have already discussed that \(r_1\inv = r_3\). Also, \(v\inv = v\), and more generally, the inverse of any flip is that same flip.

Representing permutations

The way a permutation rearranges the elements of \(X\) is central to Pólya's enumeration theorem. A proper choice of representation for a permutation is very important here, so let's discuss how permutations can be represented. One way to represent a permutation \(\pi\) of \([n]\) is as a \(2\times n\) matrix in which the first row represents the domain and the second row represents \(\pi\) by putting \(\pi(i)\) in position \(i\). For example, \[\begin{aligned}\end{aligned}\] is the permutation of \([5]\) with \(\pi(1) =2\), \(\pi(2)=4\), \(\pi(3)=3\), \(\pi(4) = 5\), and \(\pi(5) = 1\). This notation is rather awkward and provides only the most basic information about the permutation. A more compact (and more useful for our purposes) notation is known as cycle notation. One way to visualize how the cycle notation is constructed is by constructing a digraph from a permutation \(\pi\) of \([n]\). The digraph has \([n]\) as its vertex set and a directed edge from \(i\) to \(j\) if and only if \(\pi(i) = j\). (Here we allow a directed edge from a vertex to itself if \(\pi(i) = i\).) The digraph corresponding to the permutation \(\pi\) from above is shown in .

Since \(\pi\) is a permutation, every component of such a digraph is a directed cycle. We can then use these cycles to write down the permutation in a compact manner. For each cycle, we start at the vertex with smallest label and go around the cycle in the direction of the edges, writing down the vertices' labels in order. We place this sequence of integers in parentheses. For the \(4\)-cycle in , we thus obtain \((1245)\). (If \(n\geq 10\), we place spaces or commas between the integers.) The component with a single vertex is denoted simply as \((3)\), and thus we may write \(\pi=(1245)(3)\). By convention, the disjoint cycles of a permutation are listed so that their first entries are in increasing order.

Example

The permutation \(\pi=(1483)(27)(56)\) has \(\pi(1)=4\), \(\pi(8)=3\), \(\pi(3)=1\), and \(\pi(5)=6\). The permutation \(\pi'=(13)(2)(478)(56)\) has \(\pi'(1)=3\), \(\pi'(2) = 2\), and \(\pi'(8)=4\). We say that \(\pi\) consists of two cycles of length \(2\) and one cycle of length \(4\). For \(\pi'\), we have one cycle of length \(1\), two cycles of length \(2\), and one cycle of length \(3\). A cycle of length \(k\) will also called a \(k\)-cycle in this chapter.

Multiplying permutations

Because the operation in an arbitrary group is frequently called multiplication, it is common to refer to the composition of permutations as multiplication and write \(\pi_2\pi_1\) instead of \(\pi_2\circ \pi_1\). The important thing to remember here, however, is that the operation is simply function composition. Let's see a couple of examples.

Example

Let \(\pi_1 = (1234)\) and \(\pi_2 = (12)(34)\). (Notice that these are the permutations \(r_1\) and \(v\), respectively, from \(D_8\).) Let \(\pi_3=\pi_2\pi_1\). To determine \(\pi_3\), we start by finding \(\pi_3(1) = \pi_2\pi_1(1) = \pi_2(2) = 1\). We next find that \(\pi_3(2) = \pi_2\pi_1(2) = \pi_2(3)=4\). Similarly, \(\pi_3(3) = 3\) and \(\pi_3(4)=2\). Thus, \(\pi_3=(1)(24)(3)\), which we called \(n\) earlier.

Now let \(\pi_4 = \pi_1\pi_2\). Then \(\pi_4(1) = 3\), \(\pi_4(2)=2\), \(\pi_4(3)=1\), and \(\pi_4(4)=4\). Therefore, \(\pi_4=(13)(2)(4)\), which we called \(p\) earlier. It's important to note that \(\pi_1\pi_2\neq \pi_2\pi_1\), which hopefully does not surprise you, since function composition is not in general commutative. To further illustrate the lack of commutativity in permutation groups, pick up a book (Not this one! You need to keep reading directions here.) so that cover is up and the spine is to the left. First, flip the book over from left to right. Then rotate it \(90^\circ\) clockwise. Where is the spine? Now return the book to the cover-up, spine-left position. Rotate the book \(90^\circ\) clockwise and then flip it over from left to right. Where is the spine this time?

It quickly gets tedious to write down where the product of two (or more) permutations sends each element. A more efficient approach would be to draw the digraph and then write down the cycle structure. With some practice, however, you can build the cycle notation as you go along, as we demonstrate in the following example.

Example

Let \(\pi_1=(123)(487)(5)(6)\) and \(\pi_2=(18765)(234)\). Let \(\pi_3 = \pi_2\pi_1\). To start constructing the cycle notation for \(\pi_3\), we must determine where \(\pi_3\) sends \(1\). We find that it sends it to \(3\), since \(\pi_1\) sends \(1\) to \(2\) and \(\pi_2\) sends \(2\) to \(3\). Thus, the first cycle begins \(13\). Now where is \(3\) sent? It's sent to \(8\), which goes to \(6\), which goes to \(5\), which goes to \(1\), completing our first cycle as \((13865)\). The first integer not in this cycle is \(2\), which we use to start our next cycle. We find that \(2\) is sent to \(4\), which is set to \(7\), which is set to \(2\). Thus, the second cycle is \((247)\). Now all elements of \(8\) are represented in these cycles, so we know that \(\pi_3 = (13865)(247)\).

We conclude this section with one more example.

Condensed — the full section is in Keller & Trotter, Applied Combinatorics.

Symbols used here

\pi
pi
Ratio of a circle's circumference to its diameter, 3.14159…
x \in A,\ A \subseteq B
element of, subset
x belongs to A; every element of A is in B.
i
imaginary unit
i² = −1.
^\circ
degrees
1/360 of a full turn. 180° = π radians.
\leq,\ \geq
less/greater than or equal
Inequalities that allow equality; < and > exclude it.
\neq
not equal
The two sides are different.
n!
factorial
n × (n−1) × … × 1; the number of orderings of n things. 0! = 1.
\binom{n}{k}
binomial coefficient, "n choose k"
Number of k-element subsets of n things: n!/(k!(n−k)!).
\sum_{k=1}^{n} a_k
summation
Add a_k for k = 1 up to n.
\prod_{k=1}^{n} a_k
product
Multiply a_k for k = 1 up to n.
\emptyset,\ |A|
empty set, cardinality
The set with no elements; the number of elements of A.

Questions people ask

Permutation or combination?

Ask whether order matters. A lock code is a permutation (order matters); a hand of cards is a combination (it does not).

What is a graph in this sense?

Dots (vertices) joined by lines (edges) — not a plot. Road maps, social networks and molecules are graphs; questions like "is there a route" and "how few colours" are graph theory.

Ku day inaad ku

Parts of this page are adapted from Keller & Trotter, Applied Combinatorics (CC BY-SA 4.0). Condensed and re-explained here; errors are ours.

In ka badan Combinatorics & Graph Theory