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.
(b) (2 points) Is M a decider? explain why or why not.
(c) (1 points) If we were to modify M so that in step 2. it rejects instead of accepts if A and B both accept a common string, what language would the resulting machine recognize?
a) M recognizes the language of dfa pairs which has atleast one common accepting string.
b) No M is not a decider,because if suppose a dfa pair x and y dont have any common string to accept,then the turing machine will never halt.
c) modified M recognizes the language of dfa pairs which does not have any common accepting string.
please answer a,b, and c Consider the following Turing Machine. M = “On input hA,Bi where...
Specify a Turing machine with input alphabet Σ = {a, b} that recognizes the language L = { ww | w ∈ Σ ∗}. Is L decidable?
Show that the language A = {<M1> | the language accepted by the Turing Machine M1 is 1*} is not decidable. Present your proof in the style of the proof of Th. 5.3, which shows below. PROOF We let R be a TM that decides REGULARTm and construct TM S to decide ATM. Then S works in the following manner. S - "On input (M, w), where M is a TM and w is a string: 1. Construct the following...
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...
1. (25 points) Turing Machine Design: Design a Turing machine Mi that operates on inputs that are strings in 10, 1). Design Mi so that it recognizes the following language: fw E (0.1)l w ends in 10 or 111) a. Provide a high-level English prose description for the actions of Mi b. Provide an implementation-level description of M. c. List the parts of the formal 7-tuple for M d. Draw a detailed pictorial state diagram for M1 e. List the...
19. (1 point) Suppose that L is undecidable and L is recognizable. Which of the following could be false? A. I is co-Turing recognizable. B. I is not recognizable. C. I is undecidable. D. L* is not recognizable. E. None of the above. 20. (2 points) Let ETM {(M)|L(M) = 0} and EQTM = {(M1, M2)|L(Mi) = L(M2)}. We want to show that EQTM is undecidable by reducing Etm to EQTM and we do this by assuming R is a...
COMPUTER SCIENCE -- THEORY OF COMPUTATION Please write a Turing-machine style of algorithm to decide the language L1 given below. Use specific, precise, step-by-step English. Describe how to test whether or not an input string is in the language L1 in finite time. A state diagram is not necessary at all -- but optional and helpful. L1 = {w : every ‘a’ within w is to the left of every ‘b’ within w} over the following alphabet Σ = {a,...
1. Consider machine M-(Q, Σ. Γ. δ.ql, qaccept, qreject), where Q-{qi, q2, q3, qaccept, qreject}, -{0.1), Г-{0.1 Ủ}, and the transition function as follows is δ (qi, U)-Greject, U, R) Prove that M is NOT a decider Describe in mathematical terms the language A that M recognises, and verify 1. ii. your answer, ie prove that A-L(M) iii. Is A Turing-decidable? [No need for a formal proof, but give clear reasons for your answer 1. Consider machine M-(Q, Σ. Γ....
Third time posting, can someone answer please. Question 2. Consider the Turing machine defined as follows. input alphabet {1} Tape alphabet = { 1,0, x,□} where □ represents a blank Set of states (A, B, C, D Initial state A set of accept states = {D} Transition function: 6(A, z) = (A,z, R) 6(A, □)-(C,D, L) (i) Draw a transition graph for this Turing machine. (ii) Determine the output of the Turing machine for each of the following input i)...
I need C and D please 2. Let M be the Turing machine defined by , B, R 92, C, 42 2, b, L 2 a, L a) Trace the computation for the input string abcab. b) Trace the first six transitions of the computation for the input string abab. c) Give the state diagram of M. d) Describe the result of a computation in M.
Question 6 Consider the Turing Machine (TM) T (over the input alphabet Σ = {a, b}) given below. (b,b,R) (a.a, R) (b.b,,R) (A,A,L) 1 Start 2 نيا 4 Halt (a, a,R) (a, a,R) (b,b,R) (A,A,R) Trace the execution of the TM on a few strings of as and bs so that you can see how it works and answer the following questions. 6.1. What is the shortest word that would be accepted by T? (2) 6.2. What is accept(T)? (2)...