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

FUNCTION: Desc2ListPerm - generate all permutations with a given descent set

CALLING SEQUENCE:

Desc2ListPerm(desc, n)
SG[Desc2ListPerm](desc, n)

PARAMETERS:

desc = any list of positive integer
n = any positive integer denoting the degree of a symmetric group

SYNOPSIS:

EXAMPLES:


> with(SG):
> Desc2ListPerm([1,2,4], 5);
 
  [[3, 2, 1, 5, 4], [4, 2, 1, 5, 3], [4, 3, 1, 5, 2], [4, 3, 2, 5, 1],
 
   [5, 2, 1, 4, 3], [5, 3, 1, 4, 2], [5, 3, 2, 4, 1], [5, 4, 1, 3, 2],
 
   [5, 4, 2, 3, 1]]
 

SEE ALSO: Perm2Desc