Schensted insertion algorithm

Tags: #definition

Schensted insertion algorithm

Suppose we have the permutation w=w1,,wn. This algorithm constructs a pair of Young tableau(x)s with the same shape associated to it.

The shape of the resulting tableaux is called the Schensted shape of a permutation.

Properties

Algorithm

To construct P, the insertion tableau:

To construct Q, the recording tableaux:

Now we need to give an inverse with this algorithm:

  1. Find the max entry in Q
  2. Find the corresponding entry in P, say i
  3. Iterate until you reach the first row:
    1. Look for the max entry in the previous row (above) that is less than i
    2. Set this to be the new i
  4. When you reach the first row, the number that you pick is the last element of the permutation.