3

Is there a way to directly form a new regular expression when given two regular expressions and the desired operation (Union or Intersection).

$$ (a+b)^*aa(a+b)^*\cup (a+b)^*aa(a+b)^* $$

$$ (a+b)^*aa(a+b)^*\cap (a+b)^*aa(a+b)^* $$

Without building NFAs and doing the operation through them?

Thank you.

Nouse
  • 33

1 Answers1

6

You may be interested in this article: http://fox7.eu/wp-content/uploads/a4-gelade.pdf

It is shown there that: "when constructing a regular expression defining the intersection of a fixed and an arbitrary number of regular expressions, an exponential and double exponential size increase, respectively, cannot be avoided".

wece
  • 2,732