SLIDE 1
A Burnside Approach to the Termination of Mohri’s Algorithm for Polynomially Ambiguous Min-Plus-Automata
Daniel Kirsten
Dresden University of Technology Institut for Algebra
August 31, 2006
SLIDE 2 Definition: An automaton A is called polynomially ambiguous if there exists some polynomial P : N → N such that for every w ∈ Σ∗ there are at most P
- |w|
- accepting paths for w.
SLIDE 3 Definition: An automaton A is called polynomially ambiguous if there exists some polynomial P : N → N such that for every w ∈ Σ∗ there are at most P
- |w|
- accepting paths for w.
Theorem 1: Ibarra/Ravikumar 1986, Hromkoviˇ c/et al 2002 Let A be trim. The following assertions are equivalent:
◮ A is polynomially ambiguous. ◮ For every state q, every w ∈ Σ∗, we have
❀ q
◮ For every states p, q, every w ∈ Σ∗,
p q = ⇒ p = q. w w w w
SLIDE 4
Motivation:
◮ less explored class of automata ◮ probably a large class of feasable WFA ◮ development of proof techniques
SLIDE 5 Motivation:
◮ less explored class of automata ◮ probably a large class of feasable WFA ◮ development of proof techniques ◮ they arise in the Cauchy-product of unambiguous/ finitely
ambiguous series (ST)(w) :=
S(u)T(v)
SLIDE 6
An Example: 1 2 3 a, 0 b, 0 a, 1 a, 0 b, 0 b, 0 b, 0
SLIDE 7 An Example: 1 2 3 a, 0 b, 0 a, 1 a, 0 b, 0 b, 0 b, 0
◮ |A|(w) = min
SLIDE 8 An Example: 1 2 3 a, 0 b, 0 a, 1 a, 0 b, 0 b, 0 b, 0
◮ |A|(w) = min
- ℓ
- baℓb is a factor of w
- ◮ A is polynomially ambiguous,
- 1 w
❀ 3
SLIDE 9 An Example: 1 2 3 a, 0 b, 0 a, 1 a, 0 b, 0 b, 0 b, 0
◮ |A|(w) = min
- ℓ
- baℓb is a factor of w
- ◮ A is polynomially ambiguous,
- 1 w
❀ 3
◮ |A| is not the mapping of a finitely ambiguous WFA.
SLIDE 10
Mohri’s Algorithm: Let A = [Q, θ, λ, ̺] be a pol. amb. WFA, i.e.,
◮ Q = {1, . . . , n} is a finite set, ◮ θ : Σ∗ → ZQ×Q is a homomorphism, ◮ λ, ̺ ∈ ZQ. ◮ |A| : Σ∗ → Z,
|A|(w) := λ θ(w) ̺
SLIDE 11
Mohri’s Algorithm: Let A = [Q, θ, λ, ̺] be a pol. amb. WFA, i.e.,
◮ Q = {1, . . . , n} is a finite set, ◮ θ : Σ∗ → ZQ×Q is a homomorphism, ◮ λ, ̺ ∈ ZQ. ◮ |A| : Σ∗ → Z,
|A|(w) := λ θ(w) ̺ Let B = (b1, . . . , bn) ∈ ZQ. min(B) := min{bi | i ∈ Q}
SLIDE 12 Mohri’s Algorithm: Let A = [Q, θ, λ, ̺] be a pol. amb. WFA, i.e.,
◮ Q = {1, . . . , n} is a finite set, ◮ θ : Σ∗ → ZQ×Q is a homomorphism, ◮ λ, ̺ ∈ ZQ. ◮ |A| : Σ∗ → Z,
|A|(w) := λ θ(w) ̺ Let B = (b1, . . . , bn) ∈ ZQ. min(B) := min{bi | i ∈ Q} nf(B) := (−min(B)) + B =
- b1 − min(B), . . . , bn − min(B)
SLIDE 13 Mohri’s Algorithm: Let A = [Q, θ, λ, ̺] be a pol. amb. WFA, i.e.,
◮ Q = {1, . . . , n} is a finite set, ◮ θ : Σ∗ → ZQ×Q is a homomorphism, ◮ λ, ̺ ∈ ZQ. ◮ |A| : Σ∗ → Z,
|A|(w) := λ θ(w) ̺ Let B = (b1, . . . , bn) ∈ ZQ. min(B) := min{bi | i ∈ Q} nf(B) := (−min(B)) + B =
- b1 − min(B), . . . , bn − min(B)
- nf((1, 2, 3)) = (0, 1, 2)
nf((3, ∞, 4)) = (0, ∞, 1) nf((3, ∞, −4)) = (7, ∞, 0)
SLIDE 14
Let Q′ ⊆ ZQ be the least set which satisfies
◮ nf(λ) ∈ Q′, and
SLIDE 15 Let Q′ ⊆ ZQ be the least set which satisfies
◮ nf(λ) ∈ Q′, and ◮ for every B ∈ Q′, a ∈ Σ,
nf
SLIDE 16 Let Q′ ⊆ ZQ be the least set which satisfies
◮ nf(λ) ∈ Q′, and ◮ for every B ∈ Q′, a ∈ Σ,
nf
We have Q′ =
.
SLIDE 17 Let Q′ ⊆ ZQ be the least set which satisfies
◮ nf(λ) ∈ Q′, and ◮ for every B ∈ Q′, a ∈ Σ,
nf
We have Q′ =
. Mohri’s Algorithm uses the set Q′ as states. It terminates iff Q′ is finite.
SLIDE 18
An Example: 1 2 w, 2 w, 1 w, 3
SLIDE 19
An Example: 1 2 w, 2 w, 1 w, 3 For k ≥ 1, we have λ(θ(w))k = (2k, k) and
SLIDE 20 An Example: 1 2 w, 2 w, 1 w, 3 For k ≥ 1, we have λ(θ(w))k = (2k, k) and nf
= (k, 0), i.e., Mohri’s algorithm does not terminate on the sequence (wk)k≥1.
SLIDE 21
Another Example: 1 2 w, 1 w, 2 w, 3
SLIDE 22
Another Example: 1 2 w, 1 w, 2 w, 3 For k ≥ 2, we have λ(θ(w))k = (k, k + 2) and
SLIDE 23 Another Example: 1 2 w, 1 w, 2 w, 3 For k ≥ 2, we have λ(θ(w))k = (k, k + 2) and nf
= (0, 2), i.e., Mohri’s algorithm terminates on the sequence (wk)k≥1.
SLIDE 24 Let w ∈ Σ∗ and B = θ(w). Assume that B has an idempotent structure, i.e., B[i, j] = ∞ ⇐ ⇒
for all i, j ∈ Q.
SLIDE 25 Let w ∈ Σ∗ and B = θ(w). Assume that B has an idempotent structure, i.e., B[i, j] = ∞ ⇐ ⇒
for all i, j ∈ Q. For i, j ∈ Q let i ≤B j iff B[i, j] = ∞.
SLIDE 26 Let w ∈ Σ∗ and B = θ(w). Assume that B has an idempotent structure, i.e., B[i, j] = ∞ ⇐ ⇒
for all i, j ∈ Q. For i, j ∈ Q let i ≤B j iff B[i, j] = ∞. The relation ≤B is transitive and antisymmetric,
SLIDE 27 Let w ∈ Σ∗ and B = θ(w). Assume that B has an idempotent structure, i.e., B[i, j] = ∞ ⇐ ⇒
for all i, j ∈ Q. For i, j ∈ Q let i ≤B j iff B[i, j] = ∞. The relation ≤B is transitive and antisymmetric, but not necessarily reflexive of irreflexive, i.e., ≤B is almost a partial ordering.
SLIDE 28 A subset C ⊆ Q is a clone iff there exists some v ∈ Σ∗ such that C =
SLIDE 29 A subset C ⊆ Q is a clone iff there exists some v ∈ Σ∗ such that C =
C and B are stable iff C =
- j ∈ Q
- B[i, j] = ∞ for some i ∈ C
- .
SLIDE 30 A subset C ⊆ Q is a clone iff there exists some v ∈ Σ∗ such that C =
C and B are stable iff C =
- j ∈ Q
- B[i, j] = ∞ for some i ∈ C
- .
C and B satisfy the clones property if for every i ∈ C which is minimal w.r.t. ≤B, the value B[i, i] is minimal among B[ j, j] for j ∈ C.
SLIDE 31 A subset C ⊆ Q is a clone iff there exists some v ∈ Σ∗ such that C =
C and B are stable iff C =
- j ∈ Q
- B[i, j] = ∞ for some i ∈ C
- .
C and B satisfy the clones property if for every i ∈ C which is minimal w.r.t. ≤B, the value B[i, i] is minimal among B[ j, j] for j ∈ C. Lemma: The set
- nf(λθ(vwk))
- k ∈ N
- is finite iff
C and B satisfy the clones property.
SLIDE 32
A pol. amb. WFA A satisfies the clones property if
◮ for every clone C,
SLIDE 33
A pol. amb. WFA A satisfies the clones property if
◮ for every clone C, ◮ for every w ∈ Σ∗ such that B := θ(w) has an idempotent
structure and C and B are stable,
SLIDE 34
A pol. amb. WFA A satisfies the clones property if
◮ for every clone C, ◮ for every w ∈ Σ∗ such that B := θ(w) has an idempotent
structure and C and B are stable, C and B satisfy the clones property.
SLIDE 35 A pol. amb. WFA A satisfies the clones property if
◮ for every clone C, ◮ for every w ∈ Σ∗ such that B := θ(w) has an idempotent
structure and C and B are stable, C and B satisfy the clones property. Theorem 2: Kirsten 2005 Let A be trim, polynomially ambiguous WFA. The following assertions are equivalent:
- 1. Mohri’s algorithm terminates on A.
SLIDE 36 A pol. amb. WFA A satisfies the clones property if
◮ for every clone C, ◮ for every w ∈ Σ∗ such that B := θ(w) has an idempotent
structure and C and B are stable, C and B satisfy the clones property. Theorem 2: Kirsten 2005 Let A be trim, polynomially ambiguous WFA. The following assertions are equivalent:
- 1. Mohri’s algorithm terminates on A.
- 2. For every v, w ∈ Σ∗, Mohri’s algorithm
terminates on the sequence (vwk)k≥1 on A.
- 3. The WFA A satisfies the clones property.
SLIDE 37
A bad Example: 1 2 3 a, 0 b, 0 a, 1 a, 0 b, 1 b, 0
SLIDE 38
A bad Example: 1 2 3 a, 0 b, 0 a, 1 a, 0 b, 1 b, 0 b, 1 a, 0
SLIDE 39
A bad Example: 1 2 3 a, 0 b, 0 a, 1 a, 0 b, 1 b, 0 b, 1 a, 0
◮ For every v, w ∈ Σ∗, Mohri’s algorithm terminates on
(vwk)k≥1.
SLIDE 40
A bad Example: 1 2 3 a, 0 b, 0 a, 1 a, 0 b, 1 b, 0 b, 1 a, 0
◮ For every v, w ∈ Σ∗, Mohri’s algorithm terminates on
(vwk)k≥1.
◮ Mohri’s algorithm does not terminate on baba2ba3ba4b . . .
(2)⇒(1) in Theorem 2 does not hold for A.