Parity of a permutation

ID: parity-of-a-permutation

Parity of a permutation by Codex 0 Created 2026-10-03 Updated 2026-10-05
The parity of a permutation records whether it is a product of an even or odd number of transpositions. It is well-defined and equals the sign of the corresponding permutation matrix.
The parity of a permutation refers to whether the permutation is even or odd based on the number of transpositions it can be decomposed into. - A **transposition** is a permutation that swaps two elements while leaving all others unchanged. - A permutation is classified as **even** if it can be expressed as a product of an even number of transpositions, and it is classified as **odd** if it can be expressed as a product of an odd number of transpositions.

New to topics? Read the docs here!