A Burnside Approach to the Termination of Mohris Algorithm for - - PowerPoint PPT Presentation

a burnside approach to the termination of mohri s
SMART_READER_LITE
LIVE PREVIEW

A Burnside Approach to the Termination of Mohris Algorithm for - - PowerPoint PPT Presentation

A Burnside Approach to the Termination of Mohris Algorithm for Polynomially Ambiguous Min-Plus-Automata Daniel Kirsten Dresden University of Technology Institut for Algebra August 31, 2006 Definition: An automaton A is called polynomially


slide-1
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
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
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 w

❀ q

  • ≤ 1.

◮ For every states p, q, every w ∈ Σ∗,

p q = ⇒ p = q. w w w w

slide-4
SLIDE 4

Motivation:

◮ less explored class of automata ◮ probably a large class of feasable WFA ◮ development of proof techniques

slide-5
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) :=

  • uv=w

S(u)T(v)

slide-6
SLIDE 6

An Example: 1 2 3 a, 0 b, 0 a, 1 a, 0 b, 0 b, 0 b, 0

slide-7
SLIDE 7

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
slide-8
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

  • ≤ |w|b − 1 < |w|.
slide-9
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

  • ≤ |w|b − 1 < |w|.

◮ |A| is not the mapping of a finitely ambiguous WFA.

slide-10
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
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
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
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
SLIDE 14

Let Q′ ⊆ ZQ be the least set which satisfies

◮ nf(λ) ∈ Q′, and

slide-15
SLIDE 15

Let Q′ ⊆ ZQ be the least set which satisfies

◮ nf(λ) ∈ Q′, and ◮ for every B ∈ Q′, a ∈ Σ,

nf

  • Bθ(a)
  • ∈ Q′.
slide-16
SLIDE 16

Let Q′ ⊆ ZQ be the least set which satisfies

◮ nf(λ) ∈ Q′, and ◮ for every B ∈ Q′, a ∈ Σ,

nf

  • Bθ(a)
  • ∈ Q′.

We have Q′ =

  • nf(λθ(w))
  • w ∈ Σ∗

.

slide-17
SLIDE 17

Let Q′ ⊆ ZQ be the least set which satisfies

◮ nf(λ) ∈ Q′, and ◮ for every B ∈ Q′, a ∈ Σ,

nf

  • Bθ(a)
  • ∈ Q′.

We have Q′ =

  • nf(λθ(w))
  • w ∈ Σ∗

. Mohri’s Algorithm uses the set Q′ as states. It terminates iff Q′ is finite.

slide-18
SLIDE 18

An Example: 1 2 w, 2 w, 1 w, 3

slide-19
SLIDE 19

An Example: 1 2 w, 2 w, 1 w, 3 For k ≥ 1, we have λ(θ(w))k = (2k, k) and

slide-20
SLIDE 20

An Example: 1 2 w, 2 w, 1 w, 3 For k ≥ 1, we have λ(θ(w))k = (2k, k) and nf

  • λ(θ(w))k

= (k, 0), i.e., Mohri’s algorithm does not terminate on the sequence (wk)k≥1.

slide-21
SLIDE 21

Another Example: 1 2 w, 1 w, 2 w, 3

slide-22
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
SLIDE 23

Another Example: 1 2 w, 1 w, 2 w, 3 For k ≥ 2, we have λ(θ(w))k = (k, k + 2) and nf

  • λ(θ(w))k

= (0, 2), i.e., Mohri’s algorithm terminates on the sequence (wk)k≥1.

slide-24
SLIDE 24

Let w ∈ Σ∗ and B = θ(w). Assume that B has an idempotent structure, i.e., B[i, j] = ∞ ⇐ ⇒

  • BB
  • [i, j] = ∞

for all i, j ∈ Q.

slide-25
SLIDE 25

Let w ∈ Σ∗ and B = θ(w). Assume that B has an idempotent structure, i.e., B[i, j] = ∞ ⇐ ⇒

  • BB
  • [i, j] = ∞

for all i, j ∈ Q. For i, j ∈ Q let i ≤B j iff B[i, j] = ∞.

slide-26
SLIDE 26

Let w ∈ Σ∗ and B = θ(w). Assume that B has an idempotent structure, i.e., B[i, j] = ∞ ⇐ ⇒

  • BB
  • [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
SLIDE 27

Let w ∈ Σ∗ and B = θ(w). Assume that B has an idempotent structure, i.e., B[i, j] = ∞ ⇐ ⇒

  • BB
  • [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
SLIDE 28

A subset C ⊆ Q is a clone iff there exists some v ∈ Σ∗ such that C =

  • i ∈ Q
  • λθ(v)[i] = ∞
  • .
slide-29
SLIDE 29

A subset C ⊆ Q is a clone iff there exists some v ∈ Σ∗ such that C =

  • i ∈ Q
  • λθ(v)[i] = ∞
  • .

C and B are stable iff C =

  • j ∈ Q
  • B[i, j] = ∞ for some i ∈ C
  • .
slide-30
SLIDE 30

A subset C ⊆ Q is a clone iff there exists some v ∈ Σ∗ such that C =

  • i ∈ Q
  • λθ(v)[i] = ∞
  • .

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
SLIDE 31

A subset C ⊆ Q is a clone iff there exists some v ∈ Σ∗ such that C =

  • i ∈ Q
  • λθ(v)[i] = ∞
  • .

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
SLIDE 32

A pol. amb. WFA A satisfies the clones property if

◮ for every clone C,

slide-33
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
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
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
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
SLIDE 37

A bad Example: 1 2 3 a, 0 b, 0 a, 1 a, 0 b, 1 b, 0

slide-38
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
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
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.