L(G) = { w E { a , b }* : w starts and ends with the same symbol } G = ? (select all correct answers) Note: "lam" is used for "empty string".Multiple choice
A
S --> a A a | b B b A --> a A | b A | lam B --> a B | b B | lam
B
S --> a S a | b S b | a | b | lam
C
None is correct.
D
S --> a W a | b W b | a | b | lam W --> a W | b W | lam
Log in for full answers
We've collected over 50,000 authentic original questions and detailed explanations from around the globe. Log in now and get instant access to the answers!
Similar Questions
Which of the following languages is generated by the following grammar G over Sigma = { a , b }: S --> aS | Sb | ab Pick all that applies.
L(G) = { w E {a, b}* : w ends with aa } G = ? (select all correct answers) Note: "lam" is used for "empty string".
L(G) = { w E {a, b}* : every symbol in w is b, and length(w) >= 2 } G = ? (select all correct answers)
Select the language generated by CFG #5 G = 0G0 | 1G1 | 0H1 | 1H0 H = AHA | A A = 0 | 1 1: Language of CFG #5
More Practical Tools for Students Powered by AI Study Helper
Making Your Study Simpler
Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!