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.

74 Henrik Björklund<br />

output 0. An example of the construction for two small automata, accept<strong>in</strong>g the<br />

common str<strong>in</strong>g a is shown <strong>in</strong> Figure 3.4.<br />

Σ ∪{r, f }/0<br />

s<br />

f /1<br />

f /0<br />

r, b/0 a, b/0<br />

r,a/0<br />

f /1<br />

f /0<br />

a/0<br />

r/0<br />

b/0<br />

r/0<br />

a, b/0<br />

Fig. 3.4. An example of the reduction. The automata A1 and A2 over the alphabet<br />

Σ = {a, b} are comb<strong>in</strong>ed <strong>in</strong>to a Mealy mach<strong>in</strong>e with <strong>in</strong>put alphabet I = {a, b, r, f }<br />

and output alphabet O = {0, 1}. The automata both accept the str<strong>in</strong>g a from their<br />

<strong>in</strong>itial states (the leftmost state of each automaton), and the <strong>in</strong>put-output sequence<br />

raf is a UIO sequence for state s of the mach<strong>in</strong>e.<br />

The state s <strong>in</strong> the constructed Mealy mach<strong>in</strong>e has a UIO sequence if and only<br />

if the automata accept a common str<strong>in</strong>g x . We first show the if direction. Suppose<br />

all the automata accept x = a1 ...ak .Thenra1 ...ak f is a UIO sequence for s.<br />

From state s, <strong>in</strong>put rxf will obviously give a sequence of only zeroes as output.<br />

If the mach<strong>in</strong>e is <strong>in</strong>itially <strong>in</strong> some state t �= s, then the first symbol, r, will take<br />

it to the <strong>in</strong>itial state of the automaton Ai that t belongs to. The sequence x will<br />

then lead to an accept<strong>in</strong>g state of Ai. F<strong>in</strong>ally, the symbol f will give a transition<br />

to swithoutput1. Thus no other state can have an output of only zeroes on<br />

<strong>in</strong>put rxf .<br />

For the other direction, assume that there is a UIO sequence x for s. Then<br />

x must conta<strong>in</strong> an f , because <strong>in</strong>put f is the only symbol that can produce an<br />

output different from 0. Assume that no r appears before the first occurrence<br />

of f <strong>in</strong> x . Consider the prefix x ′ = a1a2 ...ak f of x that cuts x after the first<br />

f . We claim that λ(q, x ′ )=0 k 1 for all q �= s. Thisisbecauseδ(q, f )=s for<br />

all states, so if the f produces output 0, then all subsequent outputs will be<br />

A1<br />

A2

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

Saved successfully!

Ooh no, something went wrong!