Let M and N be the decidable Turing machine for first and second decidable language given above respectively .
Now the membership for A can be decided for all 4 possible cases as follows :-
1. If input x is in A and B as well.
In this case, M will accept x and hence accept x if x is accepted by M.
2. If x is in A but not in B.
In this case M will not accept x(as it is not in B) and N will not accept x(as it is not in complement of A and not in B) and hence accept x if neither M nor N accept it.
3. If x is not in A but in B.
In this case M will not accept x but N will accept it(since x is in B) and hence reject x if this happens.
4. If x is not in A and not in B as well
In this case, M will reject x but N will accept it(since x is in complement of A) and hence reject x if this happens .
Since all the 4 cases, the behavior of Turing machine M and N are different when x is in A than when x is not in A and hence we will be able to decide A and hence A is decidable.
Please comment for any clarification .
4. Given two languages A and B, show that if An B and AUB are decidable,...
1. (10 points) Show that the Turing Decidable languages are closed under complementation. If L is Turing Decidable then so is the complement -L. 1. (10 points) Show that the Turing Decidable languages are closed under complementation. If L is Turing Decidable then so is the complement -L.
determine if the language is regular, context-free, Turing-decidable, or undecidable. For languages that are regular, give a DFA that accepts the language, a regular expression that generates the language, and a maximal list of strings that arc pairwise distinguishable with respect to the language. For languages that are context-free but not regular, prove that the language is not regular and either give a context- free grammar that generates the language or a pushdown automaton that accepts the language. You need...
determine if the language is regular, context-free, Turing-decidable, or undecidable. For languages that are regular, give a DFA that accepts the language, a regular expression that generates the language, and a maximal list of strings that are pairwise distinguishable with respect to the language. For languages that are context-free but not regular, prove that the language is not regular and either give a context- free grammar that generates the language or a pushdown automaton that accepts the language. You need...
EXP is the class of languages decidable in exponential time (i.e. in 2" steps for some k) Much like the relationship between P and time can be decided in exponential time (i.e., NP EXP), but it is an open question if all problems decidable in exponential time are verifiable in polynomial time (i.e., EXP NP), though this is not expected to be true. Formally, the EXP class can be defined similarly to how we define P: NP, all languages that...
Find if the following problems are algorithmically decidable and prove that your answers are correct. Given three context-free languages N, L and M, find if the language (L⋂N)⋃(N⋂M) is empty Please help.
2. (10 points) Determine whether the following languages are decidable, recognizable, or undecidable. Briefly justify your answer for each statement. 1) L! = {< D,w >. D is a DFA and w E L(D)} 2) L2- N, w> N is a NF A and w L(N) 3) L,-{< P, w >: P is a PDA and w ㅌ L(P); 4) L,-{< M, w >: M is a TM and w e L(M)} 5) L,-{< M, w >: M is a...
4. Show that if A and B are measurable, then m(AUB) + m(ANB) = m(A) + m(B). 5. Let {E}} be a sequence of measurable sets and A be an arbitrary set. Then m (An (UE;)) = {m" (ANE)
3. Show that the family of regular languages is closed under the given operations below The nor of two languages by nor(L, L2) = {w: w E L1 and w E L2} The cor (complementary) of two languages by cor(Li, L2) = {w: w E L1 or w E L2} a. b. 3. Show that the family of regular languages is closed under the given operations below The nor of two languages by nor(L, L2) = {w: w E L1...
1. (Decidable languages) (c) (Prefix of a generated string) A string w is called a prefix of string s if s starts with w. i. Give a regular expression for all strings over alphabet Σ for which w is a prefix. ii. Let L = {(G, w) | G is a CFG, w is a string, and w is a prefix of some string s generated by G}.
Two events A and B are such that P(A)2, P(B).3, and P(AUB) -4. Find following: a P(An B) b P(AUB) d P(AB) If A and B are independent events with P(A)and P(B) .2, find the following: a P(AUB) b PAnB) c P(AU B)