Question: (i) Recall from Chapter 4 the language of all words over the alphabet { a b } that have both the letter a and the
(i) Recall from Chapter 4 the language of all words over the alphabet { a b } that have both the letter a and the letter b in them, but not necessarily in that order. Build an FA that accepts this language.
(ii) Build an FA that accepts the language of all words with only a ’s or only b ’s in them. Give a regular expression for this language.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
i NFA q0 q1 q2 q3 are the states o... View full answer

Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock