Home » Theory of Computation » Theory of computation miscellaneous » Question

Theory of computation miscellaneous

Theory of Computation

  1. 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?
    1. None of the languages
    2. Only L1
    3. Only L1 and L2
    4. All the three 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.



Your comments will be displayed only after manual approval.