Prove that the following language a is decidable

Assignment Help Theory of Computation
Reference no: EM133383854

Models of Computation

Assignment - Computability

Question 1. Prove that the following language A is decidable (e.g., give a TM that decides A):

A = {(M) | M is an NFA and L(M ) = B},

where B = {ω | ω ∈ {0, 1}* and ω contains 001 as a substring}. Note that L(M ) denotes the language of M.

(Hint: Observe that B is a regular language. Recall we studied in class that the language EQDFA is decidable.)

Question 2. Prove that the following language A is decidable (e.g., give a TM that decides A): A = {(R1, R2) | R1 and R2 are regular expressions and L(R1) ⊆ L(R2)}.(Hint: Note that L(R1) ⊆ L(R2) if and only if L(R1) ∩ L(R2) = Φ.)

Question 3. Prove that the following language A is decidable (e.g., give a TM that decides A):

A = {(G) | G is a CFG and ε ∈ L(G)}.

Question 4. Prove the following language is undecidable:

CFLTM = {(M) | M is a TM and L(M ) is a context-free language}.

(Hint: We proved in class that the language REGULARTM is undecidable. Follow the similar idea and slightly modify that proof.)

Question 5. Prove the following language is undecidable:

A01 = {(M) | M is a TM and 01 ∈ L(M ) (i.e., M accepts string 01)}. (Hint: Show that ATM can be reduced to A01.)

Question 6. We mentioned in class that the following language is undecidable:
ALLCFG = {(G) | G is a CFG and L(G) = Σ*, where Σ is set of all terminals of G}.

Prove the following language is undecidable by reducing ALLCFG to it:

EQCFG = {(G1, G2) | G1 and G2 are CFGs and L(G1) = L(G2)}.

Question 7. Prove the following language AHALT is Turing-recognizable:

AHALT = {(M) | M is a TM and M halts on some input}.

Reference no: EM133383854

Questions Cloud

Describe type of the organizational structure of the company : Describe the type of the organizational structure of the company within your project. Include the advantages and disadvantages of this organizational structure,
What are the benefits to employees of a diverse workplace : What is diversity? What are the benefits to employees of a diverse workplace? What are the benefits to an organization of a diverse workplace?
Develop a tool to collect data on the strengths and weakness : develop a tool to collect data on the strengths and weaknesses of various project communication means (email, one-on-one meetings, group meetings, zoom/video
What are the potential setbacks and what impact would these : What are the potential setbacks? What impact would these setbacks have? What aspects might you include in a narrative on a solution to mitigate this setback?
Prove that the following language a is decidable : Prove that the following language A is decidable and Prove the following language is undecidable - Prove the following language AHALT is Turing-recognizable
How will this change affect the net national product : How will this change affect the net national product and gross national product? Contrast the effect in the short run and in the long run.
What category is this procurement : What category is this procurement? From the supplier's profile, do you think a teaming agreement is needed, Explain your thoughts?
Explain why you agree or disagree with the research : As the risk manager, what will your reaction be to the risk management effort in regard to navigating overlapping domain? As a risk manager, how will you
What must be done to move the project forward : What must be done to move the project forward? Is it possible to recover from the current setbacks? Possible exhibits: Scope/requirements documents Financial

Reviews

Write a Review

Theory of Computation Questions & Answers

  Finite-state machine design

Create a finite-state machine design to turn your FPGA development board into a simple programmable music box.

  Redundant sequence identi cation

Redundant sequence identi cation

  Compute a shortest superstring

Dynamic programming algorithm to compute a shortest superstring.

  Propositional and predicate logic

Write down a structural induction principle for the PlayTree free type

  Design a syntactic analyzer

Design a syntactic analyzer for the language specified by the grammar

  Design unambiguous grammar to parse expressions

Write a program would read two numbers and then print all numbers between the first and the second, inclusive. Design unambiguous grammar to parse expressions

  Consider a logic function with three outputs

Consider a logic function with three outputs,  A ,  B , and  C , and three inputs,  D ,  E , and  F . The function is defined as follows:  A  is true if at least one input is true,  B  is true

  Considering a single programmed operating system

Considering a single programmed operating system, what is the minimal total time required to complete executions of the two processes? You should explain your answer with a diagram.

  How to construct an nfa

Give a construction that assumes you are given a DFA for L and show how to construct an NFA (with or without ε-moves) to recognize sort(L).

  Equivalence classes to construct minimal dfa for language

How many equivalence classes does this relation have and what are they? Use these equivalence classes to construct the minimal DFA for the language.

  Impact of moore-s law on data center costs

Discuss the impact of Moore's law on data center costs on such things as servers and communications equipment. List at least 3 steps or recommendations your data center can take to offset some or all of the effect of Moore's law.

  Problem encountered in statements in predicate logic

How the problem would be encountered in attempting to represent the following statements in Predicate logic. it should be possible to: John only likes to see French movies.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd