Question

2. (10 points) Consider the following computational problems:

EQDF A = {hA, Bi | A and B are DFAs and L(A) = L(B)}

SUBDF A = {hA, Bi | A and B are DFAs and L(A) ⊆ L(B)}

DISJDF A = {hA, Bi | A and B are DFAs and L(A) ∩ L(B) = ∅}.

Prove that SUBDF A and DISJDF A are each Turing-decidable.

You may (and should) use high-level descriptions of any Turing machines you define. Make sure to provide both a machine definition and a proof of correctness.

2. (10 points) Consider the following computational problems: EQDFA = {(A,B) | A and B are DFAs and L(A) = L(B)) SUBDFA = {(A,B) | A and B are DFAs and L(A) L(B)) DISJDFA = {(A,B) | A and B are DFAs and L(A) L(B) = } Prove that SUBDFA and DISJDFA are each Turing-decidable. You may (and should) use high-level descriptions of any Turing machines you define. Make sure to provide both a machine definition and a proof of correctness.

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

Solution for SUB_{DFA} is Turing decidable or not.

Given \item[] $SUB_{DFA} = \{ \langle A, B \rangle \st \text{$A$ and $B$ are DFAs and $L(A) \subseteq L(B)$} \}$

Let X and Y be two sets. Then X \subseteq Y iff X \cap \overline{Y} = \Phi

Thus based on the above Idea:

Define TM M_{1} by : M_{1} = "On Input \left \langle A, B \right \rangle where A, BDFA's

  1. Construct a new DFAD from A, B such that DFA   D is intersection of A and \overline{B} as we know that intersection and complement of DFA is decidable. Thus
    L(D) = L(A) \cap \overline{L(B)}
  2. We know that E_{DFA} is decidable. ie Empty DFA is Turing decidable.
    Thus TM M_{1} accepts if L(D) is empty and rejects otherwise.

Solution (b) To prove DISJ_{DFA} is Turing decidable.
$DISJ_{DFA} = \{ \langle A, B \rangle \st \text{$A$ and $B$ are DFAs and $L(A) \cap L(B) = \emptyset$} \} $.

From Demorgan's law we know the fact that if X and Y are two sets

Then X\capY = \overline{\overline{X}\cup \overline{Y}} . And we also know that union and complement of DFA are decidable thus the intersection is also decidable.

Based on Above Idea:

Define TM M_{2} by : M_{2} = "On Input \left \langle A, B \right \rangle where A, BDFA's

  1. Construct a new DFAD from A, B such that DFA   D is intersection of A and B as we know that intersection of two DFAs is decidable. Thus
    L(D) = L(A) \cap L(B)
  2. We know that E_{DFA} is decidable. ie Empty DFA is Turing decidable.
    Thus TM M_{2} accepts if L(D) is empty and rejects otherwise.

Proof of correctness is just to tell that M1 and M2 is decider and the L(M1) and L(M2) are indeed equivalent to SUB_DFA and DISJ_DFA.

Add a comment
Know the answer?
Add Answer to:
2. (10 points) Consider the following computational problems: EQDF A = {hA, Bi | A and...
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
  • For the following problems (except problem 8), state whether the problem is decidable or undecidable. If...

    For the following problems (except problem 8), state whether the problem is decidable or undecidable. If you claim the problem is decidable, then give a high-level, English description of an algorithm to solve the problem. If you claim the problem is undecidable, then describe a proof- by-reduction to verify your claim. If your proof involves some kind of transformation of M into M', as was done for the BlankTape problem, then provide a high -level, English description of your transformation....

  • please answer a,b, and c Consider the following Turing Machine. M = “On input hA,Bi where...

    please answer a,b, and c Consider the following Turing Machine. M = “On input hA,Bi where A and B are DFAs: 1. Iterate through strings in Σ∗ in shortlex order; where Σ represents the common symbols of their input alphabets. For each string iterated, simulate both A and B on it. 2. If a string is ever encountered that both A and B accept, then accept.” (a) (2 points) Give a description, in English, of the language that M recognizes....

  • State whether the problem is decidable or undecidable. If you claim the problem is decidable, then...

    State whether the problem is decidable or undecidable. If you claim the problem is decidable, then give a high-level, English description of an algorithm to solve the problem. If you claim the problem is undecidable, then describe a proof-by-reduction to verify your claim. If your proof involves some kind of transformation of M into M’ , then provide a high-level, English description of your transformation. Be sure to specify precisely for each “box” in your proof, what are the inputs...

  • 3. (12 points) Consider the following sum: n Sn = {(i + 1)(i +2) i=0 (a)...

    3. (12 points) Consider the following sum: n Sn = {(i + 1)(i +2) i=0 (a) Use properties of summations to find a closed form expression for Sn. Simplify your answer into a polynomial with rational coefficients. Show your work, and clearly indicate your final answer. (b) Use weak induction to prove that your closed form works for every integer n > 0. Make sure you include all three parts, and label them appropriately!

  • Question 2. Consider the following 8 bundles of goods x and y: A = (8,4) B...

    Question 2. Consider the following 8 bundles of goods x and y: A = (8,4) B = (5,6) C = (5,9) D = (10,3) E =(1,4) F =(6,5) G=(2,8) H =(7,8) (a) Come up with an example of a utility function that will produce the following order of preference for the bundles, where H is most preferred, A and G are equally preferred, and E is least preferred. H , C , B , F , A = G ,...

  • Real analysis 10 11 12 13 please (r 2 4.1 Limit of Function 129 se f: E → R, p is a limit point of E, and li...

    Real analysis 10 11 12 13 please (r 2 4.1 Limit of Function 129 se f: E → R, p is a limit point of E, and limf(x)-L. Prove that lim)ILI. h If, in addition, )o for all x E E, prove that lim b. Prove that lim (f(x))"-L" for each n E N. ethe limit theorems, examples, and previous exercises to find each of the following limits. State which theo- rems, examples, or exercises are used in each case....

  • Part 2: Money Q5. Consider the Balance sheets of Bank A and Bank B: (10 points)...

    Part 2: Money Q5. Consider the Balance sheets of Bank A and Bank B: (10 points) Assets Bank A Liabilities and Owners' Equity Reserves 200 Deposits 1000 Loans 1000 Debt (bond issued by Bank A) 500 Stocks 800 Capital (Owner's Equity) 500 Assets Bank B Liabilities and Owners' Equity Reserves 400 Deposits 2000 Loans 1600 Debt (bond issued by Bank B) 400 Stocks 1000 Capital (Owner's Equity) 600 i. What is the Reserve-Deposit Ratio (rr) for bank A, What is...

  • 2. Consider the following set of complex 2 x 2 matrices where i = -1: H...

    2. Consider the following set of complex 2 x 2 matrices where i = -1: H = a + bi -c+dil Ic+dia-bi Put B = {1, i, j, k} where = = {[ctdie met di]|1,3,c,dex} 1-[ ), : = [=]. ; = [i -:], « =(: :] . (a) Show that H is a subspace of the real vector space of 2 x 2 matrices with entries from C, that is, show H is closed under matrix addition and multi-...

  • specifically on finite i pmu r the number of objøcts or ways. Leave your answers in fornsiala form, such as C(3, 2) nporkan?(2) Are repeats poasib Two points each imal digits will have at le...

    specifically on finite i pmu r the number of objøcts or ways. Leave your answers in fornsiala form, such as C(3, 2) nporkan?(2) Are repeats poasib Two points each imal digits will have at least one xpeated digin? I. This is the oounting problem Al ancmher so ask yourelr (1) ls onder ipo n How many strings of four bexadeci ) A Compuir Science indtructor has a stack of blue can this i For parts c, d. and e, suppose...

  • 1. Explain the function/purpose of the following sequence of program statements by expressing the postcondition and...

    1. Explain the function/purpose of the following sequence of program statements by expressing the postcondition and then prove that the program is correct using the axiomatic verification method. Precondition: {x = A and y = B} t=x x=y y=t Postcondition:________________ 2. Prove that the following grammar is ambiguous. <stmt> -> <assign> | <if-stmt> <assign> -> <id> := <expr> <if-stmt> -> if <bool> then <stmt> | if <bool> then <stmt> else <stmt> Modify the grammar above to make it unambiguous: 3....

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
Active Questions
ADVERTISEMENT