Which one of the following problems is undecidable?
Which one of the following problems is undecidable? Correct Answer Ambiguity problem for CFGs
Problem mentioned in option (2) Ambiguity problem for context-free grammar (CFGS) is undecidable.
Explanation:-
The ambiguity of grammar is undecidable, i.e there is no particular algorithm for removing the ambiguity of grammar. Here are some examples of ambiguous grammar:
- S → aS | Sa | €
- E → E + E | E*E | id
- A → AA | (A) | a
Additional InformationEquivalence problem for FSAS:- An automation is a machine that has a finite number of states. Any two automation is said to be equivalent if both accept exactly the same set of strings.
Finiteness problem for FSAS:- The finiteness problem is decidable for FSAs ( also for CFGS) as we just need to check for a loop DFA.
Membership problem for CFGS:- The membership problem for a set is the problem of deciding which of two possible elements is logically more likely to belong to that set. In other words, given two elements of which at least one is in the set, to distinguish the member from the non-member.