Tim Smith
LIGM Université Paris-Est Marne-la-Vallée
1
Prediction of Infinite Words with Automata Tim Smith LIGM - - PowerPoint PPT Presentation
Prediction of Infinite Words with Automata Tim Smith LIGM Universit Paris-Est Marne-la-Valle EQINOCS workshop, Paris 11 May 2016 1 Prediction Setting We consider an emitter and a predictor. The emitter takes no input,
LIGM Université Paris-Est Marne-la-Vallée
1
2
infinite sequence of symbols drawn from a finite alphabet A.
input is α and whose output is an infinite word M(α). We call each symbol of M(α) a guess.
before it can read the i-th symbol of α.
then M masters α.
3
4
form xω = xxx... for some x in A*.
purely periodic word.
predictor M which masters every purely periodic word. Let n be the number of states
periodic word (an+1 b)ω.
5
automata CSR 2016 (forthcoming)
words in a prediction setting.
which infinite words.
infinite words, and learning theory, via the notion of mastery or “learning in the limit” [Gold 1967].
6
7
Class Name
DFA deterministic finite automata DPDA deterministic pushdown automata DSA deterministic stack automata multi-DFA multihead deterministic finite automata sensing multi-DFA sensing multihead deterministic finite automata
8
Class Example
purely periodic words ababab... ultimately periodic words abaaaaa... multilinear words abaabaaab...
9
∃ masters ∀ purely periodic ultimately periodic multilinear DFA DPDA DSA multi-DFA sensing multi-DFA
✕ ✕ ✕
single tape [Rosenberg 1965].
multihead deterministic finite automata.
10
multi-DFA = [
k≥1
k-DFA
ultimately periodic word.
Variation of the “tortoise and hare”
always guesses that the symbols under the heads will match, and
head one square to the right;
to the right and the right head two squares to the right.
11
12
a ?
13
a a X
14
a a ?
15
a a a X
16
a a a ?
17
a a a b ×
18
a a a b a ?
19
a a a b a a ×
20
a a a b a a a ?
21
a a a b a a a b ×
22
a a a b a a a b a ?
23
a a a b a a a b a a X
24
a a a b a a a b a a ?
25
a a a b a a a b a a a X
26
a a a b a a a b a a a ?
27
a a a b a a a b a a a b X
28
∃ masters ∀ purely periodic ultimately periodic multilinear DFA DPDA DSA multi-DFA sensing multi-DFA
✕ ✕ ✕
✓ ✓ ✓ ✓
periodic word.
every purely periodic word. Set n to be very large with respect to the number of states of M and the size of the stack alphabet. Let α = (an b)ω.
are configurations Ci and Cj of M with the same state and top-of-stack symbol, such that the stack below the top symbol at Ci is not accessed between Ci and Cj. Then M does not master α.
29
to [Ginsburg, Greibach, & Harrison 1967].
top of the stack, the stack head can move up and down the stack in read-only mode.
deterministic stack automata.
30
read push/pop
periodic word.
period of the word.
matching its stack against the input. Call each traversal of the stack a “pass”.
continues making passes until one succeeds with no
31
32
α = xω
a b c stack · · · ?
33
α = xω
a b c stack · · · a X
34
α = xω
a b c stack · · · a ?
35
α = xω
a b c stack · · · a b X
36
α = xω
a b c stack · · · a b ?
37
α = xω
a b c stack · · · a b c X
38
α = xω
a b c stack · · · a b c ?
39
α = xω
a b c stack · · · a b c a X
40
α = xω
a b c stack · · · a b c a ?
41
α = xω
a b c stack · · · a b c a a ×
42
α = xω
a b c stack · · · a b c a a ?
43
α = xω
a b c stack · · · a b c a a b ×
44
α = xω
a b c stack · · · a b c a a b ?
45
α = xω
a b c stack · · · a b c a a b ? h h
46
α = xω
a b c stack · · · a b c a a b c · · · ? h h h|x|
47
α = xω
a b c stack · · · a b c a a b c · · · a b c h h h|x|
48
α = xω
a b c a stack · · · a b c a a b c · · · a b c a h h h|x|
49
α = xω
a b c a stack · · · a b c a a b c · · · a b c a ? h h h|x|
50
∃ masters ∀ purely periodic ultimately periodic multilinear DFA DPDA DSA multi-DFA sensing multi-DFA
✕ ✕ ✕ ✕ ✕ ✕
✓
? ?
✓ ✓ ✓ ✓
m segments of the form pisin.
51
q Y
n≥1 m
Y
i≥1
pisn
i
Y
n≥1
abncn = abcabbccabbbccc · · ·
masters every ultimately periodic word.
word? Open problem.
multihead DFAs able to sense, for each pair of heads, whether those two heads are at the same input position.
every multilinear word.
52
tries to line up certain heads at segment boundaries so that the number of segments separating the heads is a multiple of m.
tries to master the input α
correction procedure has successfully lined up the heads.
53
k = 0 loop k += 1 correction procedure matching procedure
Alternates between two procedures, correction and matching, with an increasing threshold k.
h1, h2, h3, and h4 to be k segments apart.
increases each time the procedure is entered.
entered, h1 < h2 < h3 < h4.
whose successful operation depends on k.
54
move h1 until h1 = h4 advance h1 by 1 segment move h2 until h2 = h1 advance h2 by k segments move h3 until h3 = h2 advance h3 by k segments move h4 until h4 = h3 advance h4 by k segments
hi past its current segment pjsjn, leaving hi at pj+1.
increases between calls to the subroutine.
algorithm until the number of consecutive correct guesses reaches k.
together until they disagree.
55
move t until t = hi move hi correct = 0 while correct < k if α[t] = α[hi] correct += 1 else correct = 0 move hi move t and hi while α[t] = α[hi] move t and hi
multilinear word α.
a multiple of m segments apart, where m is the number
coordinate and predict α[h4].
so that the correction procedure can be called again.
56
loop move h3a until h3a = h3 while α[h1] = α[h2] = α[h3] = α[h4] move h1, h2, h3a, h3 move h4, guessing α[h2] exit procedure if guess was wrong while α[h2] = α[h3] = α[h4] move h2, h3 move h4, guessing α[h3] exit procedure if guess was wrong while α[h3a] = α[h3] = α[h4] move h3a, h3 move h4, guessing α[h3a] exit procedure if guess was wrong while h3a ≠ h3 and α[h3a] = α[h4] move h3a move h4, guessing α[h3a] exit procedure if guess was wrong
57
∃ masters ∀ purely periodic ultimately periodic multilinear DFA DPDA DSA multi-DFA sensing multi-DFA
✕ ✕ ✕ ✕ ✕ ✕
✓
? ?
✓ ✓
?
✓ ✓ ✓
words to see what connections can be made among them in a prediction setting.
periodic word?
every multilinear word?
58
59