Regular Expression to NFA

Topics

Purpose

The Constructive Proof

Example with Questions: r = (ab+b)* + (a + ba)a

  1. How many operators are in the regular expression r?

  2. Which of the operators of r is the "last" operator of r?

  3. Based on the answer to the above question, what would s and t be?

  4. Answer the same three questions for the regular expression s that is at least part of the answer to question 3 above.

  5. Applying the above construction without simplification, what does the transition diagram for the NFA corresponding to ab look like?

  6. Applying the above construction without simplification, what does the transition diagram for the NFA corresponding to ab+b look like?

  7. Applying the above construction without simplification, what does the transition diagram for the NFA corresponding to (ab+b)* look like?

  8. Applying the above construction without simplification, what does the complete transition diagram for the NFA N look like?

  9. How does this proof fit into the generic element proof technique framework, and what basic property of regular expressions did we use?

  10. Give a recursive algorithm description (in pseudocode or some programming language) of the transformation of a regular expression to an equivalent NFA.

Regular Languages Chapter (up one level)
Table of Contents (up two levels)