Exercise 11 (Homework 3).
(regular expressions,
decidable properties)
On some decidable properties of regular expressions
Let L_r be the (regular) language represented by the regular expression r. Given as input regular expressions r and s, describe an algorithm to decide whether
- L_{r}=L_{s}.
- L_{r}\subseteq L_{s}.
- L_{r}=\emptyset.
- L_{r} is infinite.
- L_{r}\cap L_{s}=\emptyset.
- L_{r}\cap L_{s} is infinite.
What is the asymptotic cost of the algorithm proposed as a function of the number of symbols in r and s?