1 votes 1 votes Theory of Computation regular-expression + – Chetan28kumar asked Oct 22, 2018 • recategorized Oct 22, 2018 by Shaik Masthan Chetan28kumar 574 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply Chetan28kumar commented Oct 22, 2018 i moved by Shaik Masthan Oct 22, 2018 reply Follow Share ans plzz? 0 votes 0 votes Swapnil Naik commented Oct 22, 2018 reply Follow Share the minimum string generated by 0(0|1)*0 is 00, only option a gives 00 as a minimum string. Also option a can generate all number of strings which are generated by given regular expression. 1 votes 1 votes Chetan28kumar commented Oct 22, 2018 reply Follow Share may yu plzz explain ..what this (|)stand shows in that expression? 0 votes 0 votes Swapnil Naik commented Oct 22, 2018 reply Follow Share (0|1) is like (0+1) you can select either 0 or 1 so given re becomes 0(0+1)*0 = starting and ending with 0 and contains minimum 2 0's 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes The correct answer should be (A). Option A is 0(0+1)*(0+00) which is strings starting with 0 and ending with 0 or 00. Strings ending with 0 will also contains strings ending with 00. So 0(0+1)*0=0(0+1)*(0+00)= 0(0+1)*(0+anything0) Verma Ashish answered Oct 23, 2018 Verma Ashish comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes the given expression generates the strings starting with 0 and ending with 0. (0|1) means either 0 or 1 . so no option generates all the strings generated by this expression . so ans is none. Option D. plz crct me if i'm wrong. Sathuri Bharath answered Oct 23, 2018 Sathuri Bharath comment Share Follow See 1 comment See all 1 1 comment reply muthu kumar commented Oct 23, 2018 reply Follow Share Actually the given expression is subset of option (A). All the expressions produced by it can be produced by option A and vice versa.This means they are equivalent.. For (eg) Consider string 010101010 & 0101010100 From option : 0(1010101)0 & 0(1010101)00 or 0(10101010)0 From question : 0(1010101)0 & 0(10101010)0 Also, u can check for some other expressions.. 1 votes 1 votes Please log in or register to add a comment.
0 votes 0 votes Option a should be the answer. Avik Chowdhury answered Jun 19, 2020 Avik Chowdhury comment Share Follow See all 0 reply Please log in or register to add a comment.