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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

50 Moez Krichen<br />

(5) Edges emanat<strong>in</strong>g from a common node are labeled with dist<strong>in</strong>ct output symbols,<br />

(6) For each leaf u of T ,ifsu is the label of u, xu and yu are respectively the<br />

<strong>in</strong>put and output sequences formed by the concatenation of the node and<br />

edge labels on the path from the root to the leaf u, thenλ(su, xu) =yu.<br />

The length of an ADS is the depth of its correspond<strong>in</strong>g tree T . ⊓⊔<br />

The execution of an ADS given as mentioned <strong>in</strong> the def<strong>in</strong>ition above is done<br />

as follows: first, we execute the <strong>in</strong>put symbol label of the root of the tree. Then,<br />

we observe the response of the mach<strong>in</strong>e. Among the outgo<strong>in</strong>g edges of the current<br />

node of the tree we choose the one labeled by the observed output. Then, we<br />

execute the label of the node to which this edge leads. We keep on repeat<strong>in</strong>g this<br />

until we meet a node (leaf) labeled by a state of the mach<strong>in</strong>e. In that case, we<br />

term<strong>in</strong>ate the experiment by declar<strong>in</strong>g that the <strong>in</strong>itial state of the mach<strong>in</strong>e was<br />

the label of that node.<br />

Let us consider an example of an ADS for better understand<strong>in</strong>g this.<br />

s1<br />

0<br />

b<br />

a<br />

1<br />

a<br />

0<br />

0<br />

b<br />

1<br />

s5<br />

a<br />

0<br />

a<br />

0<br />

s3 s2 s4<br />

1<br />

s6 b<br />

1 0 1 0<br />

Fig. 2.9. An ADS for mach<strong>in</strong>e M6 ([LY94]).<br />

Example. Consider mach<strong>in</strong>e M6 shown <strong>in</strong> Fig. 2.8. A possible ADS for this mach<strong>in</strong>e<br />

is given <strong>in</strong> Fig. 2.9. Suppose that the <strong>in</strong>itial state of M6 is s6. Then, the<br />

execution of this ADS will be as follows. We first apply a which is the label of the<br />

root of the ADS. The mach<strong>in</strong>e returns 1 and moves to s1. S<strong>in</strong>ce 1 is observed,<br />

the tester follows the right branch and applies b. The mach<strong>in</strong>e returns 0 and<br />

1<br />

b<br />

0<br />

a<br />

a<br />

0

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

Saved successfully!

Ooh no, something went wrong!