The item generated by the production \(π΄ β π\) is :
2022
The item generated by the productionΒ \(π΄ β π\)Β is :
- A.
\(Aβ. \) - B.
\(π΄βπ. \) - C.
\(Aβ.π \) - D.
\(Aβπ\)
Attempted by 204 students.
Show answer & explanation
Correct answer: A
Key idea: The dot in an LR(0) item marks the parser position in the right-hand side of a production.
Production: A β Ξ΅ (the right-hand side is empty).
Place the dot at the parser position. Because the RHS is empty, the dot appears immediately, producing the item A β .
Answer: The item generated by the production A β Ξ΅ is A β .
A video solution is available for this question β log in and enroll to watch it.