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 75<br />

0, and x cannot be a UIO sequence for s. This means that from every state<br />

except s, <strong>in</strong>put sequence a1a2 ...ak leads to an accept<strong>in</strong>g state. This <strong>in</strong>cludes<br />

the <strong>in</strong>itial states of the automata, and we conclude that a1a2 ...ak is accepted<br />

by all automata. If x conta<strong>in</strong>s an r before the first occurrence of f , a similar<br />

argument shows that the part of x between the last occurrence of r before the<br />

first f and the first f is a str<strong>in</strong>g accepted by all automata.<br />

(2) To show that it is PSPACE-hard to f<strong>in</strong>d out whether all states of a given<br />

mach<strong>in</strong>e M have UIO sequences, we aga<strong>in</strong> use the F<strong>in</strong>ite Automata Intersection<br />

problem, with a very similar reduction. The same transitions as above are used,<br />

plus some more, as described below. Add a new symbol at to the <strong>in</strong>put alphabet<br />

for every state t of every automaton. State t gets a transition on <strong>in</strong>put at to s<br />

with output 0. Every state u �= t, belong<strong>in</strong>g to automaton Ai gets a transition<br />

to the <strong>in</strong>itial state of Ai on <strong>in</strong>put at , with output 0. State s gets a transition<br />

with <strong>in</strong>put at to the <strong>in</strong>itial state of the automaton which t belongs to, also with<br />

output 0.<br />

If the automata do not accept a common str<strong>in</strong>g, state s does not have a UIO<br />

sequence, by the same argument as for problem (1) above. On the other hand, if<br />

all automata accept the str<strong>in</strong>g x = a1 ...ak ,thenra1 ...ak f is a UIO sequence<br />

for s, and for every other state t, the sequence ata1 ...ak f is a UIO sequence.<br />

(3) F<strong>in</strong>ally, we show that it is PSPACE-hard to determ<strong>in</strong>e whether any state<br />

of a given mach<strong>in</strong>e has a UIO sequence. The sameconstructionas<strong>in</strong>theproof<br />

of claim (1) is used, except that two identical copies of each automaton Ai are<br />

used. This means that only state s can have a UIO sequence, and as above, if<br />

all automata accept str<strong>in</strong>g x = a1 ...ak then ra1 ...ak f is a UIO sequence for s,<br />

and otherwise there is none. This f<strong>in</strong>ishes the proof of Theorem 3.2.<br />

In fact, Theorem 3.2 holds even if we consider only Mealy mach<strong>in</strong>es with<br />

b<strong>in</strong>ary <strong>in</strong>put and output alphabets [LY94].<br />

The proof of Theorem 3.2 also yields an upper bound on the length of the<br />

shortest UIO sequence for a given state. S<strong>in</strong>ce paths <strong>in</strong> the exponentially large<br />

graph constructed <strong>in</strong> the PSPACE membership proof correspond directly to<br />

<strong>in</strong>put-output sequences with attached output sequences, it follows that if there<br />

is a path of length m <strong>in</strong> the constructed graph from vertex (s, S \{s}) tosome<br />

vertex (s ′ , ∅), for some states s, s ′ ,thens has a UIO sequence of length m. S<strong>in</strong>ce<br />

no simple path <strong>in</strong> the graph can be longer than the number of vertices <strong>in</strong> the<br />

graph, this shows that if s has a UIO sequence, then it has a UIO sequence of<br />

length at most |S|·2 |S| .<br />

Lee and Yannakakis proved a lower bound on the length of UIO-sequences as<br />

well, show<strong>in</strong>g that even if a state has a UIO sequence, it does not always have<br />

one of polynomial length.<br />

Theorem 3.3 (Lee and Yannakakis [LY94]). There are mach<strong>in</strong>es with states<br />

that have UIO sequences, but only of exponential length.

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

Saved successfully!

Ooh no, something went wrong!