The Complexity of Intersecting Finite Automata Having Few Final - - PowerPoint PPT Presentation

the complexity of intersecting finite automata having few
SMART_READER_LITE
LIVE PREVIEW

The Complexity of Intersecting Finite Automata Having Few Final - - PowerPoint PPT Presentation

Introduction Automata Intersection Problem Conclusion The Complexity of Intersecting Finite Automata Having Few Final States Michael Blondin 1 2 Andreas Krebs 3 Pierre McKenzie 1 1 DIRO, Universit de Montral 2 LSV, ENS Cachan 3 Universitt


slide-1
SLIDE 1

Introduction Automata Intersection Problem Conclusion

The Complexity of Intersecting Finite Automata Having Few Final States

Michael Blondin1 2 Andreas Krebs3 Pierre McKenzie1

1DIRO, Université de Montréal 2LSV, ENS Cachan 3Universität Tübingen

October 31, 2013

1 / 48

slide-2
SLIDE 2

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Definition An automaton is a 5-tuple: Ω (finite set of states) Σ (finite alphabet) δ : Ω × Σ → Ω (transition function) α ∈ Ω (initial state) F ⊆ Ω (final states)

2 / 48

slide-3
SLIDE 3

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Definition Transition monoid M(A) of A: {Tσ : σ ∈ Σ} where Tσ(γ) = δ(γ, σ). Example

α β γ ω

1 1 1 0, 1 T011 =

 α β γ ω

β β γ ω

 

3 / 48

slide-4
SLIDE 4

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Definition AutoIntb(X) (Automata nonemptiness intersection problem) Input: Automata A1, . . . , Ak on alphabet Σ with M(Ai) ∈ X and at most b final states. Question:

k

  • i=1

Language(Ai) = ∅?

4 / 48

slide-5
SLIDE 5

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Definition AutoIntb(∪mX) (Generalized automata intersection problem) Input: Automata A1,1, . . . , Ak,m

  • n

alphabet Σ with M(Ai,j) ∈ X and at most b final states. Question:

k

  • i=1

m

  • j=1

Language(Ai,j) = ∅?

5 / 48

slide-6
SLIDE 6

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Kozen 77 AutoInt and AutoInt1 are PSPACE−complete. Galil 76 AutoInt is NP−complete when Σ = {a}.

6 / 48

slide-7
SLIDE 7

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

AutoInt interesting because generalizes: Definition Memb(X) (Membership problem) Input: g, g1, . . . , gk : [m] → [m] such that g1, . . . , gk ∈ X. Question: g ∈ g1, . . . , gk?

7 / 48

slide-8
SLIDE 8

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

AutoInt interesting because generalizes: Definition Memb(X) (Membership problem) Input: g, g1, . . . , gk : [m] → [m] such that g1, . . . , gk ∈ X. Question: g ∈ g1, . . . , gk? Connections with graph isomorphism led to deep results on group

  • problems. It is known that Memb(Groups) ∈ NC.

8 / 48

slide-9
SLIDE 9

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Definition ACk: languages accepted by Boolean circuits of poly size and depth O(logk n). NCk: similar with gates of indegree 2. NC = AC =

  • k≥0

NCk

9 / 48

slide-10
SLIDE 10

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Definition L: languages accepted by log-space Turing machines. NL: languages accepted by log-space non deterministic Turing machines. ModpL: languages S s.t. w ∈ S iff # accept paths ≡ 0 (mod p) for some NL machine.

10 / 48

slide-11
SLIDE 11

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Inclusion chain of complexity classes AC0 NC1 L NL ModpL NC2 NC P NP PSPACE

11 / 48

slide-12
SLIDE 12

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Inclusion chain of complexity classes AC0 NC1 L NL ModpL NC2 NC P NP PSPACE Contains: binary addition/substraction, star-free languages. Does not contain: parity/majority. Equals: FO(BIT), FO(+, ×) where variables = positions in words.

12 / 48

slide-13
SLIDE 13

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Inclusion chain of complexity classes AC0 NC1 L NL ModpL NC2 NC P NP PSPACE Contains: binary multiplication/division, regular languages, parity/majority.

13 / 48

slide-14
SLIDE 14

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Inclusion chain of complexity classes AC0 NC1 L NL ModpL NC2 NC P NP PSPACE Complete problems: undirected connectivity, 2⊕SAT. Contains: problems defined in MSO on graphs of bounded tree-width.

14 / 48

slide-15
SLIDE 15

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Inclusion chain of complexity classes AC0 NC1 L NL ModpL NC2 NC P NP PSPACE Complete problems: directed connectivity, 2SAT, testing an automaton for emptiness. Equals: coNL.

15 / 48

slide-16
SLIDE 16

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Inclusion chain of complexity classes AC0 NC1 L NL ModpL NC2 NC P NP PSPACE Complete problems: linear algebra mod p. Equals: coModpL.

16 / 48

slide-17
SLIDE 17

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Inclusion chain of complexity classes AC0 NC1 L NL ModpL NC2 NC P NP PSPACE Contains: determinant, automata minimization.

17 / 48

slide-18
SLIDE 18

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Inclusion chain of complexity classes AC0 NC1 L NL ModpL NC2 NC P NP PSPACE Contains: membership in permutation groups.

18 / 48

slide-19
SLIDE 19

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Inclusion chain of complexity classes AC0 NC1 L NL ModpL NC2 NC P NP PSPACE Complete problems: circuit value problem, linear programming.

19 / 48

slide-20
SLIDE 20

Introduction Automata Intersection Problem Conclusion Definitions Motivation and Prior Work Complexity Classes Our Results

Main result: completeness results for AutoIntb(X) Maximum number of final states 1 2 1 with ∪2 3+ Σ = {a} L L NL NP Z2 × · · · × Z2 ⊕L ⊕L NP NP Zp × · · · × Zp ModpL NP NP NP Abelian groups ∈ NC3 NP NP NP Groups ∈ NC NP NP NP J1 ∈ AC0 NP NP NP *** Our classification. *** Beaudry 88.

20 / 48

slide-21
SLIDE 21

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Complexity of AutoInt2(X) Maximum number of final states 1 2 1 with ∪2 3+ Σ = {a} L L NL NP Z2 × · · · × Z2 ⊕L ⊕L NP NP Zp × · · · × Zp ModpL NP NP NP Abelian groups ∈ NC3 NP NP NP Groups ∈ NC NP NP NP J1 ∈ AC0 NP NP NP

21 / 48

slide-22
SLIDE 22

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Theorem AutoInt2(X) is hard for NP for any X beyond Z2 × · · · × Z2. Proof sketch X ⊆ Z2 × · · · × Z2 implies aperiodic monoid or cyclic group Zq, q > 2, in X. Reduction from CIRCUIT–SAT to AutoInt2(X) in both cases.

22 / 48

slide-23
SLIDE 23

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Theorem AutoInt2(X) is hard for NP for any X beyond Z2 × · · · × Z2. Proof sketch X ⊆ Z2 × · · · × Z2 implies aperiodic monoid or cyclic group Zq, q > 2, in X. Reduction from CIRCUIT–SAT to AutoInt2(X) in both cases.

23 / 48

slide-24
SLIDE 24

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Proof sketch: CIRCUIT–SAT reduces to AutoInt2(Zq) Given a circuit, we let Σ be the set of gates.

∧ ¬ ∨

Σ = {◦0, ◦1, ◦2, ∧0, ¬0, ∨0, ◦3}

24 / 48

slide-25
SLIDE 25

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Proof sketch: CIRCUIT–SAT reduces to AutoInt2(Zq) Given a circuit, we let Σ be the set of gates.

∧ ¬ ∨

Σ = {◦0, ◦1, ◦2, ∧0, ¬0, ∨0, ◦3}

25 / 48

slide-26
SLIDE 26

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Proof sketch: CIRCUIT–SAT reduces to AutoInt2(Zq) Given a circuit, we let Σ be the set of gates.

∧ ¬ ¬ ¬ ∧ ¬

Σ = {◦0, ◦1, ◦2, ∧0, ¬0, ¬1, ¬2, ∧1, ◦3}

26 / 48

slide-27
SLIDE 27

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Proof sketch: CIRCUIT–SAT reduces to AutoInt2(Zq) For each gate σ, we build automata A such that M(A) = Zq. Strategy: Occurrences of σ mod q encode assignment to σ (0 or 1), Automata verify soundness locally, Intersection represents satisfying assignments.

27 / 48

slide-28
SLIDE 28

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Proof sketch: CIRCUIT–SAT reduces to AutoInt2(Zq) For each σ ∈ Σ, we accept words w such that |w|σ ≡ 0, 1 (mod q). σ σ σ σ

Σ \ {σ} Σ \ {σ} Σ \ {σ} Σ \ {σ} Σ \ {σ}

28 / 48

slide-29
SLIDE 29

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Proof sketch: CIRCUIT–SAT reduces to AutoInt2(Zq) For output gate σ, we accept words w such that |w|σ ≡ 1 (mod q). σ σ σ σ

Σ \ {σ} Σ \ {σ} Σ \ {σ} Σ \ {σ} Σ \ {σ}

29 / 48

slide-30
SLIDE 30

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Proof sketch: CIRCUIT–SAT reduces to AutoInt2(Zq) For each ¬-gate σ with input σ′, we accept words w such that |w|σ + |w|σ′ ≡ 1 (mod q). σ, σ′ σ, σ′ σ, σ′ σ, σ′

Σ \ {σ, σ′} Σ \ {σ, σ′} Σ \ {σ, σ′} Σ \ {σ, σ′} Σ \ {σ, σ′}

30 / 48

slide-31
SLIDE 31

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Proof sketch: CIRCUIT–SAT reduces to AutoInt2(Zq) For each ∧-gate σ with inputs σ′, σ′′, we accept words w such that |w|σ′ + |w|σ′′ − 2 |w|σ ≡ 0, 1 (mod q). σ′σ′′σ σ′ ∧ σ′′ σ′ + σ′′ − 2σ 000 1 001

  • 2

010 1 1 011

  • 1

100 1 1 101

  • 1

110 2 111 1

31 / 48

slide-32
SLIDE 32

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Proof sketch: CIRCUIT–SAT reduces to AutoInt2(Zq) For each ∧-gate σ with inputs σ′, σ′′, we accept words w such that |w|σ′ + |w|σ′′ − 2 |w|σ ≡ 0, 1 (mod q). σ′σ′′σ σ′ ∧ σ′′ = σ σ′ + σ′′ − 2σ ≡ 0, 1 000 ✓ ✓ 001 ✗ ✗ 010 ✓ ✓ 011 ✗ ✗ 100 ✓ ✓ 101 ✗ ✗ 110 ✗ ✗ 111 ✓ ✓

32 / 48

slide-33
SLIDE 33

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Proof sketch: CIRCUIT–SAT reduces to AutoInt2(Zq) Problem when q = 3 since −2 ≡ 1 (mod 3). σ′σ′′σ σ′ ∧ σ′′ = σ σ′ + σ′′ − 2σ ≡ 0, 1 000 ✓ ✓ 001

  • 2

010 ✓ ✓ 011 ✗ ✗ 100 ✓ ✓ 101 ✗ ✗ 110 ✗ ✗ 111 ✓ ✓

33 / 48

slide-34
SLIDE 34

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Proof sketch: CIRCUIT–SAT reduces to AutoInt2(Zq) Problem when q = 3 since −2 ≡ 1 (mod 3). σ′σ′′σ σ′ ∧ σ′′ = σ σ′ + σ′′ − 2σ ≡ 0, 1 000 ✓ ✓ 001 ✗ ✓ 010 ✓ ✓ 011 ✗ ✗ 100 ✓ ✓ 101 ✗ ✗ 110 ✗ ✗ 111 ✓ ✓

34 / 48

slide-35
SLIDE 35

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Proof sketch: CIRCUIT–SAT reduces to AutoInt2(Zq) When q = 3, we also build |w|σ′ + |w|σ′′ − |w|σ ≡ 0, 1 (mod 3). σ′σ′′σ σ′ ∧ σ′′ σ′ + σ′′ − 2σ σ′ + σ′′ − σ 000 1 001 1 2 010 1 1 011 2 100 1 1 1 101 2 110 2 2 111 1 1

35 / 48

slide-36
SLIDE 36

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Proof sketch: CIRCUIT–SAT reduces to AutoInt2(Zq) When q = 3, we also build |w|σ′ + |w|σ′′ − |w|σ ≡ 0, 1 (mod 3). σ′σ′′σ σ′ ∧ σ′′ = σ σ′ + σ′′ − 2σ ≡ 0, 1 σ′ + σ′′ − σ ≡ 0, 1 000 ✓ ✓ ✓ 001 ✗ ✓ ✗ 010 ✓ ✓ ✓ 011 ✗ ✗ ✓ 100 ✓ ✓ ✓ 101 ✗ ✗ ✓ 110 ✗ ✗ ✗ 111 ✓ ✓ ✓

36 / 48

slide-37
SLIDE 37

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Proof sketch: CIRCUIT–SAT reduces to AutoInt2(Zq) ⇒) A satisfying assignment yields a word σb1

1 · · · σbs s

accepted by the automata. ⇐) A word w accepted by the intersection yields a sastisfying assignment σi ← |w|σi mod q.

37 / 48

slide-38
SLIDE 38

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Complexity of AutoInt1(Abelian groups) Maximum number of final states 1 2 1 with ∪2 3+ Σ = {a} L L NL NP Z2 × · · · × Z2 ⊕L ⊕L NP NP Zp × · · · × Zp ModpL NP NP NP Abelian groups ∈ NC3 NP NP NP Groups ∈ NC NP NP NP J1 ∈ AC0 NP NP NP

38 / 48

slide-39
SLIDE 39

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Definition Let A = (Ω, {σ1, . . . , σs}, δ, α, F) be an abelian group automaton. We define ΦA as:

  • v ∈ Zs

q : δ(α, σv1 1 · · · σvs s ) = α

  • where q = lcm(ord(Tσ1), . . . , ord(Tσs)).

39 / 48

slide-40
SLIDE 40

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Definition Let UA be a matrix such that its rows are a generating set for ΦA. Let U⊥

A be a matrix such that U⊥ A UT A ≡ 0 (mod q).

Lemma Let x, y ∈ Ns and w = σx1

1 · · · σxs s and w′ = σy1 1 · · · σys s , then

U⊥

A x ≡ U⊥ A y (mod q) ⇔ Tw(α) = Tw′(α).

40 / 48

slide-41
SLIDE 41

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Theorem AutoInt1(Abelian groups) ∈ NC3. Proof sketch. Let A1, . . . , Ak be the given automata. We Compute UAi and U⊥

Ai

41 / 48

slide-42
SLIDE 42

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Theorem AutoInt1(Abelian groups) ∈ NC3. Proof sketch. Let A1, . . . , Ak be the given automata. We Compute UAi and U⊥

Ai

Compute wi ∈ Σ∗ such that Twi(αi) = βi

42 / 48

slide-43
SLIDE 43

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Theorem AutoInt1(Abelian groups) ∈ NC3. Proof sketch. Let A1, . . . , Ak be the given automata. We Compute UAi and U⊥

Ai

Compute wi ∈ Σ∗ such that Twi(αi) = βi Verify ∃x, ∀i ∈ [k], such that U⊥

Aix ≡ U⊥ Ai

  

|wi|σ1 . . . |wi|σs

   (mod qi).

43 / 48

slide-44
SLIDE 44

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Complexity of AutoInt2(Z2 × · · · × Z2) Maximum number of final states 1 2 1 with ∪2 3+ Σ = {a} L L NL NP Z2 × · · · × Z2 ⊕L ⊕L NP NP Zp × · · · × Zp ModpL NP NP NP Abelian groups ∈ NC3 NP NP NP Groups ∈ NC NP NP NP J1 ∈ AC0 NP NP NP

44 / 48

slide-45
SLIDE 45

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Hint for AutoInt2(Z2 × · · · × Z2) ∈ ⊕L We can remove ∨ of such a system: Bx ≡ b (mod 2) ∨ Bx ≡ b′ (mod 2) by introducing two variables

     

· · · 1 1 B1,1 · · · B1,s b1 b′

1

. . . ... . . . . . . . . . Bm,1 · · · Bm,s bm b′

m

             

x1 . . . xm y y ′

       

     

1 . . .

     

(mod 2)

45 / 48

slide-46
SLIDE 46

Introduction Automata Intersection Problem Conclusion AutoInt2(X) is NP−complete AutoInt1(Abelian groups) ∈ NC3 AutoInt2(Z2 × · · · × Z2) is ⊕L−complete

Gap from AutoInt2(Z2) to AutoInt2(Zq) Maximum number of final states 1 2 1 with ∪2 3+ Σ = {a} L L NL NP Z2 × · · · × Z2 ⊕L ⊕L NP NP Zp × · · · × Zp ModpL NP NP NP Abelian groups ∈ NC3 NP NP NP Groups ∈ NC NP NP NP J1 ∈ AC0 NP NP NP

46 / 48

slide-47
SLIDE 47

Introduction Automata Intersection Problem Conclusion

Relationships between algebraic problems and AutoIntb(X) Extensive classification of AutoIntb Close relationship between complexity of Memb and AutoInt1 Surprising gap from AutoInt2(Z2) to AutoInt2(Z3) What is the complexity of AutoInt1(X) for other X such that Memb(X) is in between P and NP?

47 / 48

slide-48
SLIDE 48

Introduction Automata Intersection Problem Conclusion

Thank you! Merci! Danke!

48 / 48