0 votes 0 votes Which one of the following regular expressions.... Hriday Das 1 asked Oct 13, 2018 Hriday Das 1 479 views answer comment Share Follow See all 8 Comments See all 8 8 Comments reply Show 5 previous comments Bhagyashree Mukherje commented Oct 14, 2018 reply Follow Share Option A cannot have bab 0 votes 0 votes Hriday Das 1 commented Oct 14, 2018 reply Follow Share Oh..Yeah. What should be our approach to solve such questions? 0 votes 0 votes Bhagyashree Mukherje commented Oct 14, 2018 reply Follow Share Try to insert set of a or b ie (a+b)* inbetween the given conditions for getting set of all strings Eg for atleast two b's we write the string as (a+b)*b(a+b)*b(a+b)* For exactly two b's a*ba*ba* so that we get strings in which a can either be in front or/and end or/and in the middle For all strings with every a followed by exactly two b's b*(abb)* string can either comprise of only b's or/and a followed by exactly two b's You can think of many other examples 0 votes 0 votes Please log in or register to add a comment.
Best answer 0 votes 0 votes Answer should be D -(a+b)*b(a+b)*b(a+b)* garimanand answered Oct 13, 2018 • selected Oct 15, 2018 by Hriday Das 1 garimanand comment Share Follow See all 0 reply Please log in or register to add a comment.