1 1 vote Number of states in a DFA that accepts string over the alphabet {0,1} where words start and end with a 1, have even length and every 0 is immediately followed by atleast a 1. Theory of Computation theory-of-computation finite-automata + – mr_nikhil_mishra 774 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
2 2 votes TLDR : Answer is 5 states (along with 1 dead state)Conditions are:1. Starts and Ends with '1'2. Even length3. '0' is immediadetely followed by atleast a '1'Sample strings :11, 1011, 1101, 11011011Please let me know if this is correct :) Bharadwaja1557 answered Jun 1, 2024 Bharadwaja1557 comment Share Follow See all 3 Comments 3 3 Comments reply mr_nikhil_mishra commented Jun 1, 2024 reply Follow flag It's correct!But can't we have a edge from C to B on 0 rather than creating a new state D?because that also accept the strings. 0 0 replyShare Bharadwaja1557 commented Jun 2, 2024 reply Follow flag Then the string 110011 will be accepted. which violates the 3rd condition of the given problem. So to eliminate this issue we just redirect it to another state (say D) instead of B. I hope this helps :) 1 1 replyShare pnn_gate commented Jun 30, 2024 reply Follow flag i think it should have 3 states, please correct me if i am wrong. 0 0 replyShare Please log in or register to add a comment.