muEC::SG::Perm2CycleType – computes the cycle type of a permutation

The muEC::SG::Perm2CycleType function calculates the cycle type of the permutation perm.

A permutation can be expressed as a product of disjoint cycles. The corresponding partition is obtained by listing in weakly decreasing order the lengths of these cycles.

→ Examples

Call:

muEC::SG::Perm2CycleType(perm)

Parameters:

perm

any list denoting a permutation

Related Functions:

muEC::SG::Cycle2Perm, muEC::SG::Perm2Cycle

Example 1:

muEC::SG::Perm2CycleType( [7,1,3,6,5,4,2] );

math

muEC::SG::Perm2Cycle( [7,1,3,6,5,4,2] );

math