4 votes 4 votes Draw a 4-state DFA for the language $L \subseteq$ {a,b}* , L = {x : the number of time ab appears in x is even} Theory of Computation theory-of-computation jsi2015 finite-automata + – Devasish Ghosh asked Mar 9, 2017 Devasish Ghosh 864 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes note: 2nd state just after initial state is also final state. . 2018 answered Mar 9, 2017 • edited Mar 9, 2017 by 2018 2018 comment Share Follow See all 4 Comments See all 4 4 Comments reply Devasish Ghosh commented Mar 9, 2017 reply Follow Share This will accept a string with single b*. Is that okay? 0 votes 0 votes 2018 commented Mar 9, 2017 reply Follow Share yes string contain no ab menas contain 0 ab which is even. one mistake in above figure, 2nd state will also be final state. 0 votes 0 votes Devasish Ghosh commented Mar 9, 2017 reply Follow Share Also error in the 3rd state. Should be a self loop on input b 0 votes 0 votes 2018 commented Mar 9, 2017 reply Follow Share yes right 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes Summering the answers...here is the one Devasish Ghosh answered Oct 10, 2017 Devasish Ghosh comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes The above DFA accepts all strings having even number of ab Deepthi_ts answered Apr 6, 2017 Deepthi_ts comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments Sanjay Sharma commented Apr 14, 2017 reply Follow Share it will also accept only {ba , a ,bba, b , bb... } 0 votes 0 votes Deepthi_ts commented Apr 15, 2017 reply Follow Share yes sir because in ba , a, bba the number of times ab occur is zero which is also even . 1 votes 1 votes Sanjay Sharma commented Apr 15, 2017 reply Follow Share correct change this comment to ans 0 votes 0 votes Please log in or register to add a comment.