L = (111 + 11111)* where ∑ = {1}.
Answer:
Strings containing given L = (111 + 11111)* is basically L ={111, 11111, 111111, 11111111, …}.
Here we write number of 1’s strings accepted by the machine of this given language L = (111 + 11111)*, L = {λ , 3, 5, 6, 8, 9, 10, 11, 12, 13…….} we get all the strings after string 8 number of 1’s.
From λ to 8 number of 1’s is not continuous but after 8, it will accept 9 to all.
That’s the reason we design a machine up to mod 8 and after that accept all string by self-loop.
Finals states are initial state (for λ), Mod 3 , Mod 5, Mod 6 , Mod 8 and then all.
So, Minimum number of states required to design the above DFA = 09
Now we can design a NFA also for this above language L = (111 + 11111)*
Minimum of state at NFA or Finite State Automata = 5