3. Construct minimal NFA that all accepts all strings of {a,b} which contains aa or bb as substring.
When starting we can branch depending on if the character is a or b. If the 2nd letter is also same then goto accepted state. If a different character appears then goto the state to q1 or q2 depending on the state of the machine. If the next character is also same then goto accepted state and then consume the rest of the string by looping in the accepted state.

3. Construct minimal NFA that all accepts all strings of {a,b} which contains aa or bb...
9. Construct minimal NFA that all accepts all strings of {a,b} which contains atmost 2 a’s.
19. Construct minimal NFA that all accepts all strings of {a,b} and L={ambn|m,n>0} Corrected question : 19. Construct minimal FA that all accepts all strings of {a,b} and L={a^mb^n|m,n>0}
2. a. Draw a NFA that accepts all strings over Σ = {?, ?} that either end in ?? or contain the substring ??. b. Then convert the NFA in the previous exercise to a DFA
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 a’s (or both). d. {w : w does not contain exactly two a’s} e. { w : w starts with substring abb and contains substring bba}
construct an finite automata that accepts all strings of {a,b} that contains either ab or bba, or both as substrings. give a regular expression as well.
thank you
Design an NFA over the alphabet <={0,1,2,3,4,5,6,7,8,9} such that it accepts strings which correspond to a number divisible by 3. Hint: String can be of any length. Look up the rule for divisibility by 3 if you need. Give the formal definition of the automaton and draw its transition diagram.
Find an NFA that accepts the language L (aa* (ab + b))
3) Construct a regular expression defining each of the following languages over the alphabet {a, b}. (a) L = {aab, ba, bb, baab}; (b) The language of all strings containing exactly two b's. (c) The language of all strings containing at least one a and at least one b. (d) The language of all strings that do not end with ba. (e) The language of all strings that do not containing the substring bb. (f) The language of all strings...
7. 15 Points For a regular expression r, we use L(r) to denote the language it represents. For each of the following regular expressions r, find an NFA that accepts L(r). (b). L((a +b+A) b(a bb)) し(((aa
7. 15 Points For a regular expression r, we use L(r) to denote the language it represents. For each of the following regular expressions r, find an NFA that accepts L(r). (b). L((a +b+A) b(a bb)) し(((aa
For ∑ = {a, b}, construct a dfa that accepts the set consisting of all strings with exactly one a