Question

In: Computer Science

Given two DFAs, A and B, show that you can construct a DFA C such that...

Given two DFAs, A and B, show that you can construct a DFA C such that L(C) = ∅ if and only if L(A) ⊆ L(B). Prove that your construction works by proving the if and only if statement.

Solutions

Expert Solution

- The language L1 is decidable. A decider for L1 would work as follows:
”On input hA;Bi:
1. Construct a DFA C such that L(C) = L(A) \ L(B).
2. Test whether L(C) = ; or not. If yes then accept else reject.”
The step 1. is surely algorithmic using the classical product construction (covered in the formal
automata course). Step 2. is also algorithmic because we already discussed that the emptiness
problem EDFA is decidable for DFA.
-The language L2 is decidable. A decider M2 for L2 would on the input hMi do the following. It
would inspect the description ofM present on the first tape and count the total number control states
in M. Should the number be greater than 5 then M2 would accept, otherwise M2 would reject. This
algorithm will surely terminate and hence we have a decider M2 for L2.
- The language L3 is decidable. Consider the following Turing machine M3 deciding L3:

M3 = ”On input hM;wi:
1. i:=1;
2. Simulate one step of M on w.
3. If M accepted w then M3 accepts.
If M rejected w then M3 rejects.
If i >= 1000 then M3 rejects.
4. Else i:=i+1; goto step 2.”
Clearly the machine M3 is decider as the main loop will run at most 1000 times and L(M3) = L3.
- The language L4 is equal to the language ATM and hence we know that it is undecidable.
- The language L5 is undecidable. A proof of it is given i Exercise 4.


Related Solutions

construct a DFA to check if a string containing a,b and no.of a's is divisible by...
construct a DFA to check if a string containing a,b and no.of a's is divisible by 5 and no.of b's is divisible by 7
L= {x^a y^b z^c | c=a+b(mod 2)} .Create a DFA and NFA for the language L....
L= {x^a y^b z^c | c=a+b(mod 2)} .Create a DFA and NFA for the language L. Solution and explanation please..
Convert the following NFA given by M to a DFA. Show your work which includes both...
Convert the following NFA given by M to a DFA. Show your work which includes both state diagrams. M = ( {q0, q1, q2} , {a, b} , δ, q0, {q1}) with the state table given a b q0 {q1, q1} q1 null {q2} q2 null {q2}
Construct a dfa that accepts strings on {0, 1} if and only if the value of...
Construct a dfa that accepts strings on {0, 1} if and only if the value of the string, interpreted as a binary representation of an integer, is zero modulo five. For example, 0101 and 1111, representing the integers 5 and 15, respectively, are to be accepted.
Construct NFA of following languages and convert it to equivalent DFA. The set of all binary...
Construct NFA of following languages and convert it to equivalent DFA. The set of all binary strings such that 3th symbol from right end is 0.
Description: In this assignment, you will implement a deterministic finite automata (DFA) using C++ programming language...
Description: In this assignment, you will implement a deterministic finite automata (DFA) using C++ programming language to extract all matching patterns (substrings) from a given input DNA sequence string. The alphabet for generating DNA sequences is {A, T, G, C}. Write a regular expression that represents all DNA strings that begin with ‘A’ and end with ‘T’. Note: assume empty string is not a valid string. Design a deterministic finite automaton to recognize the regular expression. Write a program which...
Informed consent can be given: a. judicially b. verbally c. in writing d. statutorily e. b...
Informed consent can be given: a. judicially b. verbally c. in writing d. statutorily e. b and c f. All the above
Given the following information, show how you can arbitrage and compute your profit, if you can...
Given the following information, show how you can arbitrage and compute your profit, if you can borrow 200 million dollars or euros equivalent for three months. Show your profit in both dollars and euros Spot rate ($/€) 1.255 3-month forward rate ($/€) 1.213 3-month U.S. dollar interest rate 2.0% 3-month euro interest rate 1.6%
Given the following information, show how you can arbitrage and compute your profit, if you can...
Given the following information, show how you can arbitrage and compute your profit, if you can borrow 200 million dollars or euros equivalent for three months. Show your profit in both dollars and euros. Spot rate ($/€) 1.255 3-month forward rate ($/€) 1.213 3-month U.S. dollar interest rate 2.0% 3-month euro interest rate 1.6%
Show if A, B, C are connected subsets of X and A∩B not equal ∅ and...
Show if A, B, C are connected subsets of X and A∩B not equal ∅ and B ∩C not equal ∅, then A∪B ∪C is connected.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT