In linear algebra, a permutation matrix is a binary matrix that has exactly one entry 1 in each row and each column and 0s elsewhere. Permutation matrices are the matrix representation of permutations.
Given a permutation π of m elements
the permutation matrix Pπ with m elements is defined as
with ei being the i-th vector in the identity matrix.
Given two permutations π and σ of m elements and the corresponding permutation matrices Pπ and Pσ
As permutation matrices are orthogonal matrices the inverse matrix exists and can be written as
The multiplication of a permutation matrix Pπ with a vector g will permute the entries of the vector.
\begin{bmatrix} g_1 \\ \vdots \\ g_n \end{bmatrix} = \begin{bmatrix} g_{\pi(1)} \\ \vdots \\ g_{\pi(n)} \end{bmatrix}
P(1) is the identity matrix. This is clear if one views the permutation matrix of a permutation σ, as the permutation of the rows or columns of the identity matrix.
A permutation matrix is a stochastic matrix; in fact doubly stochastic. One can show that every doubly stochastic matrix is a convex combination of permutation matrices of the same size, giving permutation matrices a characterisation as the set of extreme points.
The product of a matrix M with a permutation matrix P on the right (PM) permutes the rows of M, likewise, on the left (MP), permutes the columns of M.
Since the map Sn → A ⊂ GL(n, Z2) is a faithful representation, we have the following:
The trace of a permutation matrix is the number of fixed points of the permutation. If the permutation has fixed points, so it can be written as (a1)(a2)...(an)q where q has no fixed points, then e1,e2,...,en are eigenvectors of the permutation matrix.
From group theory we know that any permutation may be written as a product of transpositions. Therefore, any permutation matrix P factors as a product of row-interchanging elementary matrices, each having determinant −1. Thus the determinant of a permutation matrix P is just the signature of the corresponding permutation.
The permutation matrix Pπ corresponding to the permutation π=(1)(2 4 5 3) is
and given a vector g
\begin{bmatrix} g_1 \\ g_2 \\ g_3 \\ g_4 \\ g_5 \end{bmatrix} = \begin{bmatrix} g_1 \\ g_4 \\ g_2 \\ g_5 \\ g_3 \end{bmatrix}
where is a diagonal matrix of eigenvalues and is the matrix of eigenvectors.
The permutation matrix relates and by
Since the eigenvalues of and are the same then we can write . From this we see that the elements of an eigenvector are transformed through .
and the transformation matrix that changes into is
which says that the first & second row as well as the first & second column of have been swapped to yield (and visual inspection confirms this).
After finding the eigenvalues of both and and diagonalizing them into a diagonal matrix is
and the matrix of eigenvectors for is
and the matrix of eigenvectors for is
Comparing the first eigenvector (i.e., the first column) of both we can write the first column of by noting that the first element () matches the second element (), thus we put a 1 in the second element of the first column of . Repeating this procedure, we match the second element () to the first element (), thus we put a 1 in the first element of the second column of ; and the third element () to the third element (), thus we put a 1 in the third element of the third column of .
The resulting matrix is:
And comparing to the matrix from above, we find they are the same.
Now, in performing matrix multiplication, one essentially forms the dot product of each row of the first matrix with each column of the second. In this instance, we will be forming the dot product of each column of this matrix with the vector with elements we want to permute. That is, for example, if we call this vector v = (g0,...,g5)T,
So, the product of the permutation matrix with the vector v above, will be a vector in the form (ga1, ga2, ..., gaj), and that this then is a permutation of v since we have said that the permutation form is
The sum of the values in each column or row in a permutation matrix adds up to exactly 1. A possible generalization of permutation matrices are matrices where the values of each column and row add up to a number c.
For example in the following matrix M each column or row adds up to 5.
A matrix of this sort can be decomposed into permutation matrices as
Permutationsmatrix | Matrice de permutation | Matrice permutativa | Ma trận hoán vị
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Permutation matrix".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world