Back to the 2019 paper

Module 2: Context-free languages and pushdown automata

20192m

Consider the grammar GG whose SLR parser has n1n_1 states and LALR parser has n2n_2 states. What is the relation between n1n_1 and n2n_2?

(i) n1=n2n_1 = n_2
(ii) n1<n2n_1 < n_2
(iii) n1>n2n_1 > n_2
(iv) None of the above

Similar questions