2,811 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
548
548 views
Naveen Kumar 3 asked May 9, 2018
548 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
0 0 answers
51
51 views
Toufiq Hussain asked 5 days ago
51 views
Check if it's LR(1) or not? Please draw the DFA too.S ➔ S1 I 0S1 | 1
0 0 votes
1 1 answer
1.2k
1.2k views
Souvik33 asked Dec 11, 2022
1,171 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.1k
3.1k views
Na462 asked Jan 26, 2019
3,077 views