Words and Automata, Lecture 1 Dominique Perrin 18 octobre 2012 - - PowerPoint PPT Presentation

words and automata lecture 1
SMART_READER_LITE
LIVE PREVIEW

Words and Automata, Lecture 1 Dominique Perrin 18 octobre 2012 - - PowerPoint PPT Presentation

Words and Automata, Lecture 1 Dominique Perrin 18 octobre 2012 Dominique Perrin Words and Automata, Lecture 1 Outline of the minicourse Positive matrices Examples Irreducible and primitive matrices Perron Frobenius Theorem Probability


slide-1
SLIDE 1

Words and Automata, Lecture 1

Dominique Perrin 18 octobre 2012

Dominique Perrin Words and Automata, Lecture 1

slide-2
SLIDE 2

Outline of the minicourse

Positive matrices

Examples Irreducible and primitive matrices Perron Frobenius Theorem

Probability distributions on words

Information sources Entropy Distribution of maximal entropy

Noncommutative stochastic matrices

Dominique Perrin Words and Automata, Lecture 1

slide-3
SLIDE 3

Example 1 : the adjacency matrix of an automaton

1 2 a b a The matrix M = 1 1 1

  • is the adjacency matrix of the automaton. The coefficient (i, j) of

Mn is the number of paths of length n from i to j. Here Mn = fn fn−1 fn−1 fn−2

  • with f−1 = 0, f0 = 1 and fn+1 = fn + fn−1.

Dominique Perrin Words and Automata, Lecture 1

slide-4
SLIDE 4

Example 2 : a Markov chain

1 2 1/3 2/3 1 The matrix M = 1

3 2 3

1

  • is the transition matrix of the Markov chain. The vector

x = 3

5 2 5

  • is the stationnary distribution of the chain.

The matrix M is called a stochastic matrix : it is such that the sum

  • f the coefficients on each row is 1.

Dominique Perrin Words and Automata, Lecture 1

slide-5
SLIDE 5

Google’s ranking

Let Q be the set of web pages (many...). Let G be the graph with edges the (p, q) such that page p points to page q. Let M be the adjacency matrix of G. The eigenvector v of M for a value ρ such that vM = ρM gives the Google rank of the page p.

Dominique Perrin Words and Automata, Lecture 1

slide-6
SLIDE 6

Nonnegative matrices

Let Q be a set of indices. For two Q-vectors v, w with real coordinates, one writes v ≤ w if vq ≤ wq for all q ∈ Q, and v < w if vq < wq for all q ∈ Q. A vector v is said to be nonnegative (resp. positive) if v ≥ 0 (resp. v > 0). In the same way, for two Q × Q-matrices M, N with real coefficients, one writes M ≤ N when Mp,q ≤ Np,q for all p, q ∈ Q, and M < N when Mp,q < Np,q for all p, q ∈ Q. The Q × Q-matrix M is said to be nonnegative (resp. positive ) if M ≥ 0 (resp. M > 0). We shall use often the elementary fact that if M > 0 and v ≥ 0 with v = 0, then Mv > 0.

Dominique Perrin Words and Automata, Lecture 1

slide-7
SLIDE 7

Irreducible matrices

A nonnegative matrix M is said to be irreducible if for all indices p, q, there is an integer k such that Mk

p,q > 0, where Mk denotes

the k–th power of M. Otherwise M is said to be reducible.

Dominique Perrin Words and Automata, Lecture 1

slide-8
SLIDE 8

Proposition A nonnegative matrix M is irreducible if and only if (I + M)n > 0 where n is the dimension of M. Proposition A nonnegative matrix M is reducible if and only if there is a reordering of the indices such that M is block triangular, i.e. of the form M = U V W

  • (1)

with U, W of dimension > 0.

Dominique Perrin Words and Automata, Lecture 1

slide-9
SLIDE 9

A nonnegative matrix M is called primitive if there is an integer k such that Mk > 0. A primitive matrix is irreducible but the converse is not true. A nonnegative matrix M is called aperiodic if the greatest common divisor of the integers k such that Mk

i,i > 0 for some i is equal to 1

(including the case where the set of integers k is empty).

Dominique Perrin Words and Automata, Lecture 1

slide-10
SLIDE 10

Proposition A nonnegative matrix is primitive if and only if it is irreducible and aperiodic. Indeed, if M is primitive, it is clearly irreducible and aperiodic. Conversely, if M is not irreducible, it is not primitive. Next, if it is irreducible but periodic, consider the grpah G such that there is an edge from i to j if and only if Mij > 0. Let p > 1 be the gcd of the lengths of the paths from 1 to 1. Let i be such that M1i > 0. Then all paths from 1 to i have length k ≡ 1 mod p. Thus M is not primitive.

Dominique Perrin Words and Automata, Lecture 1

slide-11
SLIDE 11

The Perron–Frobenius Theorem

The following result is part of a theorem known as the Perron–Frobenius theorem. It says in particular that the spectral radius of a nonnegative matrix is an eigenvalue. Theorem (Perron–Frobenius) Any nonnegative matrix M has a real eigenvalue ρM such that |λ| ≤ ρM for any eigenvalue λ of M, and there corresponds to ρM a nonnegative eigenvector v. If M is irreducible, there corresponds to ρM a positive eigenvector v. Observe that the same result holds both for right and for left eigenvectors.

Dominique Perrin Words and Automata, Lecture 1

slide-12
SLIDE 12

Example Let M = 1 1 1

  • .

The matrix M is nonnegative and irreducible. The eigenvalues of M are ϕ = (1 + √ 5)/2 and ˆ ϕ = (1 − √ 5)/2. The vector x = ϕ 1

  • is an eigenvector relative to ϕ. The vector v =

1 1

  • is

an approximate eigenvector relative to r = 1 and Mv is an approximate eigenvector relative to r = 3/2.

Dominique Perrin Words and Automata, Lecture 1