Open In App

GATE | GATE-CS-2007 | Question 30

The language L= {0i21i | i≥0 } over the alphabet {0,1, 2} is:

(A)



not recursive

(B)



is recursive and is a deterministic CFL.

(C)

is a regular language.

(D)

is not a deterministic CFL but a CFL.


Answer: (B)
Explanation:

Let us first design a deterministic pushdown automata for the given language.

We also design a Turing machine for the given language.

Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :