Question

(D is a deterministic finite automata (DFA))....{<D,R>} : D is a DFA and R is a...

(D is a deterministic finite automata (DFA))....{<D,R>} : D is a DFA and R is a regex. Prove that languages is decidable.

(N is an non deterministic finite automata (NFA))...{<N1,N2>}:N1 and N2 are NFAs. Prove that languages is decidable.

Homework Answers

Answer #1

(D is a deterministic finite automata (DFA))....{<D,R>} : D is a DFA and R is a regex. Prove that languages is decidable.

Ans: Define the language as

C = {<D, R> | D is a DFA and R is a regular expression with L(D) = L(R) }.

Recall that the proof of Theorem that defines a Turing machine F that decides the language EQDFA = { <A, B> | A and B are DFAs and L(A) = L(B) }. Then the following Turing machine T decides C:

T = “On input <D, R>, where D is a DFA and R is a regular expression:

1. Convert R into a DFA DR using the algorithm in the proof of Kleene’s Theorem.

2. Run TD decider F from Theorem on input <M, DR>.

3. If F accepts, accept. If F rejects, reject.”

N is an non deterministic finite automata (NFA))...{<N1,N2>}:N1 and N2 are NFAs. Prove that languages is decidable.

Ans:Nondeterministic finite automata (NFAs) allow for several or no choices to exist for the next state on a given symbol.

• For a state q and symbol l ∈ Σ, NFA can have

  1. multiple edges leaving q labelled with the same symbol l
  2. no edge leaving q labelled with symbol l
  3. edges leaving q labelled with ε
  • can take ε-edge without reading any symbol from input string.

Example: NFA N1 with alphabet Σ = {0, 1}.

  • Suppose NFA is in a state with multiple ways to proceed, e.g., in state q1 and the next symbol in input string is 1.
  • The machine splits into multiple copies of itself (threads).
  1. Each copy proceeds with computation independently of others.
  2. NFA may be in a set of states, instead of a single state.
  3. NFA follows all possible computation paths in parallel.
  4. If a copy is in a state and next input symbol doesn’t appear on any outgoing edge from the state, then the copy dies or crashes.
  • If any copy ends in an accept state after reading entire input string, the NFA accepts the string.
  • If no copy ends in an accept state after reading entire input string, then NFA does not accept (rejects) the string.
Know the answer?
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
Similar Questions
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA...
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA in which start and end symbol must be different Design a DFA in which start and end symbol must be same DFA in which every 'a' should be followed by 'b' DFA in which every 'a' should never followed by 'b' DFA in which every 'a' should followed by 'bb' DFA in which every 'a' should never followed by 'bb' DFA for anbm| n,m...
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA...
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA which accepts strings of odd length Design a DFA over w ∈ {a,b}*such that number of a = 2 and there is no restriction over length of b DFA for Number of a(w) mod 2 = 0 and Number of b(w) mod 2 = 0 DFA for Number of a(w) mod 2 = 0 orNumber of b(w) mod 2 = 0 DFA for Number...
Write a reflective journal on Grammars, Finite Automata (NFA and DFA), PDA, and Turing Machine (TM)...
Write a reflective journal on Grammars, Finite Automata (NFA and DFA), PDA, and Turing Machine (TM) for about one to one and half pages
Give a Deterministic Finite State Automata that accepts Roman numerals.
Give a Deterministic Finite State Automata that accepts Roman numerals.
Σ = { a, b, c } Create deterministic finite automata with the language of all...
Σ = { a, b, c } Create deterministic finite automata with the language of all strings that … end with 'abc'
Show that language C = { <D, R> | D is a DFA, R is a...
Show that language C = { <D, R> | D is a DFA, R is a regular expression and L(D) = L(R)} is decidable.
Design deterministic finite automata for each of the following sets: 1) The set of strings x...
Design deterministic finite automata for each of the following sets: 1) The set of strings x ε {0, 1}* such that #0(x) is even and #1(x) is a multiple of three. 2) The set of all strings in {1, 2, 3}* containing 231 as substring. 3) The set of strings in (a)* whose length is divisible by either 2 or 7.
1.2 Which of the following statements is wrong?        a). A set is a subset of itself...
1.2 Which of the following statements is wrong?        a). A set is a subset of itself        b). Emptyset is a subset of any set        c). A set is a subset of its powerset        d). The cardinality of emptyset is 0 1.3. Which of the following statements is correct?        a). A string is a set of symbols from an alphabet        b). The length of the concatenation of two strings can           be the same as one of them        c). The length of...
Proposition 16.4 Let S be a non–empty finite set. (a) There is a unique n 2...
Proposition 16.4 Let S be a non–empty finite set. (a) There is a unique n 2 N1 such that there is a 1–1 correspondence from {1, 2,...,n} to S. We write |S| = n. Also, we write |;| = 0. (b) If B is a set and f : B ! S is a 1–1 correspondence, then B is finite and |B| = |S|. (c) If T is a proper subset of S, then T is finite and |T| <...
Let V be a vector space: d) Suppose that V is finite-dimensional, and let S be...
Let V be a vector space: d) Suppose that V is finite-dimensional, and let S be a set of inner products on V that is (when viewed as a subset of B(V)) linearly independent. Prove that S must be finite e) Exhibit an infinite linearly independent set of inner products on R(x), the vector space of all polynomials with real coefficients.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT