
< previous page page_165 next page >
Page 165
(11) 1−1
L
4=
L
4
,
closed.
We conclude this section by discussing the one drawback of the Method of Quotients. For the Method of
Quotients to work, we have to recognise when two quotients are equal as in step (5) in Example 7.5.13
above. However, we saw in Section 5.1 that checking whether two regular expressions are equal is not
always easy. If we do not recognise that two quotients are equal, then the machine we obtain will no
longer be minimal. Here is another example.
Example 7.5.14 Consider the regular expression,
We calculate
a
−1
r
=
a
*
(aa)
*+
a(aa)
*. This looks different from
r
. However,
and so
. It follows that
a
−1
r
=
r
.
Two questions are raised by this problem:
Question 1 Could Algorithm 7.5.9 fail to terminate?
Question 2 If it does terminate, what can we say about the automaton described by the transition
tree?
The answer to Question 1 is ‘yes’ but, as long as we do even a small amount of checking, we can
guarantee that the algorithm will always terminate. The answer to Question 2 is that if we fail to
recognise when two quotients are the same, then we shall obtain an accessible deterministic automaton
but not necessarily one that is reduced. It follows that once we have applied the Method of Quotients
we should calculate the indistinguishability relation of the resulting automaton as a check. In what
follows, we justify these two answers.
We say that two regular expressions are
similar
if one can be obtained from the other by using the
following properties of union: idempotence, commutativity, and associativity. It is not hard to check that
similarity is an equivalence relation on the set of regular expressions. Two regular expressions that are
not similar are said to be
dissimilar
. If two regular expressions are similar they are certainly equal, but
the equality of regular expressions does not in general imply their similarity. Proposition 7.5.16 below
tells us that as long as we can check whether two regular expressions are similar or not, then we will
construct a finite number of quotients. To prove this result we shall need to extend Proposition 7.5.3.
< previous page page_165 next page >