retagged by
973 views

3 Answers

Best answer
2 votes
2 votes

1. Above grammer is not left factored , actually hidden left factors are there in this grammer

[Ref : PAGE 9

https://web.stanford.edu/class/archive/cs/cs143/cs143.1128/handouts/080%20Formal%20Grammars.pdf]

2. Since it is not left factored hence it is not deterministic.

3. Yes , every left factored grammer is deterministic.

selected by
0 votes
0 votes

1. Left factoring is use to remove non determinism....means for a given input string if we cant decide on seeing a symbol which production to use... 

Here, We don't need to take any decision on seeing input, Hence, Left factored.

2&3. As 

Left factoring is use to remove non determinism

every left factored grammer is deterministic.

–1 votes
–1 votes
i think  the grammar is left factored

 

and yes, the purpose of making the grammar left factored is making it deterministic.

correct me, if i am wrong

Related questions

5.8k
views
1 answers
0 votes
admin asked Sep 6, 2019
5,849 views
This grammar generates binary numbers with a "decimal" point:$S\rightarrow L.L\mid L$L\rightarrow LB\mid B$B\rightarrow 0\mid 1$ Design an S-attributed SDD to ... , the translation of string $101.101$ should be the decimal number $5.625$.
1.7k
views
0 answers
0 votes
admin asked Sep 6, 2019
1,746 views
This grammar generates binary numbers with a "decimal" point:$S\rightarrow L.L\mid L$L\rightarrow LB\mid B$B\rightarrow 0\mid 1$ Design an L-attributed SDD to ... attribute $L.side$ that tells which side of the decimal point a bit is on.
628
views
0 answers
2 votes
admin asked Aug 20, 2019
628 views
In Fig. $4.56$ is a grammar for certain statements, similar to that discussed in Question $4.4.12$. Again, $e$ and $s$ are terminals standing for conditional expressions and " ... s ; if e then s endwhile e do begin s ; if e then s ; end
733
views
0 answers
0 votes
admin asked Aug 20, 2019
733 views
The following is an ambiguous grammar for expressions with $n$ binary, infix operators, at $n$ ... ? What does that comparison tell you about the use of ambiguous expression grammars?