ACE BN BNA CG CLG COMP FM FREE HEKA IDCA NCA NCSF PART SFA SG SGA SP SYMF TAB TYP

FUNCTION: Perm2Interval - compute all codes of permutations below a given one

CALLING SEQUENCE:

Perm2Interval(perm)
SG[Perm2Interval](perm)

PARAMETERS:

perm = any list denoting a permutation

SYNOPSIS:

EXAMPLES:


> with(SG):
> Perm2Interval([3,1,2]);
 
                  [[2, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 0]]
 
> map(Code2Perm, Perm2Interval([3,2,1]));
 
      [[3, 2, 1], [3, 1, 2], [2, 3, 1], [2, 1, 3], [1, 3, 2], [1, 2, 3]]
 

SEE ALSO: CompPerm Perm2Betti IDCA[Perm2Demazure]