Question

In: Computer Science

i)Show that infinite decidable language has infinite decidable subset ? ii)Show that any infinite decidable language...

i)Show that infinite decidable language has infinite decidable subset ?


ii)Show that any infinite decidable language L has an infinite decidable subset J with the property that L − J is also infinite. ​

iii. Does the statement in part i of this problem still true if L is only recognizable ? Show or Counter example.

No Spam please.

Solutions

Expert Solution

Let A be an infinite Turing-recognizable language. Then, there exists an enumerator E that enumerates all strings in A (in some order, possibly with repetitions). We construct another enumerator E’ that printsa subset of A in lexicographic order: “Ignore the input.

1.Simulate E. When E prints its first string w1, print w1 and let prev_w = w1.

2.Continue simulating E.

3.When E is ready to print a new string w, check to see if w is longer than prev_w (this ensures w occurs after prev_w in lex. order). If so, then print wand let prev_w = w, otherwise do not print w.

4.Go to 2.” It is clear that E’ as constructed above only prints strings in A, therefore its language is a subset of A. Since A is infinite, there will always be strings in A longer than the current prev_w – E will eventually print one of these and so will E’ (and update prev_w). Therefore, the language of E’ is also infinite. Finally, since E’ only prints strings in lexicographic order, its language is decidable as proved in (a). Thus, the language of E’ is an infinite decidable subset of A.


Related Solutions

Show that a set S has infinite elements if and only if it has a subset...
Show that a set S has infinite elements if and only if it has a subset U such that (1) U does not equal to S and (2) U and S have the same cardinality.
Show that the following language is decidable APDA = { | M is a push down...
Show that the following language is decidable APDA = { | M is a push down automata that accepts string w} Explain your steps.
Let INFINITE PDA = {<M>|M is a PDA and L(M) is an infinite language}. Show that...
Let INFINITE PDA = {<M>|M is a PDA and L(M) is an infinite language}. Show that INFINITE PDA is decidable.
Prove that a subset of a countably infinite set is finite or countably infinite
Prove that a subset of a countably infinite set is finite or countably infinite
Give an example for each of the following. Justify your answers. i) an infinite subset of...
Give an example for each of the following. Justify your answers. i) an infinite subset of E1 with no cluster points. (consider Z) ii) a complete metric space that is bounded but not compact (hint: consider the trivial metric space (S,d) with S being an infinite set).
What does it mean to say that a language L is decidable?
What does it mean to say that a language L is decidable?
Prove or disprove with a counterexample the next claims: (a) The complement of a decidable language...
Prove or disprove with a counterexample the next claims: (a) The complement of a decidable language is decidable. (b) The Kleene star of a Turing-recognizable language is Turing-recognizable.
Let A be an infinite set and let B ⊆ A be a subset. Prove: (a)...
Let A be an infinite set and let B ⊆ A be a subset. Prove: (a) Assume A has a denumerable subset, show that A is equivalent to a proper subset of A. (b) Show that if A is denumerable and B is infinite then B is equivalent to A.
Show that the language F={M| M is a Turing machine , and L(M) contains infinite elements}...
Show that the language F={M| M is a Turing machine , and L(M) contains infinite elements} is not Turing recognizable.
Pick a subset of {1, 2, · · · , 10} so that any subset is...
Pick a subset of {1, 2, · · · , 10} so that any subset is equally likely to be picked. What is the probability that a. the subset contains the element one, given it is of size three? b. the subset has no even numbers given that it is of size 4? c. the maximum element of the subset is 8, given that the minimum element in it is 3?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT