Let G be a context-free grammar where G = ( { S, A, B, C}, { a,b, d}, P, S ) with the productions in P given below.
S → ABAC A → aA ∣ ε B → bB ∣ ε C → d
(ε denotes null string). Transform the grammar G to an equivalent context-free grammar G’ that has no ε productions and no unit productions. (A unit production is of the form x → y, and x and y are non terminals.)
Answer:
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Recommended Posts:
- GATE | GATE CS 1996 | Question 41
- GATE | GATE CS 1996 | Question 42
- GATE | GATE CS 1996 | Question 43
- GATE | GATE CS 1996 | Question 44
- GATE | GATE CS 1996 | Question 45
- GATE | GATE CS 1996 | Question 1
- GATE | GATE CS 1996 | Question 2
- GATE | GATE CS 1996 | Question 3
- GATE | GATE CS 1996 | Question 4
- GATE | GATE CS 1996 | Question 5
- GATE | GATE CS 1996 | Question 6
- GATE | GATE CS 1996 | Question 7
- GATE | GATE CS 1996 | Question 8
- GATE | GATE CS 1996 | Question 9
- GATE | GATE CS 1996 | Question 10
- GATE | GATE CS 1996 | Question 11
- GATE | GATE CS 1996 | Question 12
- GATE | GATE CS 1996 | Question 13
- GATE | GATE CS 1996 | Question 14
- GATE | GATE CS 1996 | Question 15

