4 4 votes Which of the following are True? $S1$: Every NFA can be converted to equivalent PDA $S2$: Whether a given CFL is Regular is decidable. 1. $S1$ 2. $S2$ 3. Both 4. None Theory of Computation theory-of-computation context-free-language decidability + – Vikrant Singh 4.7k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
Best answer 4 4 votes How can a CFL be given? If it is given as the language generated by a CFG, then the problem is undecidable. The question here is ambiguous. Arjun answered Jan 18, 2015 • selected Jan 18, 2015 by Vikrant Singh Arjun comment Share Follow See all 6 Comments 6 6 Comments reply Himanshu1 commented Oct 30, 2015 reply Follow flag Here you are saying "Undecidable" , i also think undecidable , but in which CFL representation it would be decidable?? I think deciding regularity of CFL is always undecidable , untill it is given as FA or Regular Expression. 1 1 replyShare vignesh.karnas commented Jan 29, 2016 reply Follow flag @Arjun : Why is checking the if the CFG is regular undecidable ? I will simply have to look at the grammar and see if all its productions are of form A -> aA/a or B -> bB/b , right ??? 1 1 replyShare Arjun commented Jan 29, 2016 reply Follow flag Question is not to check if a CFG is a regular grammar- this is decidable as you told. But we have to see if a CFG generates a regular language- the grammar here need not be a regular grammar Just that every regular language has an equivalent regular grammar but even other grammar can generate a regular language. 7 7 replyShare Shubhanshu commented Sep 18, 2017 reply Follow flag @Arjun Sir, The second one is REGULARITY PROBLEM. right? 0 0 replyShare Arjun commented Sep 18, 2017 reply Follow flag of CFL. 0 0 replyShare akshayaK commented Jan 14, 2019 reply Follow flag can any1 explain how 1st is true ? from where we will bring that extra stack ? confused @Arjun sir or any1 0 0 replyShare Please log in or register to add a comment.
9 9 votes Only S1 is decidable. Checking Regularity for CFLs is UNDECIDABLE problem Sandeep_Uniyal answered Jan 18, 2015 Sandeep_Uniyal comment Share Follow 0 reply Please log in or register to add a comment.