Q. 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
Ans:
The DFA for accepting L will have 5! = 120 states, since we need one state for every possible permutation function on 5 elements. So, answer isΒ 120.