Consider an ambiguous grammar G and its disambiguated version D.Let the language recognized by the two grammars be denoted by L(G) and L(D) respectively.Which one of the following is true?
A
L(D) is empty
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
L(D) = L(G)
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
L(D) ⊂ L(G)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
L(D) ⊃ L(G)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is B L(D) = L(G) Grammar may change but language remain the same in the grammar and its disambiguated version.
L(D) =L(G)