Weight-reducing Hennie Machines and Their Descriptional Complexity 1 - - PowerPoint PPT Presentation

weight reducing hennie machines and their
SMART_READER_LITE
LIVE PREVIEW

Weight-reducing Hennie Machines and Their Descriptional Complexity 1 - - PowerPoint PPT Presentation

Introduction Results Conclusion Weight-reducing Hennie Machines and Their Descriptional Complexity 1 Daniel Pr u sa Czech Technical University in Prague International Conference on Language and Automata Theory and Applications (LATA)


slide-1
SLIDE 1

Introduction Results Conclusion

Weight-reducing Hennie Machines and Their Descriptional Complexity1

Daniel Pr˚ uˇ sa

Czech Technical University in Prague

International Conference on Language and Automata Theory and Applications (LATA) 2014

1The author was supported by the Grant Agency of the Czech Republic under the project P103/10/0783. 1 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-2
SLIDE 2

Introduction Results Conclusion

Outline

1

Introduction Descriptional complexity of automata Hennie machine Weight-reducing property

2

Results Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

3

Conclusion

2 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-3
SLIDE 3

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Regular languages and finite automata

Basic model: One-way deterministic finite-state automaton (1DFA). Extensions: Nondeterminism (1NFA), alternation (1AFA). Two-way movement (2DFA, 2NFA). Usage of a pebble (2DPA). All the models equal in power, however, they differ in succinctness of their descriptions.

3 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-4
SLIDE 4

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Regular languages and finite automata

Basic model: One-way deterministic finite-state automaton (1DFA). Extensions: Nondeterminism (1NFA), alternation (1AFA). Two-way movement (2DFA, 2NFA). Usage of a pebble (2DPA). All the models equal in power, however, they differ in succinctness of their descriptions.

3 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-5
SLIDE 5

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Size of automata description

Number of states – frequently studied measure (for example: 1DFA needs 2n states to simulate 1NFA in the worst case). Number of transitions – better suits our purposes. Theorem ([Shannon 1956]) Each Turing machine has an equivalent with only two active states.

4 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-6
SLIDE 6

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Size of automata description

Number of states – frequently studied measure (for example: 1DFA needs 2n states to simulate 1NFA in the worst case). Number of transitions – better suits our purposes. Theorem ([Shannon 1956]) Each Turing machine has an equivalent with only two active states.

4 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-7
SLIDE 7

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Hennie machine

Bounded, single-tape Turing machine. ⊢ a1 a2 a3 a4 a5 a6 ⊣ The number of transitions performed over every tape field limited by a constant k. Theorem ([Hennie 1965]) Each language accepted by a Hennie machine is regular language. The condition can be further relaxed: Linear time [Hennie 1965]. O(n log n) time [Hartmanis 1968].

5 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-8
SLIDE 8

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Hennie machine

Bounded, single-tape Turing machine. ⊢ a1 a2 a3 a4 a5 a6 ⊣ The number of transitions performed over every tape field limited by a constant k. Theorem ([Hennie 1965]) Each language accepted by a Hennie machine is regular language. The condition can be further relaxed: Linear time [Hennie 1965]. O(n log n) time [Hartmanis 1968].

5 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-9
SLIDE 9

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Hennie machine

Bounded, single-tape Turing machine. ⊢ a1 a2 a3 a4 a5 a6 ⊣ The number of transitions performed over every tape field limited by a constant k. Theorem ([Hennie 1965]) Each language accepted by a Hennie machine is regular language. The condition can be further relaxed: Linear time [Hennie 1965]. O(n log n) time [Hartmanis 1968].

5 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-10
SLIDE 10

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Hennie machine - properties

Nonrecursive trade-off with respect to 1DFA: Let c(n) be the cost of the optimal simulation of Hennie machine by 1DFA. c(n) is not bounded by any recursive function. Nonconstructive: Given a Turing machine T, it is undecidable if T is a Hennie machine.

6 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-11
SLIDE 11

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Hennie machine - properties

Nonrecursive trade-off with respect to 1DFA: Let c(n) be the cost of the optimal simulation of Hennie machine by 1DFA. c(n) is not bounded by any recursive function. Nonconstructive: Given a Turing machine T, it is undecidable if T is a Hennie machine.

6 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-12
SLIDE 12

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Our goal

1

Propose a constructive variant of Hennie machine.

2

Study the descriptional complexity of the model.

7 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-13
SLIDE 13

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Weight-reducing property

Weight function defined on working symbols: µ : Γ → N Each transition has to decrease the weight of the scanned symbol ⇒ the bound k is incorporated in Γ (k ≤ |Γ|). a a a µ(b) < µ(a) Sgraffito automaton [Prusa and Mraz 2012] - 2D automaton for recognition of picture languages, the same principle applied.

8 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-14
SLIDE 14

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Weight-reducing property

Weight function defined on working symbols: µ : Γ → N Each transition has to decrease the weight of the scanned symbol ⇒ the bound k is incorporated in Γ (k ≤ |Γ|). b a a µ(b) < µ(a) Sgraffito automaton [Prusa and Mraz 2012] - 2D automaton for recognition of picture languages, the same principle applied.

8 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-15
SLIDE 15

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Weight-reducing property

Weight function defined on working symbols: µ : Γ → N Each transition has to decrease the weight of the scanned symbol ⇒ the bound k is incorporated in Γ (k ≤ |Γ|). b a a µ(b) < µ(a) Sgraffito automaton [Prusa and Mraz 2012] - 2D automaton for recognition of picture languages, the same principle applied.

8 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-16
SLIDE 16

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Formal definition of weight-reducing Hennie machine

M = (Q, Σ, Γ, δ, q0, QF, µ), where Σ is an input alphabet Γ is a working alphabet, Γ ⊇ Σ, Γ ∩ {⊢, ⊣} = ∅ Q is a finite, non-empty set of states q0 is the initial state, q0 ∈ Q QF is the set of final states, QF ⊆ Q µ a weight function, µ : Γ → N δ a transition relation, δ : (Q \ QF) × (Γ ∪ {⊢, ⊣}) → 2Q×(Γ∪{⊢,⊣})×{←,0,→}

each transition over the input is weight-reducing

(q′, a′, d)∈δ(q, a) ⇒ µ(a′)<µ(a) for all q, q′ ∈ Q, d ∈ {←, 0, →}, a, a′∈ Γ

automaton is bounded

9 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-17
SLIDE 17

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Formal definition of weight-reducing Hennie machine

M = (Q, Σ, Γ, δ, q0, QF, µ), where Σ is an input alphabet Γ is a working alphabet, Γ ⊇ Σ, Γ ∩ {⊢, ⊣} = ∅ Q is a finite, non-empty set of states q0 is the initial state, q0 ∈ Q QF is the set of final states, QF ⊆ Q µ a weight function, µ : Γ → N δ a transition relation, δ : (Q \ QF) × (Γ ∪ {⊢, ⊣}) → 2Q×(Γ∪{⊢,⊣})×{←,0,→}

each transition over the input is weight-reducing

(q′, a′, d)∈δ(q, a) ⇒ µ(a′)<µ(a) for all q, q′ ∈ Q, d ∈ {←, 0, →}, a, a′∈ Γ

automaton is bounded

9 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-18
SLIDE 18

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Formal definition of weight-reducing Hennie machine

M = (Q, Σ, Γ, δ, q0, QF, µ), where Σ is an input alphabet Γ is a working alphabet, Γ ⊇ Σ, Γ ∩ {⊢, ⊣} = ∅ Q is a finite, non-empty set of states q0 is the initial state, q0 ∈ Q QF is the set of final states, QF ⊆ Q µ a weight function, µ : Γ → N δ a transition relation, δ : (Q \ QF) × (Γ ∪ {⊢, ⊣}) → 2Q×(Γ∪{⊢,⊣})×{←,0,→}

each transition over the input is weight-reducing

(q′, a′, d)∈δ(q, a) ⇒ µ(a′)<µ(a) for all q, q′ ∈ Q, d ∈ {←, 0, →}, a, a′∈ Γ

automaton is bounded

9 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-19
SLIDE 19

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Formal definition of weight-reducing Hennie machine

M = (Q, Σ, Γ, δ, q0, QF, µ), where Σ is an input alphabet Γ is a working alphabet, Γ ⊇ Σ, Γ ∩ {⊢, ⊣} = ∅ Q is a finite, non-empty set of states q0 is the initial state, q0 ∈ Q QF is the set of final states, QF ⊆ Q µ a weight function, µ : Γ → N δ a transition relation, δ : (Q \ QF) × (Γ ∪ {⊢, ⊣}) → 2Q×(Γ∪{⊢,⊣})×{←,0,→}

each transition over the input is weight-reducing

(q′, a′, d)∈δ(q, a) ⇒ µ(a′)<µ(a) for all q, q′ ∈ Q, d ∈ {←, 0, →}, a, a′∈ Γ

automaton is bounded

9 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-20
SLIDE 20

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Formal definition of weight-reducing Hennie machine

M = (Q, Σ, Γ, δ, q0, QF, µ), where Σ is an input alphabet Γ is a working alphabet, Γ ⊇ Σ, Γ ∩ {⊢, ⊣} = ∅ Q is a finite, non-empty set of states q0 is the initial state, q0 ∈ Q QF is the set of final states, QF ⊆ Q µ a weight function, µ : Γ → N δ a transition relation, δ : (Q \ QF) × (Γ ∪ {⊢, ⊣}) → 2Q×(Γ∪{⊢,⊣})×{←,0,→}

each transition over the input is weight-reducing

(q′, a′, d)∈δ(q, a) ⇒ µ(a′)<µ(a) for all q, q′ ∈ Q, d ∈ {←, 0, →}, a, a′∈ Γ

automaton is bounded

9 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-21
SLIDE 21

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Conversion to a weight-reducing Hennie machine

Theorem Let M = (Q, Σ, Γ, δ, q0, QF) be a Hennie machine with the number of transions performed over a tape field by k. There is a weight-reducing Hennie machine A such that L(A) = L(M) and the working alphabet of A has no more than (k + 1)|Γ| symbols. If M is deterministic, then A is deterministic as well. Focus on deterministic weight-reducing (det-wr) Hennie machines.

10 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-22
SLIDE 22

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Conversion to a weight-reducing Hennie machine

Theorem Let M = (Q, Σ, Γ, δ, q0, QF) be a Hennie machine with the number of transions performed over a tape field by k. There is a weight-reducing Hennie machine A such that L(A) = L(M) and the working alphabet of A has no more than (k + 1)|Γ| symbols. If M is deterministic, then A is deterministic as well. Focus on deterministic weight-reducing (det-wr) Hennie machines.

10 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-23
SLIDE 23

Introduction Results Conclusion Descriptional complexity of automata Hennie machine Weight-reducing property

Conversion to a weight-reducing Hennie machine

Theorem Let M = (Q, Σ, Γ, δ, q0, QF) be a Hennie machine with the number of transions performed over a tape field by k. There is a weight-reducing Hennie machine A such that L(A) = L(M) and the working alphabet of A has no more than (k + 1)|Γ| symbols. If M is deterministic, then A is deterministic as well. Focus on deterministic weight-reducing (det-wr) Hennie machines.

10 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-24
SLIDE 24

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Comparison with 1DFA

Theorem Each n-state m-working symbol det-wr Hennie machine can be simulated by a 1DFA with 22O(m log n) states. Take crossing sequences of a Hennie machine as states of 1NFA, convert it to 1DFA. Theorem For each integer n ≥ 1, there is a language Bn such that Bn is accepted by a det-wr Hennie machine with O(1) states and O(n) working symbols, A 1DFA requires at least 22n states to accept Bn.

11 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-25
SLIDE 25

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Comparison with 1DFA

Theorem Each n-state m-working symbol det-wr Hennie machine can be simulated by a 1DFA with 22O(m log n) states. Take crossing sequences of a Hennie machine as states of 1NFA, convert it to 1DFA. Theorem For each integer n ≥ 1, there is a language Bn such that Bn is accepted by a det-wr Hennie machine with O(1) states and O(n) working symbols, A 1DFA requires at least 22n states to accept Bn.

11 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-26
SLIDE 26

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Comparison with 1DFA

Theorem Each n-state m-working symbol det-wr Hennie machine can be simulated by a 1DFA with 22O(m log n) states. Take crossing sequences of a Hennie machine as states of 1NFA, convert it to 1DFA. Theorem For each integer n ≥ 1, there is a language Bn such that Bn is accepted by a det-wr Hennie machine with O(1) states and O(n) working symbols, A 1DFA requires at least 22n states to accept Bn.

11 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-27
SLIDE 27

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Languages Bn

Bn over Σ = {0, 1, $}, consists of strings v1$v2$ . . . $vj, where j ≥ 2, each vi ∈ {0, 1}∗, |vj| ≤ n there is ℓ < j such that vℓ = vj 11$011$10110$011 ∈ B3, B4, . . . 1DFA needs Ω(22n) states. Apply Myhill-Nerode theorem. There are 22n subsets of {0, 1}n. 000$001$101$111$001 ∈ B3 000$010$101$111$001 / ∈ B3 $001 is a distinguishing extension

12 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-28
SLIDE 28

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Languages Bn

Bn over Σ = {0, 1, $}, consists of strings v1$v2$ . . . $vj, where j ≥ 2, each vi ∈ {0, 1}∗, |vj| ≤ n there is ℓ < j such that vℓ = vj 11$011$10110$011 ∈ B3, B4, . . . 1DFA needs Ω(22n) states. Apply Myhill-Nerode theorem. There are 22n subsets of {0, 1}n. 000$001$101$111$001 ∈ B3 000$010$101$111$001 / ∈ B3 $001 is a distinguishing extension

12 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-29
SLIDE 29

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Languages Bn

Bn over Σ = {0, 1, $}, consists of strings v1$v2$ . . . $vj, where j ≥ 2, each vi ∈ {0, 1}∗, |vj| ≤ n there is ℓ < j such that vℓ = vj 11$011$10110$011 ∈ B3, B4, . . . 1DFA needs Ω(22n) states. Apply Myhill-Nerode theorem. There are 22n subsets of {0, 1}n. 000$001$101$111$001 ∈ B3 000$010$101$111$001 / ∈ B3 $001 is a distinguishing extension

12 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-30
SLIDE 30

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Simulation of 1NFA

Theorem Each n-state 1NFA can be simulated by a det-wr Hennie machine with the number of transitions polynomial in n. ⇒ Efficient elimination of nondeterminism by two-way motion and restricted rewriting. Problem ([Sakoda and Sipser 1978]) What is the cost, in terms of states, of the optimal simulation of 1NFA by 2DFA 2NFA by 2DFA Conjecture: the trade-offs are exponential

13 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-31
SLIDE 31

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Simulation of 1NFA

Theorem Each n-state 1NFA can be simulated by a det-wr Hennie machine with the number of transitions polynomial in n. ⇒ Efficient elimination of nondeterminism by two-way motion and restricted rewriting. Problem ([Sakoda and Sipser 1978]) What is the cost, in terms of states, of the optimal simulation of 1NFA by 2DFA 2NFA by 2DFA Conjecture: the trade-offs are exponential

13 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-32
SLIDE 32

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Simulation of 1NFA

Theorem Each n-state 1NFA can be simulated by a det-wr Hennie machine with the number of transitions polynomial in n. ⇒ Efficient elimination of nondeterminism by two-way motion and restricted rewriting. Problem ([Sakoda and Sipser 1978]) What is the cost, in terms of states, of the optimal simulation of 1NFA by 2DFA 2NFA by 2DFA Conjecture: the trade-offs are exponential

13 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-33
SLIDE 33

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Simulation of 1NFA

Theorem Each n-state 1NFA can be simulated by a det-wr Hennie machine with the number of transitions polynomial in n. ⇒ Efficient elimination of nondeterminism by two-way motion and restricted rewriting. Problem ([Sakoda and Sipser 1978]) What is the cost, in terms of states, of the optimal simulation of 1NFA by 2DFA 2NFA by 2DFA Conjecture: the trade-offs are exponential

13 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-34
SLIDE 34

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Simulation of 1NFA

Given an n-state 1NFA and an input w ∈ Σ∗.

  • 1. |w| ≥ n.

Enough space to record states reachable by 1NFA on the tape. Blocks of length n, each used to simulate 1NFA when computing inside the block.

1 q1 1 1 q2 q3 q4

14 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-35
SLIDE 35

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Simulation of 1NFA

Given an n-state 1NFA and an input w ∈ Σ∗.

  • 1. |w| ≥ n.

Enough space to record states reachable by 1NFA on the tape. Blocks of length n, each used to simulate 1NFA when computing inside the block.

1 q1 1 1 q2 q3 q4

14 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-36
SLIDE 36

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Simulation of 1NFA

Given an n-state 1NFA and an input w ∈ Σ∗.

  • 1. |w| ≥ n.

Enough space to record states reachable by 1NFA on the tape. Blocks of length n, each used to simulate 1NFA when computing inside the block.

1 q1 1 1 q2 q3 q4

14 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-37
SLIDE 37

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Simulation of 1NFA

  • 2. |w| < n.

Undirected s-t connectivity problem.

1 2 3 4 q1 q2 q3 q4

Solvable by a deterministic logarithmic-space algorithm [Reingold 2008]. O(log n) space simulated in states of det-wr Hennie machine.

15 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-38
SLIDE 38

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Simulation of 1NFA

  • 2. |w| < n.

Undirected s-t connectivity problem.

1 2 3 4 q1 q2 q3 q4

Solvable by a deterministic logarithmic-space algorithm [Reingold 2008]. O(log n) space simulated in states of det-wr Hennie machine.

15 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-39
SLIDE 39

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Simulation of 1NFA

  • 2. |w| < n.

Undirected s-t connectivity problem.

1 2 3 4 q1 q2 q3 q4

Solvable by a deterministic logarithmic-space algorithm [Reingold 2008]. O(log n) space simulated in states of det-wr Hennie machine.

15 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-40
SLIDE 40

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

det-wr Hennie machine → 2NFA (trade-off)

Theorem ([Kari and Moore 2001]) Let L be a finite unary language accepted by a 2NFA with n

  • states. The longest string in L has length at most n + 2.

Un = {a2n}, n ≥ 1 Each 2NFA accepting Un has Ω(2n) states. There is a det-wr Hennie machine with O(n) states and O(n) working symbols (i.e., O(n2) transitions) accepting Un, yielding a 2Ω(√n) trade-off.

16 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-41
SLIDE 41

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

det-wr Hennie machine → 2NFA (trade-off)

Theorem ([Kari and Moore 2001]) Let L be a finite unary language accepted by a 2NFA with n

  • states. The longest string in L has length at most n + 2.

Un = {a2n}, n ≥ 1 Each 2NFA accepting Un has Ω(2n) states. There is a det-wr Hennie machine with O(n) states and O(n) working symbols (i.e., O(n2) transitions) accepting Un, yielding a 2Ω(√n) trade-off.

16 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-42
SLIDE 42

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

det-wr Hennie machine → 2NFA (trade-off)

Theorem ([Kari and Moore 2001]) Let L be a finite unary language accepted by a 2NFA with n

  • states. The longest string in L has length at most n + 2.

Un = {a2n}, n ≥ 1 Each 2NFA accepting Un has Ω(2n) states. There is a det-wr Hennie machine with O(n) states and O(n) working symbols (i.e., O(n2) transitions) accepting Un, yielding a 2Ω(√n) trade-off.

16 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-43
SLIDE 43

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

det-wr Hennie machine → 2NFA (trade-off)

Theorem ([Kari and Moore 2001]) Let L be a finite unary language accepted by a 2NFA with n

  • states. The longest string in L has length at most n + 2.

Un = {a2n}, n ≥ 1 Each 2NFA accepting Un has Ω(2n) states. There is a det-wr Hennie machine with O(n) states and O(n) working symbols (i.e., O(n2) transitions) accepting Un, yielding a 2Ω(√n) trade-off.

16 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-44
SLIDE 44

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Recognition of Un

Binary counter of length n used, initialized by n. Repeatedly incremented and shifted by one field to the right. Position of the right end checked when 2n − 1 is reached. 1 1 a a a a a start: a a a a 1 1 1 a end:

17 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-45
SLIDE 45

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Simulation of 2NFA

2NFA with n states, input w. Similar approach as in the case of 1NFA can be applied. |w| < n : STCON problem (directed s-t connectivity) - deterministically in space O(log2 n) |w| ≥ n : O(n2) steps of 2NFA to be simulated in each block of length n ⇒ det-wr Hennie machine with O(nlog n) states Relation to 1AFA: Theorem ([Birget 1993]) Each n-state 2NFA can be simulated by a n2-state 1AFA.

18 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-46
SLIDE 46

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Simulation of 2NFA

2NFA with n states, input w. Similar approach as in the case of 1NFA can be applied. |w| < n : STCON problem (directed s-t connectivity) - deterministically in space O(log2 n) |w| ≥ n : O(n2) steps of 2NFA to be simulated in each block of length n ⇒ det-wr Hennie machine with O(nlog n) states Relation to 1AFA: Theorem ([Birget 1993]) Each n-state 2NFA can be simulated by a n2-state 1AFA.

18 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-47
SLIDE 47

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Simulation of 2NFA

2NFA with n states, input w. Similar approach as in the case of 1NFA can be applied. |w| < n : STCON problem (directed s-t connectivity) - deterministically in space O(log2 n) |w| ≥ n : O(n2) steps of 2NFA to be simulated in each block of length n ⇒ det-wr Hennie machine with O(nlog n) states Relation to 1AFA: Theorem ([Birget 1993]) Each n-state 2NFA can be simulated by a n2-state 1AFA.

18 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-48
SLIDE 48

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Simulation of 2NFA

2NFA with n states, input w. Similar approach as in the case of 1NFA can be applied. |w| < n : STCON problem (directed s-t connectivity) - deterministically in space O(log2 n) |w| ≥ n : O(n2) steps of 2NFA to be simulated in each block of length n ⇒ det-wr Hennie machine with O(nlog n) states Relation to 1AFA: Theorem ([Birget 1993]) Each n-state 2NFA can be simulated by a n2-state 1AFA.

18 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-49
SLIDE 49

Introduction Results Conclusion Comparison with 1DFA Comparison with 1NFA Comparison with 2NFA Comparison with 2DPA

Simulation of deterministic one-pebble automata

Theorem Each deterministic one-pebble n-state automaton can be simulated by a det-wr Hennie machine with O(n6) transitions.

19 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-50
SLIDE 50

Introduction Results Conclusion

Results summary

1

det-wr Hennie machine → 1DFA:

double exponential trade-off (like in the case of 1AFA or 2DPA)

2

1NFA, 2DPA → det-wr Hennie machine:

polynomial trade-off

3

det-wr Hennie machine → 2NFA: 2Ω(√n)

4

2NFA → det-wr Hennie machine: O(nlog n)

20 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-51
SLIDE 51

Introduction Results Conclusion

Results summary

1

det-wr Hennie machine → 1DFA:

double exponential trade-off (like in the case of 1AFA or 2DPA)

2

1NFA, 2DPA → det-wr Hennie machine:

polynomial trade-off

3

det-wr Hennie machine → 2NFA: 2Ω(√n)

4

2NFA → det-wr Hennie machine: O(nlog n)

20 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-52
SLIDE 52

Introduction Results Conclusion

Results summary

1

det-wr Hennie machine → 1DFA:

double exponential trade-off (like in the case of 1AFA or 2DPA)

2

1NFA, 2DPA → det-wr Hennie machine:

polynomial trade-off

3

det-wr Hennie machine → 2NFA: 2Ω(√n)

4

2NFA → det-wr Hennie machine: O(nlog n)

20 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-53
SLIDE 53

Introduction Results Conclusion

Results summary

1

det-wr Hennie machine → 1DFA:

double exponential trade-off (like in the case of 1AFA or 2DPA)

2

1NFA, 2DPA → det-wr Hennie machine:

polynomial trade-off

3

det-wr Hennie machine → 2NFA: 2Ω(√n)

4

2NFA → det-wr Hennie machine: O(nlog n)

20 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines

slide-54
SLIDE 54

Introduction Results Conclusion

Thank you!

21 / 21 Daniel Pr˚ uˇ sa Weight-reducing Hennie Machines