Loading [MathJax]/jax/output/HTML-CSS/jax.js

Friday, April 27, 2012

Calculation of a Permutation's Sign

Let πSn be a permutation taken from the symmetrical group then it is easy to see that it can be expressed as the product of cyclic permutations ciSn as follows: π=ki=1ci. And each cycle ci can be expressed as a product of transpositions tij:=(cj1i(1) cji(1))Sn for j=1,2,...,|ci|1 ci=(1 ci(1) c2i(1) ... c|ci|1i(1))=(1 ci(1))(ci(1) c2i(i))...(c|ci|2i(1) c|ci|1i(1)) Here the expression |ci| is the order (cardinality) of the group <ci>. Also note that c|ci|i=id where id is the identity of Sn.

A transposition (i j) has 2(ji)1 inversions. The inversions are the pairs (i,k) for k=i+1,i+2,...,j and the pairs (k,j) for k=i+1,i+2,...,j1 so it all comes down to basic counting. Note that every other element besides i,j are fix points. Which means the sign of a (simple) transposition is 1

The number of inversions of the identity is zero. Are there any other permutations besides the identity with no inversions? Let αSn have zero inversions but αid. Since this permutation doesn't have any inversions the chain α(1)<α(2)<...<α(n) must be valid because α(i)<α(j)i<j is given by the definition of this permutation. In other words α(1) must be thre smallest element of the sequence (1,2,...,n) which is 1. α(2) the second smallest element which is 2 and so on α=id. There are no permutations besides the identity with no inversions.

π is a permutation which is not the identity, so it has inversions. Can we find a simple transposition τ such that τπ has less inversions than π? If there would be such a simple transposition then there also exists a an inverse image i with π(i)>π(i+1). And this i has to exist because otherwise we would have π(i)<π(i+1) for all i=1,2,...,n1 which is only true for the idenity - contradiction to the assumptions πid. Therefore we can find simple transpositions to non trivial permutations to reduce their inversion count by one. 

A transposition (i j) as seen above has 2(ji)1 inversions. Therefore it takes 2(ji)1 simple transpositions τh such that (2(ji)1h=1τh)(i j)=id and such transpositions do exist. This also means that we can write every permutation as a product of simple transpositions.

The sign mapping sgn:Sn{1,1} is a group homomorphism. To show that we first need to realize that the sign of a permutation π changes when we multiply the permutation with a simple transposition τ since we either add or remove a single inversion. sgn(πτ)=sgn(τπ)=sgn(π)=sgn(τ)sgn(π) Especially we get for simple transpositions τ1,τ2 sgn(τ2τ1)=sgn(τ2)sgn(τ1)

Let ππSn be permutations which are not the identity. There exist N,N simple transpositions τi,τi such that π=Ni=1τi and π=Ni=1τi. This yields sgn(ππ)=sgn((Ni=1τi)(Ni=1τi))=sgn(Ni=1τi)sgn(Ni=1τi)=sgn(π)sgn(π) 

Let's take a closer look at the permutation π as it is defined directly above. We come to the formula sgn(π)=Ni=1sgn(τi)=(1)N This tells us that if pi is even than N must even as well. The same idea applies to π being an odd permutation.

Back to cyclic permutations. Every transposition is odd and therefore every odd cyclic permutation must be a product of an odd number of (simple) transpositions. The cycles ci which we defined at the beginning are odd if |ci| is even because we can express ci with the product of |ci|1 transpositions. The sign of pi is calculated as sgn(π)=ki=1sgn(ci) The signs on the right side of the equation which equal 1 can be discarded in the process of the calculation (neutral element). So we can come to the conclusion:

In Order to calculate the sign of a permutation π we express it as a product of cyclic permutations. Then we count the even cycles, let us assume there are K such cycles, and calculate the signsgn(π)=(1)K

This method is straight forward and not as error prone as to count each single inversion manually. 

No comments:

Post a Comment