1,365 views

1 Answer

Best answer
6 votes
6 votes

1st Theorem of Rice Theorem says,

Any non-trivial property of the LANGUAGE recognizable by a Turing machine is undecidable

"TM 'M1'  accepts atmost 2 distinct input ."

What is non trivial here? Language having atmost 2 distinct strings.

Say L(TMyes)  =$\emptyset$ satisfies this.

L(TMno) can be any language of more than 2 strings.

So, from 1st theorem of Rice Theorem, we can say that the given problem is undecidable.

Now, Rice 2nd Theorem

"Any non-monotonic property of the LANGUAGE recognizable by a Turing machine is unrecognizable"

Say, TMyes=$\emptyset$ , TMno=$\Sigma ^*$,

Now, TMyes$\subset$TMno

So, 2nd Rice Theorem also satisfies here. So, it is not even TM recognizable

TM 'M2' accept more than 2 distinct input .
Here minimum no. of strings in L is 3. TMno can be $\emptyset$. So, It is TM undecidable.

Now, check 2nd theorem of TM.

Here we cannot get any $L(T_{yes})$ and $L(T_{no})$ such that $L(T_{yes}) \subset L(T_{no})$. So, this is not a non-monotonic property of recursively enumerable languages and hence Rice's second theorem is not applicable. But this does not mean that this language is Turing recognizable (Rice's second theorem is one way like Pumping lemma). But this language is indeed Turing recognizable as we can simulate the TM with inputs one by one and using dovetailing technique and we are eventually sure to catch the "3" distinct inputs which are accepted and sure to say "yes" for yes cases of the language (for "no" cases our TM never halts).

Reference http://gatecse.in/rices-theorem/#comment-1599

edited by

Related questions

3 votes
3 votes
2 answers
1
3 votes
3 votes
2 answers
2
3 votes
3 votes
2 answers
3
4 votes
4 votes
2 answers
4
Kai asked Jan 29, 2017
751 views
When a Multi-tape TM of time complexity T(N) is reduced to a single tape turing machine, the complexity can go upto?