retagged by
6,646 views

2 Answers

Best answer
13 votes
13 votes
L1 is well known Non Regular i.e. (00)^n(11)^n. (Since there is no common character in "00" and "11" we need to keep count of both which is not possible with a finite automata as count can be infinite).

L2 is regular and its regular Expression like 0(0+1)*0 + 1(1+0)*1 + 1 + 0 +epsilon.
selected by
0 votes
0 votes
this prob is solved before .

ans will be d)

L2 can be considered as all of the stings start and with same elements (0 or 1  )

Related questions

1 votes
1 votes
1 answer
2
0 votes
0 votes
2 answers
3
iarnav asked Dec 22, 2018
655 views
WXW^R where W,X belongs to (0,1)*W^R is reverse of a string!