Permutaation
Permutaation is a rearrangement of the elements of a set. In mathematics, a permutation of a finite set with n elements is a bijection from the set to itself, or equivalently an arrangement of its elements in a sequence of length n with no repetition. For the standard set {1,2,...,n}, a permutation records the order in which these elements appear.
The collection of all permutations of n elements is called the symmetric group S_n, and under composition
Every permutation can be decomposed uniquely into disjoint cycles, and this cycle form provides a compact description
Common ways to write permutations include one-line notation (pi(1) pi(2) ... pi(n)) and cycle notation (a1 a2
Applications of permutation theory appear in sorting and data arrangement, shuffle algorithms, cryptography, coding theory, and