Question

Prove that the following language is undecidable: L = { 〈M〉 | M is a Turing...

Prove that the following language is undecidable:

L = { 〈M〉 | M is a Turing machine that accepts all strings of length at most 5}

Homework Answers

Answer #1

It is Undecidable and non RE.

The TM has to accept only those strings whose length is atmost 5, so here there are 2 conditions to be satisfied by a valid TM for this language, first it must accept all such strings whose length is within 5, and second it should not accept any other string whose length is greater than 5.

Since asking a TM whether it will accept a specific string is membership problem and even if a TM satisfies first condition, we cannot put it in output, because there is no logic to check for second condition, we need to keep checking infinitely to make sure TM doesn't accept any string of length greater than 5.

(1)Since, this property is non-trivial property of the Language accepted by the Turing machine, the language is Undecidable.

(2)Now, Applying Rice's theorem part 2

Tyes=ϕTyes=ϕ and tno=∑∗tno=∑∗ and Tyes⊂TnoTyes⊂Tno, so it is NOT RE.

Tyes⊂Tno,ϕ is a proper subset of any non-empty set, and improper subset of empty set.

Know the answer?
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
Similar Questions
INFINITETM = {〈M〉| M is a TM and L(M) is an infinite language}. Is it co-Turing-recognizable?...
INFINITETM = {〈M〉| M is a TM and L(M) is an infinite language}. Is it co-Turing-recognizable? prove your answer.
Prove that if a language L is regular, the suffix language of L is also regular.
Prove that if a language L is regular, the suffix language of L is also regular.
Given a language L, etc. Show that the language L is a regular language. To show...
Given a language L, etc. Show that the language L is a regular language. To show that the language L is a regular language - find/design a dfa that recognizes the language L. Given a regular expression r, etc. What is the language L, L = L(r)? L(r) is the set of all strings etc.
Write a Turing-machine style of algorithm to decide the language L1 given below. Use specific, precise,...
Write a Turing-machine style of algorithm to decide the language L1 given below. Use specific, precise, step-by-step English. So, describe how to test whether or not an input string is in the language L1 in finite time. No need to write a state diagram. L1 = {w : every ‘a’ within w is to the left of every ‘b’ within w} over the following alphabet Σ = {a, b, c}. In other words, you’re not allowed to have any ‘b’...
Write a Turing-machine style of algorithm to decide the language L2 given below. Use specific, precise,...
Write a Turing-machine style of algorithm to decide the language L2 given below. Use specific, precise, step-by-step English. So, describe how to test whether or not an input string is in the language L2 in finite time. No need to write a state diagram. L2 = {w : w has more a’s than it has b’s and c’s combined} over the alphabet Σ = {a, b, c}. Example strings: abaca ∈ L2. bcaa ∉ L2.
Prove the language of strings over {a, b} of the form (b^m)(a^n) , 0 ≤ m...
Prove the language of strings over {a, b} of the form (b^m)(a^n) , 0 ≤ m < n-2 isn’t regular. Use the pumping lemma for regular languages.
5 A Non-Regular language Prove that the language}L={www∣w∈{0,1}​∗​​} is not regular.
5 A Non-Regular language Prove that the language}L={www∣w∈{0,1}​∗​​} is not regular.
The chopleft operation of a regular language L is removing the leftmost symbol of every string...
The chopleft operation of a regular language L is removing the leftmost symbol of every string in L: chopleft(L) = { w | vw ∈ L, with |v| = 1}. Prove or disprove that the family of regular languages is closed under the chopleft operation.    Hint: If it’s regular, give an idea of constructing an FA that accepts chopleft(L) using an FA M that accepts L. Otherwise, give a counterexample.
Prove the language of strings over {a, b} of the form (b^m)(a^n) , 0 ≤ m...
Prove the language of strings over {a, b} of the form (b^m)(a^n) , 0 ≤ m < n-2 isn’t regular. (I'm using the ^ notation but your free to make yours bman instead of (b^m)(a^n) ) Use the pumping lemma for regular languages.
Consider the language defined by L = {aibmcn | i > 0, n > m >...
Consider the language defined by L = {aibmcn | i > 0, n > m > 0 } Is L regular or not? Prove it
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT