Ans 3
In state 1 : 1 -SR conflict
In state 2 : 1 -SR conflict
In state 3 : 1 -SR conflict + 1 RR conflict
Number of inadequate states is nothing but states which has S/R or R/R conflicts
Ref:http://www.cs.nuim.ie/~jpower/Courses/Previous/parsing/node64.html
After getting LR(0) items what you do is DFA diagram(something looks below(not for this grammar))
finding no of conflict
64.3k questions
77.9k answers
244k comments
80.0k users