On this page
Take a square grid of non-negative numbers in which every row and every column adds up to 1. The Birkhoff–von Neumann theorem says this grid is always a mixture of permutation matrices. Here is why, with a 3×3 example and its uses.
What is a doubly stochastic matrix?
A doubly stochastic matrix is a square matrix of non-negative real numbers whose rows and columns each sum to 1.
A permutation matrix has exactly one 1 in every row and column and zeros elsewhere: a one-to-one matching of rows to columns. Our example A, row by row:
Row 1: 0.4, 0.4, 0.2
Row 2: 0.5, 0.1, 0.4
Row 3: 0.1, 0.5, 0.4
Check: every row and every column sums to 1.
What does the Birkhoff–von Neumann theorem say?
The set of all n×n doubly stochastic matrices is called the Birkhoff polytope. The theorem says this polytope is the convex hull of the n×n permutation matrices, and its corners (vertices) are exactly those permutation matrices. In plain words, every doubly stochastic matrix equals c1P1 + c2P2 + ... + ckPk, where each Pi is a permutation matrix and the weights ci are positive and add up to 1.
The Birkhoff polytope has n! vertices, one for each permutation, and lies in an (n−1)²-dimensional affine subspace, according to its Wikipedia entry. Garrett Birkhoff stated the result in 1946, the same page notes, and Kőnig and Steinitz had shown equivalent results earlier. The theorem also carries the name of John von Neumann, who published a 1953 paper relating a zero-sum game to the optimal assignment problem. The decomposition may not be unique.
How do you decompose a 3×3 doubly stochastic matrix?
Write a permutation as the column chosen in each row: (1, 3, 2) means row 1 takes column 1, row 2 column 3, row 3 column 2. Then repeat one move: pick a permutation on positive entries, weight it by its smallest entry, subtract.
(1, 3, 2) picks 0.4, 0.4, 0.5, so weight 0.4. Rows become (0, 0.4, 0.2), (0.5, 0.1, 0), (0.1, 0.1, 0.4); every line sums to 0.6.
(2, 1, 3) picks 0.4, 0.5, 0.4, so weight 0.4. Rows become (0, 0, 0.2), (0.1, 0.1, 0), (0.1, 0.1, 0).
(3, 1, 2) picks 0.2, 0.1, 0.1, so weight 0.1. Rows become (0, 0, 0.1), (0, 0.1, 0), (0.1, 0, 0).
What is left is 0.1 × P(3, 2, 1).
So A = 0.4 P(1, 3, 2) + 0.4 P(2, 1, 3) + 0.1 P(3, 1, 2) + 0.1 P(3, 2, 1), and the weights add up to 1.
Each step zeroes at least one entry, so the process ends. But can you always find the next permutation?
Why does Hall's theorem guarantee the next permutation?
Draw rows on the left and columns on the right, and join row i to column j whenever entry (i, j) is positive. A permutation using only positive entries is a perfect matching in this graph. Hall's marriage theorem, proved by Philip Hall in 1935, says a perfect matching exists if every group of k rows is joined to at least k columns.
Suppose every line sums to s, as in our steps (1, then 0.6, then 0.2). Any k rows carry ks in total, all of it sitting in the columns they touch. Each column holds only s, so they must touch at least k columns. Hall's condition holds, so the loop never gets stuck. The doubly stochastic matrix article gives a proof along the same lines. New to matchings? Read König's theorem on maximum matchings and vertex covers and Tutte's theorem on perfect matchings.
Where is the theorem used in assignment problems and scheduling?
Assignment. To give n jobs to n workers at least total cost, let x(i, j) be the share of job j given to worker i. These shares form a doubly stochastic matrix. A linear cost always reaches its lowest value at some corner, and the corners are permutation matrices, so splitting jobs never beats the best whole assignment. The assignment problem page reaches the same fact another way: the linear program always has an integer optimal solution.
Scheduling. In a network switch, each input needs a fixed share of time with each output, but can reach only one output per time slot. Li and Ansari describe the Birkhoff–von Neumann decomposition algorithm as setting the switch connection to permutation matrix Pk with probability equal to its weight, following Chang, Chen and Huang. For a school timetable, read our A as three teachers sharing their time across three classes over 10 periods: the decomposition gives 4 periods of (1, 3, 2), 4 of (2, 1, 3) and 1 each of (3, 1, 2) and (3, 2, 1), with no clashes.
To revise matchings and convex sets, open the Fermi Concept Library, where each concept has its own lesson and its place in the map.



