The Robinson-Schensted-Knuth Correspondence
Anchor (Master): Stanley 1999 *Enumerative Combinatorics, Volume 2* 2e (Cambridge) §7.11-7.14, Appendix 1 (RSK and dual RSK, the Cauchy and dual Cauchy identities as bijective consequences, Greene's theorem, Knuth equivalence and the plactic monoid, the symmetry theorem of Schützenberger); Knuth 1970 *Pacific J. Math.* 34 (the RSK generalisation to matrices); Schensted 1961 *Canad. J. Math.* 13 (longest increasing subsequences); Greene 1974 *J. Combin. Theory A* 14 (the shape via increasing subsequences); Sagan 2001 *The Symmetric Group* 2e Ch. 3; Baik-Deift-Johansson 1999 *J. Amer. Math. Soc.* 12 (the Tracy-Widom limit of the longest increasing subsequence)
Intuition Beginner
Imagine reading off a shuffled list of distinct numbers one at a time, and filing each new number into a growing left-justified array of boxes by a fixed, mechanical rule. The rule is patient: a new number tries to settle at the right end of the top row, but if it is too small to sit there, it shoves out (bumps) the smallest entry that blocks it, and that bumped entry drops to the next row down to repeat the same struggle. Each number you read causes a cascade of bumps that ends by adding exactly one fresh box somewhere. This filing procedure is row insertion, and it is the engine of the whole unit.
Why bother? Because the procedure secretly sorts the chaos of a shuffle into two tidy staircase-shaped tables. One table, , records where every value finally lands; the other, , records the order in which the boxes were born. The remarkable fact is that the original shuffle can be reconstructed perfectly from this pair of tables — nothing is lost. So a shuffle of numbers and a pair of equally-shaped staircase tables are two names for the same object. This dictionary is the Robinson-Schensted correspondence.
The pay-off is that questions about the shuffle that look hard become easy in the table language. How long is the longest stretch of values that keep increasing, scattered through the shuffle? You do not have to search: it is simply the width of the top row of . Counting, symmetry, and even the behaviour of a random shuffle all become readable off the shape of the tables. The same filing rule, run on lists with repeats or on grids of counts, gives an even larger dictionary used throughout this chapter.
Visual Beginner
Inserting the permutation one value at a time. At each step the new value bumps the leftmost entry strictly larger than it from a row; the bumped entry moves down to the next row and repeats. The recording table writes the step number into whichever box is newly created.
| step | insert | the table after the step | new box born |
|---|---|---|---|
| 1 | row 1: | top row, position 1 | |
| 2 | row 1: ; row 2: | row 2 (the bumped the down) | |
| 3 | row 1: ; row 2: | row 1, position 2 | |
| 4 | row 1: ; row 2: | row 2, position 2 ( bumped down) |
The final pair is with rows and , and with rows and . Both have the same staircase shape (two boxes over two boxes). Notice the entries of increase along rows and down columns, and so do the entries of : each is a standard table, using each number once. The longest increasing run hidden in has length (for instance or ), and that is exactly the width of the top row.
Worked example Beginner
Let us run the full filing on the permutation and read off the two tables, then check the longest-increasing-run fact.
Step 1. Insert . The top row is empty, so sits at the start: has top row . A box was born at the top-left, so has top row .
Step 2. Insert . Compare with the top row . Since is not smaller than , it sits at the right end of the top row: top row becomes . The new box is the second box of the top row, so top row becomes .
Step 3. Insert . Compare with the top row . The value is smaller than , so it bumps the : the top row becomes , and the bumped drops to row two. Row two was empty, so sits there. The new box is the start of row two, so gets a in the new row-two box.
Step 4. Read off. The table has top row and second row . The table has top row and second row . Both have the same shape: two boxes over one.
Step 5. Check the longest increasing run. In the longest stretch of values that increase (reading left to right, not necessarily next to each other) is , length . The top row of is , width . They match.
What this tells us: the mechanical filing turns a permutation into a matched pair of standard tables, and a feature of the permutation that would take searching — the longest increasing run — is simply the width of the first row. Run in reverse, the same pair rebuilds , so no information was lost.
Check your understanding Beginner
Formal definition Intermediate+
Work with semistandard and standard Young tableaux of 40.03.02; all notation (the shape , , , the content, the conjugate , , the Schur function ) is inherited from that unit and recorded in _meta/NOTATION.md. Throughout, tableau means a column-strict, row-weakly-increasing filling.
Definition (row insertion). Let be a semistandard tableau and a positive integer. The row insertion is computed by: set and the inserted value . In row , if weakly exceeds every entry, append at the right end and stop; otherwise let the leftmost entry strictly greater than be at column , replace it by (this is a bump), set to the replaced entry, increment , and repeat in the next row. The procedure terminates, adding exactly one new cell, and is again a semistandard tableau. The cell added is the bump path's terminal cell.
Definition (Robinson-Schensted). For a permutation , form the insertion tableau and the recording tableau by placing the entry into the cell created at step . Then for a common shape . The Robinson-Schensted map is a bijection $$ S_n ;\xrightarrow{\ \sim\ }; \bigsqcup_{\lambda \vdash n} \mathrm{SYT}(\lambda) \times \mathrm{SYT}(\lambda). $$
Definition (RSK, the Knuth generalisation). A generalised permutation is a two-line array whose columns are sorted lexicographically (by top entry, ties broken by bottom entry). Such arrays biject with -matrices of finite support, . RSK inserts to build a tableau and records the top entries in at the cells created. It is a bijection $$ {\mathbb{N}\text{-matrices of finite support}} ;\xrightarrow{\ \sim\ }; \bigsqcup_{\lambda} \mathrm{SSYT}(\lambda) \times \mathrm{SSYT}(\lambda), $$ with and . Restricting to -matrices and using column insertion gives the dual RSK, a bijection between -matrices and pairs with , .
Definition (increasing/decreasing subsequences). An increasing subsequence of of length is indices with ; decreasing reverses the second inequalities. Write and for the maximal lengths, and for the maximal size of a union of increasing subsequences.
Counterexamples to common slips Intermediate+
"Bumping replaces the leftmost entry ." It replaces the leftmost entry strictly greater than (, not ). Using would break column-strictness and is the column-insertion convention instead; mixing the two corrupts the bijection. Equal values append to the right under row insertion, which is exactly why repeated entries are allowed in a row.
"RS works for any sequence, giving two SYT." For a word with repeated letters, is semistandard (not standard) and the right partner is the RSK recording tableau, also semistandard. Two standard tableaux arise only from genuine permutations (distinct entries). Forcing standardness on a word with repeats loses the content data that RSK is designed to preserve.
"The recording tableau tracks the same numbers as ." records creation order (for RS) or the top line of the generalised permutation (for RSK), not the inserted values. Confusing and inverts the roles in the symmetry theorem .
Key theorem with proof Intermediate+
The signature theorem is that row insertion is invertible step by step, so the Robinson-Schensted map is a bijection enumerating , and Schensted's theorem reads the longest increasing subsequence off the first row.
Theorem (Robinson-Schensted bijection and Schensted's theorem). The map is a bijection from onto ; in particular . The shape satisfies , the length of the longest increasing subsequence of , and , the length of the longest decreasing subsequence. [Stanley §7.11]
Proof. Two parts: bijectivity by reverse insertion, then Schensted's identification.
(i) Bijectivity. Given , reconstruct . The largest entry of sits in some cell , necessarily an outer corner of (its row and column maximal). The value occupying in was the last entry to settle, ending a bump path; reverse the path: starting from , take the entry there, move up one row, and find the rightmost entry strictly less than , swap roles ( bumps it upward), continuing until reaching row , where the final ejected value is . Deleting cell from both and yields a smaller pair of equal shape; induction recovers . Each reverse step exactly undoes a forward insertion because the forward bump path is monotone (the bumped entries strictly increase as they fall), so the rightmost-smaller search inverts the leftmost-larger search. Forward and reverse are mutually inverse, giving the bijection; counting cardinalities gives .
(ii) Schensted's theorem. Fix the first row of . After inserting , the entry in cell is the smallest possible last value of an increasing subsequence of of length . This invariant holds initially and is preserved by insertion: inserting into position of row means is the new smallest length- tail, extending the length- subsequence whose tail sat at . Hence the width of row equals the maximal length of an increasing subsequence, . Applying the same statement to the reversal/complement (insertion of read so that increasing becomes decreasing) — equivalently using that is the transpose-compatible tableau — gives for the first column.
Bridge. This theorem is the foundational reason RSK is more than an algorithm: the reverse-insertion argument shows the correspondence is a genuine bijection, so it transports any count or symmetry between permutations and tableau pairs. It builds toward the symmetry theorem and Greene's theorem of Advanced results, where transposing the matrix swaps and and unions of increasing subsequences recover the entire shape; and it appears again in 40.03.03, where the same insertion run on generalised permutations is exactly the bijective proof of the Cauchy identity . The identity is dual to the representation-theoretic of 07.05.03; this is exactly the statement that RS is the combinatorial shadow of the decomposition of the group algebra. Putting these together, Schensted's first-row reading generalises into Greene's theorem, the reverse insertion supplies invertibility, and the content bookkeeping of RSK supplies the symmetric-function identity — three faces of one bumping rule.
Exercises Intermediate+
Advanced results Master
The bumping rule organises into a monoid structure, a symmetry exchanging the two tableaux, a complete reading of the shape by subsequences, and the asymptotics of a random permutation.
Theorem 1 (Knuth equivalence and the plactic monoid). Two words over have the same insertion tableau if and only if they are connected by elementary Knuth transformations: when , and when (applied to adjacent triples within a word). The quotient of the free monoid by these relations is the plactic monoid, and is the canonical representative of each class. Equivalently, jeu de taquin — sliding the empty cell of a skew tableau inward by the smaller-neighbour rule — computes the same from any skew filling with reading word in the class, so jeu de taquin and row insertion define one rectification operation [Stanley Appendix 1]. This is the combinatorial substrate of the Littlewood-Richardson rule developed in the co-produced 40.03.05.
Theorem 2 (the symmetry theorem). If under RSK, then ; in the matrix form, transposing the -matrix exchanges and . Consequently the permutations fixed by inversion — the involutions of — biject with single standard Young tableaux (), so $$ #{\sigma \in S_n : \sigma^2 = \mathrm{id}} ;=; \sum_{\lambda \vdash n} f^\lambda, $$ and the number of fixed points of equals the number of columns of odd length in . The proof is the matrix-ball (Viennot shadow) construction, which makes the symmetry a reflection of the lattice picture across the diagonal [Fulton Ch. 4].
Theorem 3 (Greene's theorem). For every , the partial sums of the shape read off unions of monotone subsequences: $$ \lambda_1 + \cdots + \lambda_k = i_k(\sigma), \qquad \lambda_1' + \cdots + \lambda_k' = d_k(\sigma), $$ where (resp. ) is the maximal cardinality of a union of increasing (resp. decreasing) subsequences. The case is Schensted's theorem; the full statement determines entirely from the subsequence statistics of and is invariant under Knuth equivalence [Stanley §7.13].
Theorem 4 (longest increasing subsequence of a random permutation). Let for uniform in . Then (the Ulam problem, solved by the Logan-Shepp-Vershik-Kerov limit shape of the RSK Young diagram under Plancherel measure, ). The fluctuations obey the Baik-Deift-Johansson theorem: as , $$ \frac{\ell_n - 2\sqrt{n}}{n^{1/6}} ;\xrightarrow{\ d\ }; \mathrm{TW}_2, $$ the Tracy-Widom GUE distribution, the same law governing the largest eigenvalue of a random Hermitian matrix. RSK is the bridge: , and Plancherel-random shapes are an integrable determinantal point process.
Synthesis. Putting these together, RSK is the single bijection from which the combinatorics, the symmetry, and the asymptotics all descend. The foundational reason is that row insertion is a Knuth-invariant operation: Theorem 1 makes the insertion tableau the normal form of the plactic monoid, so jeu de taquin, the Littlewood-Richardson rule of the co-produced 40.03.05, and the Schur-positivity of skew functions are all governed by the same elementary moves. This is exactly why the symmetry theorem of Theorem 2 holds — transposing the matrix is the diagonal reflection of Viennot's shadow lines — and why involutions biject with single tableaux, making the involution count, dual to the of the bijection itself. Greene's theorem generalises Schensted's first-row reading to the whole shape, and the bridge to analysis is the Plancherel measure that RSK pushes forward from the uniform permutation: the Logan-Shepp-Vershik-Kerov limit shape and the Baik-Deift-Johansson Tracy-Widom fluctuations are the central insight that the longest increasing subsequence is an eigenvalue in disguise, tying this purely combinatorial rule to random-matrix theory. The same content bookkeeping that proves the Cauchy identity of 40.03.03 is the generating function of this measure, and the Frobenius characteristic of the co-produced 40.03.06 reads as the decomposition of .
Full proof set Master
Proposition 1 (row insertion is well-defined and shape-additive). For a semistandard tableau and an integer , is a semistandard tableau whose shape is that of with one cell added, and the bump path moves weakly left as it descends.
Proof. Induct on the number of rows touched. In row , either appends at the right (the row stays weakly increasing, no column below is created above an existing cell, so column-strictness is vacuous for the new corner) or replaces the leftmost entry at column ; then row remains weakly increasing because is at least the entry to its left (that entry was , being not ) and strictly less than and all to 's right. The bumped inserts into row ; since was at column of row and the entry below it (if any) was , 's insertion point in row is at column , giving the weak-left descent and preserving column-strictness (the new entry in row at column is the old entry there and the entry above-left). The recursion terminates when a row appends, adding exactly one corner cell. The resulting filling is row-weak and column-strict throughout.
Proposition 2 (RS is a bijection). The map is a bijection .
Proof. Construct the two-sided inverse by reverse insertion. Given , the cell holding in is an outer corner; let be the entry of at . Reverse-bump : delete , and moving up from row , in the row above find the rightmost entry , place in 's cell, set , and continue to row ; the value ejected from row is . The reverse step inverts a forward step: a forward insertion's bump path is strictly increasing in the bumped values and weakly left-descending (Proposition 1), so the rightmost-smaller search in row recovers exactly the cell from which the forward path entered row . After ejecting , on shape is a smaller equal-shape pair; downward induction on yields , all distinct (an outer-corner deletion never repeats a value). Forward reverse and reverse forward are identities, so the map is bijective. Equating cardinalities, .
Proposition 3 (Schensted's theorem). and , where .
Proof. Maintain the invariant: after inserting a prefix, the entry at cell of is the least possible final term of an increasing subsequence of length in that prefix. Base holds. Inductive step: inserting , if lands at it bumped an entry , and extends a length- increasing subsequence ending at , so the least length- tail is updated to ; if appends at the new corner , it creates a length- subsequence, increasing . The invariant persists, so at the end is the greatest admitting an increasing subsequence of length , i.e. . For : row insertion of and column insertion are related by transposition of , and column insertion's first-column invariant tracks decreasing subsequences; alternatively where reverses the values, and the RSK shape of is (a known consequence of the symmetry between row/column insertion). Either way .
Proposition 4 (symmetry theorem). If then .
Proof. Encode as the permutation matrix with a ball at , and run Viennot's shadow-line construction: the first family of shadow lines (lower-left light from the southwest) records, by their northeast corners, the first row of from the -coordinates and the first row of from the -coordinates; iterating on the remaining balls builds successive rows. Inverting reflects every ball across the main diagonal , which swaps the roles of the - and -coordinates throughout the shadow construction, hence exchanges (read from one coordinate) and (read from the other) while preserving the common shape. Therefore . Setting forces , so involutions biject with single SYT and their number is ; the fixed points of are the cells of not paired by a -cycle of the shadow involution, which are the odd-length columns.
Proposition 5 (Cauchy identity by RSK). .
Proof. Weight an -matrix of finite support by . The total weight factors as a geometric product: , the right side. RSK is a weight-preserving bijection with , where the inserted entries (column indices ) build with column sums of (the -exponents), and the recorded top indices build with row sums (the -exponents). Thus . Because RSK is a bijection onto all pairs of equal-shape SSYT with and independent, summing the weights regroups as by the combinatorial definition of in 40.03.02. The two evaluations of coincide, giving the identity; the -matrix restriction with column insertion yields the dual identically.
Connections Master
This unit is built directly on the semistandard and standard Young tableaux and the combinatorial Schur function of
40.03.02: row insertion is an operation on exactly those tableaux, the RS bijection lands in pairs of standard tableaux of a common shape, and the RSK content bookkeeping (column sums to , row sums to ) is what turns the bijection into a Schur-function identity. The first-row/first-column readings of Schensted's theorem use the shape and conjugate defined there.The Cauchy identity and the dual , of which RSK and dual RSK are the bijective proofs, are the subject of the co-produced
40.03.03, where they are derived from the Hall inner product and used to prove the orthonormality ; the Knuth equivalence and jeu de taquin developed in Advanced results are the engine of the Littlewood-Richardson rule of the co-produced40.03.05; and the Frobenius characteristic of the co-produced40.03.06reads the bijection's enumerative shadow as the decomposition of the group algebra .The identity is the combinatorial face of the representation theory of the symmetric group: is the dimension of the Specht module of
07.05.03(so RS is the bijective shadow of ), the Young diagrams indexing the tableaux are the irreducibles of07.05.02, and the bumping that defines insertion is the combinatorial core of Schur-Weyl duality07.05.04. The longest-increasing-subsequence asymptotics connect this combinatorics to the random-matrix Tracy-Widom law and to the determinantal point processes that recur across mathematical physics.
Historical & philosophical context Master
The insertion algorithm was first written down by Gilbert de Beauregard Robinson in a 1938 paper on the representation theory of the symmetric group, as an auxiliary device in an attempted proof of the Littlewood-Richardson rule; it was rediscovered and turned into a clean bijective algorithm with the longest-increasing-subsequence application by Craige Schensted in his 1961 Canadian Journal of Mathematics paper [Schensted 1961], from which the bumping procedure and Schensted's theorem take their modern form. Donald Knuth, in a 1970 Pacific Journal of Mathematics paper [Knuth 1970], generalised the correspondence from permutations to arbitrary nonnegative integer matrices, identified the elementary word relations (now the Knuth relations) that characterise the insertion tableau, and connected the construction to the Cauchy identity for Schur functions; the three-name attribution Robinson-Schensted-Knuth dates from this work.
Curtis Greene's 1974 theorem [Greene 1974] in the Journal of Combinatorial Theory showed that the entire shape, not just its first row, is read off by unions of increasing and decreasing subsequences, completing Schensted's partial result. Marcel-Paul Schützenberger supplied the symmetry theorem and the jeu-de-taquin theory in the 1960s-70s, and Alain Lascoux and Schützenberger isolated the plactic monoid (1981) as the algebraic home of Knuth equivalence. The asymptotic study of the longest increasing subsequence of a random permutation began with Stanisław Ulam's question; the leading order was established through the limit-shape results of Logan and Shepp and independently Vershik and Kerov (1977), and the Tracy-Widom fluctuation law was proved by Jinho Baik, Percy Deift, and Kurt Johansson in their 1999 paper in the Journal of the American Mathematical Society [Baik-Deift-Johansson 1999], identifying the combinatorial statistic with the largest eigenvalue of a random Hermitian matrix.
Bibliography Master
@book{stanley1999ec2,
author = {Stanley, Richard P.},
title = {Enumerative Combinatorics, Volume 2},
series = {Cambridge Studies in Advanced Mathematics},
volume = {62},
publisher = {Cambridge University Press},
year = {1999}
}
@book{fulton1997young,
author = {Fulton, William},
title = {Young Tableaux: With Applications to Representation Theory and Geometry},
series = {London Mathematical Society Student Texts},
volume = {35},
publisher = {Cambridge University Press},
year = {1997}
}
@book{sagan2001symmetric,
author = {Sagan, Bruce E.},
title = {The Symmetric Group: Representations, Combinatorial Algorithms, and Symmetric Functions},
series = {Graduate Texts in Mathematics},
volume = {203},
edition = {2},
publisher = {Springer},
year = {2001}
}
@article{schensted1961,
author = {Schensted, Craige},
title = {Longest increasing and decreasing subsequences},
journal = {Canadian Journal of Mathematics},
volume = {13},
pages = {179--191},
year = {1961}
}
@article{knuth1970,
author = {Knuth, Donald E.},
title = {Permutations, matrices, and generalized Young tableaux},
journal = {Pacific Journal of Mathematics},
volume = {34},
pages = {709--727},
year = {1970}
}
@article{greene1974,
author = {Greene, Curtis},
title = {An extension of Schensted's theorem},
journal = {Advances in Mathematics},
volume = {14},
pages = {254--265},
year = {1974}
}
@article{robinson1938,
author = {Robinson, Gilbert de B.},
title = {On the representations of the symmetric group},
journal = {American Journal of Mathematics},
volume = {60},
number = {3},
pages = {745--760},
year = {1938}
}
@article{baikdeiftjohansson1999,
author = {Baik, Jinho and Deift, Percy and Johansson, Kurt},
title = {On the distribution of the length of the longest increasing subsequence of random permutations},
journal = {Journal of the American Mathematical Society},
volume = {12},
number = {4},
pages = {1119--1178},
year = {1999}
}
@article{logansheppshepp1977,
author = {Logan, Benjamin F. and Shepp, Larry A.},
title = {A variational problem for random Young tableaux},
journal = {Advances in Mathematics},
volume = {26},
number = {2},
pages = {206--222},
year = {1977}
}