Question: 1. Construct an dfa that accepts { w an element of {a, b} * | n a (w) = 2} 2. Construct an nfa that

1. Construct an dfa that accepts { w an element of {a, b}* | na(w) = 2}

2. Construct an nfa that accepts {w is an element of {a, b}*| na (w) =2 OR nb = 2}.

3. Write a regular expression which represents the language { w is an element of {a, b}* | w can be written x1, x2, x3, ...xm, m >= 0 , where each xi is either ab or ba}.

4. In problem 1 change na(w) =2 to na(w) >= 2 .

5. In problem 3 change n >= 0 to n >= 1.

6. (a) Finf an nfa that accepts the language in #3 above.

(b) Find a dfa for the samr language.

7. (a) nfa for (a+b)* (b+a2)*

(b) dfa for the same language [ Long, EC problem].

8. Find a dfa that accepts L = {w an element of {a, b}* | na (w) is even, nb (w) is odd}.

9. Show a right Linear grammer for the languageof nfa in problem #7 above.

10. Construct an NFA for :

S --> abA

A---> baB

B---> aA / bb

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!