Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Parity of a permutation
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Equivalence of the two definitions == This section presents proofs that the parity of a permutation ''σ'' can be defined in two equivalent ways: * as the parity of the number of inversions in ''σ'' (under any ordering); or * as the parity of the number of transpositions that ''σ'' can be decomposed to (however we choose to decompose it). {{hidden|header=Proof 1|content= Let ''Ο'' be a permutation on a ranked domain ''S''. Every permutation can be produced by a sequence of [[Transposition (mathematics)|transpositions]] (2-element exchanges). Let the following be one such decomposition :''Ο'' = ''T''<sub>1</sub> ''T''<sub>2</sub> ... ''T''<sub>''k''</sub> We want to show that the parity of ''k'' is equal to the parity of the number of inversions of ''Ο''. Every transposition can be written as a product of an odd number of transpositions of adjacent elements, e.g. :(2β5) = (2β3)β(3β4)β(4β5)β(4β3)β(3β2). Generally, we can write the transposition (''i'' ''i+d'') on the set {1,...,''i'',...,''i+d'',...} as the composition of 2''d''β1 adjacent transpositions by recursion on ''d'': * The base case ''d=1'' is trivial. * In the recursive case, first rewrite (''i'', ''i+d'') as (''i'', ''i''+1) (''i''+1, ''i+d'') (''i'', ''i''+1). Then recursively rewrite (''i''+1, ''i+d'') as adjacent transpositions. If we decompose in this way each of the transpositions ''T''<sub>1</sub> ... ''T''<sub>''k''</sub> above, we get the new decomposition: :''Ο'' = ''A''<sub>1</sub> ''A''<sub>2</sub> ... ''A<sub>m</sub>'' where all of the ''A''<sub>1</sub>...''A<sub>m</sub>'' are adjacent. Also, the parity of ''m'' is the same as that of ''k''. This is a fact: for all permutation ''Ο'' and adjacent transposition ''a,'' ''aΟ'' either has one less or one more inversion than ''Ο''. In other words, the parity of the number of inversions of a permutation is switched when composed with an adjacent transposition. Therefore, the parity of the number of inversions of ''Ο'' is precisely the parity of ''m'', which is also the parity of ''k''. This is what we set out to prove. We can thus define the parity of ''Ο'' to be that of its number of constituent transpositions in any decomposition. And this must agree with the parity of the number of inversions under any ordering, as seen above. Therefore, the definitions are indeed well-defined and equivalent. }} {{hidden|header=Proof 2|content= An alternative proof uses the [[Vandermonde polynomial]] :<math>P(x_1,\ldots,x_n)=\prod_{i<j} (x_i - x_j).</math> So for instance in the case {{nowrap|1=''n'' = 3}}, we have :<math>P(x_1, x_2, x_3) = (x_1 - x_2)(x_2 - x_3)(x_1 - x_3).</math> Now for a given permutation ''Ο'' of the numbers {1,β...,β''n''}, we define :<math>\sgn(\sigma)=\frac{P(x_{\sigma(1)},\ldots,x_{\sigma(n)})}{P(x_1,\ldots,x_n)}.</math> Since the polynomial <math>P(x_{\sigma(1)},\dots,x_{\sigma(n)})</math> has the same factors as <math>P(x_1,\dots,x_n)</math> except for their signs, it follows that sgn(''Ο'') is either +1 or −1. Furthermore, if ''Ο'' and ''Ο'' are two permutations, we see that : <math> \begin{align} \sgn(\sigma\tau) & = \frac{P(x_{\sigma(\tau(1))},\ldots,x_{\sigma(\tau(n))})}{P(x_1,\ldots,x_n)} \\[4pt] & = \frac{P(x_{\sigma(1)},\ldots,x_{\sigma(n)})}{P(x_1,\ldots,x_n)} \cdot \frac{P(x_{\sigma(\tau(1))},\ldots, x_{\sigma(\tau(n))})}{P(x_{\sigma(1)},\ldots,x_{\sigma(n)})} \\[4pt] & = \sgn(\sigma)\cdot\sgn(\tau). \end{align} </math> It can be shown that any transposition of two elements has signature −1, and thus we do indeed recover the signature as defined earlier. }} {{hidden|header=Proof 3|content= A third approach uses the [[presentation of a group|presentation]] of the group S<sub>''n''</sub> in terms of generators ''Ο''<sub>1</sub>, ..., ''Ο''<sub>''n''−1</sub> and relations * <math>\tau_i^2 = 1</math> for all ''i'' * <math>\tau_i^{}\tau_{i+1}\tau_i = \tau_{i+1}\tau_i\tau_{i+1}</math> for all ''i'' < ''n'' − 1 * <math>\tau_i^{}\tau_j = \tau_j\tau_i</math> if <math>|i- j| \geq 2.</math> [Here the generator <math>\tau_i</math> represents the transposition {{nowrap|(''i'', ''i'' + 1)}}.] All relations keep the length of a word the same or change it by two. Starting with an even-length word will thus always result in an even-length word after using the relations, and similarly for odd-length words. It is therefore unambiguous to call the elements of S<sub>''n''</sub> represented by even-length words "even", and the elements represented by odd-length words "odd". }} {{hidden|header=Proof 4|content= Recall that a pair ''x'', ''y'' such that {{nowrap|''x'' < ''y''}} and {{nowrap|''Ο''(''x'') > ''Ο''(''y'')}} is called an inversion. We want to show that the count of inversions has the same parity as the count of 2-element swaps. To do that, we can show that every swap changes the parity of the count of inversions, no matter which two elements are being swapped and what permutation has already been applied. Suppose we want to swap the ''i''th and the ''j''th element. Clearly, inversions formed by ''i'' or ''j'' with an element outside of {{nowrap|[''i'', ''j'']}} will not be affected. For the {{nowrap|1=''n'' = ''j'' − ''i'' − 1}} elements within the interval {{nowrap|(''i'', ''j'')}}, assume ''v''<sub>''i''</sub> of them form inversions with ''i'' and ''v''<sub>''j''</sub> of them form inversions with ''j''. If ''i'' and ''j'' are swapped, those ''v''<sub>''i''</sub> inversions with ''i'' are gone, but {{nowrap|''n'' − ''v''<sub>''i''</sub>}} inversions are formed. The count of inversions ''i'' gained is thus {{nowrap|''n'' − 2''v''<sub>''i''</sub>}}, which has the same parity as ''n''. Similarly, the count of inversions ''j'' gained also has the same parity as ''n''. Therefore, the count of inversions gained by both combined has the same parity as 2''n'' or 0. Now if we count the inversions gained (or lost) by swapping the ''i''th and the ''j''th element, we can see that this swap changes the parity of the count of inversions, since we also add (or subtract) 1 to the number of inversions gained (or lost) for the pair ''(i,j)''. Note that initially when no swap is applied, the count of inversions is 0. Now we obtain equivalence of the two definitions of parity of a permutation. }} {{hidden|header=Proof 5|content= Consider the elements that are sandwiched by the two elements of a transposition. Each one lies completely above, completely below, or in between the two transposition elements. An element that is either completely above or completely below contributes nothing to the inversion count when the transposition is applied. Elements in-between contribute <math>2</math>. As the transposition itself supplies <math>\pm1</math> inversion, and all others supply 0 (mod 2) inversions, a transposition changes the parity of the number of inversions. }}
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Parity of a permutation
(section)
Add topic