PermutationLength

PermutationLength[perm]

returns the number of integers moved by the permutation perm.

Details

  • PermutationLength works with Cycles objects as well as with permutation lists.
  • The number of integers moved by a permutation is sometimes called its degree. Another common definition of permutation degree is the largest moved point.

Examples

open allclose all

Basic Examples  (2)

Number of points moved by a permutation:

In[1]:=
Click for copyable input
Out[1]=

Number of points moved in a permutation list:

In[1]:=
Click for copyable input
Out[1]=

Scope  (2)

Generalizations & Extensions  (1)

Properties & Relations  (1)

See Also

Cycles  PermutationSupport  PermutationMin  PermutationMax

Tutorials

Introduced in 2010
(8.0)