13.11.2014 Views

Introduction to Computational Linguistics

Introduction to Computational Linguistics

Introduction to Computational Linguistics

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.

13. Complexity and Minimal Au<strong>to</strong>mata 49<br />

Inductively, we define the following:<br />

(131)<br />

q ∼ i+1 q ′ :⇔q ∼ i q ′ and for all a ∈ A, for all r ∈ Q:<br />

if q a → r there is r ′ ∼ i r such that q ′ a<br />

→ r<br />

′<br />

if q ′ a<br />

→ r there is r ′ ∼ i r such that q ′ a<br />

→ r<br />

Evidently, ∼ i+1 ⊆∼ i . Also, if q ∼ i+1 q ′ and q ∈ F then also q ′ ∈ F, since this already<br />

holds for ∼ 0 . Finally, if ∼ i+1 =∼ i then ∼ i is a net. This suggests the following<br />

recipe: start with ∼ 0 and construct ∼ i one by one. If ∼ i+1 =∼ i , s<strong>to</strong>p the construction.<br />

It takes only finitely many steps <strong>to</strong> compute this and it returns the largest net on<br />

an au<strong>to</strong>ma<strong>to</strong>n.<br />

Definition 17 Let A be a finite state au<strong>to</strong>ma<strong>to</strong>n. A is called refined if the only net<br />

on it is the identity.<br />

Theorem 18 Let A and B be deterministic, <strong>to</strong>tal and refined and every state in<br />

each of the au<strong>to</strong>mata is reachable. Then if L(A) = L(B), the two are isomorphic.<br />

Proof. Let A be based on the state set Q A and B on the state set Q B . For q ∈ Q A<br />

write I(q) := {⃗x : q → ⃗x r ∈ F}, and similarly for q ∈ Q B . Clearly, we have<br />

I(i A 0 ) = I(iB 0 ), by assumption. Now, let q ∈ QA and q → a r. Then I(r) = a\I(q).<br />

Hence, if q ′ ∈ Q B and q ′ a<br />

→ r ′ and I(q) = I(q ′ ) then also I(r) = I(r ′ ). Now we<br />

construct a map h : Q A → Q B as follows. h(i A 0 ) := iB 0 . If h(q) = q′ , q → a r<br />

and q ′ a<br />

→ r ′ then h(r) := r ′ . Since all states are reachable in A, h is defined on<br />

all states. This map is injective since I(h(q)) = I(q) and A is refined. (Every<br />

homomorphism induces a net, so if the identity is the only net, h is injective.) It is<br />

surjective since all states in B are reachable and B is refined.<br />

□<br />

Thus the recipe <strong>to</strong> get a minimal au<strong>to</strong>ma<strong>to</strong>n is this: get a deterministic <strong>to</strong>tal<br />

au<strong>to</strong>ma<strong>to</strong>n for L and refine it. This yields an au<strong>to</strong>ma<strong>to</strong>n which is unique up <strong>to</strong><br />

isomorphism.

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

Saved successfully!

Ooh no, something went wrong!