Lesson 14 +30 XP

Permutation Functions: Cycles, Composition & Parity

1. Definition

A permutation of a finite set A is a bijection p : A → A. It is written in two-row notation: the top row lists the elements, the bottom row their images.

xabcde
p(x)cedab

means p(a) = c, p(b) = e, p(c) = d, p(d) = a, p(e) = b. A set with n elements has n! permutations; together they form the symmetric group Sₙ (Unit III).

2. Inverse of a Permutation

Swap the two rows, then reorder columns so the top row is in natural order.

p⁻¹ = (c e d a b / a b c d e) → reordered: (a b c d e / d e a c b).

Solved. f = (1 2 3 / 2 3 1). Find g with f ∘ g = I. Swapping rows gives f⁻¹ = (2 3 1 / 1 2 3) = (1 2 3 / 3 1 2).

3. Composition (Product)

(p₁ ∘ p₂)(x) = p₁(p₂(x)) - apply p₂ first, then p₁.

Solved (PYQ). On A = {5, 10, 20, 6, 4}:

  • p₁ = (5 10 20 6 4 / 10 6 4 5 20)
  • p₂ = (5 10 20 6 4 / 6 5 10 20 4)

p₁ ∘ p₂: 5 → p₁(6) = 5, 10 → p₁(5) = 10, 20 → p₁(10) = 6, 6 → p₁(20) = 4, 4 → p₁(4) = 20 ⇒ p₁ ∘ p₂ = (5 10 20 6 4 / 5 10 6 4 20)

p₂ ∘ p₁: 5 → p₂(10) = 5, 10 → p₂(6) = 20, 20 → p₂(4) = 4, 6 → p₂(5) = 6, 4 → p₂(20) = 10 ⇒ p₂ ∘ p₁ = (5 10 20 6 4 / 5 20 4 6 10)

Since p₁ ∘ p₂ ≠ p₂ ∘ p₁, composition of permutations is not commutative.

4. Cycles

A cycle (a₁ a₂ … aᵣ) sends a₁ → a₂ → … → aᵣ → a₁ and fixes everything else. Its length is r; a 2-cycle is a transposition.

Decomposing a permutation into disjoint cyclesDecomposing a permutation into disjoint cycles

Procedure: start at the smallest element, follow arrows until you return, close the cycle; repeat with the smallest unused element.

Solved. p = (1 2 3 4 5 6 7 8 / 7 2 1 3 4 5 6 8) 1 → 7 → 6 → 5 → 4 → 3 → 1 gives (1 7 6 5 4 3); 2 and 8 are fixed. p = (1 7 6 5 4 3)(2)(8) = (1 7 6 5 4 3).

Disjoint cycles commute, and every permutation is a product of disjoint cycles (unique up to order).

Order of a permutation = LCM of its disjoint-cycle lengths. (1 2 3)(4 5) has order lcm(3, 2) = 6.

5. Even and Odd Permutations

Every cycle is a product of transpositions:

(a1 a2 … ar) = (a1 ar)(a1 ar-1) … (a1 a2)
so an r-cycle needs r − 1 transpositions.

A permutation is even if it is a product of an even number of transpositions, odd otherwise. (The parity is well defined.)

Solved 1. t = (1 2 3 4 5 6 / 2 1 4 6 5 3) = (1 2)(3 4 6)(5) Transpositions: 1 + 2 = 3 → odd.

Solved 2. f = (1 2 3 4 5 6 7 8 9 / 2 5 4 3 6 1 7 9 8) = (1 2 5 6)(3 4)(7)(8 9) Transpositions: 3 + 1 + 1 = 5 → odd. In full: (1 6)(1 5)(1 2)(3 4)(8 9).

💡 Tip

Shortcut: parity = (n − number of disjoint cycles, counting fixed points) mod 2. For f: 9 − 4 = 5 → odd.

FactValue
even ∘ eveneven
odd ∘ oddeven
even ∘ oddodd
number of even permutations in Sₙ (n ≥ 2)n!/2 (the alternating group Aₙ)
🎯 END-TERM EXAM PREP

📝 IPU End-Term Exam Corner (5-10 Marks)

  • Q1. For p₁, p₂ on {5, 10, 20, 6, 4} above, find p₁ ∘ p₂, p₂ ∘ p₁ and p₁⁻¹. Is composition commutative? (5 Marks)
  • Q2. Express (1 2 3 4 5 6 7 8 9 / 2 5 4 3 6 1 7 9 8) as a product of disjoint cycles and of transpositions. Is it even or odd? (5 Marks) → odd.
  • Q3. Define cyclic permutation and transposition. Show that every cycle of length r is a product of r − 1 transpositions. (5 Marks)