retagged by
2,006 views
6 votes
6 votes
Which of the following problem(s) is/are Recursively enumerable or its complement is recursively enumerable?

I. The language of all Turing machines that accept nothing.

II. The language of all Turing machines that accept everything.

III. The language of all CFG’s that are ambiguous.
retagged by

1 Answer

Best answer
9 votes
9 votes

1. $L_1 = \left\{\langle M \rangle \mid L(M) = \phi \right\}$

2. $L_2 = \left\{\langle M \rangle \mid L(M) = \Sigma^* \right\}$

3. $L_3 = \left\{\langle G \rangle \mid G \text { is ambiguous }\right \}$

All 3  languages are not recursive. 

$L_1$ and $L_2$ are not even recursively enumerable.

$L_1$ not being recursively enumerable can be proved by Rice's theorem part 2 using $T_{yes}$ and $T_{no}$ such that $L(T_{yes}) = \phi$ and $L(T_{no}) = \{a\}$ (any non-empty set) thus $L(T_{yes}) \subset L(T_{no})$.

Proof for $L_2$ being not recursively enumerable is shown here.  

${L_1}'$ is recursively enumerable as here we can fed the TM all strings from the language and as long as it is accepting a string, we are guaranteed to stop at some point.

${L_2}'$ is not even recursively enumerable. Again we can use Rice's second theorem for this using $T_{yes}$ and $T_{no}$ such that $L(T_{yes} = \phi$ (any set other than $\Sigma^*$ would do) and $L(T_{no}) = \Sigma^*$  thus $L(T_{yes}) \subset L(T_{no})$. 

Proof for $L_3$ being undecidable can be done by reduction from Post Correspondence Problem. But ${L_3}$ must be recursively enumerable as here we have to check if a given grammar is ambiguous- we can take each word from $L$ and see if multiple parse tree exists- as long as grammar is ambiguous, we will eventually get a word for which there are multiple parse trees.  $L_3$ being recursively enumerable but not recursive would mean ${L_3}'$ is not recursively enumerable. 

Related questions

5.4k
views
1 answers
24 votes
Vikrant Singh asked Jan 27, 2015
5,444 views
Which of the following languages are Recursively Enumerable language?$\{\langle M \rangle \mid M$ is a TM and there exist an input whose length is less than 100, on which $M$ ... All of these
1.8k
views
3 answers
1 votes
gmrishikumar asked Dec 10, 2018
1,806 views
Halting problem of Turing machines which recognize recursive languages is undecidable. (True / False)
1.2k
views
1 answers
0 votes
Xylene asked Jun 17, 2017
1,246 views
What is the class of the language resulting from Union of R.E and non R.E ?(R.E => recursively enumerable)
1.7k
views
1 answers
0 votes
Xylene asked Jun 15, 2017
1,672 views
Can anyone give me an example of a language which is not a CSL but can be accepted using a Halting TM?