-
Consider the following languages over the alphabet
∑ = {0, 1, c}:
L1 = {0n 1n | n ≥ 0}
L2 = {wcwr |w ∈ {0, 1}*}
L3 = {wwr |w ∈ {0, 1}*}
Here, wr is the reverse of the string w. Which of these languages are deterministic Context-free languages?
-
- None of the languages
- Only L1
- Only L1 and L2
- All the three languages
- None of the languages
Correct Option: C
L1 and L2 have deterministic push down automata but for L3 only not-deterministic PDA is possible. So L3 is not deterministic.