Permutation: Difference between revisions
| Line 157: | Line 157: | ||
$$ | $$ | ||
{{End hidden}} | {{End hidden}} | ||
<blockquote> | |||
All transpositions $\tau$ are odd permutations. | |||
</blockquote> | |||
=== {{anchor|Sign_function}}$\operatorname{sign}(\sigma)$ === | === {{anchor|Sign_function}}$\operatorname{sign}(\sigma)$ === | ||
Revision as of 14:02, 18 October 2026
A permutation represents a particular way of arranging the elements in a set.
Formal definition
Let $S$ be a set.
$$ \sigma: S \to S $$
is a permutation of set $S$.
Notation
In general, a permutation for set $S=\{s_1,s_2,\cdots,s_n\}$ can be noted:
$$ \sigma = \begin{pmatrix} s_1 & s_2 & \cdots & s_n \\ \sigma_{s_1} & \sigma_{s_2} & \cdots & \sigma_{s_n} \end{pmatrix}. $$
Special permutations
Identity permutation: $\sigma_{id}(s)=s$
The identity permutation for set $S=\{s_1,s_2,\cdots,s_n\}$ is
$$ \sigma_{id} = \begin{pmatrix} s_1 & s_2 & \cdots & s_n \\ s_1 & s_2 & \cdots & s_n \end{pmatrix}. $$
Transposition
A transposition is a permutation that swaps only two elements and do nothing to the rest of the elements.
i.e.,
if $$ \exists i,j \in \{1,2,\cdots,n\}: \begin{cases} \tau(s_i)=s_j \\ \tau(s_j)=s_i \\ \tau(s_k)=s_k ,& \forall k \in \{1,2,\cdots,n\}, k \ne i \lor j \end{cases} $$
then $\tau$ is a transposition of set $\{s_1,s_2,\cdots,s_n\} $.
Symmetric groups $\mathcal{S}_{n}$
$\{\sigma_1,\sigma_2,\sigma_3,\cdots,\sigma_{n!}\}$, the set of all permutations for $\{1,2,3,\cdots,n\}$, is known as the symmetric group of degree n, denoted by $\mathcal{S}_n$.
Properties
$n$ elements $\Rightarrow $ $n!$ permutations
For any set $S:|S|=n$:
$$ |\operatorname{Perm}(S)|=n! $$
Inversion pairs
Let $A$ be a set and
$$ \sigma_1= \begin{pmatrix} a_1&a_2&\cdots&a_n \\ b_1&b_2&\cdots&b_n \end{pmatrix},\, a,b \in A $$
be one of its permutation.
$$ \begin{aligned} \forall a_i,a_j &: i,j \in \{1,2,\cdots,n\}, \\ \exists b_p,b_q &: p,q \in \{1,2,\cdots,n\} \Rightarrow b_p=a_i,\ b_q=a_j \\ &\text{if } p \lt q \land i \gt j \\ &\Rightarrow (p,q) \text{ is an } \textbf{inversion pair} \end{aligned} $$
The number of unique inversion pairs in arbitrary permutation $\sigma$ is often denoted by $\operatorname{inv}(\sigma)$
If $\operatorname{inv}(\sigma) \equiv 0 \pmod 2$, $\sigma$ is called an even permutation. Elsewise it is an odd permutation.
All transpositions $\tau$ are odd permutations.
$\operatorname{sign}(\sigma)$
$$ \operatorname{sign}(\sigma) = (-1)^{\operatorname{inv}(\sigma)} $$
All even permutations have sign $+1$ and all odd ones sign $-1$.