Robinson–Schensted–Knuth correspondence

From HandWiki

In mathematics, the Robinson–Schensted–Knuth correspondence, also referred to as the RSK correspondence or RSK algorithm, is a combinatorial bijection between matrices A with non-negative integer entries and pairs (P,Q) of semistandard Young tableaux of equal shape, whose size equals the sum of the entries of A. More precisely the weight of P is given by the column sums of A, and the weight of Q by its row sums. It is a generalization of the Robinson–Schensted correspondence, in the sense that taking A to be a permutation matrix, the pair (P,Q) will be the pair of standard tableaux associated to the permutation under the Robinson–Schensted correspondence.

The Robinson–Schensted–Knuth correspondence extends many of the remarkable properties of the Robinson–Schensted correspondence, notably its symmetry: transposition of the matrix A results in interchange of the tableaux P,Q.

The Robinson–Schensted–Knuth correspondence

Introduction

The Robinson–Schensted correspondence is a bijective mapping between permutations and pairs of standard Young tableaux, both having the same shape. This bijection can be constructed using an algorithm called Schensted insertion, starting with an empty tableau and successively inserting the values σ1,...,σn of the permutation σ at the numbers 1,2,...n; these form the second line when σ is given in two-line notation:

[math]\displaystyle{ \sigma= \begin{pmatrix}1 & 2 & \ldots & n\\\sigma_1 & \sigma_2 & \ldots & \sigma_n\end{pmatrix} }[/math].

The first standard tableau P is the result of successive insertions; the other standard tableau Q records the successive shapes of the intermediate tableaux during the construction of P.

The Schensted insertion easily generalizes to the case where σ has repeated entries; in that case the correspondence will produce a semistandard tableau P rather than a standard tableau, but Q will still be a standard tableau. The definition of the RSK correspondence reestablishes symmetry between the P and Q tableaux by producing a semistandard tableau for Q as well.

Two-line arrays

The two-line array (or generalized permutation) wA corresponding to a matrix A is defined[1] as

[math]\displaystyle{ w_A = \begin{pmatrix}i_1 & i_2 & \ldots & i_m\\j_1 & j_2 & \ldots & j_m\end{pmatrix} }[/math]

in which for any pair (i,j) that indexes an entry Ai,j of A, there are Ai,j columns equal to [math]\displaystyle{ \tbinom{i}{j} }[/math], and all columns are in lexicographic order, which means that

  1. [math]\displaystyle{ i_1 \leq i_2 \leq i_3 \cdots \leq i_m }[/math], and
  2. if [math]\displaystyle{ i_r = i_s\, }[/math] and [math]\displaystyle{ r \leq s }[/math] then [math]\displaystyle{ j_r \leq j_s }[/math].

Example

The two-line array corresponding to

[math]\displaystyle{ A=\begin{pmatrix}1&0&2\\0&2&0\\1&1&0\end{pmatrix} }[/math]

is

[math]\displaystyle{ w_A = \begin{pmatrix}1 & 1 & 1 & 2 & 2 & 3 & 3\\ 1 & 3 & 3 & 2 & 2 & 1 & 2\end{pmatrix} }[/math]

Definition of the correspondence

By applying the Schensted insertion algorithm to the bottom line of this two-line array, one obtains a pair consisting of a semistandard tableau P and a standard tableau Q0, where the latter can be turned into a semistandard tableau Q by replacing each entry b of Q0 by the b-th entry of the top line of wA. One thus obtains a bijection from matrices A to ordered pairs,[2] (P,Q) of semistandard Young tableaux of the same shape, in which the set of entries of P is that of the second line of wA, and the set of entries of Q is that of the first line of wA. The number of entries j in P is therefore equal to the sum of the entries in column j of A, and the number of entries i in Q is equal to the sum of the entries in row i of A.

Example

In the above example, the result of applying the Schensted insertion to successively insert 1,3,3,2,2,1,2 into an initially empty tableau results in a tableau P, and an additional standard tableau Q0 recoding the successive shapes, given by

[math]\displaystyle{ P\quad=\quad\begin{matrix}1&1&2&2\\2&3\\3\end{matrix}, \qquad Q_0\quad=\quad\begin{matrix}1&2&3&7\\4&5\\6\end{matrix}, }[/math]

and after replacing the entries 1,2,3,4,5,6,7 in Q0 successively by 1,1,1,2,2,3,3 one obtains the pair of semistandard tableaux

[math]\displaystyle{ P\quad=\quad\begin{matrix}1&1&2&2\\2&3\\3\end{matrix}, \qquad Q\quad=\quad\begin{matrix}1&1&1&3\\2&2\\3\end{matrix}. }[/math]

Direct definition of the RSK correspondence

The above definition uses the Schensted algorithm, which produces a standard recording tableau Q0, and modifies it to take into account the first line of the two-line array and produce a semistandard recording tableau; this makes the relation to the Robinson–Schensted correspondence evident. It is natural however to simplify the construction by modifying the shape recording part of the algorithm to directly take into account the first line of the two-line array; it is in this form that the algorithm for the RSK correspondence is usually described. This simply means that after every Schensted insertion step, the tableau Q is extended by adding, as entry of the new square, the b-th entry ib of the first line of wA, where b is the current size of the tableaux. That this always produces a semistandard tableau follows from the property (first observed by Knuth[2]) that for successive insertions with an identical value in the first line of wA, each successive square added to the shape is in a column strictly to the right of the previous one.

Here is a detailed example of this construction of both semistandard tableaux. Corresponding to a matrix

[math]\displaystyle{ A=\begin{pmatrix} 0&0&0&0&0&0&0\\ 0&0&0&1&0&1&0\\ 0&0&0&1&0&0&0\\ 0&0&0&0&0&0&1\\ 0&0&0&0&1&0&0\\ 0&0&1&1&0&0&0\\ 0&0&0&0&0&0&0\\ 1&0&0&0&0&0&0\\ \end{pmatrix} }[/math]

one has the two-line array

[math]\displaystyle{ w_A=\begin{pmatrix}2 & 2 & 3 & 4 & 5 & 6 & 6 & 8 \\ 4 & 6 & 4 & 7 & 5 & 3 & 4 & 1 \end{pmatrix}. }[/math]

The following table shows the construction of both tableaux for this example

Inserted pair [math]\displaystyle{ \tbinom24 }[/math] [math]\displaystyle{ \tbinom26 }[/math] [math]\displaystyle{ \tbinom34 }[/math] [math]\displaystyle{ \tbinom47 }[/math] [math]\displaystyle{ \tbinom55 }[/math] [math]\displaystyle{ \tbinom63 }[/math] [math]\displaystyle{ \tbinom64 }[/math] [math]\displaystyle{ \tbinom81 }[/math]
P [math]\displaystyle{ \begin{matrix}4\end{matrix} }[/math] [math]\displaystyle{ \begin{matrix}4&6\end{matrix} }[/math] [math]\displaystyle{ \begin{matrix}4&4\\6\end{matrix} }[/math] [math]\displaystyle{ \begin{matrix}4&4&7\\6\end{matrix} }[/math] [math]\displaystyle{ \begin{matrix}4&4&5\\6&7\end{matrix} }[/math] [math]\displaystyle{ \begin{matrix}3&4&5\\4&7\\6\end{matrix} }[/math] [math]\displaystyle{ \begin{matrix}3&4&4\\4&5\\6&7\end{matrix} }[/math] [math]\displaystyle{ \begin{matrix}1&4&4\\3&5\\4&7\\6\end{matrix} }[/math]
Q [math]\displaystyle{ \begin{matrix}2\end{matrix} }[/math] [math]\displaystyle{ \begin{matrix}2&2\end{matrix} }[/math] [math]\displaystyle{ \begin{matrix}2&2\\3\end{matrix} }[/math] [math]\displaystyle{ \begin{matrix}2&2&4\\3\end{matrix} }[/math] [math]\displaystyle{ \begin{matrix}2&2&4\\3&5\end{matrix} }[/math] [math]\displaystyle{ \begin{matrix}2&2&4\\3&5\\6\end{matrix} }[/math] [math]\displaystyle{ \begin{matrix}2&2&4\\3&5\\6&6\end{matrix} }[/math] [math]\displaystyle{ \begin{matrix}2&2&4\\3&5\\6&6\\8\end{matrix} }[/math]

Combinatorial properties of the RSK correspondence

The case of permutation matrices

If [math]\displaystyle{ A }[/math] is a permutation matrix then RSK outputs standard Young Tableaux (SYT), [math]\displaystyle{ P,Q }[/math] of the same shape [math]\displaystyle{ \lambda }[/math]. Conversely, if [math]\displaystyle{ P,Q }[/math] are SYT having the same shape [math]\displaystyle{ \lambda }[/math], then the corresponding matrix [math]\displaystyle{ A }[/math] is a permutation matrix. As a result of this property by simply comparing the cardinalities of the two sets on the two sides of the bijective mapping we get the following corollary:

Corollary 1: For each [math]\displaystyle{ n \geq 1 }[/math] we have [math]\displaystyle{ \sum_{\lambda\vdash n} (t_\lambda)^2= n! }[/math] where [math]\displaystyle{ \lambda\vdash n }[/math] means [math]\displaystyle{ \lambda }[/math] varies over all partitions of [math]\displaystyle{ n }[/math] and [math]\displaystyle{ t_\lambda }[/math] is the number of standard Young tableaux of shape [math]\displaystyle{ \lambda }[/math].

Symmetry

Let [math]\displaystyle{ A }[/math] be a matrix with non-negative entries. Suppose the RSK algorithm maps [math]\displaystyle{ A }[/math] to [math]\displaystyle{ (P,Q) }[/math] then the RSK algorithm maps [math]\displaystyle{ A^T }[/math] to [math]\displaystyle{ (Q,P) }[/math], where [math]\displaystyle{ A^T }[/math] is the transpose of [math]\displaystyle{ A }[/math].[1]

In particular for the case of permutation matrices, one recovers the symmetry of the Robinson–Schensted correspondence:[3]

Theorem 2: If the permutation [math]\displaystyle{ \sigma }[/math] corresponds to a triple [math]\displaystyle{ (\lambda,P,Q) }[/math], then the inverse permutation, [math]\displaystyle{ \sigma^{-1} }[/math], corresponds to [math]\displaystyle{ (\lambda,Q,P) }[/math].

This leads to the following relation between the number of involutions on [math]\displaystyle{ S_n }[/math] with the number of tableaux that can be formed from [math]\displaystyle{ S_n }[/math] (An involution is a permutation that is its own inverse):[3]

Corollary 2: The number of tableaux that can be formed from [math]\displaystyle{ \{1,2,3, \ldots,n\} }[/math] is equal to the number of involutions on [math]\displaystyle{ \{1,2,3, \ldots,n\} }[/math].

Proof: If [math]\displaystyle{ \pi }[/math] is an involution corresponding to [math]\displaystyle{ (P,Q) }[/math], then [math]\displaystyle{ \pi = \pi^- }[/math] corresponds to [math]\displaystyle{ (Q,P) }[/math]; hence [math]\displaystyle{ P = Q }[/math]. Conversely, if [math]\displaystyle{ \pi }[/math] is any permutation corresponding to [math]\displaystyle{ (P,P) }[/math], then [math]\displaystyle{ \pi^- }[/math] also corresponds to [math]\displaystyle{ (P,P) }[/math]; hence [math]\displaystyle{ \pi = \pi^- }[/math]. So there is a one-one correspondence between involutions [math]\displaystyle{ \pi }[/math] and tableaux [math]\displaystyle{ P }[/math]

The number of involutions on [math]\displaystyle{ \{1,2,3, \ldots,n\} }[/math] is given by the recurrence:

[math]\displaystyle{ a(n) = a(n-1)+(n-1)a(n-2) \, }[/math]

Where [math]\displaystyle{ a(1) = 1,a(2) = 2 }[/math]. By solving this recurrence we can get the number of involutions on [math]\displaystyle{ \{1,2,3, \ldots,n\} }[/math],

[math]\displaystyle{ I(n) = n!\sum_{k=0}^{\lfloor n/2 \rfloor} \frac{1}{2^kk!(n-2k)!} }[/math]

Symmetric matrices

Let [math]\displaystyle{ A = A^T }[/math] and let the RSK algorithm map the matrix [math]\displaystyle{ A }[/math] to the pair [math]\displaystyle{ (P,P) }[/math], where [math]\displaystyle{ P }[/math] is an SSYT of shape [math]\displaystyle{ \alpha }[/math].[1] Let [math]\displaystyle{ \alpha = (\alpha_1,\alpha_2,\ldots) }[/math] where the [math]\displaystyle{ \alpha_i \in N }[/math] and [math]\displaystyle{ \sum \alpha_i \lt \infty }[/math]. Then the map [math]\displaystyle{ A \longmapsto P }[/math] establishes a bijection between symmetric matrices with row([math]\displaystyle{ A }[/math]) [math]\displaystyle{ = \alpha }[/math] and SSYT's of type [math]\displaystyle{ \alpha }[/math].

Applications of the RSK correspondence

Cauchy's identity

The Robinson–Schensted–Knuth correspondence provides a direct bijective proof of the following celebrated identity for symmetric functions:

[math]\displaystyle{ \prod_{i,j} (1 - x_iy_j)^{-1} = \sum_{\lambda} s_{\lambda}(x)s_{\lambda}(y) }[/math]

where [math]\displaystyle{ s_{\lambda} }[/math] are Schur functions.

Kostka numbers

Fix partitions [math]\displaystyle{ \mu,\nu \vdash n }[/math], then

[math]\displaystyle{ \sum_{\lambda\vdash n} K_{\lambda \mu} K_{\lambda \nu} = N_{\mu \nu} }[/math]

where [math]\displaystyle{ K_{\lambda \mu} }[/math] and [math]\displaystyle{ K_{\lambda \nu} }[/math] denote the Kostka numbers and [math]\displaystyle{ N_{\mu \nu} }[/math] is the number of matrices [math]\displaystyle{ A }[/math], with non-negative elements, with row([math]\displaystyle{ A }[/math]) [math]\displaystyle{ = \mu }[/math] and column([math]\displaystyle{ A }[/math]) [math]\displaystyle{ = \nu }[/math].

References

  1. 1.0 1.1 1.2 Stanley, Richard P. (1999). Enumerative Combinatorics. 2. New York: Cambridge University Press. pp. 316–380. ISBN 0-521-55309-1. 
  2. 2.0 2.1 Knuth, Donald E. (1970). "Permutations, matrices, and generalized Young tableaux". Pacific Journal of Mathematics 34 (3): 709–727. doi:10.2140/pjm.1970.34.709. 
  3. 3.0 3.1 Knuth, Donald E. (1973). The Art of Computer Programming, Vol. 3: Sorting and Searching. London: Addison–Wesley. pp. 54–58. ISBN 0-201-03803-X.