485 views
0 votes
0 votes
2. Which of the following is true?
a) (01)*0 = 0(10)*
b) (0+1)*0(0+1)*1(0+1) = (0+1)*01(0+1)*
c) (0+1)*01(0+1)*+1*0* = (0+1)*
d) All of the mentioned

1 Answer

Best answer
3 votes
3 votes

a)  is true as  we have regular expression identity : P(QP)*  =  (PQ)* P and here  P = 0 and Q = 1.

b)  will be true..I think there is misprint in the last of "  (0+1)*0(0+1)*1(0+1)  " there should be a '*" after last "(0+1)"..

c) is true as the complement of 1*0* is  (0+1)* 01 (0+1)*  as 1*0* means "any number of 1's followed by any number of 0's"..So in complementary language we should have at least one violation to this.Hence at least 1 "01" should be present in L'.

And we know  L union L'   =  Σ*  =  (0+1)*.  Hence c) is also true..

Hence D) should be correct answer..

selected by

Related questions

1 votes
1 votes
0 answers
1
Deepalitrapti asked Jun 5, 2019
867 views
How comes 3 states i got 4 states
0 votes
0 votes
0 answers
2
akshayaK asked Dec 20, 2018
238 views
L(G1) = L(G2) for DCFL is decidable and undecidable for all other languages.how do we prove intuitively and how do we check it ?Please Explain it
0 votes
0 votes
1 answer
4