This document discusses regular expressions and finite state automata. It provides examples of regular expressions for strings containing letters and operators and asks students to draw finite state automata graphs that represent each regular expression. The examples include expressions for strings containing a or b, b repeated 0 or more times, the sequence ab repeated 1 or more times, ab with b repeated 0 or more times followed by c, a followed by b repeated 0 or more times or a repeated 0 or more times, and a repeated 1 or more times followed by b repeated 0 or more times followed by a. A finite state automata graph is provided for the last example regular expression, a+b*a.
This document discusses regular expressions and finite state automata. It provides examples of regular expressions for strings containing letters and operators and asks students to draw finite state automata graphs that represent each regular expression. The examples include expressions for strings containing a or b, b repeated 0 or more times, the sequence ab repeated 1 or more times, ab with b repeated 0 or more times followed by c, a followed by b repeated 0 or more times or a repeated 0 or more times, and a repeated 1 or more times followed by b repeated 0 or more times followed by a. A finite state automata graph is provided for the last example regular expression, a+b*a.
This document discusses regular expressions and finite state automata. It provides examples of regular expressions for strings containing letters and operators and asks students to draw finite state automata graphs that represent each regular expression. The examples include expressions for strings containing a or b, b repeated 0 or more times, the sequence ab repeated 1 or more times, ab with b repeated 0 or more times followed by c, a followed by b repeated 0 or more times or a repeated 0 or more times, and a repeated 1 or more times followed by b repeated 0 or more times followed by a. A finite state automata graph is provided for the last example regular expression, a+b*a.
dina.khattab@cis.asu.edu.eg REGULAR EXPRESSION (REGEX) 2 Draw a graph for FSA that represents the following regular expressions: a | b b * (ab)+ ab*c a(b*|a*) (a | b )* a+b*a 3 a a a 0 1 2