2,782 views
2 2 votes

Which of the following is true with respect to LR parsers?

S1 : LR(1) requires less space for its parsing table

S2 : LALR(1) requires less space for its parsing table

S3 : SLR(1) requires more space for its parsing table

Answer given : S1 - false, S2 - true, S3 - false

We know SLR(1) and LALR(1) have equal number of states in their parsing tables. Then how will LALR(1) require less space than SLR(1) ?

1 Answer

Position:
Show:

Related questions

0 0 votes
1 1 answer
542
542 views
Naveen Kumar 3 asked May 9, 2018
542 views
#self_doubtWhile representing the canonical collection of LR(0) or LR(1) items why first augmented production is added in state diagram??
0 0 votes
1 1 answer
1.2k
1.2k views
Souvik33 asked Dec 11, 2022
1,163 views
Consider the following statements regarding the “Parsing Table” of a shift reduce parser, for any given grammarNo. of states/ size of parse table is same for all Shift-Re...
1 1 vote
1 1 answer
3.0k
3.0k views
Na462 asked Jan 26, 2019
2,979 views
2 2 votes
2 2 answers
2.0k
2.0k views
gate19 asked May 26, 2018
2,040 views
What is the difference between $SLR(1)$ and $LALR(1)$ parser ? Both parser have same parsing table then how $SLR$ is subset of $LALR$ ?