of \pi A cycle with only two elements is called a
transposition. For example, the permutation \pi = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 1 & 4 & 3 & 2 \end{pmatrix} that swaps 2 and 4. Since it is a 2-cycle, it can be written as \pi = (2\ 4).
Properties Any permutation can be expressed as the
composition (product) of transpositions—formally, they are
generators for the
group. In fact, when the set being permuted is for some integer , then any permutation can be expressed as a product of '''''' (1~2), (2~3), (3~4), and so on. This follows because an arbitrary transposition can be expressed as the product of adjacent transpositions. Concretely, one can express the transposition (k~~l) where k by moving to one step at a time, then moving back to where was, which interchanges these two and makes no other changes: :(k~~l) = (k~~k+1)\cdot(k+1~~k+2)\cdots(l-1~~l)\cdot(l-2~~l-1)\cdots(k~~k+1). The decomposition of a permutation into a product of transpositions is obtained for example by writing the permutation as a product of disjoint cycles, and then splitting iteratively each of the cycles of length 3 and longer into a product of a transposition and a cycle of length one less: :(a~b~c~d~\ldots~y~z) = (a~b)\cdot (b~c~d~\ldots~y~z). This means the initial request is to move a to b, b to c, y to z, and finally z to a. Instead one may roll the elements keeping a where it is by executing the right factor first (as usual in operator notation, and following the convention in the article
Permutation). This has moved z to the position of b, so after the first permutation, the elements a and z are not yet at their final positions. The transposition (a~b), executed thereafter, then addresses z by the index of b to swap what initially were a and z. In fact, the
symmetric group is a
Coxeter group, meaning that it is generated by elements of order 2 (the adjacent transpositions), and all relations are of a certain form. One of the main results on symmetric groups states that either all of the decompositions of a given permutation into transpositions have an even number of transpositions, or they all have an odd number of transpositions. This permits the
parity of a permutation to be a
well-defined concept. == See also ==