Question 19
Language \(L_1\) is defined by the grammar: \(S_1 \rightarrow a S_1 b \mid \varepsilon\)
Language \(L_2\) is defined by the grammar: \(S_2 \rightarrow ab S_2 \mid \varepsilon\)
Consider the following statements:
P: \(L_1\) is regular
Q: \(L_2\) is regular
Which one of the following is TRUE?
Sign in to see the answer
Answers and explanations are free — they just need an account.