wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

In the context-free grammar below, S is the start symbol, a and b are terminals, and ε denotes the empty string
SaSa | bSb| a | b | ε
Which of the following strings is NOT generated by grammar?

Open in App
Solution

L(G)= Set of all palindrome strings.
"baba" is not a palindrome string

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Context-Free Grammars
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon