Let Ξ£ be the set of all bijections from {1, … , 5} to {1, … , 5}, where 𝑖𝑑…

2019

Let Ξ£ be the set of all bijections from {1, … , 5} to {1, … , 5}, where 𝑖𝑑 denotes the identity function, i.e. 𝑖𝑑(𝑗) = 𝑗, βˆ€π‘—. Let ∘ denote composition on functions. For a string π‘₯ = π‘₯1 π‘₯2 β‹― π‘₯𝑛 ∈ Σ𝑛 , 𝑛 β‰₯ 0 , let πœ‹(π‘₯) = π‘₯1 ∘ π‘₯2 ∘ β‹― ∘ π‘₯𝑛. Consider the language 𝐿 = {π‘₯ ∈ Ξ£βˆ— | πœ‹(π‘₯) = 𝑖𝑑 }. The minimum number of states in any DFA accepting 𝐿 is .

Attempted by 91 students.

Show answer & explanation

Correct answer: 120

Key idea: view the alphabet as the group of permutations and use group multiplication to build the DFA.

  • The alphabet Ξ£ is the symmetric group S5, so |Ξ£| = 5! = 120.

  • Construct a DFA with one state for each permutation g ∈ S5. The start state is the identity id, and the only accepting state is id. On input a ∈ Ξ£ from state p, move to p ∘ a. This DFA accepts exactly those words whose composed product equals id, so 120 states suffice.

  • Minimality: any two distinct permutations g β‰  h are distinguishable. Take the suffix w = g⁻¹. From state g reading w reaches id (accepting), while from state h reading w reaches h ∘ g⁻¹ β‰  id (non-accepting). Thus no two states can be merged, so any DFA needs at least 120 states.

Therefore the minimum number of states in any DFA accepting L is 120.

Explore the full course: Gate Guidance By Sanchit Sir