Give context-free grammars that generate the following language. In all parts the alphabet ∑ is {x,s}. {w| w starts and ends with the different symbols}
Asked
Active
Viewed 372 times
1 Answers
1
S -> xAs | sAx
A -> xA | sA | xAs | sAx | e
e
= epsilon

sameerkn
- 2,209
- 1
- 12
- 13
-
one of my colleague reject it and suggest me given below: S -> xAs | sAx A -> xA | sA | e – Muhammad Shahid Khan Afridi Feb 07 '17 at 14:04