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.

3 State Verification 85<br />

x = a1a2 ...ak ∈ I ∗ ,letui be the number of states for which a1a2 ...ai is a UIO<br />

sequence (u0 =0).Fori ≥ 1, let ∆ui = ui − ui−1. Also, let vi be the number<br />

of sets <strong>in</strong> the <strong>in</strong>itial state uncerta<strong>in</strong>ty 5 for a1a2 ...ai and ∆vi = vi − vi−1. Now,<br />

for each i ∈{1,...,k} we def<strong>in</strong>e<br />

ui +∆ui uie<br />

fi(a1 ...ai) =α<br />

i γ<br />

+ β vi + ∆vi<br />

, (3.3)<br />

i<br />

where α, β, and γ are constants. It is clear that when the number of states a<br />

prefix uniquely identifies grows, the value of the prefix grows exponentially. On<br />

the other hand, an <strong>in</strong>crease <strong>in</strong> length gives a polynomial reduction <strong>in</strong> value. The<br />

second term <strong>in</strong> the function def<strong>in</strong>ition rewards hav<strong>in</strong>g many sets <strong>in</strong> the <strong>in</strong>itial<br />

state uncerta<strong>in</strong>ty, even when not so many UIO sequences have been found yet.<br />

We can now def<strong>in</strong>e the fitness of a sequence as the average of the fi -values of its<br />

prefixes:<br />

f (a1 ...ak )= 1<br />

k<br />

k�<br />

fi(a1 ...ai). (3.4)<br />

i=1<br />

After creat<strong>in</strong>g an <strong>in</strong>itial population randomly, Guo et al. suggest us<strong>in</strong>g roulette<br />

wheel selection to f<strong>in</strong>d the parents that are recomb<strong>in</strong>ed. This means that each<br />

<strong>in</strong>dividual has a probability of be<strong>in</strong>g selected that is proportional to its fitness<br />

value. Further, uniform crossover is used, which means that <strong>in</strong> each position,<br />

the value for the offspr<strong>in</strong>g is selected with uniform probability from the values<br />

of the parents at the correspond<strong>in</strong>g positions. In order for the population not to<br />

stagnate too quickly, Guo et al. suggest us<strong>in</strong>g wild-card characters <strong>in</strong> the str<strong>in</strong>gs<br />

represent<strong>in</strong>g sequences.<br />

One drawback of the approach is that the length k of the sequences used<br />

must be set <strong>in</strong> advance, and the algorithm will not f<strong>in</strong>d UIO sequences of length<br />

> k.<br />

Guo et al. only present tests of the algorithm on two small mach<strong>in</strong>es, with<br />

reportedly good results. It rema<strong>in</strong>s to be be seen <strong>in</strong> larger scale tests whether<br />

the method is practical.<br />

3.5 Summary<br />

State verification is the problem of verify<strong>in</strong>g that a Mealy mach<strong>in</strong>e, placed <strong>in</strong> a<br />

black box, is <strong>in</strong> a specified state s. The state diagram of the mach<strong>in</strong>e is assumed<br />

to be known. The only way of do<strong>in</strong>g this, short of open<strong>in</strong>g the box, is to feed<br />

<strong>in</strong>put to the mach<strong>in</strong>e, and study the output. Therefore, state verification for state<br />

s is only possible if there is an <strong>in</strong>put sequence x such that the output produced<br />

by the mach<strong>in</strong>e when it is <strong>in</strong> state s and is given <strong>in</strong>put x is unique, i.e., there is<br />

no other state that would produce the same output on <strong>in</strong>put x . Such an <strong>in</strong>put<br />

5 The <strong>in</strong>itial state uncerta<strong>in</strong>ty of sequence x is a partition<strong>in</strong>g of the states <strong>in</strong> the<br />

mach<strong>in</strong>e such that if s and t belong to the same set, then λ(s, x) =λ(t, x); see<br />

Chapter 1.

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

Saved successfully!

Ooh no, something went wrong!