muEC::SG::Desc2ListPerm – generates all permutations with a given descent set

The muEC::SG::Desc2ListPerm function generates all permutations having a given descent set desc.

The result is a list of permutations in lexicographic order.

→ Examples

Call:

muEC::SG::Desc2ListPerm(desc, n)

Parameters:

desc

any list of positive integer

n

degree of a symmetric group (positive integer)

Related Functions:

muEC::SG::Perm2Desc

Example 1:

muEC::SG::Desc2ListPerm( [1,2,4], 5 );

math