(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.
(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
Example: NFA N1 with alphabet Σ = {0, 1}.
Get Answers For Free
Most questions answered within 1 hours.