Computer Science EngineeringHard

How many LR(0) items does the production A -> XYZ generate?

  1. A. 3
  2. B. 4
  3. C. 5
  4. D. 6

Correct answer: B. 4

A production with k right-hand symbols yields k + 1 items by placing the dot in each position.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic