0
3.4kviews
Write a right linear grammar and left linear grammar for RE (0+1)*0 and show derivation tree for 1010110
1 Answer
written 5.6 years ago by | modified 5.6 years ago by |
Grammer for (0 + 1 )* 0
Left linear grammar :
S $\rightarrow$ AO/O
A $\rightarrow$ AO / A1 / O / 1 / E
Right linear grammar :
S $\rightarrow$ OA / A / A
A $\rightarrow$ OA/ 1A / O