The Cayley-Hamilton Theorem For Finite Automata. Radu Grosu SUNY at Stony Brook

Size: px
Start display at page:

Download "The Cayley-Hamilton Theorem For Finite Automata. Radu Grosu SUNY at Stony Brook"

Transcription

1 The Cyley-Hmilton Theorem For Finite Automt Rdu Grosu SUNY t Stony Brook

2 How did I get interested in this topic?

3 Convergence of Theories Hyrid Systems Computtion nd Control: - convergence etween control nd utomt theory. Hyrid Automt: n outcome of this convergence - modeling formlism for systems exhiiting oth discrete nd continuous ehvior, - successfully used to model nd nlyze emedded nd iologicl systems.

4 voltge(mv) Lck of Common Foundtion for HA v V E x Ax Bu v Cx v V R Mode dynmics: - Liner system (LS) v V / R t 0 Mode switching: - Finite utomton (FA) v V U Stimulted s / di t s v V U Different techniques: - LS reduction - FA minimiztion time(ms) LS & FA tught seprtely: No common foundtion!

5 Min Conjecture Finite utomt cn e conveniently regrded s time invrint liner systems over semimodules: - liner systems techniques generlize to utomt Exmples of such techniques include: - liner trnsformtions of utomt, - minimiztion nd determiniztion of utomt s oservility nd rechility reductions - Z-trnsform of utomt to compute ssocited regulr expression through Gussin elimintion.

6 Miniml DFA re Not Miniml NFA (Arnold, Dicky nd Nivt s Exmple) x 1 x 2 c x 3 x 4 c x 1 x 2 x 3 c L = (* + c*)

7 Miniml NFA: How re they Relted? (Arnold, Dicky nd Nivt s Exmple) x 1 c x 2 x 3 x 4 c c x 5 x 1 c c x 2 x 3 x 4 c x 5 L = +c + +c + c+c No homomorphism of either utomton onto the other.

8 Miniml NFA: How re they Relted? (Arnold, Dicky nd Nivt s Exmple) x 1 c x 2 x 3 x 4 c c x 8 x 1 c c x 5 x 6 x 7 c x 8 Crrez s solution: Tke oth in terminl NFA. Is this the est one cn do? No! One cn use use liner (similrity) trnsformtions.

9 Oservility Reduction HSCC 09 (Arnold, Dicky nd Nivt s Exmple) A x 1 c x 2 x 3 x 4 c c x 5 A x 1 c c x 23 x 24 x 34 c x 5 Define liner trnsformtion x t = x t T: T x 1 x 2 x 3 x 4 x 5 x x x x x A = [AT] T (T 1 AT) x t 0 = x t 0 T C = [C] T (T 1 C)

10 Rechility Reduction HSCC 09 (Arnold, Dicky nd Nivt s Exmple) A x 1 c c x 2 x 3 x 4 c x 5 A x 1 c x 23 x 24 x 34 c c x 5 Define liner trnsformtion x t = x t T: T x 1 x 2 x 3 x 4 x 5 x x x x x A t = [A t T] T (T 1 A t T) x 0 t = x 0 t T C = [C] T (T 1 C)

11

12

13

14 Oservility nd minimiztion

15 Finite Automt s Liner Systems Consider finite utomton M = (X,,,S,F) with: - finite set of sttes X, finite input lphet, - trnsition reltion X X, - strting nd finl sets of sttes S,F X

16 Finite Automt s Liner Systems Consider finite utomton M = (X,,,S,F) with: - finite set of sttes X, finite input lphet, - trnsition reltion X X, - strting nd finl sets of sttes S,F X Let X denote row nd column indices. Then: - defines mtrix A, - S nd F define corresponding vectors

17 Finite Automt s Liner Systems Now define the liner system L M = [S,A,C]: x t (n+1) = x t (n)a, x 0 = S y t (n) = x t (n)c, C = F

18 Finite Automt s Liner Systems Now define the liner system L M = [S,A,C]: x t (n+1) = x t (n)a, x 0 = S y t (n) = x t (n)c, C = F Exmple: consider following utomton: x 3 x 1 x 2 x 0 = A = C = 0

19 Semimodule of Lnguges ( * ) is n idempotent semiring (quntle): - (( * ),+,0) is commuttive idempotent monoid (union), - (( * ),,1) is monoid (conctention), - multipliction distriutes over ddition, - 0 is n nnihiltor: 0 = 0 (( * )) n is semimodule over sclrs in ( * ): - r(x+y) = rx + ry, (r+s)x = rx + sx, (rs)x = r(sx), - 1x = x, 0x = 0 Note: No dditive nd multiplictive inverses!

20 Semimodule of Lnguges ( * ) is n idempotent semiring (quntle): - (( * ),+,0) is commuttive idempotent monoid (union), - (( * ),,1) is monoid (conctention), - multipliction distriutes over ddition, - 0 is n nnihiltor: 0 = 0 (( * )) n is semimodule over sclrs in ( * ): - r(x+y) = rx + ry, (r+s)x = rx + sx, (rs)x = r(sx), - 1x = x, 0x = 0 Note: No dditive nd multiplictive inverses!

21 Oservility Let L = [S,A,C]. Oserve its output upto n-1: [y(0) y(1)... y(n-1)] = x 0 t [C AC... A n-1 C] = x 0 t O (1) If L opertes on vector spce: - L is oservle if: x 0 is uniquely determined y (1), - Oservility mtrix O: hs rnk n, - n-outputs suffice: A n C = s 1 A n-1 C + s 2 A n-2 C s n C If L opertes on semimodule: - L is oservle if: x 0 is uniquely determined y (1)

22 Oservility Let L = [S,A,C]. Oserve its output upto n-1: [y(0) y(1)... y(n-1)] = x 0 t [C AC... A n-1 C] = x 0 t O (1) If L opertes on vector spce: - L is oservle if: x 0 is uniquely determined y (1), - Oservility mtrix O: hs rnk n, - n-outputs suffice: A n C = s 1 A n-1 C + s 2 A n-2 C s n C (Cyley-Hmilton Theorem) If L opertes on semimodule: - L is oservle if: x 0 is uniquely determined y (1)

23 Oservility Let L = [S,A,C]. Oserve the output upto n-1: [y(0) y(1)... y(n-1)] = x 0 t [C AC... A n-1 C] = x 0 t O (1) If L opertes on vector spce: - L is oservle if: x 0 is uniquely determined y (1), - Oservility mtrix O: hs rnk n, - n-outputs suffice: A n C = s 1 A n-1 C + s 2 A n-2 C s n C If L opertes on semimodule: - L is oservle if: x 0 is uniquely determined y (1)

24 The Cyley-Hmilton Theorem ( A n = s 1 A n-1 + s 2 A n s n I )

25 Permuttions Permuttions re ijections of {1,...,n}: - Exmple: = {(1,2),(2,3),(3,4),(4,1),(5,7),(6,6),(7,5)} The grph G() of permuttion : - G() decomposes into: elementry cycles, The sign of permuttion: - Pos/Neg: even/odd numer of even length cycles, - P n / P n : ll positive/negtive permuttions.

26 Permuttions re ijections of {1,...,n}: - Exmple: = {(1,2),(2,3),(3,4),(4,1),(5,7),(6,6),(7,5)} The grph G() of permuttion : - G() decomposes into: elementry cycles 1 4 Permuttions The sign of permuttion: Pos/Neg: even/odd numer of even length cycles - P n / P n : ll positive/negtive permuttions.

27 Permuttions re ijections of {1,...,n}: - Exmple: = {(1,2),(2,3),(3,4),(4,1),(5,7),(6,6),(7,5)} The grph G() of permuttion : - G() decomposes into: elementry cycles 1 4 Permuttions The sign of permuttion : Pos/Neg: even/odd numer of even length cycles - P n / P n : ll positive/negtive permuttions

28 Eigenvlues in Vector Spces The eigenvlues of squre mtrix A: - Eigenvector eqution: x t A = x t s The chrcteristic eqution of A: eigenvector - The chrcteristic polynomil: cp A (s) = si-a - The chrcteristic eqution: cp A (s) = 0 The determinnt of A: eigenvlue - The determinnt: A = (A) - (A) P n P n, n i1 - Permuttion ppliction: (A) = A(i,(i))

29 Mtrix-Eigenspces in Vector Spces The eigenvlues of squre mtrix A: - Eigenvector eqution: x t (si-a) = 0 The chrcteristic eqution of A: - The chrcteristic polynomil: cp A (s) = si-a - The chrcteristic eqution: cp A (s) = 0 The determinnt of A: - The determinnt: A = (A) - (A) P n P n, n i1 - Permuttion ppliction: (A) = A(i,(i))

30 Mtrix-Eigenspces in Vector Spces The eigenvlues of squre mtrix A: - Eigenvector eqution: x t (si-a) = 0 The chrcteristic eqution of A: - The chrcteristic polynomil: cp A (s) = si-a - The chrcteristic eqution: cp A (s) = 0 The determinnt of A: - The determinnt: A = (A) - (A) P n P n, n i1 - Permuttion ppliction: (A) = A(i,(i))

31 Mtrix-Eigenspces in Vector Spces The eigenvlues of squre mtrix A: - Eigenvector eqution: x t (si-a) = 0 The chrcteristic eqution of A: - The chrcteristic polynomil: cp A (s) = si-a - The chrcteristic eqution: cp A (s) = 0 The determinnt of A: - The determinnt: A = (A) - (A) P n P n, n i1 - Weight of permuttion: (A) = A(i,(i))

32 The Cyley-Hmilton Theorem (CHT) A stisfies its chrcteristic eqution: cp A (A) = A = si-a = s s s- 33 si-a = s 3-33 s 2-12 s = 0 s = 33 s s A I = 33 A A I

33 The Cyley-Hmilton Theorem (CHT) A stisfies its chrcteristic eqution: cp A (A) = A = si-a = s s s- 33 si-a = s 3-33 s 2-12 s = 0 s = 33 s s A I = 33 A A I

34 The Cyley-Hmilton Theorem (CHT) A stisfies its chrcteristic eqution: cp A (A) = A = si-a = s s s- 33 si-a = s 3-33 s 2-12 s = 0 s = 33 s s A I = 33 A A I

35 The Cyley-Hmilton Theorem (CHT) A stisfies its chrcteristic eqution: cp A (A) = A = si-a = s s s- 33 si-a = s 3-33 s 2-12 s = 0 s = 33 s s A I = 33 A A I

36 The Cyley-Hmilton Theorem (CHT) A stisfies its chrcteristic eqution: cp A (A) = A = si-a = s s s- 33 si-a = s 3-33 s 2-12 s = 0 s = 33 s s A I = 33 A A I cycle cycle cycle cycle cycle

37 The Cyley-Hmilton Theorem (CHT) A stisfies its chrcteristic eqution: cp A (A) = 0 Implicit ssumptions in CHT: - Sutrction is ville - Multipliction is commuttive Does CHT hold in semirings? - Sutrction not indispensile (Rutherford, Struing) - Commuttivity still prolemtic

38 The Cyley-Hmilton Theorem (CHT) A stisfies its chrcteristic eqution: cp A (A) = 0 Implicit ssumptions in CHT: - Sutrction is ville - Multipliction is commuttive Does CHT hold in semirings? - Sutrction not indispensile (Rutherford, Struing) - Commuttivity prolemtic

39 CHT in Commuttive Semirings (Struing s Proof) Lift originl semiring to the semiring of pths: - Mtrix A is lifted to mtrix G A of pths A = G A = 0 (1,2) 0 (2,1) 0 (2,3) (3,1) 0 (3,3)

40 CHT in Commuttive Semirings (Struing s Proof) Lift originl semiring to the semiring of pths: - Mtrix A is lifted to mtrix G A of pths - Permuttion cycles lifted cyclic pths = {(1,2),(2,1)} = (1,2)(2,1)

41 CHT in Commuttive Semirings (Struing s Proof) Lift originl semiring to the semiring of pths: - Mtrix A is lifted to mtrix G A of pths - Permuttion cycles lifted cyclic pths Prove CHT in the semiring of pths: n n-q G A = n-q G A (CHT holds?) q 0 P q n q0 P q

42 Lift originl semiring to the semiring of pths: - Mtrix A is lifted to mtrix G A of pths - Permuttion cycles lifted cyclic pths Prove CHT in the semiring of pths: - Show ijection etween pos/neg products 0 2 G A = G A P 3 CHT in Commuttive Semirings (Struing s Proof) P 1 (3,3)(1,2)(2,1) (3,3)(1,2)(2,1) 1 (3,1) (1,2) (2,1) 3 2 (2,3) (3,3) 1 (3,1) (1,2) (2,1) 3 2 (2,3) (3,3)

43 CHT in Commuttive Semirings (Struing s Proof) Lift originl semiring to the semiring of pths: - Mtrix A is lifted to mtrix G A of pths - Permuttion cycles lifted cyclic pths Prove CHT in the semiring of pths: - Show ijection etween pos/neg products Port results ck to the originl semiring: - Apply products: (A) - Pth ppliction: ( 1... n )(A) = A( 1 )...A( n )

44 CHT in Idempotent Semirings Lift originl semiring to the semiring of pths: - Mtrix A: order in pths importnt - Permuttion cycles: rottions re distinct

45 CHT in Idempotent Semirings Lift originl semiring to the semiring of pths: - Mtrix A: order in pths importnt - Permuttion cycles: rottions re distinct = {(1,2),(2,1)} = (1,2)(2,1) (2,1)(1,2)

46 CHT in Idempotent Semirings Lift originl semiring to the semiring of pths: - Mtrix A: order in pths importnt - Permuttion cycles: rottions re distinct Prove CHT in the semiring of pths: - Products G n- : cycles to e properly inserted

47 CHT in Idempotent Semirings Lift originl semiring to the semiring of pths: - Mtrix A: order in pths importnt - Permuttion cycles: rottions re distinct Prove CHT in the semiring of pths: - Products G n- : cycles to e properly inserted G n- = G n- + G G n G n-

48 CHT in Idempotent Semirings Lift originl semiring to the semiring of pths: - Mtrix A: order in pths importnt - Permuttion cycles: rottions re distinct Prove CHT in the semiring of pths: - Products G n- : cycles to e properly inserted Port results ck to the originl semiring: - Apply products: G n- (A)

49 Theorem: G n n- = G A Proof: CHT in Idempotent Semirings n q1 n P q LHS RHS: Let LHS - Pidgeon-hole: hs t lest one cycle in s - Structurl: is simple cycle of length k - Remove in : [s/ ] is in G n- - Shuffle-product: G n- reinserts RHS LHS: Let RHS - No wrong pth: The shuffle is sound - Idempotence: Tkes cre of multiple copies

50 Theorem: G n n- = G A Proof: CHT in Idempotent Semirings n q1 n P q LHS RHS: Let LHS - Pidgeon-hole: hs t lest one cycle in s - Structurl: is lso simple cycle - Remove in : [s/ ] is in G n- - Shuffle-product: G n- reinserts RHS LHS: Let RHS - No wrong pth: The shuffle is sound - Idempotence: Tkes cre of multiple copies

51 Theorem: G n n- = G A Proof: CHT in Idempotent Semirings n q1 n P q LHS RHS: Let LHS - Pidgeon-hole: hs t lest one cycle in s - Structurl: is lso simple cycle - Remove in : [s/ ] is in G n- - Shuffle-product: G n- reinserts RHS LHS: Let RHS - No wrong pth: The shuffle is sound - Idempotence: Tkes cre of multiple copies

52 CHT in Idempotent Semirings Define: (i,i) = if (i,i) = 0 0 if (i,i) = Theorem: clssic CHT cn e derived y using: - G n- n- n- = G + G n- n- - ppliction of CHT to G nd G Mtrix CHT: cn e regrded s constructive version of the pumping lemm.

53 CHT in Idempotent Semirings Define: (i,i) = if (i,i) = 0 0 if (i,i) = Theorem: clssic CHT cn e derived y using: - G n- n- n- = G + G n- n- - ppliction of CHT to G nd G Mtrix CHT: cn e regrded s constructive version of the pumping lemm.

54 CHT in Idempotent Semirings Define: (i,i) = if (i,i) = 0 0 if (i,i) = Theorem: clssic CHT cn e derived y using: - G n- n- n- = G + G n- n- - ppliction of CHT to G nd G Mtrix CHT: cn e regrded s constructive version of the pumping lemm.

55

56 Finite Automt s Liner Systems Now define the liner system L M = [S,A,C]: x t (n+1) = x t (n)a, x 0 = S() y t (n) = x t (n)c, C = F() Exmple: consider following utomton: L 1 x 3 x 1 x 2 A = A() + A() A() = 0 1 0, x 0( ) = A() = 0 0 0, C( ) =

57 Oservility Let L = [S,A,C] e n n-stte utomton. It's output: 0 [ O t n-1 t 0 0 [y(0) y(1)... y(n-1)] = x C AC... A C] = x (1) L is oservle if x is uniquely determined y ( 1). Exmple: the oservility mtrix O of L is: 1 O = n AC 3 ε x x x L 1 x 3 x 1 x 2

Hybrid Systems Modeling, Analysis and Control

Hybrid Systems Modeling, Analysis and Control Hyrid Systems Modeling, Anlysis nd Control Rdu Grosu Vienn University of Tehnology Leture 5 Finite Automt s Liner Systems Oservility, Rehility nd More Miniml DFA re Not Miniml NFA (Arnold, Diky nd Nivt

More information

Regular expressions, Finite Automata, transition graphs are all the same!!

Regular expressions, Finite Automata, transition graphs are all the same!! CSI 3104 /Winter 2011: Introduction to Forml Lnguges Chpter 7: Kleene s Theorem Chpter 7: Kleene s Theorem Regulr expressions, Finite Automt, trnsition grphs re ll the sme!! Dr. Neji Zgui CSI3104-W11 1

More information

Finite Automata as Time-Inv Linear Systems Observability, Reachability and More

Finite Automata as Time-Inv Linear Systems Observability, Reachability and More Finite Automt s Time-Inv Liner Systems Oservility, Rechility nd More Rdu Grosu Deprtment of Computer Science, Stony Brook University Stony Brook, NY 11794-4400, USA Astrct. We show tht regrding finite

More information

Coalgebra, Lecture 15: Equations for Deterministic Automata

Coalgebra, Lecture 15: Equations for Deterministic Automata Colger, Lecture 15: Equtions for Deterministic Automt Julin Slmnc (nd Jurrin Rot) Decemer 19, 2016 In this lecture, we will study the concept of equtions for deterministic utomt. The notes re self contined

More information

Lecture 08: Feb. 08, 2019

Lecture 08: Feb. 08, 2019 4CS4-6:Theory of Computtion(Closure on Reg. Lngs., regex to NDFA, DFA to regex) Prof. K.R. Chowdhry Lecture 08: Fe. 08, 2019 : Professor of CS Disclimer: These notes hve not een sujected to the usul scrutiny

More information

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers. Mehryar Mohri Courant Institute and Google Research

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers. Mehryar Mohri Courant Institute and Google Research Speech Recognition Lecture 2: Finite Automt nd Finite-Stte Trnsducers Mehryr Mohri Cournt Institute nd Google Reserch mohri@cims.nyu.com Preliminries Finite lphet Σ, empty string. Set of ll strings over

More information

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38 Theory of Computtion Regulr Lnguges (NTU EE) Regulr Lnguges Fll 2017 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of Finite Automt A finite utomton hs finite set of control

More information

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers Speech Recognition Lecture 2: Finite Automt nd Finite-Stte Trnsducers Eugene Weinstein Google, NYU Cournt Institute eugenew@cs.nyu.edu Slide Credit: Mehryr Mohri Preliminries Finite lphet, empty string.

More information

Theory of Computation Regular Languages

Theory of Computation Regular Languages Theory of Computtion Regulr Lnguges Bow-Yw Wng Acdemi Sinic Spring 2012 Bow-Yw Wng (Acdemi Sinic) Regulr Lnguges Spring 2012 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of

More information

CHAPTER 1 Regular Languages. Contents

CHAPTER 1 Regular Languages. Contents Finite Automt (FA or DFA) CHAPTE 1 egulr Lnguges Contents definitions, exmples, designing, regulr opertions Non-deterministic Finite Automt (NFA) definitions, euivlence of NFAs nd DFAs, closure under regulr

More information

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton 25. Finite Automt AUTOMATA AND LANGUAGES A system of computtion tht only hs finite numer of possile sttes cn e modeled using finite utomton A finite utomton is often illustrted s stte digrm d d d. d q

More information

Minimal DFA. minimal DFA for L starting from any other

Minimal DFA. minimal DFA for L starting from any other Miniml DFA Among the mny DFAs ccepting the sme regulr lnguge L, there is exctly one (up to renming of sttes) which hs the smllest possile numer of sttes. Moreover, it is possile to otin tht miniml DFA

More information

1 Nondeterministic Finite Automata

1 Nondeterministic Finite Automata 1 Nondeterministic Finite Automt Suppose in life, whenever you hd choice, you could try oth possiilities nd live your life. At the end, you would go ck nd choose the one tht worked out the est. Then you

More information

CS375: Logic and Theory of Computing

CS375: Logic and Theory of Computing CS375: Logic nd Theory of Computing Fuhu (Frnk) Cheng Deprtment of Computer Science University of Kentucky 1 Tle of Contents: Week 1: Preliminries (set lger, reltions, functions) (red Chpters 1-4) Weeks

More information

Nondeterministic Biautomata and Their Descriptional Complexity

Nondeterministic Biautomata and Their Descriptional Complexity Nondeterministic Biutomt nd Their Descriptionl Complexity Mrkus Holzer nd Sestin Jkoi Institut für Informtik Justus-Lieig-Universität Arndtstr. 2, 35392 Gießen, Germny 23. Theorietg Automten und Formle

More information

Java II Finite Automata I

Java II Finite Automata I Jv II Finite Automt I Bernd Kiefer Bernd.Kiefer@dfki.de Deutsches Forschungszentrum für künstliche Intelligenz Finite Automt I p.1/13 Processing Regulr Expressions We lredy lerned out Jv s regulr expression

More information

Nondeterminism and Nodeterministic Automata

Nondeterminism and Nodeterministic Automata Nondeterminism nd Nodeterministic Automt 61 Nondeterminism nd Nondeterministic Automt The computtionl mchine models tht we lerned in the clss re deterministic in the sense tht the next move is uniquely

More information

September 13 Homework Solutions

September 13 Homework Solutions College of Engineering nd Computer Science Mechnicl Engineering Deprtment Mechnicl Engineering 5A Seminr in Engineering Anlysis Fll Ticket: 5966 Instructor: Lrry Cretto Septemer Homework Solutions. Are

More information

Grammar. Languages. Content 5/10/16. Automata and Languages. Regular Languages. Regular Languages

Grammar. Languages. Content 5/10/16. Automata and Languages. Regular Languages. Regular Languages 5//6 Grmmr Automt nd Lnguges Regulr Grmmr Context-free Grmmr Context-sensitive Grmmr Prof. Mohmed Hmd Softwre Engineering L. The University of Aizu Jpn Regulr Lnguges Context Free Lnguges Context Sensitive

More information

Math 4310 Solutions to homework 1 Due 9/1/16

Math 4310 Solutions to homework 1 Due 9/1/16 Mth 4310 Solutions to homework 1 Due 9/1/16 1. Use the Eucliden lgorithm to find the following gretest common divisors. () gcd(252, 180) = 36 (b) gcd(513, 187) = 1 (c) gcd(7684, 4148) = 68 252 = 180 1

More information

REPRESENTATION THEORY OF PSL 2 (q)

REPRESENTATION THEORY OF PSL 2 (q) REPRESENTATION THEORY OF PSL (q) YAQIAO LI Following re notes from book [1]. The im is to show the qusirndomness of PSL (q), i.e., the group hs no low dimensionl representtion. 1. Representtion Theory

More information

Theoretical foundations of Gaussian quadrature

Theoretical foundations of Gaussian quadrature Theoreticl foundtions of Gussin qudrture 1 Inner product vector spce Definition 1. A vector spce (or liner spce) is set V = {u, v, w,...} in which the following two opertions re defined: (A) Addition of

More information

Finite Automata-cont d

Finite Automata-cont d Automt Theory nd Forml Lnguges Professor Leslie Lnder Lecture # 6 Finite Automt-cont d The Pumping Lemm WEB SITE: http://ingwe.inghmton.edu/ ~lnder/cs573.html Septemer 18, 2000 Exmple 1 Consider L = {ww

More information

CS375: Logic and Theory of Computing

CS375: Logic and Theory of Computing CS375: Logic nd Theory of Computing Fuhu (Frnk) Cheng Deprtment of Computer Science University of Kentucky 1 Tble of Contents: Week 1: Preliminries (set lgebr, reltions, functions) (red Chpters 1-4) Weeks

More information

Matrix Algebra. Matrix Addition, Scalar Multiplication and Transposition. Linear Algebra I 24

Matrix Algebra. Matrix Addition, Scalar Multiplication and Transposition. Linear Algebra I 24 Mtrix lger Mtrix ddition, Sclr Multipliction nd rnsposition Mtrix lger Section.. Mtrix ddition, Sclr Multipliction nd rnsposition rectngulr rry of numers is clled mtrix ( the plurl is mtrices ) nd the

More information

CISC 4090 Theory of Computation

CISC 4090 Theory of Computation 9/6/28 Stereotypicl computer CISC 49 Theory of Computtion Finite stte mchines & Regulr lnguges Professor Dniel Leeds dleeds@fordhm.edu JMH 332 Centrl processing unit (CPU) performs ll the instructions

More information

First Midterm Examination

First Midterm Examination Çnky University Deprtment of Computer Engineering 203-204 Fll Semester First Midterm Exmintion ) Design DFA for ll strings over the lphet Σ = {,, c} in which there is no, no nd no cc. 2) Wht lnguge does

More information

Non-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1

Non-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1 Non-Deterministic Finite Automt Fll 2018 Costs Busch - RPI 1 Nondeterministic Finite Automton (NFA) Alphbet ={} q q2 1 q 0 q 3 Fll 2018 Costs Busch - RPI 2 Nondeterministic Finite Automton (NFA) Alphbet

More information

Deterministic Finite Automata

Deterministic Finite Automata Finite Automt Deterministic Finite Automt H. Geuvers nd J. Rot Institute for Computing nd Informtion Sciences Version: fll 2016 J. Rot Version: fll 2016 Tlen en Automten 1 / 21 Outline Finite Automt Finite

More information

Math 520 Final Exam Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008

Math 520 Final Exam Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008 Mth 520 Finl Exm Topic Outline Sections 1 3 (Xio/Dums/Liw) Spring 2008 The finl exm will be held on Tuesdy, My 13, 2-5pm in 117 McMilln Wht will be covered The finl exm will cover the mteril from ll of

More information

Chapter 2 Finite Automata

Chapter 2 Finite Automata Chpter 2 Finite Automt 28 2.1 Introduction Finite utomt: first model of the notion of effective procedure. (They lso hve mny other pplictions). The concept of finite utomton cn e derived y exmining wht

More information

Scanner. Specifying patterns. Specifying patterns. Operations on languages. A scanner must recognize the units of syntax Some parts are easy:

Scanner. Specifying patterns. Specifying patterns. Operations on languages. A scanner must recognize the units of syntax Some parts are easy: Scnner Specifying ptterns source code tokens scnner prser IR A scnner must recognize the units of syntx Some prts re esy: errors mps chrcters into tokens the sic unit of syntx x = x + y; ecomes

More information

1.4 Nonregular Languages

1.4 Nonregular Languages 74 1.4 Nonregulr Lnguges The number of forml lnguges over ny lphbet (= decision/recognition problems) is uncountble On the other hnd, the number of regulr expressions (= strings) is countble Hence, ll

More information

More general families of infinite graphs

More general families of infinite graphs More generl fmilies of infinite grphs Antoine Meyer Forml Methods Updte 2006 IIT Guwhti Prefix-recognizle grphs Theorem Let G e grph, the following sttements re equivlent: G is defined y reltions of the

More information

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University CS415 Compilers Lexicl Anlysis nd These slides re sed on slides copyrighted y Keith Cooper, Ken Kennedy & Lind Torczon t Rice University First Progrmming Project Instruction Scheduling Project hs een posted

More information

Fundamentals of Computer Science

Fundamentals of Computer Science Fundmentls of Computer Science Chpter 3: NFA nd DFA equivlence Regulr expressions Henrik Björklund Umeå University Jnury 23, 2014 NFA nd DFA equivlence As we shll see, it turns out tht NFA nd DFA re equivlent,

More information

Formal Languages and Automata

Formal Languages and Automata Moile Computing nd Softwre Engineering p. 1/5 Forml Lnguges nd Automt Chpter 2 Finite Automt Chun-Ming Liu cmliu@csie.ntut.edu.tw Deprtment of Computer Science nd Informtion Engineering Ntionl Tipei University

More information

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science CSCI 340: Computtionl Models Kleene s Theorem Chpter 7 Deprtment of Computer Science Unifiction In 1954, Kleene presented (nd proved) theorem which (in our version) sttes tht if lnguge cn e defined y ny

More information

A tutorial on sequential functions

A tutorial on sequential functions A tutoril on sequentil functions Jen-Éric Pin LIAFA, CNRS nd University Pris 7 30 Jnury 2006, CWI, Amsterdm Outline (1) Sequentil functions (2) A chrcteriztion of sequentil trnsducers (3) Miniml sequentil

More information

1.3 Regular Expressions

1.3 Regular Expressions 56 1.3 Regulr xpressions These hve n importnt role in describing ptterns in serching for strings in mny pplictions (e.g. wk, grep, Perl,...) All regulr expressions of lphbet re 1.Ønd re regulr expressions,

More information

Myhill-Nerode Theorem

Myhill-Nerode Theorem Overview Myhill-Nerode Theorem Correspondence etween DA s nd MN reltions Cnonicl DA for L Computing cnonicl DFA Myhill-Nerode Theorem Deepk D Souz Deprtment of Computer Science nd Automtion Indin Institute

More information

CMSC 330: Organization of Programming Languages

CMSC 330: Organization of Programming Languages CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 CMSC 330 1 Types of Finite Automt Deterministic Finite Automt (DFA) Exctly one sequence of steps for ech string All exmples so fr Nondeterministic

More information

Model Reduction of Finite State Machines by Contraction

Model Reduction of Finite State Machines by Contraction Model Reduction of Finite Stte Mchines y Contrction Alessndro Giu Dip. di Ingegneri Elettric ed Elettronic, Università di Cgliri, Pizz d Armi, 09123 Cgliri, Itly Phone: +39-070-675-5892 Fx: +39-070-675-5900

More information

Things to Memorize: A Partial List. January 27, 2017

Things to Memorize: A Partial List. January 27, 2017 Things to Memorize: A Prtil List Jnury 27, 2017 Chpter 2 Vectors - Bsic Fcts A vector hs mgnitude (lso clled size/length/norm) nd direction. It does not hve fixed position, so the sme vector cn e moved

More information

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1 Chpter Five: Nondeterministic Finite Automt Forml Lnguge, chpter 5, slide 1 1 A DFA hs exctly one trnsition from every stte on every symol in the lphet. By relxing this requirement we get relted ut more

More information

Automata and Languages

Automata and Languages Automt nd Lnguges Prof. Mohmed Hmd Softwre Engineering Lb. The University of Aizu Jpn Grmmr Regulr Grmmr Context-free Grmmr Context-sensitive Grmmr Regulr Lnguges Context Free Lnguges Context Sensitive

More information

CHAPTER 1 Regular Languages. Contents. definitions, examples, designing, regular operations. Non-deterministic Finite Automata (NFA)

CHAPTER 1 Regular Languages. Contents. definitions, examples, designing, regular operations. Non-deterministic Finite Automata (NFA) Finite Automt (FA or DFA) CHAPTER Regulr Lnguges Contents definitions, exmples, designing, regulr opertions Non-deterministic Finite Automt (NFA) definitions, equivlence of NFAs DFAs, closure under regulr

More information

308K. 1 Section 3.2. Zelaya Eufemia. 1. Example 1: Multiplication of Matrices: X Y Z R S R S X Y Z. By associativity we have to choices:

308K. 1 Section 3.2. Zelaya Eufemia. 1. Example 1: Multiplication of Matrices: X Y Z R S R S X Y Z. By associativity we have to choices: 8K Zely Eufemi Section 2 Exmple : Multipliction of Mtrices: X Y Z T c e d f 2 R S X Y Z 2 c e d f 2 R S 2 By ssocitivity we hve to choices: OR: X Y Z R S cr ds er fs X cy ez X dy fz 2 R S 2 Suggestion

More information

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2 CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 Types of Finite Automt Deterministic Finite Automt () Exctly one sequence of steps for ech string All exmples so fr Nondeterministic Finite Automt

More information

Automata Theory 101. Introduction. Outline. Introduction Finite Automata Regular Expressions ω-automata. Ralf Huuck.

Automata Theory 101. Introduction. Outline. Introduction Finite Automata Regular Expressions ω-automata. Ralf Huuck. Outline Automt Theory 101 Rlf Huuck Introduction Finite Automt Regulr Expressions ω-automt Session 1 2006 Rlf Huuck 1 Session 1 2006 Rlf Huuck 2 Acknowledgement Some slides re sed on Wolfgng Thoms excellent

More information

Lecture 09: Myhill-Nerode Theorem

Lecture 09: Myhill-Nerode Theorem CS 373: Theory of Computtion Mdhusudn Prthsrthy Lecture 09: Myhill-Nerode Theorem 16 Ferury 2010 In this lecture, we will see tht every lnguge hs unique miniml DFA We will see this fct from two perspectives

More information

Non Deterministic Automata. Linz: Nondeterministic Finite Accepters, page 51

Non Deterministic Automata. Linz: Nondeterministic Finite Accepters, page 51 Non Deterministic Automt Linz: Nondeterministic Finite Accepters, pge 51 1 Nondeterministic Finite Accepter (NFA) Alphbet ={} q 1 q2 q 0 q 3 2 Nondeterministic Finite Accepter (NFA) Alphbet ={} Two choices

More information

Semigroup of generalized inverses of matrices

Semigroup of generalized inverses of matrices Semigroup of generlized inverses of mtrices Hnif Zekroui nd Sid Guedjib Abstrct. The pper is divided into two principl prts. In the first one, we give the set of generlized inverses of mtrix A structure

More information

Lecture Solution of a System of Linear Equation

Lecture Solution of a System of Linear Equation ChE Lecture Notes, Dept. of Chemicl Engineering, Univ. of TN, Knoville - D. Keffer, 5/9/98 (updted /) Lecture 8- - Solution of System of Liner Eqution 8. Why is it importnt to e le to solve system of liner

More information

Matrices. Elementary Matrix Theory. Definition of a Matrix. Matrix Elements:

Matrices. Elementary Matrix Theory. Definition of a Matrix. Matrix Elements: Mtrices Elementry Mtrix Theory It is often desirble to use mtrix nottion to simplify complex mthemticl expressions. The simplifying mtrix nottion usully mkes the equtions much esier to hndle nd mnipulte.

More information

Homework 4. 0 ε 0. (00) ε 0 ε 0 (00) (11) CS 341: Foundations of Computer Science II Prof. Marvin Nakayama

Homework 4. 0 ε 0. (00) ε 0 ε 0 (00) (11) CS 341: Foundations of Computer Science II Prof. Marvin Nakayama CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 4 1. UsetheproceduredescriedinLemm1.55toconverttheregulrexpression(((00) (11)) 01) into n NFA. Answer: 0 0 1 1 00 0 0 11 1 1 01 0 1 (00)

More information

Non-deterministic Finite Automata

Non-deterministic Finite Automata Non-deterministic Finite Automt From Regulr Expressions to NFA- Eliminting non-determinism Rdoud University Nijmegen Non-deterministic Finite Automt H. Geuvers nd J. Rot Institute for Computing nd Informtion

More information

Lecture 9: LTL and Büchi Automata

Lecture 9: LTL and Büchi Automata Lecture 9: LTL nd Büchi Automt 1 LTL Property Ptterns Quite often the requirements of system follow some simple ptterns. Sometimes we wnt to specify tht property should only hold in certin context, clled

More information

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018 CS 301 Lecture 04 Regulr Expressions Stephen Checkowy Jnury 29, 2018 1 / 35 Review from lst time NFA N = (Q, Σ, δ, q 0, F ) where δ Q Σ P (Q) mps stte nd n lphet symol (or ) to set of sttes We run n NFA

More information

MATRIX DEFINITION A matrix is any doubly subscripted array of elements arranged in rows and columns.

MATRIX DEFINITION A matrix is any doubly subscripted array of elements arranged in rows and columns. 4.5 THEORETICL SOIL MECHNICS Vector nd Mtrix lger Review MTRIX DEFINITION mtrix is ny douly suscripted rry of elements rrnged in rows nd columns. m - Column Revised /0 n -Row m,,,,,, n n mn ij nd Order

More information

Contents. Outline. Structured Rank Matrices Lecture 2: The theorem Proofs Examples related to structured ranks References. Structure Transport

Contents. Outline. Structured Rank Matrices Lecture 2: The theorem Proofs Examples related to structured ranks References. Structure Transport Contents Structured Rnk Mtrices Lecture 2: Mrc Vn Brel nd Rf Vndebril Dept. of Computer Science, K.U.Leuven, Belgium Chemnitz, Germny, 26-30 September 2011 1 Exmples relted to structured rnks 2 2 / 26

More information

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb.

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb. CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 Types of Finite Automt Deterministic Finite Automt () Exctly one sequence of steps for ech string All exmples so fr Nondeterministic Finite Automt

More information

Lecture 6 Regular Grammars

Lecture 6 Regular Grammars Lecture 6 Regulr Grmmrs COT 4420 Theory of Computtion Section 3.3 Grmmr A grmmr G is defined s qudruple G = (V, T, S, P) V is finite set of vribles T is finite set of terminl symbols S V is specil vrible

More information

Matrices and Determinants

Matrices and Determinants Nme Chpter 8 Mtrices nd Determinnts Section 8.1 Mtrices nd Systems of Equtions Objective: In this lesson you lerned how to use mtrices, Gussin elimintion, nd Guss-Jordn elimintion to solve systems of liner

More information

Compiler Design. Fall Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz

Compiler Design. Fall Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz University of Southern Cliforni Computer Science Deprtment Compiler Design Fll Lexicl Anlysis Smple Exercises nd Solutions Prof. Pedro C. Diniz USC / Informtion Sciences Institute 4676 Admirlty Wy, Suite

More information

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution Tehnishe Universität Münhen Winter term 29/ I7 Prof. J. Esprz / J. Křetínský / M. Luttenerger. Ferur 2 Solution Automt nd Forml Lnguges Homework 2 Due 5..29. Exerise 2. Let A e the following finite utomton:

More information

Nondeterministic Automata vs Deterministic Automata

Nondeterministic Automata vs Deterministic Automata Nondeterministi Automt vs Deterministi Automt We lerned tht NFA is onvenient model for showing the reltionships mong regulr grmmrs, FA, nd regulr expressions, nd designing them. However, we know tht n

More information

Algebra Of Matrices & Determinants

Algebra Of Matrices & Determinants lgebr Of Mtrices & Determinnts Importnt erms Definitions & Formule 0 Mtrix - bsic introduction: mtrix hving m rows nd n columns is clled mtrix of order m n (red s m b n mtrix) nd mtrix of order lso in

More information

Harvard University Computer Science 121 Midterm October 23, 2012

Harvard University Computer Science 121 Midterm October 23, 2012 Hrvrd University Computer Science 121 Midterm Octoer 23, 2012 This is closed-ook exmintion. You my use ny result from lecture, Sipser, prolem sets, or section, s long s you quote it clerly. The lphet is

More information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automt Theory nd Forml Lnguges TMV027/DIT321 LP4 2018 Lecture 10 An Bove April 23rd 2018 Recp: Regulr Lnguges We cn convert between FA nd RE; Hence both FA nd RE ccept/generte regulr lnguges; More

More information

ɛ-closure, Kleene s Theorem,

ɛ-closure, Kleene s Theorem, DEGefW5wiGH2XgYMEzUKjEmtCDUsRQ4d 1 A nice pper relevnt to this course is titled The Glory of the Pst 2 NICTA Resercher, Adjunct t the Austrlin Ntionl University nd Griffith University ɛ-closure, Kleene

More information

Rudimentary Matrix Algebra

Rudimentary Matrix Algebra Rudimentry Mtrix Alger Mrk Sullivn Decemer 4, 217 i Contents 1 Preliminries 1 1.1 Why does this document exist?.................... 1 1.2 Why does nyone cre out mtrices?................ 1 1.3 Wht is mtrix?...........................

More information

Talen en Automaten Test 1, Mon 7 th Dec, h45 17h30

Talen en Automaten Test 1, Mon 7 th Dec, h45 17h30 Tlen en Automten Test 1, Mon 7 th Dec, 2015 15h45 17h30 This test consists of four exercises over 5 pges. Explin your pproch, nd write your nswer to ech exercise on seprte pge. You cn score mximum of 100

More information

Today s Topics Automata and Languages

Today s Topics Automata and Languages Tody s Topics Automt nd Lnguges Prof. Mohmed Hmd Softwre Engineering L. The University of Aizu Jpn DFA to Regulr Expression GFNA DFAèGNFA GNFA è RE DFA è RE Exmples 2 DFA è RE NFA DFA -NFA REX GNFA 3 Definition

More information

Automata and Languages

Automata and Languages Automt nd Lnguges Prof. Mohmed Hmd Softwre Engineering L. The University of Aizu Jpn Tody s Topics DFA to Regulr Expression GFNA DFAèGNFA GNFA è RE DFA è RE Exmples 2 DFA è RE NFA DFA -NFA REX GNFA 3 Definition

More information

80 CHAPTER 2. DFA S, NFA S, REGULAR LANGUAGES. 2.6 Finite State Automata With Output: Transducers

80 CHAPTER 2. DFA S, NFA S, REGULAR LANGUAGES. 2.6 Finite State Automata With Output: Transducers 80 CHAPTER 2. DFA S, NFA S, REGULAR LANGUAGES 2.6 Finite Stte Automt With Output: Trnsducers So fr, we hve only considered utomt tht recognize lnguges, i.e., utomt tht do not produce ny output on ny input

More information

set is not closed under matrix [ multiplication, ] and does not form a group.

set is not closed under matrix [ multiplication, ] and does not form a group. Prolem 2.3: Which of the following collections of 2 2 mtrices with rel entries form groups under [ mtrix ] multipliction? i) Those of the form for which c d 2 Answer: The set of such mtrices is not closed

More information

CMSC 330: Organization of Programming Languages. DFAs, and NFAs, and Regexps (Oh my!)

CMSC 330: Organization of Programming Languages. DFAs, and NFAs, and Regexps (Oh my!) CMSC 330: Orgniztion of Progrmming Lnguges DFAs, nd NFAs, nd Regexps (Oh my!) CMSC330 Spring 2018 Types of Finite Automt Deterministic Finite Automt (DFA) Exctly one sequence of steps for ech string All

More information

Regular Expressions (RE) Regular Expressions (RE) Regular Expressions (RE) Regular Expressions (RE) Kleene-*

Regular Expressions (RE) Regular Expressions (RE) Regular Expressions (RE) Regular Expressions (RE) Kleene-* Regulr Expressions (RE) Regulr Expressions (RE) Empty set F A RE denotes the empty set Opertion Nottion Lnguge UNIX Empty string A RE denotes the set {} Alterntion R +r L(r ) L(r ) r r Symol Alterntion

More information

Elementary Linear Algebra

Elementary Linear Algebra Elementry Liner Algebr Anton & Rorres, 1 th Edition Lecture Set 5 Chpter 4: Prt II Generl Vector Spces 163 คณ ตศาสตร ว ศวกรรม 3 สาขาว ชาว ศวกรรมคอมพ วเตอร ป การศ กษา 1/2555 163 คณตศาสตรวศวกรรม 3 สาขาวชาวศวกรรมคอมพวเตอร

More information

5. (±±) Λ = fw j w is string of even lengthg [ 00 = f11,00g 7. (11 [ 00)± Λ = fw j w egins with either 11 or 00g 8. (0 [ ffl)1 Λ = 01 Λ [ 1 Λ 9.

5. (±±) Λ = fw j w is string of even lengthg [ 00 = f11,00g 7. (11 [ 00)± Λ = fw j w egins with either 11 or 00g 8. (0 [ ffl)1 Λ = 01 Λ [ 1 Λ 9. Regulr Expressions, Pumping Lemm, Right Liner Grmmrs Ling 106 Mrch 25, 2002 1 Regulr Expressions A regulr expression descries or genertes lnguge: it is kind of shorthnd for listing the memers of lnguge.

More information

Best Approximation in the 2-norm

Best Approximation in the 2-norm Jim Lmbers MAT 77 Fll Semester 1-11 Lecture 1 Notes These notes correspond to Sections 9. nd 9.3 in the text. Best Approximtion in the -norm Suppose tht we wish to obtin function f n (x) tht is liner combintion

More information

FABER Formal Languages, Automata and Models of Computation

FABER Formal Languages, Automata and Models of Computation DVA337 FABER Forml Lnguges, Automt nd Models of Computtion Lecture 5 chool of Innovtion, Design nd Engineering Mälrdlen University 2015 1 Recp of lecture 4 y definition suset construction DFA NFA stte

More information

Elements of Matrix Algebra

Elements of Matrix Algebra Elements of Mtrix Algebr Klus Neusser Kurt Schmidheiny September 30, 2015 Contents 1 Definitions 2 2 Mtrix opertions 3 3 Rnk of Mtrix 5 4 Specil Functions of Qudrtic Mtrices 6 4.1 Trce of Mtrix.........................

More information

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies Stte spce systems nlysis (continued) Stbility A. Definitions A system is sid to be Asymptoticlly Stble (AS) when it stisfies ut () = 0, t > 0 lim xt () 0. t A system is AS if nd only if the impulse response

More information

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun:

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun: CMPU 240 Lnguge Theory nd Computtion Spring 2019 NFAs nd Regulr Expressions Lst clss: Introduced nondeterministic finite utomt with -trnsitions Tody: Prove n NFA- is no more powerful thn n NFA Introduce

More information

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh Finite Automt Informtics 2A: Lecture 3 Mry Cryn School of Informtics University of Edinburgh mcryn@inf.ed.c.uk 21 September 2018 1 / 30 Lnguges nd Automt Wht is lnguge? Finite utomt: recp Some forml definitions

More information

Chapter 2. Determinants

Chapter 2. Determinants Chpter Determinnts The Determinnt Function Recll tht the X mtrix A c b d is invertible if d-bc0. The expression d-bc occurs so frequently tht it hs nme; it is clled the determinnt of the mtrix A nd is

More information

MATH 101A: ALGEBRA I PART B: RINGS AND MODULES 35

MATH 101A: ALGEBRA I PART B: RINGS AND MODULES 35 MATH 101A: ALGEBRA I PART B: RINGS AND MODULES 35 9. Modules over PID This week we re proving the fundmentl theorem for finitely generted modules over PID, nmely tht they re ll direct sums of cyclic modules.

More information

1. Review. t 2. t 1. v w = vw cos( ) where is the angle between v and w. The above leads to the Schwarz inequality: v w vw.

1. Review. t 2. t 1. v w = vw cos( ) where is the angle between v and w. The above leads to the Schwarz inequality: v w vw. 1. Review 1.1. The Geometry of Curves. AprmetriccurveinR 3 is mp R R 3 t (t) = (x(t),y(t),z(t)). We sy tht is di erentile if x, y, z re di erentile. We sy tht it is C 1 if, in ddition, the derivtives re

More information

A Algebra-Coalgebra Duality in Brzozowski s Minimization Algorithm

A Algebra-Coalgebra Duality in Brzozowski s Minimization Algorithm A Alger-Colger Dulity in Brzozowski s Minimiztion Algorithm F. BONCHI, ENS Lyon, Université de Lyon LIP (UMR 5668) M.M. BONSANGUE, LIACS - Leiden University H.H. HANSEN, Rdoud University Nijmegen P. PANANGADEN,

More information

Chapter 4 Regular Grammar and Regular Sets. (Solutions / Hints)

Chapter 4 Regular Grammar and Regular Sets. (Solutions / Hints) C K Ngpl Forml Lnguges nd utomt Theory Chpter 4 Regulr Grmmr nd Regulr ets (olutions / Hints) ol. (),,,,,,,,,,,,,,,,,,,,,,,,,, (),, (c) c c, c c, c, c, c c, c, c, c, c, c, c, c c,c, c, c, c, c, c, c, c,

More information

N 0 completions on partial matrices

N 0 completions on partial matrices N 0 completions on prtil mtrices C. Jordán C. Mendes Arújo Jun R. Torregros Instituto de Mtemátic Multidisciplinr / Centro de Mtemátic Universidd Politécnic de Vlenci / Universidde do Minho Cmino de Ver

More information

Computing with finite semigroups: part I

Computing with finite semigroups: part I Computing with finite semigroups: prt I J. D. Mitchell School of Mthemtics nd Sttistics, University of St Andrews Novemer 20th, 2015 J. D. Mitchell (St Andrews) Novemer 20th, 2015 1 / 34 Wht is this tlk

More information

Regular languages refresher

Regular languages refresher Regulr lnguges refresher 1 Regulr lnguges refresher Forml lnguges Alphet = finite set of letters Word = sequene of letter Lnguge = set of words Regulr lnguges defined equivlently y Regulr expressions Finite-stte

More information

2. Lexical Analysis. Oscar Nierstrasz

2. Lexical Analysis. Oscar Nierstrasz 2. Lexicl Anlysis Oscr Nierstrsz Thnks to Jens Plserg nd Tony Hosking for their kind permission to reuse nd dpt the CS132 nd CS502 lecture notes. http://www.cs.ucl.edu/~plserg/ http://www.cs.purdue.edu/homes/hosking/

More information

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT SCHOOL OF ENGINEERING & BUIL ENVIRONMEN MARICES FOR ENGINEERING Dr Clum Mcdonld Contents Introduction Definitions Wht is mtri? Rows nd columns of mtri Order of mtri Element of mtri Equlity of mtrices Opertions

More information

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations.

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations. Lecture 3 3 Solving liner equtions In this lecture we will discuss lgorithms for solving systems of liner equtions Multiplictive identity Let us restrict ourselves to considering squre mtrices since one

More information

Non-Deterministic Finite Automata

Non-Deterministic Finite Automata Non-Deterministic Finite Automt http://users.comlb.ox.c.uk/luke. ong/teching/moc/nf2up.pdf 1 Nondeterministic Finite Automton (NFA) Alphbet ={} q1 q2 2 Alphbet ={} Two choices q1 q2 3 Alphbet ={} Two choices

More information

Thoery of Automata CS402

Thoery of Automata CS402 Thoery of Automt C402 Theory of Automt Tle of contents: Lecture N0. 1... 4 ummry... 4 Wht does utomt men?... 4 Introduction to lnguges... 4 Alphets... 4 trings... 4 Defining Lnguges... 5 Lecture N0. 2...

More information