353 views
0 votes
0 votes
A CFG G is ambiguous which of the following is false?

a) at least one w ∈ L(G) such that w has at least 2 distinct derivation trees

b) at least one w ∈ L(G) such that w has at least 2 RMD's and at least 2 LMD's

c) at least one w ∈ L(G) such that w has exactly 2 derivation trees

d)None of these

1 Answer

0 votes
0 votes
Statement 1: it is true as per definition of ambiguous gammer.

Statement 2: it is true because each LMD can be represented as a RMD vice versa. so as we have atleast two parse tree for a string we will have 2 LMD and 2 RMD minimum.

Statement 3: is is saying that a string   w has exactly 2 derivation trees  but suppose our language has 3 string in which two have unique parse tree but one has 3 derivation so it will not have exactly 2 parse tree.

Related questions

1 votes
1 votes
1 answer
2
practicalmetal asked Mar 20, 2023
371 views
The complement of the languages:i) {ww | w in (0+1)*}ii) {$a^n b^nc^n$ | n>1} area) Context Free b) Not Context Free c)are DCFL’s d)None
0 votes
0 votes
1 answer
3
swami_9 asked Jul 16, 2022
545 views
Why the complement of a CFL is CSL?
1 votes
1 votes
1 answer
4
Abhipsa asked Jan 22, 2019
287 views
Is this a deterministic context free language (DCFL) ? $a^{k}$ | k is evenThanks!