Closed
Description
- In sage 3.4, the Robinson Schensted algorithm is coded for a permutation :
sage: p = Permutation([3, 6, 5, 2, 7, 4, 1])
sage: p.robinson_schensted()
[[[1, 4, 7], [2, 5], [3], [6]], [[1, 2, 5], [3, 6], [4], [7]]]
Since this algorithm is invertible, it would be nice to allow to construct a permutation from a pair of standard tableaux of the same shape.
- The Robinson-Schensted is broken on the empty permutation. It should simply return a pair of empty tableaux :
sage: p=Permutation([])
sage: p.robinson_schensted()
Traceback (most recent call last):
...
ValueError: invalid tableau
CC: @sagetrac-sage-combinat
Component: combinatorics
Keywords: robinson schensted
Issue created by migration from https://trac.sagemath.org/ticket/5551