GATE | GATE CS 1997 | Question 55
Consider the grammar
S→ bSe S→ PQR P→ bPc P→ ε Q→ cQd Q→ ε R→ dRe R→ ε
where S,P,Q,R are non-terminal symbols with S being the start symbol; b,c,d,e are terminal symbols and ‘ε’ is the empty string. This grammar generates strings of the form bi, cj, dk, em for some i, j, k, m ≥ 0.
a. What is the condition on the values of i, j, k, m ?
b. Find the smallest string that has two parse trees.
Answer:
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Recommended Posts:
- GATE | GATE CS 1997 | Question 45
- GATE | GATE CS 1997 | Question 41
- GATE | GATE CS 1997 | Question 46
- GATE | GATE CS 1997 | Question 47
- GATE | GATE CS 1997 | Question 48
- GATE | GATE CS 1997 | Question 49
- GATE | GATE CS 1997 | Question 50
- GATE | GATE CS 1997 | Question 44
- GATE | GATE CS 1997 | Question 43
- GATE | GATE CS 1997 | Question 37
- GATE | GATE CS 1997 | Question 38
- GATE | GATE CS 1997 | Question 39
- GATE | GATE CS 1997 | Question 40
- GATE | GATE CS 1997 | Question 42
- GATE | GATE CS 1997 | Question 51



