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.

578 Therese Berg and Harald Raffelt<br />

Assum<strong>in</strong>g that U is a language accepted by a DFA, the suffixes <strong>in</strong> sets Es must<br />

<strong>in</strong>clude evidence (see the second item on the list of conditions on an observation<br />

pack) that the access str<strong>in</strong>gs belong each to a different equivalence class <strong>in</strong> the<br />

right congruence associated with any regular set U agree<strong>in</strong>g with the pack. These<br />

classes correspond to states of the m<strong>in</strong>imal determ<strong>in</strong>istic f<strong>in</strong>ite automaton (DFA)<br />

for U: access str<strong>in</strong>gs are used to reach the states, hence the name. There can not<br />

be any more access str<strong>in</strong>gs than states <strong>in</strong> such an automaton.<br />

Lemma 19.11. Let O be a pack, S its set of access str<strong>in</strong>gs, U a regular language<br />

which agrees with O, andM the m<strong>in</strong>imal DFA that recognizes U. Then |S| ≤<br />

|M|.<br />

Proof. Let δ U and q U 0 be the transition function and the <strong>in</strong>itial state of M,<br />

respectively. Let the mapp<strong>in</strong>g f map S <strong>in</strong>to the states of M <strong>in</strong> the natural way:<br />

from s to δ U (q U 0 , s). We prove that this mapp<strong>in</strong>g is <strong>in</strong>jective.<br />

Let s and s ′ be two access str<strong>in</strong>gs <strong>in</strong> the pack and s �= s ′ . Assume that they<br />

both are mapped by f to the same state via the the transition function δ U , i.e.<br />

f is not <strong>in</strong>jective. So δ U (q U 0 , s) =qi and δ U (q U 0 , s′ )=qi. LetF U be the set of<br />

accept<strong>in</strong>g states for M.<br />

Accord<strong>in</strong>g to the properties of the observation pack, there exists a word<br />

w ∈ Es ∩ Es ′ such that sw ∈ U ⇐⇒ s′ w �∈ U. Either,δ U (qi , w) ∈ F U or<br />

δ U (qi, w) �∈ F U . This means<br />

(1) δ U (qi, w) ∈ F U =⇒ sw ∈ U and s ′ w ∈ U, or<br />

(2) δ U (qi, w) �∈ F U =⇒ sw �∈ U and s ′ w �∈ U<br />

But this is a contradiction to sw ∈ U ⇐⇒ s ′ w �∈ U, sof is <strong>in</strong>jective. ⊓⊔<br />

Def<strong>in</strong>ition 19.12. Let O be a pack, with access str<strong>in</strong>gs S, andU a set agree<strong>in</strong>g<br />

with O. We say that a word z is like s ∈ S for U if and only if ∀ w ∈ Es<br />

sw ∈ U ⇐⇒ zw ∈ U.<br />

To f<strong>in</strong>d out whether z is like s we first use the <strong>in</strong>formation that sw is labeled<br />

+ <strong>in</strong> the pack if sw ∈ U, otherwise−. Secondly, for zw we can conduct a<br />

membership query and see if zw ∈ U or not.<br />

Lemma 19.13. For every word z there is at most one word s ∈ S such that z<br />

is like s for U.<br />

Proof. Let s �= s ′ ,both<strong>in</strong>S, and assume z is like s, i.e., ∀ w ∈ Es sw ∈ U ⇐⇒<br />

zw ∈ U. The pack provides a word w ∈ Es ∩ Es ′ such that sw ∈ U ⇐⇒ s′ w �∈ U.<br />

Thus, zw ∈ U ⇐⇒ s ′ w �∈ U, sothatz is not like s ′ for U. ⊓⊔<br />

Let γ O,U : Σ ∗ → S be the partial function that maps each z to the s<strong>in</strong>gle<br />

access str<strong>in</strong>g it is like for U, if there is one; it rema<strong>in</strong>s undef<strong>in</strong>ed if z is not like<br />

any access str<strong>in</strong>g for U. From now on, we will use this function <strong>in</strong> a context <strong>in</strong><br />

which both O and U are fixed, so we omit the superscripts and use only γ.

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

Saved successfully!

Ooh no, something went wrong!