Professional Documents
Culture Documents
Weighted and Multi-Valued Automata - Determinization Methods
Weighted and Multi-Valued Automata - Determinization Methods
Determinization Methods
Miroslav Ćirić
Department of Computer Science
Faculty of Sciences
University of Niš, Serbia
miroslav.ciric@pmf.edu.rs
⋆ (S, +, ·, 0, 1) – semiring
⋆ A = (A, X, σ, τ, {δx}x∈X ) – WFA over S
f
⋆ derivative automaton of f – Af = (Af , X, σf , τf , {δx}x∈X )
◦ Af = {fu | u ∈ X∗ }
◦ σf = {f } i.e., σf (f ) = 1, σf (g) = 0 for g , f
◦ τf = {g} = g(ε)
f f
◦ δx (g) = gx , x ∈ X, δ x : Af → Af
⋆ c-DWA, possibly infinite
f = i1 K1 + i2 K2 + . . . + in Kn
⋆ Aπ is a c-DWFA equivalent to A
⋆ S – semiring
⋆ A = (A, X, σ, τ, {δx}x∈X ) – WFA over S
◦ σN = {σε }
◦ τN (σu ) = σu · τ, u ∈ X∗
◦ δN
x (σu ) = σux , u ∈ X∗ , x ∈ X x ∈ X, δN
x : AN → AN
a3
x
y
a1 y x
x, y
x
a2 y
σx2 yx σx2 y2 σxyx2 σ(xy)2
x y x y
σx3 σx2 y σxyx σxy2
x y x y
σx2 σxy σyx σy2
x y x y
σx σy
x y
σε
Transition tree of AN
x, y
σx2 y σxyx
y x x, y
y
σx2 σxy
x
x y
y
σx σy
x
x y
σε
◦ X = {x1 , . . . , xn }
◦ AcN = {σcu | u ∈ X∗ }
σcu = (σux1 , . . . , σuxn , σu · τ) = (σu · δx1 , . . . , σu · δxn , σu · τ)
◦ σN,c = {σcε }, τN,c (σcu ) = σu · τ
◦ δN,c
x (σu ) = σux
c c
c c
σx2 yx σx2 y σx2 y2 σxyx2 σxyx σ(xy)2
x y x y
σx3 σ c2 σx2 y σxyx
c
σxy σxy2
x
x y x y
σxc σyc
σx2 σxy σyx σy2
y x
x y
σεc
σx σy
x y
σε
x, y
x
σc2 c
σxy
x
y
x y
y
σcx σcy
x
x y
σcε
Theorem (Automaton Aπ )
The automaton Aπ is a c-DWA equivalent to A.
Besides, |Aπ | 6 |AN | and Aπ can be finite even if AN is infinite.
Theorem (Automaton Aθ )
Aθ is a c-DWA equivalent to the reverse automaton of A.
|Aθ | 6 |AN | and Aθ may be finite even if AN is infinite.
⋆ S – arbitrary semiring
Theorem (Automaton Ad )
Ad is a minimal c-DWA equivalent to A.
⋆ Factorization: D = (f , g), f : SA → SA , g : SA → S
α = g(α) · f (α), for all α ∈ SA
g(0) = 1
⋆ Kirsten and Mäurer (2005)
⋆ Maximal factorization:
g(a · α) = a · g(α), for all a ∈ S, α ∈ SA , a · α , 0
f (a · α) = f (α)
⋆ D = (f , g) – factorization in SA
⋆ AD = (AD , X, σD , τD , {δDx }x∈X )
D
◦ AD = {σu | u ∈ X }, ∗
σDε = f (σ), σD D
ux = f (σu · δx )
(
g(σ) if α = σD ε
◦ σD (α) = , τD (α) = α · τ, if α = σDu
0 otherwise
(
D g(σD
u · δx ) if α = σD D
u , β = σux , u ∈ X ,
∗
◦ δx (α, β) =
0 otherwise
Theorem (Automaton AD
π)
⋆ children automaton of AD
π – even smaller
⋆ Nerode automaton AN
equivalent to A w.r.t. the initial algebra semantics