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 ci∈Sn as follows: π=∏ki=1ci. And each cycle ci can be expressed as a product of transpositions tij:=(cj−1i(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(j−i)−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,...,j−1 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,...,n−1 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(j−i)−1 inversions. Therefore it takes 2(j−i)−1 simple transpositions τh such that (∏2(j−i)−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 π′=∏N′i=1τ′i. This yields sgn(ππ′)=sgn((N∏i=1τi)(N′∏i=1τ′i))=sgn(N∏i=1τi)sgn(N′∏i=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(π)=N∏i=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(π)=k∏i=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:
This method is straight forward and not as error prone as to count each single inversion manually.
No comments:
Post a Comment