- categories: Linear algebra, Matrix
Definition
A permutation matrix is a square binary matrix (consisting of 0s and 1s) where each row and each column contains exactly one entry equal to 1, and all other entries are 0. It represents a reordering (or permutation) of rows or columns of a matrix.
Formally, a permutation matrix of size is associated with a permutation of the set , where the -th row has a 1 in the -th column.
Intuition
Permutation matrices act as a “shuffling operator” for rows or columns of other matrices or vectors. Multiplying a matrix by a permutation matrix permutes its rows or columns depending on the order of multiplication.
Key Properties
-
Determinant:
where the sign depends on whether the associated permutation is even or odd. -
Action on Vectors:
- Left-multiplication: permutes the rows of .
- Right-multiplication: permutes the columns of .
-
Composition of Permutations:
- The product of two permutation matrices corresponds to the composition of the two associated permutations.
Construction
To construct a permutation matrix for a permutation :
- Start with the identity matrix .
- Rearrange the rows of according to the permutation .
Applications
-
Lower–Upper Factorization (LU) with Pivoting:
- Permutation matrices represent row swaps in partial pivoting, ensuring numerical stability.
-
Reordering Problems:
- Used to reorder rows or columns in numerical algorithms or combinatorial problems.
-
Graph Theory:
- Represent adjacency matrix transformations under vertex relabeling.
-
Cryptography:
- Permutation matrices are used in encryption schemes as part of mixing operations.
Examples
-
Permutation (maps row 1 → row 2, row 2 → row 3, row 3 → row 1):
-
Reordering rows of using :