0 votes 0 votes Construct dfa for set of all strings where every pair of consecutive 0's occurs before any pair of adjacent 1's ? Theory of Computation theory-of-computation finite-automata + – Sanket_ asked Sep 26, 2016 • edited Sep 26, 2016 by Kapil Sanket_ 1.5k views answer comment Share Follow See 1 comment See all 1 1 comment reply ManojK commented Sep 26, 2016 reply Follow Share https://gateoverflow.in/53010/strings-which-every-pair-adjacent-appear-before-pair-adjacent 0 votes 0 votes Please log in or register to add a comment.
Best answer 2 votes 2 votes Language accepted by the DFA, L = ( 1 + 01 + 001+1)* + 0 + (1+0 + 011+0)* Total no of state = 5 No of final state = 2. vijaycs answered Sep 26, 2016 • selected Sep 26, 2016 by Sanket_ vijaycs comment Share Follow See all 7 Comments See all 7 7 Comments reply Show 4 previous comments Kapil commented Sep 26, 2016 reply Follow Share In other words, whenever 11 appears, it should be always after 00. 1101010100 - not accepted 001000101011 - accepted 0,1,11,00 can be accepted as they are not violating the condition. 0 votes 0 votes vijaycs commented Sep 26, 2016 reply Follow Share @Kapilp, set of all strings where every pair of consecutive 0's occurs before any pair of adjacent 1's. I think it says, If any 00 comes then it should be followed by any 11 (pair of 1's.). Do you think, your 2nd example - L= 001000101011 should be excepted ..?? Bold pair of 00 is not before any pair of 1's ... am I right ?? 0 votes 0 votes Kapil commented Sep 26, 2016 reply Follow Share 001000101011, 11 can appear anytime after 00, but not before . 0 votes 0 votes Please log in or register to add a comment.