. On the Size of the Universal Automaton of a Regular Language - - PowerPoint PPT Presentation

on the size of the universal automaton of a regular
SMART_READER_LITE
LIVE PREVIEW

. On the Size of the Universal Automaton of a Regular Language - - PowerPoint PPT Presentation

. On the Size of the Universal Automaton of a Regular Language Sylvain Lombardy IGM - Universit e de Marne-la-Vall ee STACS07 - February 22, 2007 p. 1/17 Motivation a b Minimizing deterministic automata a Merging


slide-1
SLIDE 1

. On the Size of the Universal Automaton of a Regular Language

Sylvain Lombardy IGM - Universit´ e de Marne-la-Vall´ ee

STACS’07 - February 22, 2007 – p. 1/17

slide-2
SLIDE 2

Motivation

Minimizing deterministic automata − → Merging states with the same future a b a a b b (Nerode equivalence) − → Hopcroft algorithm O(n log n)

STACS’07 - February 22, 2007 – p. 2/17

slide-3
SLIDE 3

Motivation

Minimizing deterministic automata − → Merging states with the same future a b a a b b (Nerode equivalence) − → Hopcroft algorithm O(n log n)

STACS’07 - February 22, 2007 – p. 2/17

slide-4
SLIDE 4

Motivation

Minimizing deterministic automata − → Merging states with the same future b a b a (Nerode equivalence) − → Hopcroft algorithm O(n log n)

STACS’07 - February 22, 2007 – p. 2/17

slide-5
SLIDE 5

Motivation

Minimizing deterministic automata − → Merging states with the same future b a b a (Nerode equivalence) − → Hopcroft algorithm O(n log n) Minimizing non deterministic automata − → Much harder : PSPACE-complete (Jiang - Ravikumar, 93)

STACS’07 - February 22, 2007 – p. 2/17

slide-6
SLIDE 6

Motivation

Minimizing deterministic automata − → Merging states with the same future b a b a (Nerode equivalence) − → Hopcroft algorithm O(n log n) Minimizing non deterministic automata − → Much harder : PSPACE-complete (Jiang - Ravikumar, 93) − → However merging states may reduce the size of NFAs

STACS’07 - February 22, 2007 – p. 2/17

slide-7
SLIDE 7

Motivation

Problem 1 : How to guarantee that merging does not modify the language ? − → "Equivalences" (Ilie - Yu, 02) "Inequalities" (Champarnaud - Coulon, 04)

STACS’07 - February 22, 2007 – p. 3/17

slide-8
SLIDE 8

Motivation

Problem 1 : How to guarantee that merging does not modify the language ? − → "Equivalences" (Ilie - Yu, 02) "Inequalities" (Champarnaud - Coulon, 04) Problem 2 : What is the difference between this reduce NFA and any minimal NFA for the language ? − → L fixed, ∃EL ∀A s.t. L(A) = L A > EL = ⇒ A has merging states (Câmpeanu - Sântean - Yu, 04)

STACS’07 - February 22, 2007 – p. 3/17

slide-9
SLIDE 9

Motivation

Problem 1 : How to guarantee that merging does not modify the language ? − → "Equivalences" (Ilie - Yu, 02) "Inequalities" (Champarnaud - Coulon, 04) Problem 2 : What is the difference between this reduce NFA and any minimal NFA for the language ? − → L fixed, ∃EL ∀A s.t. L(A) = L A > EL = ⇒ A has merging states (Câmpeanu - Sântean - Yu, 04) − → EL 2k (k : size of the minimal DFA) (Grunsky - Kurganskyy - Potapov, 06)

STACS’07 - February 22, 2007 – p. 3/17

slide-10
SLIDE 10

Motivation

Problem 1 : How to guarantee that merging does not modify the language ? − → "Equivalences" (Ilie - Yu, 02) "Inequalities" (Champarnaud - Coulon, 04) Problem 2 : What is the difference between this reduce NFA and any minimal NFA for the language ? − → L fixed, ∃EL ∀A s.t. L(A) = L A > EL = ⇒ A has merging states (Câmpeanu - Sântean - Yu, 04) − → EL 2k (k : size of the minimal DFA) (Grunsky - Kurganskyy - Potapov, 06) − → EL D(n) (n : size of a minimal NFA)

STACS’07 - February 22, 2007 – p. 3/17

slide-11
SLIDE 11

Factorizations

A accepts L p state of A Past(p) = {w |→ i

w

− → p} Fut(p) = {w | p

w

− → t →} − → Past(p).Fut(p) ⊆ L The universal automaton is an automaton s.t. the pairs (Past(p), Fut(p)) are maximal w.r.t. L − → Factorizations of the language (Conway,71) Example : L = a+b+ : (a+b+, b∗) (a+b∗, b+) (A∗, ∅) (a∗, a+b+) (a+, a∗b+) (∅, A∗)

STACS’07 - February 22, 2007 – p. 4/17

slide-12
SLIDE 12

Universal automaton of L

a+b+, b∗ a+b∗, b+ a+, a∗b+ a∗, a+b+ A∗, ∅ ∅, A∗

a, b a, b a, b a, b a, b a, b a, b a, b a, b a, b a, b

a a a a a a, b b b b b b SL - Sakarovitch, 2000

STACS’07 - February 22, 2007 – p. 5/17

slide-13
SLIDE 13

Universal automaton of L

a+b+, b∗ a+b∗, b+ a+, a∗b+ a∗, a+b+ A∗, ∅ ∅, A∗

a, b a, b a, b a, b a, b a, b a, b a, b a, b a, b a, b

a a a a a a, b b b b b b SL - Sakarovitch, 2000

STACS’07 - February 22, 2007 – p. 5/17

slide-14
SLIDE 14

Universal automaton and reduction

Proposition : The universal automaton is reduced.

STACS’07 - February 22, 2007 – p. 6/17

slide-15
SLIDE 15

Universal automaton and reduction

Proposition : The universal automaton is reduced. Proposition : If L(A) = L, A can be reduced into a subautomaton of UL.

STACS’07 - February 22, 2007 – p. 6/17

slide-16
SLIDE 16

Universal automaton and reduction

Proposition : The universal automaton is reduced. Proposition : If L(A) = L, A can be reduced into a subautomaton of UL. A − → UL p − →

  • Xp = {u ∈ A∗ | uFut(p) ⊆ L}

Yp = {v ∈ A∗ | Xpv ⊆ L}

STACS’07 - February 22, 2007 – p. 6/17

slide-17
SLIDE 17

Construction of the universal automaton

The co-determinized automaton of A is obtained from A by a “backward” determinization. Example : p q r a b a b p, q q, r r a b a b

STACS’07 - February 22, 2007 – p. 7/17

slide-18
SLIDE 18

Construction of the universal automaton

Theorem : (ICALP 2002) The set of states of the universal automaton of L is

  • btained from the minimal automaton A of L by computing the intersection of

states of the co-determinized automaton of A p, q, r p, q q, r r q ∅ p q r a b a b p, q q, r r a b a b

STACS’07 - February 22, 2007 – p. 8/17

slide-19
SLIDE 19

Construction of the universal automaton

r ↔ a+b+ q, r ↔ a+b∗ q ↔ a+ p, q ↔ a∗

a a a a a a, b b b b b b

p q r

a b a b

p, q q, r r

a b a b

STACS’07 - February 22, 2007 – p. 9/17

slide-20
SLIDE 20

Bound w.r.t minimal DFA

Proposition : For every n, there exists a deterministic automaton with n states that recognizes a language for which the universal automaton has 2n states.

p q b r b a, b a a

STACS’07 - February 22, 2007 – p. 10/17

slide-21
SLIDE 21

Bound w.r.t minimal DFA

Proposition : For every n, there exists a deterministic automaton with n states that recognizes a language for which the universal automaton has 2n states.

p, q, r a, b q, r p, q b p, r p q r b a a a a a a b b b

STACS’07 - February 22, 2007 – p. 10/17

slide-22
SLIDE 22

Bound w.r.t minimal DFA

Proposition : For every n, there exists a deterministic automaton with n states that recognizes a language for which the universal automaton has 2n states.

p, q, r a q, r b p, q p, r p q b r b ∅ a, b a a a b b b a, b a a

STACS’07 - February 22, 2007 – p. 10/17

slide-23
SLIDE 23

Unary alphabet

p q r a a a

STACS’07 - February 22, 2007 – p. 11/17

slide-24
SLIDE 24

Unary alphabet

p, q q, r p, r a a a

STACS’07 - February 22, 2007 – p. 11/17

slide-25
SLIDE 25

Unary alphabet

p, q, r a q, r p, q p, r p q r ∅ a a a a a a a

STACS’07 - February 22, 2007 – p. 11/17

slide-26
SLIDE 26

From a NFA : unary alphabet

Construction of the universal automaton : first determinization (at most k = G(n) states) then construction of the universal automaton (2k states). − → Upper bound : 2G(n) G(n) = max{lcm(n1, . . . , nr) |

  • ni = n}

1 n1 − 1 a a

. . .

1 nr − 1 a a

− →

1 n − 1 a a

− → The upper bound is tight.

STACS’07 - February 22, 2007 – p. 12/17

slide-27
SLIDE 27

From a NFA

Construction of the universal automaton : first determinization (at most k = 2n − 1 states) then construction of the universal automaton (2k states). − → Upper bound : 22n−1

p q r a a b b

STACS’07 - February 22, 2007 – p. 13/17

slide-28
SLIDE 28

From a NFA

Construction of the universal automaton : first determinization (at most k = 2n − 1 states) then construction of the universal automaton (2k states). − → Upper bound : 22n−1

p q r pq pr a b a ba a b b p, pr, pq r, pr q, pq p, r, pq, pr p, q, pq, pr a b a b a a b b

STACS’07 - February 22, 2007 – p. 13/17

slide-29
SLIDE 29

Characterization of the states

Proposition : D determinized of A, C co-determinized of D. Let P ⊂ R be two states of D. If P belongs to a state X of C, so does R. − → States of C are upperset. Lemma : The uppersets are closed under intersection. Theorem : The states of the universal automaton are uppersets. Theorem : The universal automaton of a language recognized by a NFA with n states has at most D(n) states (n-th Dedekind number).

STACS’07 - February 22, 2007 – p. 14/17

slide-30
SLIDE 30

D(n) ?

n D(n) 2 1 3 2 6 3 20 4 168 5 7581 6 7828354 7 2414682040998 8 56130437228687557907788

1 25 20 0.2 15 10 5 0.8 0.6 0.4

n − → log2 D(n) 2n

STACS’07 - February 22, 2007 – p. 15/17

slide-31
SLIDE 31

Lower bound

1 2 b b a a a

STACS’07 - February 22, 2007 – p. 16/17

slide-32
SLIDE 32

Lower bound

012 12 02 01 2 1 ∅ a b b a a a b b a a a b b b a, b

STACS’07 - February 22, 2007 – p. 16/17

slide-33
SLIDE 33

Lower bound

∅ 1 2 12 01 02 012 a b b a a a b b a a a b b b a, b

STACS’07 - February 22, 2007 – p. 16/17

slide-34
SLIDE 34

Lower bound

0, 1 1, 2 0, 2 1 2 01 12 02

0, 12 1, 02 2, 01 01, 02, 12 012

02, 12 01, 02 01, 12 0, 1, 2

∅ a a a a a a a a a a a a a a a a b b b b a a a, b a, b

D(3) = 20

STACS’07 - February 22, 2007 – p. 16/17

slide-35
SLIDE 35

.

Thank you for your attention

STACS’07 - February 22, 2007 – p. 17/17