L = {<M,s> : M rejects ss, but accepts exactly two other strings ending in s} . Prove that L ∉ D using a reduction from H; do not use Rice's theorem.
To prove that the given language is undecidable, do the following: reduce from the language .
Let be an instance for . Output the following: where M' does the following: On input x, if x doesn't end in 1, it rejects. If , it rejects. Otherwise, it runs M on w, and if M halts on w, accepts x.
To prove that this is a valid reduction, argue as following. If M halts on w, then M' accepts all strings ending with 1 except for 11, hence . Otherwise M' accepts nothing, hence . This proves that this is a reduction from H to L.
Thus, given that H is undecidable, L is undecidable as well.
Comment in case of any doubts.
L = {<M,s> : M rejects ss, but accepts exactly two other strings ending in s}...
2. Let L-M M): M is a Turing machine that accepts at least two binary strings. a) Define the notions of a recognisable language and an undecidable language. [5 marks [5 marks] b) Is L Turing-recognisable? Justify your answer with an informal argument. c) Prove that L is undecidable. (Hint: use Rice's theorem.) [20 marks] 20 marks] d) Bonus: Justify with a formal proof your answer to b). 2. Let L-M M): M is a Turing machine that accepts at...
2. Let L = {hMi: M is a Turing machine that accepts at least two binary strings}. a) Define the notions of a recognisable language and an undecidable language. [5 marks] b) Is L Turing-recognisable? Justify your answer with an informal argument. [5 marks] c) Prove that L is undecidable. (Hint: use Rice’s theorem.) [20 marks] d) Bonus: Justify with a formal proof your answer to b). [20 marks] 2. Let L-M M): M is a Turing machine that accepts...
(3) Prove that the following language is undecidable L {< M, w> M accepts exactly three strings }. Use a reduction from ArM
F F F 12. L={ <M> : L(M) = {b). Le SD/D. 13. L={<M> : L(M) CFLs). LED 14. L = {<M> : L(M) e CFLs). Rice's theorem could be used to prove that L 15. T T D. F L = {<M> : L(M) e CFLs). Le SD. That is, L is not semidecidable. T F 16. L <Mi,M2>:IL(M)L(IM21) 3. That is, there are more strings in L(M2) than in L(M). Rice's theorem could be used to prove that...
{ <N> : L(M) contains a string starting with a). Rice's theorem can be F 20, L used to prove that LD. T L(M2) >. Rice's theorem can be used to prove T F 21. L that L D. <M,, M2> L(M,) 22. L-( <M,M> : L(M) = L(M2) }, and R is a mapping reduction function from H to L. It is possible that R retur a TM. T F ns <M#>, where M # is the string encoding...
Help me answer this question plz! 4. Let L = { (A) M is a Turing machine that accepts more than one string } a) Define the notions of Turing-recognisable language and undecidable language. b) Is L Turing-recognisable? Justify your answer with an informal argument. c) Justify with a formal proof your answer to b) d) Prove that L is undecidable. (Hint: use Rice's theorem.) e) Modify your answer to b) when instead of L you have the language Ln...
Let REPEATTM = { | M is a TM, and for all s L(M), s = uv where u = v }. Show that REPEATTM is undecidable. Do not use Rice’s Theorem. Let REPEATTM = { <M>M is a TM, and for all s E L(M), s = uv where u = v}. Show that REPEATM is undecidable. Do not use Rice's Theorem.
4) For the alphabet S={a, b}, construct an FA that accepts the following languages. (d) L= {all strings with at least one a and exactly two b's} (e) L= {all strings with b as the third letter} (f) L={w, |w| mod 4 = 0} // the cardinality of the word is a multiple of 4
Let n be a positive integer. Classify the languages R = { (M) | M is a TM and L(M) contains exactly n strings} S = { (M) | M is a TM and L(M) contains more than n strings} as (a) decidable (b) Turing-recognizable but not co-Turing recognizable (c) co-Turing recognizable but not Turing-recognizable (d) neither Turing nor co-Turing recognizable
8. (15) Let REPEATTM = { <M>M is a TM, and for all s € L(M), s = uv where u = v}. Show that REPEATM is undecidable. Do not use Rice's Theorem.