Permutation groups
UPDATE: Since I noticed later that the convention that makes things simplest in group actions is to compose permutations right-to-left, I’ve gone back and tweaked that here.
Today I want to go into an example of a group in a lot more detail. It looks pretty long, so I’ll just put the whole thing behind the jump
A permutation is just a rearrangement. You have some number of things in a row, then the permutation picks them up and shuffles them about. We can write this down by making a table listing first what place in line an object has before the permutation, and then what place it has after.
|1 2 3 4|
|2 1 4 3|
This one — call it — picks up whatever is in slot 1 and puts it into slot 2. Whatever was in slot 2 goes to slot 1. Similarly it swaps the contents of slots 3 and 4.
|1 2 3 4|
|4 2 1 3|
This one — call it — leaves slot 2 alone and cycles the contents of the other three slots: 1 goes to 4 goes to 3 goes to 1.
In each of these, we determine where it puts the contents of a given slot by finding that slot in the top row and reading off the number below it. We can use this method to put together two rearrangements to make a third. For example, if we first do and then do
we see that
sends what’s in slot 1 to slot 2, which
leaves alone. Check the rest of the slots to verify that this composition, which I’ll write as
, is expressed as
|1 2 3 4|
|2 4 3 1|
while if we compose in the other order the result is
|1 2 3 4|
|3 1 2 4|
so the order of composition definitely makes a difference. As a side note, some authors write group composition the other way around, so what I call they call
and vice versa. It doesn’t really matter in the long run; the important thing is to pick a convention and stick with it. [Actually, originally I had written these the other way around, thinking it would be clearer to read left-to-right. If this convention seems confusing, think of it like function composition:
is like
.]
Now, that notation above really wastes a lot of space. The whole first line is completely redundant, for instance, and in this medium I can’t write them inline. Here’s another way to write down a permutation: I look at and start with slot 1, writing
Now I see that slot 1 is sent to slot 2, so I write that down
I see that 2 is sent back to 1, which puts me back where I started. I’ll close off this loop and start over with 3.
Now 3 is sent to 4, which goes back to 3, closing off this loop too. Since I’ve used all four slots, I’m done. The expression is
We read one of these from left to right, each slot moving to the next in line, and the one before a closing paren looping around to the beginning again. As another example, becomes
. Slot 1 goes to 4 goes to 3 goes back to 1, and slot 2 is left alone. In fact from here we’ll just assume that any slot that doesn’t show up is left alone, so we write
as
. It’s important to note that the parens here do not denote the same thing as they do in arithmetic, telling which operations to do first. These parens mark out the cycles in the permutation.
We can even use this notation for compositions, reading the permutations from right to left. The composition becomes
. Reading this from the right, the first cycle sends 1 to 4, which the second sends to 3 and the third leaves alone. The first cycle sends 3 to 1, and the third sends that to 2. Now 2 makes it all the way through to the third cycle. This produces
and 4 must be sent to itself, as it’s the only slot left. The composition in the opposite order gives
. See if you can get this result.
Now, every example up until this point has been working with permutations on 4 slots. I’ve shown how to compose such permutations, doing one after the other. Doing nothing also counts as a permutation, and it’s the identity permutation we need. Finally, it should be clear that any permutation can be undone, leaving things as they were before. This means that these permutations form a group which we call for the “symmetric group on 4 elements”. If the permutations shuffled around five things we’d get the group
, and so on for any number
we can make the group
.
These groups have all sorts of nice properties. For one thing, it’s easy to find their size. First we have choices of where to send 1, then we have
choices of where to send 2 (since it can’t be sent to the same place we just sent 1), and so on until we only have one choice left where to send
. We multiply all these numbers together to get the total number of choices:
. We say “
factorial” for this product of all the numbers from 1 to
, writing it
.
Here’s another neat thing: any permutation can be written as a composition of cycles of length 2. Obviously it can be written in terms of cycles, since that’s the second notation we gave. What I’m saying is that you can break long cycles down into just swaps. For 3-cycles and 4-cycles verify these expressions
and see if you can recognize the general rule.
There are many ways to write a given permutation in terms of swaps, but one thing is always true: the number of swaps needed is either always even or always odd, and we call permutations “even” or “odd” according to which case they fall into, called the “parity” of the permutation. I’m not going to prove this fact here, though it’s not hard to find a proof. This fact turns out to be amazingly significant in all sorts of unexpected ways.
Again I’ll close with a few problems to play with
- The identity permutation is even
- An
-cycle is even if
is an odd number, and vice versa
- How does the parity of
relate to the parities of
and
?
- How does the parity of
relate to that of
?
- Fill in the details showing that
is a group. That is, show that composition is associative, that the identity permutation really behaves like an identity, and that every permutation has an inverse.
what’s next on jour agenda? Galois theory?
I don’t really have an agenda, babi. I’m not following a text or anything here.
That said, if I ever do Galois theory it will be much further along. I don’t see how one could present it at this point, which makes me wonder (along with your penchant for creating straw men in other commend threads) if you’re being facetious here. No matter.
I’m not sure what I’ll do next, but homomorphisms are right up there.
[...] else the same, and the permutations of the corners and the edges are either both even or both odd (remember what we mean by “even” and “odd” permutations). I’ll prove the last one [...]
[...] work out how symmetric groups act on themselves by conjugation. As I’m writing I notice that what I said before about composition of permutations is sort of backwards. It’s one of those annoying [...]
Hi. Just stumbled upon your site. I’ve been working with cycles on a purely intuitive basis in music composition. I’ve been trying to assign cycles into families based on mapping. I wonder if you could steer a non-mathematician in the right direction. Thanks.
Oh it turns out there’s quite a lot of group theory in music theory these days. I suppose I should post about that sometime. I first heard of it from this posting by John Baez. There’s a bunch of links in there that should take you into other stuff.
Sometime soon I’ll try to see what I can say about it and make a post myself.
[...] you can’t lift them up. How can you rearrange them? At first, you might think this is just a permutation group all over again, but not quite. Let’s move two shells around each other, taking a picture of [...]
I have a question. At the beginning you write:
|1 2 3 4|
|4 2 1 3|
and call this permutation g. You further write
“This one — call it g — leaves slot 2 alone and cycles the contents of the other three slots: 1 goes to 4 goes to 3 goes to 1.”
and write the permutation g as (143)
But isn’t it:
1 goes to 3, (The content of slot 1 goes to slot 3)
3 goes to 4, (the content of slot 3 goes to slot 4)
4 goes to 1 ? (the content of slot 4 goes to slot 1).
In other words, does the notation (143) refer to
the slots or the contents of the slots?
All the numbers refer to slots. The first notation means that whatever’s in a slot on the top row goes into the corresponding slot on the bottom row. 1 is above 4, so whatever’s in slot 1 goes into slot 4. It sounds like you may be reading the two-row version from bottom to top, rather than from top to bottom.
Thanks for the answer.
I see now, I’ve been confused by the notation.
Let me ask again just to make sure I’ve understood it correctly.
Consider the four letters A,B,C,D.
Applying (1,4,3) to
A,B,C,D results in
C,B,D,A
In the first notation this would be
|1 2 3 4|
|4 2 1 3|
I’m very interested in this
because I want to learn how to solve the Rubik’s cube
blindfolded. There’s a tutorial here:
http://homepage.ntlworld.com/angela.hayden/cube/blindfold_frontpage.html
but I didn’t understand the notation here:
http://homepage.ntlworld.com/angela.hayden/cube/blind2.html
Thanks for this blog entry.
Yeah, that’s how it works. Really the cycle notation is a lot more important to understand than the two-line version. In fact, I tweak the cycle notation to describe maneuvers on Rubik’s cube. Ms. Hayden also used the cycle notation on her page.
Good luck with that project. The notation there I find to be less suggestive than my own, but I suppose it’s more conducive to memorizing the move to be performed.
Hello John, I just found a cool interactive program on permutations here:
http://nrich.maths.org/public/viewer.php?obj_id=2781&part=index
Tutorial on how to use the Shuffly Factory Program:
http://nrich.maths.org/public/viewer.php?obj_id=2789&part=
Link to the Shuffle Factory Program:
http://nrich.maths.org/public/viewer.php?obj_id=2741&part=index
[...] is a module over . We just define and extend linearly. But we also have a homomorphism from the symmetric group to the monoid of endomorphisms of . For a permutation we define , shuffling around the factors. [...]
“Here’s another neat thing: any permutation can be written as a composition of cycles of length 2″
Uniquely??
Because I seem to be able to generate bca using either;
(a c)(a b) or (a b)(b c)
or am I missing something?
Michael, I didn’t say “uniquely” because I didn’t mean to.
when you say it’s ove. Liana Merete.
[...] So let’s look for something not quite so obvious. There are various ways of solving the problem, but the one I’m interested in uses the fact that what we’re really looking at is a permutation! [...]
In the pick 4 lottery how do you calculate 4,320,360 and 270 for numbers of the form 1123,1222 and 1122?
michael, that’s really more a question for Isabel than for me.
[...] of real numbers, we can reorder the list in many ways. In fact, reorderings of numbers form the symmetric group . If we look back at our group theory, we see that we can write any element in this group as a [...]