Question: 1. Write DFA, NFA (small), regular expression and right linear grammar for strings over {a,b} a. End in either aa or bb b. ( a

1. Write DFA, NFA (small), regular expression and right linear grammar for strings over {a,b}

a. End in either aa or bb

b. ( an | bna) n >= 0

c. {w : w such that w contains the substring bb or w contains an odd number of as (or both).

d. {w : w does not contain exactly two as}

e. { w : w starts with substring abb and contains substring bba}

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!