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.

19 Model Check<strong>in</strong>g 577<br />

otherwise it returns a counterexample to A. The counterexample is <strong>in</strong> the<br />

format of a str<strong>in</strong>g which is accepted by M but not by A or vice versa.<br />

In the follow<strong>in</strong>g sections we will describe different algorithms for the Learner,<br />

all us<strong>in</strong>g the sett<strong>in</strong>g described above. The first algorithm, Observation Packs, abstracts<br />

away the data structure <strong>in</strong> which a Learner stores the gathered <strong>in</strong>formation,<br />

us<strong>in</strong>g sets <strong>in</strong>stead. In the subsequent section, Section 19.4.2, we present Anglu<strong>in</strong>’s<br />

algorithm, <strong>in</strong> which the observed <strong>in</strong>formation is stored <strong>in</strong> an Observation<br />

Table. TheReduced Observation Table algorithm, presented <strong>in</strong> Section 19.4.3,<br />

is similar to the Observation Table algorithm except it stores less <strong>in</strong>formation.<br />

F<strong>in</strong>ally, Section 19.4.4 describes the Discrim<strong>in</strong>ation Tree algorithm which stores<br />

<strong>in</strong>formation <strong>in</strong> a b<strong>in</strong>ary tree.<br />

19.4.1 Observation Packs<br />

Balcázar et al. abstract from different data structures and present a unified<br />

view on the learn<strong>in</strong>g problem studied here, stor<strong>in</strong>g <strong>in</strong>formation <strong>in</strong> several, called<br />

observation packs sets [BDGW97]. An observation pack can be seen as a way of<br />

stor<strong>in</strong>g pieces of <strong>in</strong>formation the Learner has about an unknown regular set.<br />

One piece of <strong>in</strong>formation is a so called observation. Anobservation is a pair<br />

of the form (s, +) or (s, −) for a word s. Thelabel +/− signifies the answer to<br />

a membership query on str<strong>in</strong>g s. The observations <strong>in</strong> a set must be consistent,<br />

i.e., the same word does not appear with different +/− labels.<br />

The observations are organized <strong>in</strong> f<strong>in</strong>ite sets called components, whichare<br />

not necessarily disjo<strong>in</strong>t. A component is denoted Ck ,wherek ∈ N is the component’s<br />

<strong>in</strong>dex. An observation pack O, or pack for short, is a f<strong>in</strong>ite sequence<br />

of components, O =(C0,...,Cn−1) forsomen ∈ N, for which two conditions<br />

must hold:<br />

OP1 Let sk ∈ Ck be the shortest word <strong>in</strong> Ck ;thensk is a prefix of all other words<br />

<strong>in</strong> Ck .<br />

OP2 For each two components Ck and Cl with l �= k, thereexistswkl such that<br />

both sk wkl ∈ Ck and slwkl ∈ Cl but (Ck , +) ⇐⇒ (Cl, −), i.e., they have<br />

different labels.<br />

The str<strong>in</strong>g sk is a word that identifies Ck . The set of suffixes for each sk is<br />

def<strong>in</strong>ed as Ek = {w | sk w ∈ Ck }. Sothewordwkl mentioned above is <strong>in</strong> Ek ∩ El.<br />

Furthermore sk = sk ε implies ε ∈ Ek by the def<strong>in</strong>ition of Ek .<br />

We collect <strong>in</strong> the set S all the shortest words, sk , from each component<br />

and call them access str<strong>in</strong>gs. The access str<strong>in</strong>gs are then used to <strong>in</strong>dex both<br />

components and sets of suffixes, so the component Ck is Cs and Ek is Es where<br />

s = sk for some s ∈ S. An observation pack can be identified with the f<strong>in</strong>ite set<br />

S of access str<strong>in</strong>gs and a mapp<strong>in</strong>g from S associat<strong>in</strong>g to each s the f<strong>in</strong>ite set Es.<br />

The set Cs is the set of words sw, for an access str<strong>in</strong>g s ∈ S and suffix w ∈ Es.<br />

Def<strong>in</strong>ition 19.10. A language Uagreeswith an observation pack O if all +<br />

labels mark words <strong>in</strong> U, while all − labels mark words not <strong>in</strong> U.

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

Saved successfully!

Ooh no, something went wrong!