edited by
561 views
1 votes
1 votes

Consider the following statements:

Statement $\text{I}$: $\text{LALR}$ parser is more powerful than canonical $\text{LR}$ Parser.

Statement $\text{II}$: $\text{SLR}$ parser is more powerful than $\text{LALR}$

Which of the following is correct?

  1. Statement $\text{I}$ true and Statement $\text{II}$ false
  2. Statement $\text{I}$ false and Statement $\text{II}$ true
  3. Both Statement $\text{I}$ and Statement $\text{II}$ false
  4. Both Statement $\text{I}$ and Statement $\text{II}$ true
edited by

2 Answers

2 votes
2 votes

both false

CLR is most powerful.

wrt to size SLR parser and lalr have same number of states but  lalr is more powerful than slr

 

edited by
0 votes
0 votes

Both the given statements are false. The power of the parser means it can handle more strings.

LR parser in terms of power: $CLR>LALR>SLR>LR(0)$

Ref: GATE CSE 1998

Related questions

1 votes
1 votes
0 answers
2
admin asked Oct 23, 2022
1,004 views
Using $\text{'RSA'}$ algorithm, if $p=13, q=5$ and $e=7$. the value of $d$ and cipher value of $'6'$ with $(e, n)$ key are$7, 4$$7, 1$$7, 46$$55,1$
0 votes
0 votes
1 answer
4
admin asked Oct 23, 2022
333 views
Size and complexity are a part ofPeople MetricsProject MetricsProcess MetricsProduct Metrics