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.

t τ (t,si−1) x τti−1 ,si si−1 si<br />

4 Conformance Test<strong>in</strong>g 103<br />

a sj<br />

Therefore, the sequence (4.2) tests the transition with <strong>in</strong>put a from state si<br />

to sj and moves the mach<strong>in</strong>e to tj . We repeat the same process for each transition<br />

to obta<strong>in</strong> a complete check<strong>in</strong>g sequence.<br />

Example. A dist<strong>in</strong>guish<strong>in</strong>g sequence for the mach<strong>in</strong>e <strong>in</strong> Fig. 4.1 is x = ab and the<br />

correspond<strong>in</strong>g responses from state s1, s2, ands3 are: 01 11, and 00 respectively.<br />

The dist<strong>in</strong>guish<strong>in</strong>g sequence, when applied <strong>in</strong> states s1, s2, ands3 takes the<br />

mach<strong>in</strong>e respectively to t1 = s2, t2 = s3 and t3 = s1. the transfer sequences are<br />

τ(t1, s2) =τ(t2, s3) =τ(t3, s1) =ε.<br />

The sequence (4.1) becomes<br />

x τ(t1, s2) x τ(t2, s3) x τ(t3, s1) x<br />

check<strong>in</strong>g sequence ab ab ab ab<br />

output 01 11 00 01<br />

This <strong>in</strong>put sequence ends <strong>in</strong> state t1 = s2<br />

The <strong>in</strong>put sequences (4.2) can be concatenated to obta<strong>in</strong>:<br />

trans. to test s3 b/0<br />

−−−→ s1 s2 a/1<br />

−−−→ s2 s3 a/0<br />

−−−→ s3 s1 a/0<br />

−−−→ s1 s2 b/1<br />

−−−→ s3 s1 b/1<br />

−−−→ s2<br />

τ(t1, s3)bx τ(t1, s2)ax τ(t2, s3)ax τ(t3, s2)ax τ(t1, s2)bx τ(t3, s1)bx<br />

<strong>in</strong>put sequence bbab aab aab aab bab bab<br />

end state 2 3 1 2 1 3<br />

output 1001 111 000 001 100 111<br />

The total length of the check<strong>in</strong>g sequence is 27.<br />

Note that the first <strong>in</strong>put sequence is not able to f<strong>in</strong>d the faults <strong>in</strong> mach<strong>in</strong>e MI 2<br />

of Fig. 4.2, s<strong>in</strong>ce MI 2 when we apply the <strong>in</strong>put sequence abababab produces the<br />

expected output 01110001. Only dur<strong>in</strong>g the second phase the faults are detected.<br />

Adaptive DS Instead of us<strong>in</strong>g a unique preset dist<strong>in</strong>guish<strong>in</strong>g sequence for<br />

all the states, we can use an adaptive dist<strong>in</strong>guish<strong>in</strong>g sequence as expla<strong>in</strong>ed <strong>in</strong><br />

the follow<strong>in</strong>g. An adaptive dist<strong>in</strong>guish<strong>in</strong>g sequence (ADS) is a decision tree that<br />

specifies how to choose the next <strong>in</strong>put adaptively based on the observed output to<br />

identify the <strong>in</strong>itial state. Adaptive dist<strong>in</strong>guish<strong>in</strong>g sequences are studied <strong>in</strong> Section<br />

2.4. In that Chapter, the reader can f<strong>in</strong>d the def<strong>in</strong>ition (2.12), an algorithm to<br />

check the existence of an ADS and to build an ADS if it exists.<br />

Example. An adaptive dist<strong>in</strong>guish<strong>in</strong>g sequence for the mach<strong>in</strong>e <strong>in</strong> Fig. 4.1 is<br />

depicted <strong>in</strong> Figure 4.4. We apply the <strong>in</strong>put a and if we observe the output 1 we<br />

know that the mach<strong>in</strong>e was <strong>in</strong> the state s2. If we observe the output 0, we have<br />

to apply b and if we observe the output 1 the mach<strong>in</strong>e was <strong>in</strong> s1 otherwise we<br />

observe 0 and the mach<strong>in</strong>e was <strong>in</strong> s3.<br />

Us<strong>in</strong>g adaptive dist<strong>in</strong>guish<strong>in</strong>g sequence for our example, we obta<strong>in</strong> x1 = ab,<br />

x2 = a, x3 = b, andτ = ε and the sequence (4.1) becomes<br />

x<br />

tj

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

Saved successfully!

Ooh no, something went wrong!