COMS W3261
Computer Science Theory
Lecture 7: September 30, 2009
Constructing an NFA from a Regular Expression

1. Outline

2. Review

3. From RE's to ε-NFA's

4. Algebraic Laws for Regular Expressions

5. The Pumping Lemma for Regular Languages

6. Applications of the Pumping Lemma

7. Practice Problems

  1. Convert the regular expression a(a+b)*b into an equivalent ε-NFA.
  2. Convert your ε-NFA into an equivalent DFA.
  3. Show that the language consisting of strings of a's where the number of a's is a perfect square is not regular.
  4. Show that the language consisting of strings of balanced parentheses is not regular.

8. Reading Assignment



aho@cs.columbia.edu