COMS W3261
Computer Science Theory
Lecture 6: September 28, 2009
Constructing a Regular Expression from a DFA

1. Outline

2. Review

3. From DFA's to Regular Expressions by Kleene's algorithm

4. From DFA's to RE's by Eliminating States

5. Practice Problems

  1. Consider the DFA D with:
    1. Q = {1, 2, 3}
    2. Σ = {a, b}
    3. δ:

    4.  State  Input Symbol
       a   b 
      1 2 1
      2 3 1
      3 3 2

    5. Start state: 1
    6. F = {3}

    a) Use Kleene's algorithm to construct a regular expression for L(D). Simplify your expressions as much as possible at each stage.
    b) Construct a regular expression for L(D) by eliminating state 2.

  2. HMU, Exercise 3.2.3, p. 107.

6. Reading Assignment



aho@cs.columbia.edu