Show that if Q is both semi-decidable and co-semi-decidable, then it is decidable.
Proof:
Q is a language.
(=>) We already know decidable implies semi-decidable(CE).
->If Q is decidable, then compliment of M is decidable by flipping accept/reject.
->so Q is co-semi-decidable(co-CE).
Now the other way,
(<=) We have Turing machine M that recognizes Q and Turing machine M' that recognizes complement of Q.
->on input x, simulate M, M' in parallel
->if M accepts, then accept; if M' accepts, then reject.
Show that if Q is both semi-decidable and co-semi-decidable, then it is decidable.
For each of the following, indicate whether the problem is in P, NP, decidable, semi-decidable, or none of these. 1. { n : Mn(n) halts in no more than n steps } 2. { n : Mn(n) halts in more than n steps } 3. { n : Mn halts on at least 3 inputs } 4. { n : Mn halts on at most 3 inputs } 5. { n : Mn has an even number of states }
I need to prove follow:
Let
be a semi-decidable language. Then the language
(Kleene star) is semi-decidable.
We were unable to transcribe this imageWe were unable to transcribe this image
4. Given two languages A and B, show that if An B and AUB are decidable, then A is decidable.
1. (10 points) Show that the Turing Decidable languages are closed under complementation. If L is Turing Decidable then so is the complement -L. 1. (10 points) Show that the Turing Decidable languages are closed under complementation. If L is Turing Decidable then so is the complement -L.
. Show that a language is decidable if and only if some enumerator prints the strings in the language in lexicographical order.
Show that the following language is decidable. L={〈A〉 | A is a DFA that recognizes Σ∗ } M =“On input 〈A〉 where A is a DFA:
Show that the Halting Problem for one-counter additive machines is decidable. Hint: first show that if the machine has n states and the counter reaches zero more than n times in the course of a computation, it will run forever.
5. Let CONTAINPDA DFA L(M1) C (M2)}. Show that CONTAIN PDA DFA is decidable. {{M1, M2) M1 is a PDA and M2 is a DFA such that =
5. Let CONTAINPDA DFA L(M1) C (M2)}. Show that CONTAIN PDA DFA is decidable. {{M1, M2) M1 is a PDA and M2 is a DFA such that =
Quick Quiz Is the following true? 1. If L is Turing-decidable, L is Turing- recognizable If L is Turing-recognizable, L is Turing- decidable 2. 3. If L is Turing-decidable, so is t 4. If L is Turing-recognizable, so is L 5. If both L and L are Turing-recognizable, L is Turing-decidable
Let INFINITE PDA ={<M>|M is a PDA and L(M) is an infinite language} Show that INFINITE PDA is decidable.