A canonical set of items is given below: S→L⋅>R Q→R⋅
On input symbol > the set has
A
a reduce-reduce conflict but not a shift-reduce conflict.
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
a shift-reduce conflict and a reduce-reduce conflict.
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
neither a shift-reduce nor a reduce-reduce conflict.
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
a shift-reduce conflict but not a reduce-reduce conflict.
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is C neither a shift-reduce nor a reduce-reduce conflict. S→L⋅>R Q→R⋅
In above diagram, we see at I2 state it has only one reduced item and there is no other item in the state. Therefore for input symbol '>', there is no conflict.