• edited by
795 views

1 Answer

Best answer
4 4 votes
C seems more appropriate Looking ahead $"a"$ so $S  \rightarrow Aa$ will take care and looking ahead "$b$"$A  \rightarrow Ab$ will take care.
Drawing DFA productions will be like :
$S' \rightarrow.S ,\$\\ S\rightarrow.Aa,\$\\A\rightarrow .Ab,a/b\\A\rightarrow .c,a/b$
• selected by
Position:
Show:

Related questions

0 0 votes
1 answers 1 answer
1.1k
1.1k views
Aibi asked Sep 22, 2017
1,138 views
S - AaA - AbA - cWhich of the following item is present in LR(1) item with S' - .S, $\$$ ?A) A - .Ab, $\$$B) A - .c, $\$$C) A - .Ab, a/bD) None
8 8 votes
2 answers 2 answers
3.3k
3.3k views
smelly indian asked Sep 6, 2017
3,287 views
Consider the following context-free grammarS → SS + | SS*| aIt isa)LL(1)b)LR(0)c)Bothd)none
0 0 votes
2 2 answers
633
633 views