L = {wwR : w ∈ {a, b}+}
Its the language representing the even length palindromes .L={aa,bb,abba.....}
Following is the gammer which generates this:-
S -> a S a | b S b | aa | bb
Could you explain a little bit about wwR? That's a string and its reverse, right? That's where aa and bb come from, because if you have aa, you also have to have bb?
64.3k questions
77.9k answers
244k comments
80.0k users