Question

In: Computer Science

(10) Let L = { <D> | D is a DFA that accepts sR whenever it...

(10) Let L = { <D> | D is a DFA that accepts sR whenever it accepts s } . Show that L is Turing-decidable.

Solutions

Expert Solution

Here i am providing the answer. Hope it helps. Please give me a like, it helps me a lot. If you have any doubts comment me. i will explain you,

Here is the question, Let L= {<D>〉 | D is a DFA that accepts sR whenever it accepts s}. Now, we have to
sshow that L is decidable.
(We know that sR is the reversal of s,
Answer: If D is a DFA, let DR be the DFA that accepts the reverse of all the strings that D accepts. Such a
DFA can be constructed by reverting each of the transitions in the DFA and by switching the initial and
the Ŝnal states. Notice that <D> ∈ L ⇔ L(D) = L(DR) ⇔ D, DR are equivalent. The membership of <D> can
be checked by using the equivalence checking algorithm of DFA.
WE can take another approach like, to show S is decidable, we construct a decider M for S as follows (Let
C be a TM
that decides EQDFA):
M = “On input <D>,
1. Construct an NFA D' such that L(D' ) = {w R | w ∈ L(D)}
2. Convert D' into an equivalent DFA D00
3. Use C to compare L(D') and L(D)
4. If L(D'') = L(D), accept. Else, reject.
In the above TM, Step 1 can be done by converting D into D' in finite steps. The idea is to (i) reverse the
directions of all transition arrows in D, (ii) create a new state q' in D', and connects q' to each original final
states of D with ε-transitions, and (iii) make the original start state of D a Ŝnal state of D'. It is easy to
check that L(D') = {w R | w ∈ L(D)}. Also, both Step 2 and Step 3 can be done in Ŝnite steps.
So, D runs in finite steps and is thus a decider.
Thank you, please like.


Related Solutions

write the dfa for Let L={w in {0,1}*| w is a binary number that is a...
write the dfa for Let L={w in {0,1}*| w is a binary number that is a multiple of 4}
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.
Consider the ternary number system. What is the corresponding regular expression of a DFA that accepts...
Consider the ternary number system. What is the corresponding regular expression of a DFA that accepts ternary strings that are not divisible by nine?
Let D be the weight, in pounds, of a randomly selected male baseball player. Let L...
Let D be the weight, in pounds, of a randomly selected male baseball player. Let L be the weight, in pounds, of a randomly selected female softball player. Suppose D is normally distributed with a mean weight of 173 pounds and a standard deviation of 29 pounds. Suppose L is normally distributed with a mean weight of 143 pounds and a standard deviation of 25 pounds. L and D are independent a) Calculate the expected value of L + D....
Automata Question. Over the alphabet Σ = {a, b}: 1) Give a DFA, M1, that accepts...
Automata Question. Over the alphabet Σ = {a, b}: 1) Give a DFA, M1, that accepts a Language L1 = { w | w has exactly 2 a’s } 2) Give a DFA, M2, that accepts a Language L2 = { w | w has at least 2 b’s } 3) Give acceptor for L1 intersection L2 4) Give acceptor for L1 - L2
1. 1 L 0.45% NS is infusing at a 10 hr rate whenever the IV pump...
1. 1 L 0.45% NS is infusing at a 10 hr rate whenever the IV pump breaks.  Drop factor is 15.  The IV should be continued at _________gtts/min 2. Digoxin 0.375 mg PO daily is ordered.  Digoxin 250 mcg tablets are available.  The patient will receive ________tablet(s). 3. Diazepam 6 mg IM now is ordered. Calculate the dose and then indicate on the syringe the amount to be administered
9. Let L : R 10 → R 10 be a linear function such that the...
9. Let L : R 10 → R 10 be a linear function such that the composition L ◦ L is the zero map; that is, (L ◦ L)(x) = L L(x) = ~0 for all ~x ∈ R 10 . (a) Show that every vector v in the range of L belongs to the the kernel ker(L) of L. (b) Is it possible that ker(L) and Range(L) both have dimension bigger than 5? Carefully justify your answer. (c) Let...
Draw an NFA for the following language then convert to a DFA: L = {w :...
Draw an NFA for the following language then convert to a DFA: L = {w : |w| is odd or |w| is a multiple of 4} where Σ = {0, 1}
Prove that the language L={(M, N): M is a Turing machine and N is a DFA...
Prove that the language L={(M, N): M is a Turing machine and N is a DFA with L(M) =L(N)} is undecidable. You need to derive a reduction from Atm={(M, w)|Turing machine M accepts w} to L. (In layman's terms please, no other theorems involved)
Create a DFA for L = {wwR|w ∈ {0, 1}∗}. WR represents the reverse of the...
Create a DFA for L = {wwR|w ∈ {0, 1}∗}. WR represents the reverse of the string. Explain your answer.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT