Permutation: Difference between revisions
Use {{anchor}} for the four math headings (their generated anchors contain { }, which are illegal in link targets) (via update-page on MediaWiki MCP Server) |
Migrate: wrap Proof/Solution/Example blocks in Hidden templates |
||
| Line 13: | Line 13: | ||
is a '''permutation''' of set $S$. | is a '''permutation''' of set $S$. | ||
{{Hidden example}} | |||
Set $\{1,2,3\}$ has six permutations: | Set $\{1,2,3\}$ has six permutations: | ||
| Line 27: | Line 26: | ||
\end{cases} | \end{cases} | ||
$$ | $$ | ||
{{End hidden}} | |||
== Notation == | == Notation == | ||
| Line 40: | Line 40: | ||
$$ | $$ | ||
{{Hidden example}} | |||
The permutations of $\{1,2,3\}$ are: | The permutations of $\{1,2,3\}$ are: | ||
| Line 55: | Line 54: | ||
\right\}. | \right\}. | ||
$$ | $$ | ||
{{End hidden}} | |||
== Properties == | == Properties == | ||
| Line 82: | Line 82: | ||
$$ | $$ | ||
{{Hidden example}} | |||
The identity permutation for $\{1,2,3\}$ is | The identity permutation for $\{1,2,3\}$ is | ||
| Line 92: | Line 91: | ||
\end{pmatrix} | \end{pmatrix} | ||
$$ | $$ | ||
{{End hidden}} | |||
=== Inversion pairs === | === Inversion pairs === | ||
| Line 118: | Line 118: | ||
If a permutation contains $2n, n \in N$ inversion pairs, it is called an '''even permutation'''. Elsewise it is an '''odd permutation'''. | If a permutation contains $2n, n \in N$ inversion pairs, it is called an '''even permutation'''. Elsewise it is an '''odd permutation'''. | ||
{{Hidden example}} | |||
One permutation for $\{a,b,c\}$ is | One permutation for $\{a,b,c\}$ is | ||
| Line 130: | Line 129: | ||
Here, the inversion pairs are $(1,3)$ and $(2,3)$ | Here, the inversion pairs are $(1,3)$ and $(2,3)$ | ||
{{End hidden}} | |||
=== {{anchor|Sign_function}}$\operatorname{sign}(\sigma)$ === | === {{anchor|Sign_function}}$\operatorname{sign}(\sigma)$ === | ||
Revision as of 06:41, 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}. $$
Properties
$n$ elements $\Rightarrow $ $n!$ permutations
For any set $S:|S|=n$:
$$ |\operatorname{Perm}(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$.
Identity permutation: $\sigma_{id}(s)=s$
The identity permutation for set $S=\{s_1,s_2,\cdots,s_n\}$
$$ \sigma_{id} = \begin{pmatrix} s_1 & s_2 & \cdots & s_n \\ s_1 & s_2 & \cdots & s_n \end{pmatrix}. $$
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} $$
If a permutation contains $2n, n \in N$ inversion pairs, it is called an even permutation. Elsewise it is an odd permutation.
$\operatorname{sign}(\sigma)$
If permutation $\sigma$ contains m inversion pairs.
$$ \operatorname{sign}(\sigma) = (-1)^m $$
All even permutations have sign $+1$ and all odd ones sign $-1$.