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...
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
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
For ∑ = {a, b}, construct a dfa that accepts the set consisting of all strings with at least one b and exactly two a’s
related to theory of automation. thank you. 3- Given the NFA below, write the transition functions and then draw the equivalent DFA. (10 Points) Note: The transitions between qo and q1 are either a, or lambda. q2 q0 q1 1-Please construct a DFA that includes both the substring aa and the substring bb, over the alphabet fa,b). (10 Points)