Question

L = {<M,s> : M rejects ss, but accepts exactly two other strings ending in s}...

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.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

To prove that the given language is undecidable, do the following: reduce from the language H = \{\langle M, w\rangle \mid M \text{ halts on } w\} .

Let \langle M, w\rangle be an instance for H. Output the following: \langle M', 1\rangle where M' does the following: On input x, if x doesn't end in 1, it rejects. If x = 11, 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 \langle M', 1\rangle \in L . Otherwise M' accepts nothing, hence \langle M', 1\rangle \not\in L . 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.

Add a comment
Know the answer?
Add Answer to:
L = {<M,s> : M rejects ss, but accepts exactly two other strings ending in s}...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT