Petri Nets. Rebecca Albrecht. Seminar: Automata Theory Chair of Software Engeneering
|
|
- Dennis Byrd
- 5 years ago
- Views:
Transcription
1 Petri Nets Ree Alreht Seminr: Automt Theory Chir of Softwre Engeneering
2 Overview 1. Motivtion: Why not just using finite utomt for everything? Wht re Petri Nets nd when do we use them? 2. Introdution: How do Petri Nets work? 3. Lnguges: Wht is the generl expressiveness power of Petri Nets? 4. Deidility nd Complexity: Wht is the omplexity of ertin deision prolems? Wht if we ssure ertin onditions? Petri Nets 2
3 Overview 1. Motivtion: Why not just using finite utomt for everything? Wht re Petri Nets nd when do we use them? 2. Introdution: 3. Lnguges: 4. Deidility nd Complexity: Petri Nets 3
4 Motivtion Consider: Two groups of workers produe goods of type A nd type B. Two goods of type A nd type B n e omined into type C. The orresponding lnguge: L = {,,,,, } Petri Nets 4
5 Motivtion The orresponding lnguge: L = {,,,,, } The orresponding finite utomton: A B A A B A B B B B A A C Petri Nets 5
6 Prolem Anlysis The prolem: A nd B re produed onurrently nd synhronous. The prodution hs to e synhronized when produing C. The solution: Automton model whih llows for expressing these properties of system or proess more onise Petri Nets Petri Nets 6
7 Possile Solution The orresponding lnguge: L = {,,,,, } A Petri Net for the given prolem: Petri Nets 7
8 Overview 1. Motivtion: 2. Introdution: How do Petri Nets work? 3. Lnguges: 4. Deidility nd Complexity: Petri Nets 8
9 Struturl Definitions A Petri Net for the given prolem: N = (P, T, F) Petri Nets 9
10 Struturl Definitions A Petri Net for the given prolem: p0 p1 p2 p6 N = (P, T, F) P = {p 0,, p 6 } p3 p4 p Petri Nets 10
11 Struturl Definitions A Petri Net for the given prolem: p0 t0 p1 p2 N = (P, T, F) t4 p6 P = p 0,, p 6 T = t 0,, t 4 p3 p4 t3 p Petri Nets 11
12 Struturl Definitions A Petri Net for the given prolem: p0 t0 p1 p2 N = (P, T, F) t4 p6 P = p 0,, p 6 T = t 0,, t 4 F P T T P p3 p4 t3 p Petri Nets 12
13 Struturl Definitions A Petri Net for the given prolem: p0 t0 p1 p2 N = (P, T, F) p3 p4 t3 p5 t4 p6 P = p 0,, p 6 T = t 0,, t 4 F P T T P m: P N Petri Nets 13
14 Struturl Definitions A Petri Net for the given prolem: p0 p1 p2 N = (P, T, F) p3 p4 p5 p6 P = p 0,, p 6 T = t 0,, t 4 F P T T P m: P N Σ =,, l: T Σ Petri Nets 14
15 Behvior L = {,,,,, } A Petri Net for the given lnguge: P = (p 0,, p 6 ) p0 p1 p2 M 0 = 1, 0, 0, 1, 0, 0, 0 p6 p3 p4 p Petri Nets 15
16 Behvior L = {,,,,, } A Petri Net for the given lnguge: P = (p 0,, p 6 ) p0 p1 p2 p6 M 0 = 1, 0, 0, 1, 0, 0, 0 M 1 = 0, 1, 0, 1, 0, 0, 0 p3 p4 p Petri Nets 16
17 Behvior L = {,,,,, } A Petri Net for the given lnguge: P = (p 0,, p 6 ) p0 p1 p2 p6 M 0 = 1, 0, 0, 1, 0, 0, 0 M 1 = 0, 1, 0, 1, 0, 0, 0 M 2 = 0, 0, 1, 1, 0, 0, 0 p3 p4 p Petri Nets 17
18 Behvior L = {,,,,, } A Petri Net for the given lnguge: P = (p 0,, p 6 ) p0 p1 p2 p6 M 0 = 1, 0, 0, 1, 0, 0, 0 M 1 = 0, 1, 0, 1, 0, 0, 0 M 2 = 0, 0, 1, 1, 0, 0, 0 M 3 = 0, 0, 1, 0, 1, 0, 0 p3 p4 p Petri Nets 18
19 Behvior L = {,,,,, } A Petri Net for the given lnguge: P = (p 0,, p 6 ) p0 p1 p2 p3 p4 p5 p6 M 0 = 1, 0, 0, 1, 0, 0, 0 M 1 = 0, 1, 0, 1, 0, 0, 0 M 2 = 0, 0, 1, 1, 0, 0, 0 M 3 = 0, 0, 1, 0, 1, 0, 0 M 4 = 0, 0, 1, 0, 0, 1, Petri Nets 19
20 Behvior L = {,,,,, } A Petri Net for the given lnguge: P = (p 0,, p 6 ) p0 p1 p2 p3 p4 p5 p6 M 0 = 1, 0, 0, 1, 0, 0, 0 M 1 = 0, 1, 0, 1, 0, 0, 0 M 2 = 0, 0, 1, 1, 0, 0, 0 M 3 = 0, 0, 1, 0, 1, 0, 0 M 4 = 0, 0, 1, 0, 0, 1, 0 M 5 = 0, 0, 0, 0, 0, 0, Petri Nets 20
21 Overview 1. Motivtion: 2. Introdution: 3. Lnguges: Wht is the generl expressiveness power of Petri Nets? 4. Deidility nd Complexity: Petri Nets 21
22 Lnguge Aeptne Definition: N = N, M I, M F, l with, N = P, T, F petri net, l: T Σ leling funtion, Σ non-empty lphet, nd M I, M F finite sets of initil nd finl mrkings respetively, epts word w Σ if there exists firing sequene τ = t 1,, t n from m i M I to m j M F Petri Nets 22
23 Petri Net Lnguges CSL PNL REG CFL n n n ww ww R Figure tken from [3] Petri Nets 23
24 Lnguge - Exmple Let Σ =,,, L = n n n n > 0} Petri Net: p2 p4 p0 p1 p3 p5 Initil mrking: (1,0,0,0,0,0) Finl mrking: (0,0,0,0,0,1) Petri Nets 24
25 Lnguge - Exmple Let Σ =,,, L = n n n n > 0} Consider: Petri Net: p2 p4 p0 p1 p3 p5 Initil mrking: (1,0,0,0,0,0) Finl mrking: (0,0,0,0,0,1) Petri Nets 25
26 Lnguge - Exmple Let Σ =,,, L = n n n n > 0} Consider: Petri Net: p2 p4 p0 p1 p3 p5 Initil mrking: (1,0,0,0,0,0) Finl mrking: (0,0,0,0,0,1) Petri Nets 26
27 Lnguge - Exmple Let Σ =,,, L = n n n n > 0} Consider: Petri Net: p2 p4 p0 p1 p3 p5 Initil mrking: (1,0,0,0,0,0) Finl mrking: (0,0,0,0,0,1) Petri Nets 27
28 Lnguge - Exmple Let Σ =,,, L = n n n n > 0} Consider: Petri Net: p2 p4 p0 p1 p3 p5 Initil mrking: (1,0,0,0,0,0) Finl mrking: (0,0,0,0,0,1) Petri Nets 28
29 Lnguge - Exmple Let Σ =,,, L = n n n n > 0} Consider: Petri Net: p2 p4 p0 p1 p3 p5 Initil mrking: (1,0,0,0,0,0) Finl mrking: (0,0,0,0,0,1) Petri Nets 29
30 Lnguge - Exmple Let Σ =,,, L = n n n n > 0} Consider: Petri Net: p2 p4 p0 p1 p3 p5 Initil mrking: (1,0,0,0,0,0) Finl mrking: (0,0,0,0,0,1) Petri Nets 30
31 Lnguge - Exmple Let Σ =,,, L = n n n n > 0} Consider: Petri Net: p2 p4 p0 p1 p3 p5 Initil mrking: (1,0,0,0,0,0) Finl mrking: (0,0,0,0,0,1) Petri Nets 31
32 Lnguge - Exmple Let Σ =,,, L = n n n n > 0} Consider: Petri Net: p2 p4 p0 p1 p3 p5 Initil mrking: (1,0,0,0,0,0) Finl mrking: (0,0,0,0,0,1) Petri Nets 32
33 Lnguge - Exmple Let Σ =,,, L = n n n n > 0} Consider: Petri Net: p2 p4 p0 p1 p3 p5 Initil mrking: (1,0,0,0,0,0) Finl mrking: (0,0,0,0,0,1) Petri Nets 33
34 Lnguge - Exmple Let Σ =,,, L = n n n n > 0} Consider: Petri Net: p2 p4 p0 p1 p3 p5 Initil mrking: (1,0,0,0,0,0) Finl mrking: (0,0,0,0,0,1) Petri Nets 34
35 Overview 1. Motivtion: 2. Introdution: 3. Lnguges: 4. Deidility nd Complexity: Wht is the omplexity of ertin deision prolems? Wht if we ssure ertin onditions? Petri Nets 35
36 Rehility Prolem Is ertin mrking rehle in Petri Net? I.e. n system reh some d stte? Anlysis: 1. Wht out the rehility prolem for Petri Nets in generl? 2. Are there ertin properties whih llow for deiding the rehility prolem effiiently? Generl nlysis tool: The rehility/overility tree Petri Nets 36
37 Rehility Tree Petri Net: Rehility Tree: p1 (1, 0, 1, 0) p0 t0 p3 p2 Exmple tken from [2] Petri Nets 37
38 Rehility Tree Petri Net: Rehility Tree: p0 t0 p1 (1, 0, 1, 0) (1, 0, 0, 1) p3 p2 Exmple tken from [2] Petri Nets 38
39 Rehility Tree Petri Net: Rehility Tree: p0 t0 p1 (1, 0, 1, 0) (1, 0, 0, 1) p3 (1, 1, 1, 0) p2 Exmple tken from [2] Petri Nets 39
40 Rehility Tree Petri Net: Rehility Tree: p0 t0 p1 (1, 0, 1, 0) (1, 0, 0, 1) p3 (1, 1, 1, 0) p2 (1, 1, 0, 1) Exmple tken from [2] Petri Nets 40
41 Rehility Tree Petri Net: Rehility Tree: p0 t0 p1 (1, 0, 1, 0) (1, 0, 0, 1) p3 (1, 1, 1, 0) p2 (1, 1, 0, 1) (1, 2, 1, 0) Exmple tken from [2] Petri Nets 41
42 Coverility Tree Petri Net: Coverility Tree: p0 t0 p1 (1, 0, 1, 0) (1, 0, 0, 1) p3 (1, ω, 1, 0) p2 (1, ω, 0, 1) (1, ω, 1, 0) Exmple tken from [2] Petri Nets 42
43 Coverility Tree Petri Net: Coverility Tree: p0 t0 p1 (1, 0, 1, 0) (1, 0, 0, 1) p3 t0 (1, ω, 1, 0) p2 (1, ω, 0, 0) (1, ω, 0, 1) (1, ω, 1, 0) Exmple tken from [2] Petri Nets 43
44 Boundedness Unounded Petri Net: Coverility Tree: p0 t0 p1 (1, 0, 1, 0) (1, 0, 0, 1) p3 t0 (1, ω, 1, 0) p2 (1, ω, 0, 0) (1, ω, 0, 1) (1, ω, 1, 0) A Petri net ist unounded if nd only if there exists rehle mrking M nd sequene of trnsitions σ suh tht: M σ M + L, where L is non-zero lel Petri Nets 44
45 Boundedness A Petri net ist unounded if nd only if there exists rehle mrking M nd sequene of trnsitions σ suh tht: M σ M + L, where L is non-zero lel Deidle in 2n log n Sulsses of Petri Nets wrt. oundness: 1-ounded (or 1-sfe) k-ounded (or ounded) Petri Nets 45
46 Conflits Petri Net: Coverility Tree: p0 t0 p1 (1, 0, 1, 0) (1, 0, 0, 1) p3 t0 (1, ε, 1, 0) p2 (1, ε, 0, 0) (1, ε, 0, 1) (1, ε, 1, 0) Petri Nets 46
47 Conflits Conflited Petri Net: Coverility Tree: p0 t0 p1 (1, 0, 1, 0) (1, 0, 0, 1) p2 Informl Definition: p3 (1, ε, 1, 0) (1, ε, 0, 0) (1, ε, 0, 1) (1, ε, 1, 0) A Petri hs onfliting onfigurtion if two or more trnsitions re enled nd firing one trnsition disles the other trnsitions. t Petri Nets 47
48 Conflits Conflited Petri Net: Coverility Tree: p0 t0 p1 (1, 0, 1, 0) (1, 0, 0, 1) p2 p3 t0 (1, ε, 1, 0) (1, ε, 0, 0) (1, ε, 0, 1) (1, ε, 1, 0) Informl Definition: A Petri is onflit free if it hs no onfliting onfigurtions Petri Nets 48
49 Rehility Prolem Is ertin mrking rehle in Petri Net? I.e. n system reh some d stte? Anlysis: 1. Wht out the rehility prolem for Petri Nets in generl? 2. Are there ertin properties whih llow for deiding the rehility prolem effiiently? Generl nlysis tool: The rehility/overility tree Petri Nets 49
50 Rehility Prolem Deide whether mrking M n e rehed for Petri Net N. In generl, doule exponentil time. 1-sfe, PSPACE-omplete. Conflit-free, NP-omplete. Bounded nd onflit-free, polynominl Petri Nets 50
51 Conlusion Petri Nets llow for onise representtion of onurrent proesses. In generl, Petri Nets reognize ll regulr lnguges, some ontext-free lnguges nd some ontext-sensitive lnguges. In generl, ertin deision prolems re hrder thn in other utomt models. The expressiveness power of Petri Nets n e restrited in order to deide ertin deision prolems effiiently Petri Nets 51
52 Referenes [1] Murt, T. (1989, April). Petri Nets: Properties, Anlysis nd pplitions. In Proeedings of the IEEE (Vol. 77, pp ). [2] Peterson, J. L. (1977, Septemer). Petri Nets. ACM Computing Surveys, 9 (3), [3] Thoms, W. (2005) Applied Automt Theory. Sript ville: [4] Esprz, J. nd Nielsen, M. (1995) Deidility issues for Petri nets - survey. In Bulletin of the EATCS, Revised, Petri Nets 52
53 The End Thnk you for your ttention! Petri Nets 53
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 informationRegular 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 informationCS 573 Automata Theory and Formal Languages
Non-determinism Automt Theory nd Forml Lnguges Professor Leslie Lnder Leture # 3 Septemer 6, 2 To hieve our gol, we need the onept of Non-deterministi Finite Automton with -moves (NFA) An NFA is tuple
More informationFinite State Automata and Determinisation
Finite Stte Automt nd Deterministion Tim Dworn Jnury, 2016 Lnguges fs nf re df Deterministion 2 Outline 1 Lnguges 2 Finite Stte Automt (fs) 3 Non-deterministi Finite Stte Automt (nf) 4 Regulr Expressions
More informationThe University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS
The University of ottinghm SCHOOL OF COMPUTR SCIC A LVL 2 MODUL, SPRIG SMSTR 2015 2016 MACHIS AD THIR LAGUAGS ASWRS Time llowed TWO hours Cndidtes my omplete the front over of their nswer ook nd sign their
More informationState Complexity of Union and Intersection of Binary Suffix-Free Languages
Stte Complexity of Union nd Intersetion of Binry Suffix-Free Lnguges Glin Jirásková nd Pvol Olejár Slovk Ademy of Sienes nd Šfárik University, Košie 0000 1111 0000 1111 Glin Jirásková nd Pvol Olejár Binry
More informationChapter 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= state, a = reading and q j
4 Finite Automt CHAPTER 2 Finite Automt (FA) (i) Derterministi Finite Automt (DFA) A DFA, M Q, q,, F, Where, Q = set of sttes (finite) q Q = the strt/initil stte = input lphet (finite) (use only those
More informationPrefix-Free Regular-Expression Matching
Prefix-Free Regulr-Expression Mthing Yo-Su Hn, Yjun Wng nd Derik Wood Deprtment of Computer Siene HKUST Prefix-Free Regulr-Expression Mthing p.1/15 Pttern Mthing Given pttern P nd text T, find ll sustrings
More informationAbstraction of Nondeterministic Automata Rong Su
Astrtion of Nondeterministi Automt Rong Su My 6, 2010 TU/e Mehnil Engineering, Systems Engineering Group 1 Outline Motivtion Automton Astrtion Relevnt Properties Conlusions My 6, 2010 TU/e Mehnil Engineering,
More informationSpeech 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 informationUnfoldings of Networks of Timed Automata
Unfolings of Networks of Time Automt Frnk Cssez Thoms Chtin Clue Jr Ptrii Bouyer Serge H Pierre-Alin Reynier Rennes, Deemer 3, 2008 Unfolings [MMilln 93] First efine for Petri nets Then extene to other
More informationFundamentals 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 informationSpeech 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 informationTechnische 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 informationNon-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 informationNon-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 informationLet's start with an example:
Finite Automt Let's strt with n exmple: Here you see leled circles tht re sttes, nd leled rrows tht re trnsitions. One of the sttes is mrked "strt". One of the sttes hs doule circle; this is terminl stte
More informationCS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6
CS311 Computtionl Strutures Regulr Lnguges nd Regulr Grmmrs Leture 6 1 Wht we know so fr: RLs re losed under produt, union nd * Every RL n e written s RE, nd every RE represents RL Every RL n e reognized
More informationChapter 1, Part 1. Regular Languages. CSC527, Chapter 1, Part 1 c 2012 Mitsunori Ogihara 1
Chpter 1, Prt 1 Regulr Lnguges CSC527, Chpter 1, Prt 1 c 2012 Mitsunori Ogihr 1 Finite Automt A finite utomton is system for processing ny finite sequence of symols, where the symols re chosen from finite
More informationFormal Methods for XML: Algorithms & Complexity
Forml Methods for XML: Algorithms & Complexity S. Mrgherit di Pul August 2004 Thoms Shwentik Shwentik XML: Algorithms & Complexity Introdution 1 XML Exmple Doument Composer Nme Clude Debussy /Nme Vit Born
More informationDeterministic 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 informationCONTROLLABILITY and observability are the central
1 Complexity of Infiml Oservle Superlnguges Tomáš Msopust Astrt The infiml prefix-losed, ontrollle nd oservle superlnguge plys n essentil role in the reltionship etween ontrollility, oservility nd o-oservility
More informationDescriptional Complexity of Non-Unary Self-Verifying Symmetric Difference Automata
Desriptionl Complexity of Non-Unry Self-Verifying Symmetri Differene Automt Lurette Mris 1,2 nd Lynette vn Zijl 1 1 Deprtment of Computer Siene, Stellenosh University, South Afri 2 Merk Institute, CSIR,
More informationChapter 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 informationNon Deterministic Automata. Formal Languages and Automata - Yonsei CS 1
Non Deterministic Automt Forml Lnguges nd Automt - Yonsei CS 1 Nondeterministic Finite Accepter (NFA) We llow set of possible moves insted of A unique move. Alphbet = {} Two choices q 1 q2 Forml Lnguges
More informationCS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata
CS103B ndout 18 Winter 2007 Ferury 28, 2007 Finite Automt Initil text y Mggie Johnson. Introduction Severl childrens gmes fit the following description: Pieces re set up on plying ord; dice re thrown or
More informationRunning an NFA & the subset algorithm (NFA->DFA) CS 350 Fall 2018 gilray.org/classes/fall2018/cs350/
Running n NFA & the suset lgorithm (NFA->DFA) CS 350 Fll 2018 gilry.org/lsses/fll2018/s350/ 1 NFAs operte y simultneously exploring ll pths nd epting if ny pth termintes t n ept stte.!2 Try n exmple: L
More informationOn Persistent Reachability in Petri Nets *
On Persistent Rehility in Petri Nets * Kmil Brylsk 1, Łuksz Mikulski 1, Edwrd Ohmnski 1,2 1 Fulty of Mthemtis nd Computer Siene, Niolus Copernius University, Torun 2 Institute of Computer Siene, Polish
More informationGénération aléatoire uniforme pour les réseaux d automates
Génértion létoire uniforme pour les réseux d utomtes Niols Bsset (Trvil ommun ve Mihèle Sori et Jen Miresse) Université lire de Bruxelles Journées Alé 2017 1/25 Motivtions (1/2) p q Automt re omni-present
More informationOn Determinisation of History-Deterministic Automata.
On Deterministion of History-Deterministic Automt. Denis Kupererg Mich l Skrzypczk University of Wrsw YR-ICALP 2014 Copenhgen Introduction Deterministic utomt re centrl tool in utomt theory: Polynomil
More informationToday 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 informationAutomata 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 informationA Disambiguation Algorithm for Finite Automata and Functional Transducers
A Dismigution Algorithm for Finite Automt n Funtionl Trnsuers Mehryr Mohri Cournt Institute of Mthemtil Sienes n Google Reserh 51 Merer Street, New York, NY 1001, USA Astrt. We present new ismigution lgorithm
More informationOn the Maximally-Permissive Range Control Problem in Partially-Observed Discrete Event Systems
On the Mximlly-Permissie Rnge Control Prolem in Prtilly-Osered Disrete Eent Systems Xing Yin nd Stéphne Lfortune EECS Deprtment, Uniersity of Mihign 55th IEEE CDC, De 2-4, 206, Ls Vegs, USA X.Yin & S.Lfortune
More informationTheory 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 informationEngr354: Digital Logic Circuits
Engr354: Digitl Logi Ciruits Chpter 4: Logi Optimiztion Curtis Nelson Logi Optimiztion In hpter 4 you will lern out: Synthesis of logi funtions; Anlysis of logi iruits; Tehniques for deriving minimum-ost
More informationAlpha Algorithm: Limitations
Proess Mining: Dt Siene in Ation Alph Algorithm: Limittions prof.dr.ir. Wil vn der Alst www.proessmining.org Let L e n event log over T. α(l) is defined s follows. 1. T L = { t T σ L t σ}, 2. T I = { t
More informationTheory 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 informationCompiler Design. Spring Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz
University of Southern Cliforni Computer Siene Deprtment Compiler Design Spring 7 Lexil Anlysis Smple Exerises nd Solutions Prof. Pedro C. Diniz USC / Informtion Sienes Institute 47 Admirlty Wy, Suite
More information2.4 Theoretical Foundations
2 Progrmming Lnguge Syntx 2.4 Theoretil Fountions As note in the min text, snners n prsers re se on the finite utomt n pushown utomt tht form the ottom two levels of the Chomsky lnguge hierrhy. At eh level
More informationSoftware Engineering using Formal Methods
Softwre Engineering using Forml Methods Propositionl nd (Liner) Temporl Logic Wolfgng Ahrendt 13th Septemer 2016 SEFM: Liner Temporl Logic /GU 160913 1 / 60 Recpitultion: FormlistionFormlistion: Syntx,
More informationBehavior Composition in the Presence of Failure
Behior Composition in the Presene of Filure Sestin Srdin RMIT Uniersity, Melourne, Austrli Fio Ptrizi & Giuseppe De Giomo Spienz Uni. Rom, Itly KR 08, Sept. 2008, Sydney Austrli Introdution There re t
More informationRegular 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 informationBehavior Composition in the Presence of Failure
Behvior Composition in the Presene of Filure Sestin Srdin RMIT University, Melourne, Austrli Fio Ptrizi & Giuseppe De Giomo Spienz Univ. Rom, Itly KR 08, Sept. 2008, Sydney Austrli Introdution There re
More informationCyclic Inputs. Surface Generation (Part II) Ambiguity-preserving Generation. Ambiguity-preserving Generation. Ambiguity-preserving Generation
Cyli Inputs The set of strings tht grmmr reltes to yli input struture might e non-ontext-free Surfe Genertion (Prt II) Amiguity-preserving Genertion Amiguity-preserving Genertion Motivtion Motivtion ()
More informationActive Diagnosis. Serge Haddad. Vecos 16. October the 6th 2016
Ative Dignosis Serge Hddd LSV, ENS Chn & CNRS & Inri, Frne Veos 16 Otoer the 6th 2016 joint work with Nthlie Bertrnd 2, Eri Fre 2, Sten Hr 1,2, Loï Hélouët 2, Trek Melliti 1, Sten Shwoon 1 (1) FSTTCS 2013
More information@#? Text Search ] { "!" Nondeterministic Finite Automata. Transformation NFA to DFA and Simulation of NFA. Text Search Using Automata
g Text Serh @#? ~ Mrko Berezovský Rdek Mřík PAL 0 Nondeterministi Finite Automt n Trnsformtion NFA to DFA nd Simultion of NFA f Text Serh Using Automt A B R Power of Nondeterministi Approh u j Regulr Expression
More informationNon 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 informationGrammar. 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 informationConverting Regular Expressions to Discrete Finite Automata: A Tutorial
Converting Regulr Expressions to Discrete Finite Automt: A Tutoril Dvid Christinsen 2013-01-03 This is tutoril on how to convert regulr expressions to nondeterministic finite utomt (NFA) nd how to convert
More informationTest Generation from Timed Input Output Automata
Chpter 8 Test Genertion from Timed Input Output Automt The purpose of this hpter is to introdue tehniques for the genertion of test dt from models of softwre sed on vrints of timed utomt. The tests generted
More informationCompression of Palindromes and Regularity.
Compression of Plinromes n Regulrity. Kyoko Shikishim-Tsuji Center for Lierl Arts Eution n Reserh Tenri University 1 Introution In [1], property of likstrem t t view of tse is isusse n it is shown tht
More informationHybrid Control and Switched Systems. Lecture #2 How to describe a hybrid system? Formal models for hybrid system
Hyrid Control nd Switched Systems Lecture #2 How to descrie hyrid system? Forml models for hyrid system João P. Hespnh University of Cliforni t Snt Brr Summry. Forml models for hyrid systems: Finite utomt
More informationFormal 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 informationKleene s Theorem. Kleene s Theorem. Kleene s Theorem. Kleene s Theorem. Kleene s Theorem. Kleene s Theorem 2/16/15
Models of Comput:on Lecture #8 Chpter 7 con:nued Any lnguge tht e defined y regulr expression, finite utomton, or trnsi:on grph cn e defined y ll three methods We prove this y showing tht ny lnguge defined
More informationLecture 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 informationAUTOMATA 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 informationCHAPTER 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 informationAutomatic Synthesis of New Behaviors from a Library of Available Behaviors
Automti Synthesis of New Behviors from Lirry of Aville Behviors Giuseppe De Giomo Università di Rom L Spienz, Rom, Itly degiomo@dis.unirom1.it Sestin Srdin RMIT University, Melourne, Austrli ssrdin@s.rmit.edu.u
More informationGeneral Suffix Automaton Construction Algorithm and Space Bounds
Generl Suffix Automton Constrution Algorithm nd Spe Bounds Mehryr Mohri,, Pedro Moreno, Eugene Weinstein, Cournt Institute of Mthemtil Sienes 251 Merer Street, New York, NY 10012. Google Reserh 76 Ninth
More informationCS 267: Automated Verification. Lecture 8: Automata Theoretic Model Checking. Instructor: Tevfik Bultan
CS 267: Automted Verifiction Lecture 8: Automt Theoretic Model Checking Instructor: Tevfik Bultn LTL Properties Büchi utomt [Vrdi nd Wolper LICS 86] Büchi utomt: Finite stte utomt tht ccept infinite strings
More informationNondeterministic 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 informationBottom-Up Parsing. Canonical Collection of LR(0) items. Part II
2 ottom-up Prsing Prt II 1 Cnonil Colletion of LR(0) items CC_LR(0)_I items(g :ugmented_grmmr){ C = {CLOURE({ })} ; repet{ foreh(i C) foreh(grmmr symol X) if(goto(i,x) && GOTO(I,X) C) C = C {GOTO(I,X)};
More informationComplementing Büchi Automata
Complementing Bühi Automt Guillume Sdegh Tehnil Report n o 090, My 009 revision 07 Model heking is field of forml verifition whih ims to utomtilly hek the ehvior of system with the help of logi formulæ.
More informationRegular 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 informationNondeterministic Finite Automata
Nondeterministi Finite utomt The Power of Guessing Tuesdy, Otoer 4, 2 Reding: Sipser.2 (first prt); Stoughton 3.3 3.5 S235 Lnguges nd utomt eprtment of omputer Siene Wellesley ollege Finite utomton (F)
More informationCSCI 340: Computational Models. Transition Graphs. Department of Computer Science
CSCI 340: Computtionl Models Trnsition Grphs Chpter 6 Deprtment of Computer Science Relxing Restrints on Inputs We cn uild n FA tht ccepts only the word! 5 sttes ecuse n FA cn only process one letter t
More informationWhat s so hard about pointers? Reasoning about Pointer-based Data Structures. Traditional Alias Analysis. Language of Pointer Equalities
Wht s so hrd out pointers? Resoning out Pointer-sed Dt Strutures Sott MPek CS 294-3 1/21/4 1 Indiret ess egs lising question Consider xiom for memory: i j sel(upd(m, i, v), j) = sel(m, j) need to e le
More informationCSCI 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 informationCSE 401 Compilers. Today s Agenda
CSE 401 Compilers Leture 3: Regulr Expressions & Snning, on?nued Mihel Ringenurg Tody s Agend Lst?me we reviewed lnguges nd grmmrs, nd riefly strted disussing regulr expressions. Tody I ll restrt the regulr
More informationa,b a 1 a 2 a 3 a,b 1 a,b a,b 2 3 a,b a,b a 2 a,b CS Determinisitic Finite Automata 1
CS4 45- Determinisitic Finite Automt -: Genertors vs. Checkers Regulr expressions re one wy to specify forml lnguge String Genertor Genertes strings in the lnguge Deterministic Finite Automt (DFA) re nother
More informationIntroduction to ω-autamata
Fridy 25 th Jnury, 2013 Outline From finite word utomt ω-regulr lnguge ω-utomt Nondeterministic Models Deterministic Models Two Lower Bounds Conclusion Discussion Synthesis Preliminry From finite word
More informationWorked out examples Finite Automata
Worked out exmples Finite Automt Exmple Design Finite Stte Automton which reds inry string nd ccepts only those tht end with. Since we re in the topic of Non Deterministic Finite Automt (NFA), we will
More informationLexical Analysis Finite Automate
Lexicl Anlysis Finite Automte CMPSC 470 Lecture 04 Topics: Deterministic Finite Automt (DFA) Nondeterministic Finite Automt (NFA) Regulr Expression NFA DFA A. Finite Automt (FA) FA re grph, like trnsition
More informationFinite-State Automata: Recap
Finite-Stte Automt: Recp Deepk D Souz Deprtment of Computer Science nd Automtion Indin Institute of Science, Bnglore. 09 August 2016 Outline 1 Introduction 2 Forml Definitions nd Nottion 3 Closure under
More informationHybrid 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 informationCS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)
CS 373, Spring 29. Solutions to Mock midterm (sed on first midterm in CS 273, Fll 28.) Prolem : Short nswer (8 points) The nswers to these prolems should e short nd not complicted. () If n NF M ccepts
More informationGood-for-Games Automata versus Deterministic Automata.
Good-for-Gmes Automt versus Deterministic Automt. Denis Kuperberg 1,2 Mich l Skrzypczk 1 1 University of Wrsw 2 IRIT/ONERA (Toulouse) Séminire MoVe 12/02/2015 LIF, Luminy Introduction Deterministic utomt
More informationJava 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 information1 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 informationThoery 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 informationCISC 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 informationCS415 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 informationCHAPTER 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 informationTable of contents: Lecture N Summary... 3 What does automata mean?... 3 Introduction to languages... 3 Alphabets... 3 Strings...
Tle of contents: Lecture N0.... 3 ummry... 3 Wht does utomt men?... 3 Introduction to lnguges... 3 Alphets... 3 trings... 3 Defining Lnguges... 4 Lecture N0. 2... 7 ummry... 7 Kleene tr Closure... 7 Recursive
More informationIn-depth introduction to main models, concepts of theory of computation:
CMPSCI601: Introduction Lecture 1 In-depth introduction to min models, concepts of theory of computtion: Computility: wht cn e computed in principle Logic: how cn we express our requirements Complexity:
More informationDesigning finite automata II
Designing finite utomt II Prolem: Design DFA A such tht L(A) consists of ll strings of nd which re of length 3n, for n = 0, 1, 2, (1) Determine wht to rememer out the input string Assign stte to ech of
More informationThe Value 1 Problem for Probabilistic Automata
The Vlue 1 Prolem for Proilistic Automt Bruxelles Nthnël Fijlkow LIAFA, Université Denis Diderot - Pris 7, Frnce Institute of Informtics, Wrsw University, Polnd nth@lif.univ-pris-diderot.fr June 20th,
More informationCMSC 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 informationCMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014
CMPSCI 250: Introduction to Computtion Lecture #31: Wht DFA s Cn nd Cn t Do Dvid Mix Brrington 9 April 2014 Wht DFA s Cn nd Cn t Do Deterministic Finite Automt Forml Definition of DFA s Exmples of DFA
More informationDeterministic Finite-State Automata
Deterministic Finite-Stte Automt Deepk D Souz Deprtment of Computer Science nd Automtion Indin Institute of Science, Bnglore. 12 August 2013 Outline 1 Introduction 2 Exmple DFA 1 DFA for Odd number of
More informationAutomata 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 informationLearning Partially Observable Markov Models from First Passage Times
Lerning Prtilly Oservle Mrkov s from First Pssge s Jérôme Cllut nd Pierre Dupont Europen Conferene on Mhine Lerning (ECML) 8 Septemer 7 Outline. FPT in models nd sequenes. Prtilly Oservle Mrkov s (POMMs).
More informationTypes 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 informationTypes 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 informationFoundations of XML Types: Tree Automata
1 / 43 Foundtions of XML Types: Tree Automt Pierre Genevès CNRS (slides mostly sed on slides y W. Mrtens nd T. Schwentick) University of Grenole Alpes, 2017 2018 2 / 43 Why Tree Automt? Foundtions of XML
More information12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2016
CS125 Lecture 12 Fll 2016 12.1 Nondeterminism The ide of nondeterministic computtions is to llow our lgorithms to mke guesses, nd only require tht they ccept when the guesses re correct. For exmple, simple
More informationCS241 Week 6 Tutorial Solutions
241 Week 6 Tutoril olutions Lnguges: nning & ontext-free Grmmrs Winter 2018 1 nning Exerises 1. 0x0x0xd HEXINT 0x0 I x0xd 2. 0xend--- HEXINT 0xe I nd ER -- MINU - 3. 1234-120x INT 1234 INT -120 I x 4.
More informationSubsequence Automata with Default Transitions
Susequene Automt with Defult Trnsitions Philip Bille, Inge Li Gørtz, n Freerik Rye Skjoljensen Tehnil University of Denmrk {phi,inge,fskj}@tu.k Astrt. Let S e string of length n with hrters from n lphet
More information