Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Give an example of an undecidable language B, where BmB.

Short Answer

Expert verified

is an example of undecidable language.B=1,T:TH0,T:TH

Step by step solution

01

Undecidability

A problem is undecidable if no Turing Machine exist which will halt in finite amount of time.

02

Example of undecidable language

Assume H : Language of all the Turing Machine which halts on empty input. This shows H is undecidable.

Now, let us define B as:


Here, T is also a Turing Machine for some language.

If B is decidable, then a Turing Machine M for language B will show the existence of a TM M' which will decide H . Also M' with input T must run M on input (1,T) .

Also, for a TM T and y0,1we will have:

y,TB1-y,TB1-y,TB

So, B reduces to Band B is not decidable as H is not decidable because no Turing Machine exists M' to decide it as stated in starting of the solution.

Hence, B is undecidable but yet.

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

For each part, give a relation that satisfies the condition.

  1. Reflexive and symmetric but not transitive
  2. Reflexive and transitive but not symmetric
  3. Symmetric and transitive but not reflexive

Show that the class of context-free languages is closed under the regular operations, union, concatenation, and star.

Question:Consider the algorithm MINIMIZE, which takes a DFA as input and outputs DFA .

MINIMIZE = “On input , where M=(Q,Σ,δ,q0,A) is a DFA:

1.Remove all states of G that are unreachable from the start state.

2. Construct the following undirected graph G whose nodes are the states of .

3. Place an edge in G connecting every accept state with every non accept state. Add additional edges as follows.

4. Repeat until no new edges are added to G :

5. For every pair of distinct states q and r of and every aΣ :

6. Add the edge (q,r) to G if δq,a,δr,a is an edge of G .

7. For each state q,let[q] be the collection of statesq={rQ|noedge joins q and r in G }.

8.Form a new DFA M'=Q',Σ,δ',q'0,A'where

Q'={[q]|qQ}(ifq=r,onlyoneofthemisinQ'),δ'(q,a)=[δq,a]foreveryqQandaΣ,q00=[q0],andA0={[q]|qA}

9. Output ( M')”

a. Show that M and M' are equivalent.

b. Show that M0 is minimal—that is, no DFA with fewer states recognizes the same language. You may use the result of Problem 1.52 without proof.

c. Show that MINIMIZE operates in polynomial time.

Question: Let S={{M}|MisaTMandLM={M'}.Show that S nor S' neither is Turing recognizable.

Write formal descriptions of the following sets.

  1. The set containing the numbers1,10, and100
  2. The set containing all integers that are greater than5
  3. The set containing all natural numbers that are less than5
  4. The set containing the string aba
  5. The set containing the empty string
  6. The set containing nothing at all
See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free