zykeltyp

synopsis: INT zykeltyp(OP perm,part)

description:

computes the cyclestructure of the permutation perm, the result is a PARTITION object part, perm and part may be equal.

bug:

perm must be of VECTOR type.

example:

 #include "def.h"
 #include "macro.h"

 main()
 {
 OP a;
 anfang();
 a=callocobject();
 scan(INTEGER,a); println(a);
 random_permutation(a,a); println(a);
 zykeltyp(a,a); println(a);

 freeall(a);
 ende();
 }


Send comments or suggestions to:
symmetrica (at) symmetrica

this page was automatically generated on So Aug 10 12:23:24 CEST 2008 on the machine btn6xa