wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following Problems, P1 and P2:

P1: Checking whether a regular grammer is unambiguous.

P2: Checking whether a given context free grammer is ambiguous.

Which of the above problems is (are) decidable?

Open in App
Solution

Regular grammer ambiguity is decidable and therefore checking if regular grammer is unambiguous is also decidable.

However in case of CFGs, ambiguity is undecidable, and therefore the correct option is (b)

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Human Circulatory system
Watch in App
Join BYJU'S Learning Program
CrossIcon