Permutation Matrix

DOWNLOAD Mathematica Notebook

A permutation matrix is a matrix obtained by permuting the rows of an n×n identity matrix according to some permutation of the numbers 1 to n. Every row and column therefore contains precisely a single 1 with 0s everywhere else, and every permutation corresponds to a unique permutation matrix. There are therefore n! permutation matrices of size n, where n! is a factorial.

The permutation matrices of order two are given by

 [1 0; 0 1],[0 1; 1 0]
(1)

and of order three are given by

  [1 0 0; 0 1 0; 0 0 1],[1 0 0; 0 0 1; 0 1 0],[0 1 0; 1 0 0; 0 0 1],[0 1 0; 0 0 1; 1 0 0], 
 [0 0 1; 1 0 0; 0 1 0],[0 0 1; 0 1 0; 1 0 0].
(2)

A permutation matrix is nonsingular, and the determinant is always +/-1. In addition, a permutation matrix A satisfies

 AA^(T)=I,
(3)

where A^(T) is a transpose and I is the identity matrix.

Applied to a matrix M, A_(p)M gives M with rows interchanged according to the permutation vector p, and MA_(p) gives M with the columns interchanged according to the given permutation vector.

Interpreting the 1s in an n×n permutation matrix as rooks gives an allowable configuration of nonattacking rooks on an n×n chessboard. However, the permutation matrices provide only a subset of possible solutions.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.