sym-0.11: Permutations, patterns, and statistics

MaintainerAnders Claesson <anders.claesson@gmail.com>
Safe HaskellNone

Sym.Perm.SSYT

Description

Data types for Semistandard Young Tableaux (SSYT) and functions for converting between (generalized) permutataions and SSYT. In other words, this module implements the Robinson-Schensted-Knuth (RSK) correspondence.

Synopsis

Documentation

type GeneralizedPerm = [(Int, Int)]Source

A Generalized Permutation is a lexicographically sorted list of pairs of non-negative integers.

type Entry = IntSource

An entry is a non-negative integer

type SSYT = [[Entry]]Source

A Semistandard Young Tableau (SSYT): the entries weakly increase along each row and strictly increase down each column.

data SSYTPair Source

A pair of Semistandard Young Tableaux.

Constructors

SSYTPair 

class Shape a whereSource

Methods

shape :: a -> [Int]Source

Instances

empty :: SSYTPairSource

A pair of empty Young tableaux.

null :: SSYTPair -> BoolSource

Check if a given pair of Young tableaux are empty.

display :: SSYTPair -> StringSource

Produce a string for pretty printing SSYT pairs.

fromPerm :: Perm -> SSYTPairSource

The Robinson-Schensted algorithm.

fromGeneralizedPerm :: GeneralizedPerm -> SSYTPairSource

The Robinson-Schensted-Knuth (RSK) algorithm.

toPerm :: SSYTPair -> PermSource

The inverse of the Robinson-Schensted algorithm.

toGeneralizedPerm :: SSYTPair -> GeneralizedPermSource

The inverse of the Robinson-Schensted-Knuth algorithm.