Asymptotics of minimal deterministic finite automata recognizing a - - PowerPoint PPT Presentation

asymptotics of minimal deterministic finite automata
SMART_READER_LITE
LIVE PREVIEW

Asymptotics of minimal deterministic finite automata recognizing a - - PowerPoint PPT Presentation

Compacted Binary Trees Asymptotics of minimal deterministic finite automata recognizing a finite binary language AofA 2020 Andrew Elvey Price, Wenjie Fang, and Michael Wallner Institut Denis-Poisson, Universit e de Tours, France September,


slide-1
SLIDE 1

Compacted Binary Trees

Asymptotics of minimal deterministic finite automata recognizing a finite binary language

AofA 2020 Andrew Elvey Price, Wenjie Fang, and Michael Wallner

Institut Denis-Poisson, Universit´ e de Tours, France

September, 2020

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 1 / 22

slide-2
SLIDE 2

Compacted Binary Trees | What is a DFA?

What is a DFA?

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 2 / 22

slide-3
SLIDE 3

Compacted Binary Trees | What is a DFA?

Deterministic finite automata (DFA)

DFA on alphabet {a, b}

Graph with two outgoing edges from each node (state), labelled a and b An initial state q0 A set F of final states (coloured green).

q0 q1 q2 q3 q4 a a a a a b b b b b

Figure: A DFA.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 3 / 22

slide-4
SLIDE 4

Compacted Binary Trees | What is a DFA?

Deterministic finite automata (DFA)

DFA on alphabet {a, b}

Graph with two outgoing edges from each node (state), labelled a and b An initial state q0 A set F of final states (coloured green).

Properties

Language: the set of accepted words Minimal: no DFA with fewer states accepts the same language Acyclic: no cycles (except loops at unique sink)

q0 q1 q2 q3 q4 a a a a a b b b b b

Figure: A DFA. This is the minimal DFA recognising the language {aa, aab, ab, b, bb}.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 3 / 22

slide-5
SLIDE 5

Compacted Binary Trees | What is a DFA?

Counting minimal acyclic DFAs

This work: Asymptotics of the numbers mn of minimal, acyclic DFAs on a binary alphabet with n + 1 nodes. Studied by Domaratzki, Kisman, Shallit and Liskovets between 2002 and 2006 Best bounds were out by an exponential factor We gave upper and lower bounds differing by a Θ(n1/4) factor, by relating the DFAs to compacted trees.

q0 q1 q2 q3 q4 a a a a a b b b b b

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 4 / 22

slide-6
SLIDE 6

Compacted Binary Trees | Main result

Main result

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 5 / 22

slide-7
SLIDE 7

Compacted Binary Trees | Main result

Main result – A stretched exponential appears

Theorem

The number mn of minimal DFAs recognising a finite binary for n → ∞ mn = Θ

  • n! 8ne3a1n1/3n7/8

, where a1 ≈ −2.3381 is the largest root of the Airy function Ai(x) = 1

π

∞ cos

  • t3

3 + xt

  • dt.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 6 / 22

slide-8
SLIDE 8

Compacted Binary Trees | Main result

Main result – A stretched exponential appears

Theorem

The number mn of minimal DFAs recognising a finite binary for n → ∞ mn = Θ

  • n! 8ne3a1n1/3n7/8

, where a1 ≈ −2.3381 is the largest root of the Airy function Ai(x) = 1

π

∞ cos

  • t3

3 + xt

  • dt.

Conjecture

Experimentally we find mn ∼ γn!8ne3a1n1/3n7/8, where γ ≈ 76.438160702.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 6 / 22

slide-9
SLIDE 9

Compacted Binary Trees | Main result

What is the Airy function?

Properties

Ai(x) = 1

π

∞ cos

  • t3

3 + xt

  • dt

Largest root a1 ≈ −2.3381 limx→∞ Ai(x) = 0 Also defined by Ai′′(x) = xAi(x) [Banderier, Flajolet, Schaeffer, Soria 2001]: Random Maps [Flajolet, Louchard 2001]: Brownian excursion area

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 7 / 22

slide-10
SLIDE 10

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 8 / 22

slide-11
SLIDE 11

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

q0 a a a a a a a b b b b b b b a, b

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 9 / 22

slide-12
SLIDE 12

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

a a a a b b b b a, b q0 a a a b b b

Highlight spanning tree given by depth first search (ignoring the sink) I.e., Black path to each vertex is first in lexicographic order Colour other edges red Draw as a binary tree with a edges pointing left and b edges pointing right

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 9 / 22

slide-13
SLIDE 13

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

q0 a a a a a a a b b b b b b b a, b

Highlight spanning tree given by depth first search (ignoring the sink) I.e., Black path to each vertex is first in lexicographic order Colour other edges red Draw as a binary tree with a edges pointing left and b edges pointing right

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 9 / 22

slide-14
SLIDE 14

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

q0 a a a a a a a b b b b b b b a, b

Highlight spanning tree given by depth first search (ignoring the sink) I.e., Black path to each vertex is first in lexicographic order Colour other edges red Draw as a binary tree with a edges pointing left and b edges pointing right

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 9 / 22

slide-15
SLIDE 15

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

2 3 4 5 6 7 8 1

Label nodes in post-order. By construction red edges point from a larger number to a smaller number → Label pointers

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 9 / 22

slide-16
SLIDE 16

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

2 3 4 5 6 7 8 1 6 3 5 1 3 1 1

Label nodes in post-order. By construction red edges point from a larger number to a smaller number → Label pointers

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 9 / 22

slide-17
SLIDE 17

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

2 3 4 5 6 7 8 1 6 3 5 1 3 1 1 1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 9 / 22

slide-18
SLIDE 18

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

2 3 4 5 6 7 8 1 6 3 5 1 3 1 1 1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

When the tree traversal... goes up: add up step with colour matching the corresponding node. passes a pointer:

add horizontal step mark box corresponding to pointer label

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 9 / 22

slide-19
SLIDE 19

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

2 3 4 5 6 7 8 1 6 3 5 1 3 1 1 1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

When the tree traversal... goes up: add up step with colour matching the corresponding node. passes a pointer:

add horizontal step mark box corresponding to pointer label

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 9 / 22

slide-20
SLIDE 20

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

2 3 4 5 6 7 8 1 6 3 5 1 3 1 1 1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

When the tree traversal... goes up: add up step with colour matching the corresponding node. passes a pointer:

add horizontal step mark box corresponding to pointer label

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 9 / 22

slide-21
SLIDE 21

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

2 3 4 5 6 7 8 1 6 3 5 1 3 1 1 1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

When the tree traversal... goes up: add up step with colour matching the corresponding node. passes a pointer:

add horizontal step mark box corresponding to pointer label

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 9 / 22

slide-22
SLIDE 22

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

2 3 4 5 6 7 8 1 6 3 5 1 3 1 1 1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

When the tree traversal... goes up: add up step with colour matching the corresponding node. passes a pointer:

add horizontal step mark box corresponding to pointer label

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 9 / 22

slide-23
SLIDE 23

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

2 3 4 5 6 7 8 1 6 3 5 1 3 1 1 1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

When the tree traversal... goes up: add up step with colour matching the corresponding node. passes a pointer:

add horizontal step mark box corresponding to pointer label

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 9 / 22

slide-24
SLIDE 24

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

2 3 4 5 6 7 8 1 6 3 5 1 3 1 1 1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

When the tree traversal... goes up: add up step with colour matching the corresponding node. passes a pointer:

add horizontal step mark box corresponding to pointer label

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 9 / 22

slide-25
SLIDE 25

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

2 3 4 5 6 7 8 1 6 3 5 1 3 1 1 1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

When the tree traversal... goes up: add up step with colour matching the corresponding node. passes a pointer:

add horizontal step mark box corresponding to pointer label

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 9 / 22

slide-26
SLIDE 26

Compacted Binary Trees | Bijection to decorated paths

Bijection to decorated paths

2 3 4 5 6 7 8 1 6 3 5 1 3 1 1 1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

When the tree traversal... goes up: add up step with colour matching the corresponding node. passes a pointer:

add horizontal step mark box corresponding to pointer label

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 9 / 22

slide-27
SLIDE 27

Compacted Binary Trees | Bijection to decorated paths

Decorated paths

1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

Path starts at (−1, 0) and ends at (n, n) Path stays below diagonal (after first step) One box is marked below each horizontal step Each vertical step is coloured white or green By the bijection: The number of these paths is the number dn of acyclic DFAs with n + 1 nodes.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 10 / 22

slide-28
SLIDE 28

Compacted Binary Trees | Bijection to decorated paths

Decorated paths

1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

Recurrence: Denote by an,m the number of paths ending at (n, m). an,m = 2an,m−1 + (m + 1)an−1,m, for n ≥ m a−1,0 = 1. By the bijection: dn = an,n is the number of acyclic DFAs with n + 1 nodes. What about minimality?

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 10 / 22

slide-29
SLIDE 29

Compacted Binary Trees | Bijection to decorated paths

Decorated paths

1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

Recurrence: Denote by an,m the number of paths ending at (n, m). an,m = 2an,m−1 + (m + 1)an−1,m, for n ≥ m a−1,0 = 1. By the bijection: dn = an,n is the number of acyclic DFAs with n + 1 nodes. What about minimality?

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 10 / 22

slide-30
SLIDE 30

Compacted Binary Trees | Bijection to decorated paths

Minimal acyclic DFAs

2 3 4 5 6 7 8 1 6 3 5 1 3 1 1 1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

For the DFA to be minimal, no state can be equivalent to a previous state:

  • nly possible if the new node is a leaf.

If leaf is labelled m + 1, then m choices of pointer labels and state colour must be avoided. Leaf corresponds to → → ↑ in path.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 11 / 22

slide-31
SLIDE 31

Compacted Binary Trees | Bijection to decorated paths

Minimal acyclic DFAs

2 3 4 5 6 7 8 1 6 3 5 1 1 1 1 1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

Not Minimal!

For the DFA to be minimal, no state can be equivalent to a previous state:

  • nly possible if the new node is a leaf.

If leaf is labelled m + 1, then m choices of pointer labels and state colour must be avoided. Leaf corresponds to → → ↑ in path.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 11 / 22

slide-32
SLIDE 32

Compacted Binary Trees | Bijection to decorated paths

Minimal acyclic DFAs

2 3 5 6 7 8 1 6 3 5 1 1 1 1 1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

Not Minimal!

4

For the DFA to be minimal, no state can be equivalent to a previous state:

  • nly possible if the new node is a leaf.

If leaf is labelled m + 1, then m choices of pointer labels and state colour must be avoided. Leaf corresponds to → → ↑ in path.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 11 / 22

slide-33
SLIDE 33

Compacted Binary Trees | Bijection to decorated paths

Minimal acyclic DFAs

2 3 5 6 7 8 1 6 3 5 2 1 1 1 1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

Not Minimal!

4

For the DFA to be minimal, no state can be equivalent to a previous state:

  • nly possible if the new node is a leaf.

If leaf is labelled m + 1, then m choices of pointer labels and state colour must be avoided. Leaf corresponds to → → ↑ in path.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 11 / 22

slide-34
SLIDE 34

Compacted Binary Trees | Bijection to decorated paths

Minimal acyclic DFAs

2 3 4 5 6 7 8 1 6 3 5 1 3 1 1 1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

For the DFA to be minimal, no state can be equivalent to a previous state:

  • nly possible if the new node is a leaf.

If leaf is labelled m + 1, then m choices of pointer labels and state colour must be avoided. Leaf corresponds to → → ↑ in path.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 11 / 22

slide-35
SLIDE 35

Compacted Binary Trees | Bijection to decorated paths

Recurrence for minimal DFAs

1 2 3 4 5 6 7 8

(0, 0) (−1, 0) (7, 7)

2a 2b 4a 4b 6a 6b 7b 3a

Recurrence: Denote by bn,m the number of paths ending at (n, m). bn,m = 2bn,m−1 + (m + 1)bn−1,m − mbn−2,m−1, for n ≥ m, b−1,0 = 1. By the bijection: mn = bn,n is the number of minimal acyclic DFAs with n + 1 nodes.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 12 / 22

slide-36
SLIDE 36

Compacted Binary Trees | Bijection to decorated paths

Transforming recurrence for minimal DFAs

Recurrence: Denote by bn,m the number of paths ending at (n, m). bn,m = 2bn,m−1 + (m + 1)bn−1,m − mbn−2,m−1, for n ≥ m, b−1,0 = 1. By the bijection: mn = bn,n is the number of minimal acyclic DFAs with n + 1 nodes. Transformation: Define en,m by en+m,n−m = 1 n!2m−1 bn,m. New recurrence: en,m = n − m + 2 n + m en−1,m−1 + en−1,m+1 − n − m (n + m)(n + m − 2)en−3,m−1. Now mn = n!2n−1e2n,0. Weights are now closer to 1, and steps (now ր and ց) always increase n.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 13 / 22

slide-37
SLIDE 37

Compacted Binary Trees | Bijection to decorated paths

Transforming recurrence for minimal DFAs

Recurrence: Denote by bn,m the number of paths ending at (n, m). bn,m = 2bn,m−1 + (m + 1)bn−1,m − mbn−2,m−1, for n ≥ m, b−1,0 = 1. By the bijection: mn = bn,n is the number of minimal acyclic DFAs with n + 1 nodes. Transformation: Define en,m by en+m,n−m = 1 n!2m−1 bn,m. New recurrence: en,m = n − m + 2 n + m en−1,m−1 + en−1,m+1 − n − m (n + m)(n + m − 2)en−3,m−1. Now mn = n!2n−1e2n,0. Weights are now closer to 1, and steps (now ր and ց) always increase n.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 13 / 22

slide-38
SLIDE 38

Compacted Binary Trees | Bijection to decorated paths

Transforming recurrence for minimal DFAs

Recurrence: Denote by bn,m the number of paths ending at (n, m). bn,m = 2bn,m−1 + (m + 1)bn−1,m − mbn−2,m−1, for n ≥ m, b−1,0 = 1. By the bijection: mn = bn,n is the number of minimal acyclic DFAs with n + 1 nodes. Transformation: Define en,m by en+m,n−m = 1 n!2m−1 bn,m. New recurrence: en,m = n − m + 2 n + m en−1,m−1 + en−1,m+1 − n − m (n + m)(n + m − 2)en−3,m−1. Now mn = n!2n−1e2n,0. Weights are now closer to 1, and steps (now ր and ց) always increase n.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 13 / 22

slide-39
SLIDE 39

Compacted Binary Trees | Heuristics

Heuristics

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 14 / 22

slide-40
SLIDE 40

Compacted Binary Trees | Heuristics

Heuristics

We want to understand en,m for large n.

20 40 60 80 100 5.0×1022 1.0×1023 1.5×1023

en,m m

200 400 600 800 1000 5.0×10281 1.0×10282 1.5×10282 2.0×10282

en,m m

Figure: Plots of en,m against m + 1. Left: n = 100, Right: n = 1000

Let’s zoom in to the left (small m) where interesting things are happening. It seems to be converging to something... Guess: en,m ≈ h(n)f m + 1 g(n)

  • . Moreover, we guess g(n) =

3

√n.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 15 / 22

slide-41
SLIDE 41

Compacted Binary Trees | Heuristics

Heuristics

We want to understand en,m for large n.

20 40 60 80 100 5.0×1022 1.0×1023 1.5×1023

en,m m

200 400 600 800 1000 5.0×10281 1.0×10282 1.5×10282 2.0×10282

en,m m

Figure: Plots of en,m against m + 1. Left: n = 100, Right: n = 1000

Let’s zoom in to the left (small m) where interesting things are happening. It seems to be converging to something... Guess: en,m ≈ h(n)f m + 1 g(n)

  • . Moreover, we guess g(n) =

3

√n.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 15 / 22

slide-42
SLIDE 42

Compacted Binary Trees | Heuristics

Heuristics

We want to understand en,m for large n.

5 10 15 5.0×1022 1.0×1023 1.5×1023

en,m m + 1

10 20 30 40 5.0×10281 1.0×10282 1.5×10282 2.0×10282

en,m m + 1

Figure: Plots of en,m against m + 1. Left: n = 100, Right: n = 1000

Let’s zoom in to the left (small m) where interesting things are happening. It seems to be converging to something... Guess: en,m ≈ h(n)f m + 1 g(n)

  • . Moreover, we guess g(n) =

3

√n.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 15 / 22

slide-43
SLIDE 43

Compacted Binary Trees | Heuristics

Heuristics

We want to understand en,m for large n.

10 20 30 40 50 1.×10577 2.×10577

en,m m + 1

1 1

f (x) x

Figure: Left: Plot of en,m against m + 1 for n = 2000. Right: Limiting function f (x)

Let’s zoom in to the left (small m) where interesting things are happening. It seems to be converging to something... Guess: en,m ≈ h(n)f m + 1 g(n)

  • . Moreover, we guess g(n) =

3

√n.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 15 / 22

slide-44
SLIDE 44

Compacted Binary Trees | Heuristics

Heuristics

We want to understand en,m for large n.

g(n) h(n)

en,m m + 1

1 1

f (x) x

Figure: Left: Plot of en,m against m + 1 for n = 2000. Right: Limiting function f (x)

Let’s zoom in to the left (small m) where interesting things are happening. It seems to be converging to something... Guess: en,m ≈ h(n)f m + 1 g(n)

  • . Moreover, we guess g(n) =

3

√n.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 15 / 22

slide-45
SLIDE 45

Compacted Binary Trees | Heuristics

Heuristics

We want to understand en,m for large n.

g(n) h(n)

en,m m + 1

1 1

f (x) x

Figure: Left: Plot of en,m against m + 1 for n = 2000. Right: Limiting function f (x)

Let’s zoom in to the left (small m) where interesting things are happening. It seems to be converging to something... Guess: en,m ≈ h(n)f m + 1

3

√n

  • . Moreover, we guess g(n) =

3

√n.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 15 / 22

slide-46
SLIDE 46

Compacted Binary Trees | Heuristics

Heuristic analysis of weighted paths

Recurrence: en,m = n − m + 2 n + m en−1,m−1 + en−1,m+1 − n − m (n + m)(n + m − 2)en−3,m−1. Guess: en,m ≈ h(n)f m + 1

3

√n

  • .

Substitute into recurrence and set m = κ 3 √n − 1: sn := h(n) h(n − 1) ≈ 2 + f ′′(κ) − 2κf (κ) f (κ) n−2/3 + O(n−1) Solution (assuming equality above): sn = 2 + cn−2/3 + O(n−1) ⇒ h(n) ≈ 2ne

3c 2 n1/3

f ′′(κ) = (2κ + c)f (κ) ⇒ f (κ) = Ai(2−2/3(2κ + c)) Where c is constant. Then f (0) = 0 implies c = 22/3a1, where a1 ≈ −2.338 satisfies Ai(a1) = 0.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 16 / 22

slide-47
SLIDE 47

Compacted Binary Trees | Heuristics

Heuristic analysis of weighted paths

Recurrence: en,m = n − m + 2 n + m en−1,m−1 + en−1,m+1 − n − m (n + m)(n + m − 2)en−3,m−1. Guess: en,m ≈ h(n)f m + 1

3

√n

  • .

Substitute into recurrence and set m = κ 3 √n − 1: sn := h(n) h(n − 1) ≈ 2 + f ′′(κ) − 2κf (κ) f (κ) n−2/3 + O(n−1) Solution (assuming equality above): sn = 2 + cn−2/3 + O(n−1) ⇒ h(n) ≈ 2ne

3c 2 n1/3

f ′′(κ) = (2κ + c)f (κ) ⇒ f (κ) = Ai(2−2/3(2κ + c)) Where c is constant. Then f (0) = 0 implies c = 22/3a1, where a1 ≈ −2.338 satisfies Ai(a1) = 0.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 16 / 22

slide-48
SLIDE 48

Compacted Binary Trees | Heuristics

Heuristic analysis of weighted paths

Recurrence: en,m = n − m + 2 n + m en−1,m−1 + en−1,m+1 − n − m (n + m)(n + m − 2)en−3,m−1. Guess: en,m ≈ h(n)f m + 1

3

√n

  • .

Substitute into recurrence and set m = κ 3 √n − 1: sn := h(n) h(n − 1) ≈ 2 + f ′′(κ) − 2κf (κ) f (κ) n−2/3 + O(n−1) Solution (assuming equality above): sn = 2 + cn−2/3 + O(n−1) ⇒ h(n) ≈ 2ne

3c 2 n1/3

f ′′(κ) = (2κ + c)f (κ) ⇒ f (κ) = Ai(2−2/3(2κ + c)) Where c is constant. Then f (0) = 0 implies c = 22/3a1, where a1 ≈ −2.338 satisfies Ai(a1) = 0.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 16 / 22

slide-49
SLIDE 49

Compacted Binary Trees | Heuristics

Heuristic analysis of weighted paths

Recurrence: en,m = n − m + 2 n + m en−1,m−1 + en−1,m+1 − n − m (n + m)(n + m − 2)en−3,m−1. Guess: en,m ≈ h(n)f m + 1

3

√n

  • .

Substitute into recurrence and set m = κ 3 √n − 1: sn := h(n) h(n − 1) ≈ 2 + f ′′(κ) − 2κf (κ) f (κ) n−2/3 + O(n−1) Solution (assuming equality above): sn = 2 + cn−2/3 + O(n−1) ⇒ h(n) ≈ 2ne

3c 2 n1/3

f ′′(κ) = (2κ + c)f (κ) ⇒ f (κ) = Ai(2−2/3(2κ + c)) Where c is constant and Ai is the Airy function. Then f (0) = 0 implies c = 22/3a1, where a1 ≈ −2.338 satisfies Ai(a1) = 0.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 16 / 22

slide-50
SLIDE 50

Compacted Binary Trees | Heuristics

Heuristic analysis of weighted paths

Recurrence: en,m = n − m + 2 n + m en−1,m−1 + en−1,m+1 − n − m (n + m)(n + m − 2)en−3,m−1. Guess: en,m ≈ h(n)f m + 1

3

√n

  • .

Substitute into recurrence and set m = κ 3 √n − 1: sn := h(n) h(n − 1) ≈ 2 + f ′′(κ) − 2κf (κ) f (κ) n−2/3 + O(n−1) Solution (assuming equality above): sn = 2 + cn−2/3 + O(n−1) ⇒ h(n) ≈ 2ne

3c 2 n1/3

f ′′(κ) = (2κ + c)f (κ) ⇒ f (κ) = Ai(2−2/3(2κ + c)) Where c is constant and Ai is the Airy function. Then f (0) = 0 implies c = 22/3a1, where a1 ≈ −2.338 satisfies Ai(a1) = 0.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 16 / 22

slide-51
SLIDE 51

Compacted Binary Trees | Heuristics

Refined heuristic analysis of weighted paths

Let a1 ≈ −2.3381 be the largest root of the Airy function Ai. First guess: en,m ≈ h(n)f m + 1

3

√n

  • ,

yields estimates h(n) ≈ 2ne3a1(n/2)1/3 f (κ) = Ai(21/3κ + a1) Refined guess: en,m ≈ h(n)

  • f0

m + 1

3

√n

  • + n−1/3f1

m + 1

3

√n

  • ,

yields estimates h(n) ∼ const · 2ne3a1(n/2)1/3n29/24 f0(κ) = Ai(21/3κ + a1) This way we conjecture the asymptotic form for acyclic minimal DFAs: mn = 2n−1n!e2n,0 = Θ

  • n!8ne3a1n1/3n7/8

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 17 / 22

slide-52
SLIDE 52

Compacted Binary Trees | Heuristics

Refined heuristic analysis of weighted paths

Let a1 ≈ −2.3381 be the largest root of the Airy function Ai. First guess: en,m ≈ h(n)f m + 1

3

√n

  • ,

yields estimates h(n) ≈ 2ne3a1(n/2)1/3 f (κ) = Ai(21/3κ + a1) Refined guess: en,m ≈ h(n)

  • f0

m + 1

3

√n

  • + n−1/3f1

m + 1

3

√n

  • ,

yields estimates h(n) ∼ const · 2ne3a1(n/2)1/3n29/24 f0(κ) = Ai(21/3κ + a1) This way we conjecture the asymptotic form for acyclic minimal DFAs: mn = 2n−1n!e2n,0 = Θ

  • n!8ne3a1n1/3n7/8

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 17 / 22

slide-53
SLIDE 53

Compacted Binary Trees | Heuristics

Refined heuristic analysis of weighted paths

Let a1 ≈ −2.3381 be the largest root of the Airy function Ai. First guess: en,m ≈ h(n)f m + 1

3

√n

  • ,

yields estimates h(n) ≈ 2ne3a1(n/2)1/3 f (κ) = Ai(21/3κ + a1) Refined guess: en,m ≈ h(n)

  • f0

m + 1

3

√n

  • + n−1/3f1

m + 1

3

√n

  • ,

yields estimates h(n) ∼ const · 2ne3a1(n/2)1/3n29/24 f0(κ) = Ai(21/3κ + a1) This way we conjecture the asymptotic form for acyclic minimal DFAs: mn = 2n−1n!e2n,0 = Θ

  • n!8ne3a1n1/3n7/8

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 17 / 22

slide-54
SLIDE 54

Compacted Binary Trees | Inductive proof

Inductive proof

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 18 / 22

slide-55
SLIDE 55

Compacted Binary Trees | Inductive proof

Proof method

Recall: en,m = n − m + 2 n + m en−1,m−1 + en−1,m+1 − n − m (n + m)(n + m − 2)en−3,m−1 Number of minimal acyclic DFAs is mn = 2n−1n!e2n,0. Method: Find sequences An,k and Bn,k with the same asymptotic form, such that An,k ≤ en,k ≤ Bn,k, for all k and all n large enough.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 19 / 22

slide-56
SLIDE 56

Compacted Binary Trees | Inductive proof

Proof method

Recall: en,m = n − m + 2 n + m en−1,m−1 + en−1,m+1 − n − m (n + m)(n + m − 2)en−3,m−1 Number of minimal acyclic DFAs is mn = 2n−1n!e2n,0. Method: Find sequences An,k and Bn,k with the same asymptotic form, such that An,k ≤ en,k ≤ Bn,k, for all k and all n large enough.

How to find them?

1 Use heuristics 2 Fiddle until they satisfy the recurrence of en,k with the equalities replaced

by inequalities: = − → ≤ and ≥

3 Prove An,k ≤ en,k ≤ Bn,k by induction.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 19 / 22

slide-57
SLIDE 57

Compacted Binary Trees | Inductive proof

Technicalities

Lots of technicalities: Before induction, we have to remove the negative term from the recurrence, but we have to do so precisely for asymptotics to stay the same. We only prove bounds for small m; we prove that large m terms don’t matter The lower bound is negative for very large m, so we have to be careful with induction We only prove the bounds for sufficiently large n, but this only makes a difference to the constant term. Proof involves colourful Newton polygons:

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 20 / 22

slide-58
SLIDE 58

Compacted Binary Trees | Inductive proof

Summary

Enumeration of minimal acyclic DFAs

1 Bijection to decorated paths 2 Recurrence for decorated paths 3 Heuristic analysis of recurrence 4 Inductive proof using heuristics

Lower bound: mn ≥ γ1 n!8ne3a1n1/3n7/8, for some constant γ1 > 0.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 21 / 22

slide-59
SLIDE 59

Compacted Binary Trees | Inductive proof

Summary

Enumeration of minimal acyclic DFAs

1 Bijection to decorated paths 2 Recurrence for decorated paths 3 Heuristic analysis of recurrence 4 Inductive proof using heuristics

Lower bound: mn ≥ γ1 n!8ne3a1n1/3n7/8, for some constant γ1 > 0. Upper bound (similar proof): mn ≤ γ2 n!8ne3a1n1/3n7/8, for some constant γ2 > 0.

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 21 / 22

slide-60
SLIDE 60

Compacted Binary Trees | Thank you

The end

Theorem

The number of minimal DFAs recognizing a finite binary language satisfies for n → ∞ mn = Θ

  • n! 8ne3a1n1/3n7/8

, where a1 ≈ −2.3381 is the largest root of the Airy function Ai(x) = 1

π

∞ cos

  • t3

3 + xt

  • dt.

Further problems: Determining the constant term, or at least proving that one exists. How does the statistic number of states in DFA for a finite binary language interact with other natural statistics, like number of words? length of longest word? etc. For the method: Does anyone have a tricky recurrence to try?

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 22 / 22

slide-61
SLIDE 61

Compacted Binary Trees | Thank you

The end

Theorem

The number of minimal DFAs recognizing a finite binary language satisfies for n → ∞ mn = Θ

  • n! 8ne3a1n1/3n7/8

, where a1 ≈ −2.3381 is the largest root of the Airy function Ai(x) = 1

π

∞ cos

  • t3

3 + xt

  • dt.

Further problems: Determining the constant term, or at least proving that one exists. How does the statistic number of states in DFA for a finite binary language interact with other natural statistics, like number of words? length of longest word? etc. For the method: Does anyone have a tricky recurrence to try?

Elvey Price, Fang, Wallner | Bordeaux, Paris | 29.9.2020 22 / 22