Question

Consider the NFA N with states labeled q1, q2 and q3, where q1 is the start...

Consider the NFA N with states labeled q1, q2 and q3, where q1 is the start state and q2 and q3 are the final (accepting) states.

The transition function for N is δ(q1,a) = {q1}, δ(q1,b) = {q1,q2},  δ(q2,a) = {q3}, δ(q2,b)= ∅, δ(q3,a)= ∅, and δ(q3,b)= ∅.

Let L be the language recognized by N i.e. L(N).

a) Draw the state diagram for N.

b) Describe in plain English what's in the language L.

c) Via the construction NFA to DFA, draw the state diagram for a DFA corresponding to the NFA. Your DFA should recognize the same language L that the NFA recognizes. Remember, each state of your DFA will be labeled by a set of states from the original NFA.

e) Give a regular expression that describes L. You don't need to use any particular method to get the regular expression. (It's OK to just write the expression without justification.)

A picture upload is fine if easier!

0 0
Add a comment Improve this question Transcribed image text
Answer #1

; 9. intial state There are total 3 states 91, 92, 92 qe, 93 final states s(q,, a) = {qi} Slai, b)= {21990} S(92, a) = {93} SEquivalent DFA table Tuput Symbol States a b Ь 912 т T b Ь 912 93 912 91 93 T 913 9. T T b T T 912 912 T T 913 T DFA for gire

Add a comment
Know the answer?
Add Answer to:
Consider the NFA N with states labeled q1, q2 and q3, where q1 is the start...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • related to theory of automation. Thank you. 4) Minimize the number of states of the below DFA. (10 Points) q2 q1 1,0 q3...

    related to theory of automation. Thank you. 4) Minimize the number of states of the below DFA. (10 Points) q2 q1 1,0 q3 q4 q5 5-a) Find a NFA that accepts the following language: L-(aa" + aba*b*) (5 Points) b) Find an NFA that accepts the language L (aa (ab b)) (5 Points) 4) Minimize the number of states of the below DFA. (10 Points) q2 q1 1,0 q3 q4 q5 5-a) Find a NFA that accepts the following language:...

  • Find a regular description for the language recognized by the NFA with set of states {0,1,2,3,4,5},...

    Find a regular description for the language recognized by the NFA with set of states {0,1,2,3,4,5}, initial state 0, accepting state 4, and transitions δ(0,a)={1,3}, δ(0,b)=4, δ(1,a)=4, δ(1,b)={2,3}, δ(2,b)=5, δ(3,a)=2, δ(4,a)={0,5}, δ(4,b)={0,2}, δ(5,a)=4

  • 1(a)Draw the state diagram for a DFA for accepting the following language over alphabet {0,1}: {w...

    1(a)Draw the state diagram for a DFA for accepting the following language over alphabet {0,1}: {w | the length of w is at least 2 and has the same symbol in its 2nd and last positions} (b)Draw the state diagram for an NFA for accepting the following language over alphabet {0,1} (Use as few states as possible): {w | w is of the form 1*(01 ∪ 10*)*} (c)If A is a language with alphabet Σ, the complement of A is...

  • Design an NFA N that recognizes all strings having the second and fourth symbols the same...

    Design an NFA N that recognizes all strings having the second and fourth symbols the same as the last symbol. (a) Give the formal definition of N. (b) Draw the state transition diagram of N. Upload the photo of your answer on paper; make sure that it is read- able, it is not rotated and it is well cropped (i.e. does not contain unnecessary white space, margins, or other objects on the picture).

  • Question 1: Every language is regular T/F Question 2: There exists a DFA that has only...

    Question 1: Every language is regular T/F Question 2: There exists a DFA that has only one final state T/F Question 3: Let M be a DFA, and define flip(M) as the DFA which is identical to M except you flip that final state. Then for every M, the language L(M)^c (complement) = L( flip (M)). T/F Question 4: Let G be a right linear grammar, and reverse(G)=reverse of G, i.e. if G has a rule A -> w B...

  • 6. (12 marks) This question tests your understanding of the equivalence between DFAS and NFAS. Consider...

    6. (12 marks) This question tests your understanding of the equivalence between DFAS and NFAS. Consider NFA M (, q2},{0,1}, 6, qı, {q1}) for o defined as: 0 1 {1, 2} Ø 92} {q1, g2}|{1} (a) (4 marks) Draw the state diagrams for M. (b) (2 marks) Based on the construction of Theorem 1.39 in the text, start to build the DFA M' that is equiva- lent to M by identifying the number of DFA states and listing them. (c)...

  • UueSLIORS! 1. Find the error in logic in the following statement: We know that a b'...

    UueSLIORS! 1. Find the error in logic in the following statement: We know that a b' is a context-free, not regular language. The class of context-free languages are not closed under complement, so its complement is not context free. But we know that its complement is context-free. 2. We have proved that the regular languages are closed under string reversal. Prove here that the context-free languages are closed under string reversal. 3. Part 1: Find an NFA with 3 states...

  • 3 points) Question Three Consider the context-free grammar S >SS+1 SS 1a and the string aa...

    3 points) Question Three Consider the context-free grammar S >SS+1 SS 1a and the string aa Give a leftmost derivation for the string. 3 points) (4 poiots) (5 points) (3 points) sECTION IWOLAttcmpt.any 3.(or 2) questions from this.scction Suppose we have two tokens: (1) the keyword if, and (2) id-entifiers, which are strings of letters other than if. Show the DFA for these tokens. Give a nightmost derivation for the string. Give a parse tree for the string i) Is...

  • Consider three charges q1 = 7q, q2 = −4q, and q3 = −q (where q =...

    Consider three charges q1 = 7q, q2 = −4q, and q3 = −q (where q = 3.0 µC). (a) What is the total flux through the enclosed surface shown below? ___N · m2/C (b) Now consider a new enclosed surface around the same three charges, shown in the figure below. You wish to add a fourth charge, q4, to the interior of this enclosed surface so that the net flux through the surface is zero. What must be the value...

  • Consider a version of the Solow model where population grows at rate n

    Q1)Consider a version of the Solow model where population grows at rate n. Assume that technology is Cobb-Douglas so that output is given by Yt = KtαLt(1−α).Capital depreciates at rate δ and a fraction s of income is invested in physical capital every period.A. Write down an expression describing capital accumulation in this economy and solve for the steady-state  levels  of  capital  and  output  per  worker. Illustrate your answer in a diagram.B. How is steady-state capital per worker affected by...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT