1 votes 1 votes Given a regular language, does the language contain any string at all. Given a regular language, does the language contain infinite number of strings. Given a recursive language, does the language contain infinite number of strings. Given a recursive language, does the language contain any string at all. Theory of Computation decidability theory-of-computation + – Mk Utkarsh asked Sep 15, 2018 Mk Utkarsh 443 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply goxul commented Sep 15, 2018 reply Follow Share I think the first one should be decidable. We can give the algo as: 1. Since it is a regular language, we can create a DFA for it. 2. In the DFA, check if there exists any path from the initial state to final state. 3. If no path exists, accept. 4. Else, reject. For the second one, we can create a regex and the language is infinite iff there exists a variable of the form A*, where A is a non-empty string. 1 votes 1 votes Mk Utkarsh commented Sep 15, 2018 reply Follow Share goxul i agree and what about 3 and 4? 0 votes 0 votes goxul commented Sep 15, 2018 reply Follow Share I think four should be undecidable too. Given, the language is recursive. -> There exists a halting TM for it. Now to show that the language of the halting TM contains no strings, we'll have to show that when all possible strings are run on the halting TM, it accepts none of them. Since this will take infinite time, the problem has to be undecidable. Although, I am not sure. If I find something better, I'll let you know. 1 votes 1 votes rish1602 commented Jul 1, 2021 reply Follow Share yes, i also think 1st and 2nd will be decidable and 3rd and 4th will be undecidable. 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes all are decidable becoz for regular language and recursive languages there exist a membership algorithim so we can decide wheather it is infinite or finite. \ Himanshu Kashyap answered Sep 22, 2018 Himanshu Kashyap comment Share Follow See all 0 reply Please log in or register to add a comment.