Consider the following grammar
Consider the following LR(0) items corresponding to the grammar above
Given the items above, which two of them will appear in the same set in the canonical sets-of-items for the grammar?
ans is D.
Just want to clarify,
1) Question is asked on the LR(0) items, so there is no need to add look ahead.
2) In the state I3, there is shift Reduce conflit , E->F.+E and E->F.
Please correct me
$\Rightarrow$ NOT possible for these three items to be in same state
There will be 9 sets I0 to I8
(I) will be in set I5
(II) will be in set I3
(III) will be in set I6