in GATE retagged by
716 views
2 votes
2 votes

For the given grammar consider the statements:

$S'  \rightarrow S$
$S  \rightarrow aAd \mid bBd \mid aBe \mid bAe$
$A  \rightarrow c$
$B  \rightarrow c$

Which of the following statement is/are true?

S1: The given grammar is LR(l).

S2: On merger the grammar will generate reduce reduce conflict.

  1. Only S1
  2. Only S2
  3. Both S1 and S2
  4. None of S1 and S2
in GATE retagged by
by
716 views

4 Comments

Yes. That's why I wanted to clarify the meaning of that statement. There is no conflict occurring here.
–1
–1
@shubham soumit , @lucky and @thor plz see answer now.

Hope it is ok now, plz see the diagram.
0
0
Yes, thanks @Bikram sir. I did a mistake in state 2 for which I was not getting any states to merge. I forgot to add the productions of A in a hurry.
1
1

1 Answer

7 votes
7 votes
Best answer

see this , s2 is also true.

selected by

1 comment

From this state diagram we can see that state I9 and I6 can be merged and as a result of merging we will have RR conflict which was not there before merging those two states. So S2 is also true.
5
5
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

64.3k questions

77.9k answers

244k comments

80.0k users