07.01.2013 Views

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

and<br />

{s2, s4, s6} a/1<br />

−→{s1, s3, s5}.<br />

2 State Identification 59<br />

Accord<strong>in</strong>g to the execution of Algorithm 6, b allows to ref<strong>in</strong>e {s1, s3, s5} s<strong>in</strong>ce<br />

it makes its states move to dist<strong>in</strong>ct blocks of π(T ). Thus, T can be extended<br />

by execut<strong>in</strong>g the <strong>in</strong>put sequence ab from u2. Asaresult,nodesu4 and u5<br />

are added to T and node u2 is labeled by a and node u4 by b. The suitable<br />

current and <strong>in</strong>itial sets are assigned to each new node.<br />

• Step 3: the so far obta<strong>in</strong>ed T is not closed s<strong>in</strong>ce the current set {s1, s4, s6} of<br />

u5 <strong>in</strong>tersects both the <strong>in</strong>itial set of u3 and u5 (the current leaves of T ). The<br />

lowest common ancestor of these two nodes is u1. So, the <strong>in</strong>put sequence to<br />

be used is a. Thus at this step, we add to Tu6 and u7 and to each of them<br />

we assign the correspond<strong>in</strong>g current and <strong>in</strong>itial sets.<br />

• Step 4: T is not closed s<strong>in</strong>ce the current set {s1, s5} of node u7 <strong>in</strong>tersects both<br />

the <strong>in</strong>itial set of nodes u7 and u9. The lowest common ancestor of u7 and u9<br />

is u5. So, the <strong>in</strong>put sequence to be used is aaba (spelt by the path from u1<br />

to u5). T is consequently formed by nodes u1 to u12. Due to this step the<br />

two extra states s1 (node u11) ands3 (node u12) have become identifiable.<br />

• Step 5: T is not closed s<strong>in</strong>ce the current set {s1, s3, s5} of node u3 is the<br />

union of the <strong>in</strong>itial sets of the nodes u6, u11 and u12. The lowest common<br />

ancestor of these nodes is u5. Soas<strong>in</strong>step4,weapplyaaba on the current<br />

set of u3. Consequently, we append to T nodes from u13 to u17.<br />

• Step 6: T is not closed s<strong>in</strong>ce the current set {s1, s5} of node u17 is the union<br />

of the <strong>in</strong>itial sets of the nodes u6 and u11. The lowest common ancestor of<br />

these nodes is still u5. Soas<strong>in</strong>step4,weapplyaaba on the current set of<br />

u3. At this step, nodes from u18 to u22 are appended to T .<br />

It is easy to see that the obta<strong>in</strong>ed T due to step 6 is an ADS for mach<strong>in</strong>e M6.<br />

Remark 2.18. There is a similarity between Algorithm 6 and the classical algorithm<br />

for FSM m<strong>in</strong>imization. The only difference between them is that Algorithm<br />

6 uses only valid <strong>in</strong>puts, whereas the m<strong>in</strong>imization algorithm uses all<br />

<strong>in</strong>put symbols.<br />

2.4.4 Comput<strong>in</strong>g a Polynomial ADS<br />

In the proof of Theorem 2.17, we gave a first method for construct<strong>in</strong>g an ADS<br />

(when Algorithm 6 term<strong>in</strong>ates with the discrete partition of some given mach<strong>in</strong>e).<br />

This method may give exponential ADSs. For example, the ADS of mach<strong>in</strong>e<br />

M6 resulted <strong>in</strong> by this method (Fig. 2.13) is not optimal (it is longer than<br />

the one shown <strong>in</strong> Fig. 2.9).<br />

In [LY94], Lee and Yannakakis propose methods for comput<strong>in</strong>g ADSs with<br />

polynomial size and <strong>in</strong> polynomial time. For comput<strong>in</strong>g “optimal” ADSs, they<br />

<strong>in</strong>troduce an <strong>in</strong>termediary structure: the splitt<strong>in</strong>g tree. The latter is def<strong>in</strong>ed as<br />

follows.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!