4,259 views

2 Answers

0 votes
0 votes
No it is not ambiguous as only one parse tree is possible for this string.

You can also see it in this way that 1 lmd is possible n 1 rmd is possible but the tree generated from both is same.

Hence it is unambiguous.

Related questions

3 votes
3 votes
2 answers
1
vivekpinto07 asked Jun 24, 2016
3,973 views
An ambiguous grammar is one that producesmore than one left most derivation for the same sentence.more than one right most derivation for the same sentence.more than one ...
7 votes
7 votes
1 answer
3
Aditya asked Aug 6, 2015
8,898 views
0 votes
0 votes
1 answer
4
goluabhinan asked Sep 11, 2018
1,253 views
Consider the following grammar which of the following is/are ambiguous?(i) S → y | SxS(ii) S → E | ExS and E → y(iii) S → Sxy | y