...
Question 14193 – NIC-NIELIT STA 2020
December 1, 2023
Computer-Networks
December 1, 2023
Question 14193 – NIC-NIELIT STA 2020
December 1, 2023
Computer-Networks
December 1, 2023

Question 14197 – NIC-NIELIT STA 2020

Assume that the SLR parser for a grammar G has n1 states and the LALR parser for G has n2 states. The relationship between n1 and n2 is:

Correct Answer: B

Question 119 Explanation: 
No. of states in SLR and LALR are equal and no. of states in SLR and LALR are less than or equal to LR(1).
A
n1 is necessarily less than n2
B
n1 is necessarily equal to n2
C
n1 is necessarily greater than n2
D
none of the options

Leave a Reply

Your email address will not be published. Required fields are marked *