A cycle is a string of integers which represents the elements of which cyclically permutes these integers. The cycle is the permutation which sends to for and sends to .
For example, maps 2 to 1, 1 to 3, 3 to 2. In general, for the numbers from to will be rearranged and groups into cycles of the form:
from which the action of on any number from to can easily be read, as follows. For any first locate in the above expression. If is not followed immediately by a right parenthesis (ie: is not at the right end of one of the cycles) then is the integer appearing immediately to the right of . If is followed by a right parenthesis, then is the number which is at the start of the cycle ending with (ie: if for some , then (where is taken to be 0)). We can represent this description of by:
cycle decomposition of
The product of all the cycles is called the cycle decomposition of .
Cycle Decomposition Algorithm
length
The length of a cycle is the number of integers which appear in it.
By convention 1-cycles aren't written (so if an integer is missing, it's in it's own cycle). For example in is the cycle that swaps and keeps everything else the same.
Why Use the Convention?
We can count the number of cycle decompositions of since these are equivalent to permutations. For example for is the permutations:
For any the cycle decomposition of is obtained by writing the numbers in each cycle of the cycle decomposition of in reverse order. For example if is:
Right to left for products
For successive products we read from right to left:
Furthermore, since integers that don't show up fix all those integers, then disjoint cycles commute (they can apply in any order).
Lastly, you can permute (cyclically move) the numbers in any permutation and get the same cycle. Namely:
By convention the smallest number is usually written first.
Some notes:
The cycle decomposition is the unique way to express a permutation as a product of disjoint cycles (up to rearranging its cycles and cyclically permuting the numbers within each cycle)
We can use this to show that the order of a permutation is the of the lengths of the cycles in its cycle decomposition