CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Which of the following are decidable?
1. Whether the intersection of two regular languages is infinite
2. Whether a given context-free language is regular
3. Whether two push-down automata accept the same language
4. Whether a given grammer is context-free

A
2 and 3
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
1 and 2
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
1 and 4
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
2 and 4
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C 1 and 4
1. "Intersection of two regular languages a infinite" is decidable, since we can construct a product dfa of the 2 given dfas and then using the algorithm to check finiteness or infiniteness on this dfa, we can solve the problem.
2. "Whether a given CFL is regular" is undecidable.
3. "Whether two PDA's accept the same language" is undecidable, since equivalence of CFL's is undecidable.
4. "Whether a given grammar is context-free" is decidable since we can easily check using a TM, whether the LHS of every productive has a single variable and, then it is a CFG's else it is not a CFG.
1 and 4 are decidable.

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