Equivalent Regular Expressions

The following two Regular Expressions (RE) are equivalent:

b^*(ab)^*aa(a+b)^* = (a+b)^*aa(a+b)^*

Drawing the Non-Deterministic Finite Automata (NFA) makes it easier to ferret out the RE than drawing the “strictly” Deterministic Finite Automata (DFA).

Chad Salinas find an equivalent RE example.

One Response to “Equivalent Regular Expressions”

  1. John Williams Says:

    Ferret out?? I’ve wondered about the origins of this idiom. Do ferrets search? Bloodhounds do. Do ferrets retrieve? Perhaps we could invent a new database model and call the UI Ferret?

Leave a Reply