Proof of NFA theorem
Proof the theorem that the class of regular languages is closed under union; that is, if L1 is recognized by a NFA and L2 is recognized by a NFA, then L1 υ L2 is recognized by a NFA as well.
Expert
Proof:
Suppose L1 is recognized by NFA A1 = (Q1;Σ; δ1; q1; F1) and L2 is recognized by NFA A2 = (Q2; Σ; δ2; q2; F2).
Construct the NFA A = (Q; Σ; δ; q0; F) where:
Q = Q1 υ Q2 υ {q0} where q0 is not in Q1 or Q2.F = F1 υ F2δ is dened as:
- (q0; ε ) = {q1; q2},- (q0; a) = {} for a ≠ ε- (q; a) = δ1(q; a) for a in Σ υ {ε} and q in Q1- (q; a) = δ2(q; a) for a in Σ υ {ε} and q in Q2
Note: The construction above is nothing but the formal denition of the construction given in the slides for closure of NFAs under union!
We claim that A accepts exactly L1 υ L2. We need to show two directions:if a string is in L1 υ L2 it is accepted by A, and if a string is accepted by A it is in L1 υ L2.
Throughout this argument, we refer to the formal denition of what it means for an NFA to accept, as given in the slides and on page 54 of Sipser.
First, suppose a string ω is accepted by A. Let ω' be a rewriting of ω, with ε's possibly in between letters, and r0.... rn for some n ≥ 0 a sequence of states such that ω' and r0.....rn witness acceptance according to the formal denition of acceptance of an NFA. Then r0 = q0, by the denition of acceptance. Since q0 is not an accepting state of A, we must have n > 0, so there is an r1 with r1 ≡ δ2 (q0; ω'). But by the denition of A, ω' must be either q1 or q2, since there is only one transition out of q0 that can lead to an accepting state.
Explain how light TP monitors allow distributed applications based on RPC to have transaction properties.
Define various Terminologies used in TOC ?
Let REGEXP be the language of valid regular expressions over {a, b}. That is, REGEXP is the set of all strings over the symbols Σ= {a, b, (,), U,*, ^} that are valid regular expressions. For example, the string “a (a U b)" is in REGEXP, whereas the string
Let α be a regular expression of length n. (a) Using procedures shown in class, if we convert α into a regular expression β such that L(β) = L(α). How long β might be? Give a reasonably tight upper bound.
What do you understand by the term Finite Automata ?
Explain in detail about Homology Modelling
Give an algorithm that, given a grammar G = (V, Σ, R, S), decides whether the grammar G can derive the empty string.
Define the term computation in TOC ?
How can we characterize DFA languages ?
Describe the Strategy of TOC computation box in brief ?
18,76,764
1934151 Asked
3,689
Active Tutors
1435603
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!