60 likes | 216 Views
Homework #2. J. H. Wang Oct. 18, 2011. Homework #2. Chap.3 3.5 (b) 3.8 (b) 3.17 3.23 (b). Chap.3 3.5: Write DFAs that recognize the tokens defined by the following regular expressions: (b) ((0|1)*(2|3)+)|0011
E N D
Homework #2 J. H. Wang Oct. 18, 2011
Homework #2 • Chap.3 • 3.5 (b) • 3.8 (b) • 3.17 • 3.23 (b)
Chap.3 • 3.5: Write DFAs that recognize the tokens defined by the following regular expressions:(b) ((0|1)*(2|3)+)|0011 • 3.8: Write regular expressions that define the strings recognized by the FAs in Figure 3.33 on page 136. (in the next slide)(b)
3.17: Consider the following regular expression: (0|1)*0(0|1)(0|1)(0|1)…(0|1)Display the NFA corresponding to this expression. Show that the equivalent DFA is exponentially bigger than the NFA you presented. • 3.23 Write Lex regular expressions (using character class if you wish) that match the following sets of strings:(b) The string [“””] (that is, a left bracket, three double quotes, and a right bracket)
Submission • Hand-written exercises: hand in your paper version in class • Due: two weeks (Nov. 1, 2011)