(Solution) - Let V S A B a b and T -(2025 Original AI-Free Solution)
Paper Details
Let V = {S, A, B, a, b} and T = {a, b}. Determine whether G = (V, T, S, P) is a type 0 grammar but not a type 1 grammar, a type 1 grammar but not a type 2 grammar, or a type 2 grammar but not a type 3 grammar if P, the set of productions, is
a) S ? (AB, A ? Bb, B ? ?.
b) S ? (A, A ? a, A ? b.
c) S ? (Ba, AB ? (.
d) S ? (BA, A ? (B, B ? (b.
e) S ? bA, A ? B, B ? (.
f) S ? (A, aA ? B, B ? (A, A ? b.
g) S ? bA, A ? b, S ? ?.
h) S ? AB, B ? (Ab, (Ab ? b.
i) S ? (A, A ? bB, B ? b, B ? ?.
j) S ? A, A ? B, B ? ?.