• edited by
1 flag 16,267 views
30 30 votes

Which of the following statements is true?

  1. SLR parser is more powerful than LALR
  2. LALR parser is more powerful than Canonical LR parser
  3. Canonical LR parser is more powerful than LALR parser
  4. The parsers SLR, Canonical CR, and LALR have the same power
  • 🚩 Edit necessary | 👮 Umesh Shelke | 💬 “Option D required edit "Canonical CR" Should be => "Canonical LR"”

2 Answers

Best answer
38 38 votes
  1. $\text{SLR}$ parser is more powerful than $\text{LALR}$ . False .

  2. $\text{LALR}$ parser is more powerful than $\text{Canonical LR}$ parser . False .

  3. $\text{Canonical LR}$ parser is more powerful than $\text{LALR}$ parser. True.

  4. The parsers $\text{SLR, Canonical CR,}$ and $\text{LALR}$ have the same power.  False.

Correct answer : $C$

• edited by
8 8 votes
LR parsers in term of power $CLR>LALR>SLR>LR(0)$
• edited by
Answer:
Position:
Show:

Related questions

55 55 votes
1 answers 1 answer
18.8k
18.8k views
Kathleen asked Sep 25, 2014
18,759 views
Type checking is normally done duringlexical analysissyntax analysissyntax directed translationcode optimization
29 29 votes
2 answers 2 answers
6.3k
6.3k views
Kathleen asked Sep 26, 2014
6,291 views
An identifier in a programming language consists of up to six letters and digits of which the first character must be a letter. Derive a regular expression for the identi...
22 22 votes
2 answers 2 answers
8.6k
8.6k views
Kathleen asked Sep 25, 2014
8,571 views
A linker reads four modules whose lengths are $200, 800, 600$ and $500$ words, respectively. If they are loaded in that order, what are the relocation constants?$0, 200, ...
35 35 votes
3 answers 3 answers
12.9k
12.9k views
Kathleen asked Sep 25, 2014
12,895 views
In a resident – OS computer, which of the following systems must reside in the main memory under all situations?AssemblerLinkerLoaderCompiler