• retagged by
2,126 views

3 Answers

Best answer
3 3 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 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 –1 vote
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
Position:
Show:

Related questions

1 1 vote
0 0 answers
181
181 views
Tin_ku asked Aug 2
181 views
We know that the class of languages of LR(0), SLR(1), LALR(1), CLR(1) is the class of DCFLs, with the only exception being that...An LR(0) language is a DCFL that has the...
0 0 votes
1 1 answer
7.4k
7.4k views
admin asked Sep 6, 2019
7,404 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 compute $...
0 0 votes
0 0 answers
2.1k
2.1k views
admin asked Sep 6, 2019
2,112 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 compute $...
2 2 votes
0 0 answers
841
841 views
admin asked Aug 20, 2019
841 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 ...