Industrial Automation (Automação de Processos Industriais)
|
|
- Joleen Richard
- 5 years ago
- Views:
Transcription
1 Industrial Automation (Automação de Processos Industriais) Discrete Event Systems Slides 2010/2011 Prof. Paulo Jorge Oliveira Rev Prof. José Gaspar Page 1
2 Syllabus: Chap. 5 CAD/CAM and CNC [1 week]... [2 weeks] Discrete event systems modeling. Automata. Petri Nets: state, dynamics, and modeling. Extended and strict models. Subclasses of Petri nets. Chap. 7 Analysis of Discrete Event Systems [2 weeks] Page 2
3 Some pointers to Discrete Event Systems History: Tutorial: Analyzers, and Simulators: (in Portuguese) Bibliography: * Discrete Event Systems - Modeling and Performance Analysis, Christos G. Cassandras, Aksen Associates, * Petri Net Theory and the Modeling of Systems, James L. Petersen, Prentice-Hall,1981. * Petri Nets and GRAFCET: Tools for Modeling Discrete Event Systems R. David, H. Alla, Prentice-Hall, 1992 Page 3
4 Generic characterization of systems resorting to input / output relations State equations: x ( t) y( t) in continuous time (or in discrete time) Examples? f ( x( t), u( t), t) g( x( t), u( t), t) Page 4
5 Control: Open loop vs closed-loop ( the use of feedback) Advantages of feedback? (to revisit during DES supervision study) Page 5
6 Example of closed-loop with feedback Page 6
7 Discrete Event Systems: Examples Set of events: E={N, S, E, W} Page 7
8 Discrete Event Systems: Examples Queueing systems Queue Server Clients arrival Clients departure Set of events: E= {arrival, departure} Page 8
9 Discrete Event Systems: Examples Computational Systems CPU CPU Processes Arrival CPU Processes Departure Page 9
10 Characteristics of systems with continuous variables 1. State space is continuous 2. The state transition mechanism is time-driven Characteristics of systems with discrete events 1. State space is discrete 2. The state transition mechanism is event-driven Intrinsic characteristic of discrete events systems: Polling is avoided! Page 10
11 Taxonomy of Systems Page 11
12 Levels of abstraction in the study of Discrete Event Systems Language of a chocolate selling machine : (i) Waiting for a coin. (ii) Received 1 euro coin. Chocolate A given. Go to (i). (iii) Received 2 euro coin. Chocolate B given. Go to (i). 4 sensors: Received 1 euro coin, Received 2 euro coin, Chocolate A given, Chocolate B given. Languages Timed languages Stochastic timed languages Page 12
13 Systems Theory Objectives Modeling and Analysis Design and synthesis Control / Supervision Performance assessment and robustness Optimization Applications of Discrete Event Systems Queueing systems Operating systems and computers Telecommunications networks Distributed databases Automation Page 13
14 Discrete Event Systems Typical modeling methodologies Automata GRAFCET / SFC Petri nets Augmenting in modeling capacity & complexity Page 14
15 Automata Theory and Languages Genesis of computation theory Definition: A language L, defined over the alphabet E is a set of strings of finite length with events from E. Examples: E= {α β γ} L 1 = {ε αα αβ γβα}, where ε is the null/empty string L 2 = {all strings of length 3} How to build a machine that talks a given language? or What language talks a system? Page 15
16 Operations / Properties of languages E * = Kleene-closure of E: set of all strings of finite length of E, including the null element ε. Concatenation of L a and L b : L a L b * : s E : s s s, s L, a b a a s b L b Prefix-closure of L E * : L * : s E : t st * E L Page 16
17 Operations / Properties of languages [Cassandras99] Page 17
18 Automata Theory and Languages Motivation: An automaton is a device capable of representing a language according to some rules. Definition: A deterministic automaton is a 5-tuple where: (E, X, f, x 0,F) E - finite alphabet (or possible events) X - finite set of states f - state transition function f: X x E X x 0 - initial state x 0 X F - set of final states or marked states F E [Cassandras93] Word of caution: the word state is used here to mean step (Grafcet) or place (Petri Nets) Page 18
19 Example 1 of an automaton: (E, X, f, x 0,F) E = {α β γ} X = {x, y, z} x 0 = x F = {x, z} f(x, α x f(x, β z f(x, γ z f(y, α x f(y, β y f(y, γ y f(z, α y f(z, β z f(z, γ y Page 19
20 Example 2 of a stochastic automaton (E, X, f, x 0,F) E = {α β} X = {0, 1} x 0 = 0 F = {0} f(0, α f(0, β {} f(1, α f(1, β Page 20
21 Given an automaton G = (E, X, f, x 0,F) the Generated Language is defined as L(G) := {s f(x 0,s) is defined} Note: if f is always defined then L(G)==E* and the Marked Language is defined as L m (G) := {s f(x 0,s) F} Page 21
22 Example 3: marked language of an automaton b a 0 1 b a L(G) := {ε, a, b, aa, ab, ba, bb, aaa, aab, baa, } L m (G) := {a, aa, ba, aaa, baa, bba, } Concluding, in this example L m (G) means all strings with events a and b, ended by event a. Page 22
23 Automata equivalence: The automata G 1 e G 2 are equivalent if L(G 1 ) = L(G 2 ) and L m (G 1 ) = L m (G 2 ) Page 23
24 Example 4: two equivalent automata Objective: To validate a sequence of events Page 24
25 Deadlocks (inter-blocagem) Example 5: 0 a g 1 2 b The state 5 is a deadlock. a g 3 The states 3 and 4 constitute a livelock. a b 5 4 How to find the deadlocks and the livelocks? Need methodologies for the analysis of Discrete Event Systems Page 25
26 Deadlock: in general the following relations are verified L m G L G L G m An automaton G has a deadlock if and is not blocked when L m L m G L G G L G Page 26
27 Deadlock: Example: 1 a 0 b g 2 a g 3 a b 5 4 Lm G ab, abgab, abgabgab,..., a, ab, ag, aa, aab, L G abg, aaba, abga,... L m G L G The state 5 is a deadlock. The states 3 and 4 constitute a livelock. L m G L G Page 27
28 Alternative way to detect deadlocks: Example: 0 a g 1 2 b a g 3 a b 5 4 ε g a 1 a 3 b b 2 g The state 5 is a deadlock. 4 a 0 The states 3 and 4 constitute a livelock. 3 Page 28
29 Timed Discrete Event Systems Page 29
30 Examples of Automata Classes and Applications Automaton Class Recognizable language Applications Finite state machine (FSM), e.g. Moore machines or Mealy machines Pushdown automaton (PDA) Turing machine (nondeterministic, deterministic, multitape,...) Regular languages Context-free languages Recursively enumerable languages Text processing, compilers, and hardware design Programming languages, artificial intelligence, (originally) study of the human languages Theory, complexity Page 30
31 Petri nets Developed by Carl Adam Petri in his PhD thesis in Definition: A marked Petri net is a 5-tuple (P, T, A, w, x 0 ) where: P T - set of places - set of transitions A - set of arcs A (P x T) (T x P) w - weight function w: A x 0 - initial marking x 0 :P [Cassandras93] Page 31
32 Example of a Petri net (P, T, A, w, x 0 ) P={p 1, p 2, p 3, p 4, p 5 } T={t 1, t 2, t 3, t 4 } A={(p 1, t 1 ), (t 1, p 2 ), (t 1, p 3 ), (p 2, t 2 ), (p 3, t 3 ), (t 2, p 4 ), (t 3, p 5 ), (p 4, t 4 ), (p 5, t 4 ), (t 4, p 1 )} w(p 1, t 1 )=1, w(t 1, p 2 )=1, w(t 1, p 3 )=1, w(p 2, t 2 )=1 w(p 3, t 3 )=2, w(t 2, p 4 )=1, w(t 3, p 5 )=1, w(p 4, t 4 )=3 w(p 5, t 4 )=1, w(t 4, p 1 )=1 x 0 = {1, 0, 0, 2, 0} Petri net graph t 2 p 1 t 1 p 2 p 3 p 4 p 5 3 t 4 2 t 3 Page 32
33 Petri nets Rules to follow (mandatory): Arcs (directed connections) connect places to transitions and connect transitions to places A transition can have no places directly as inputs (source), i.e. must exist arcs between transitions and places A transition can have no places directly as outputs (sink), i.e. must exist arcs between transitions and places The same happens with the input and output transitions for places Page 33
34 Alternative definition of a Petri net A marked Petri net is a 5-tuple where: P T (P, T, I, O, μ 0 ) - set of places - set of transitions I - transition input function I : T P O - transition output function O : T P μ 0 - initial marking μ 0 :P [Peterson81] Note: P = bag of places (is more general than a set of places) Page 34
35 Example of a Petri net and its graphical representation Alternative definition p 1 (P, T, I, O, μ 0 ) P={p 1, p 2, p 3, p 4, p 5 } T={t 1, t 2, t 3, t 4 } I(t 1 )={p 1 } O(t 1 )={p 2, p 3 } I(t 2 )={p 2 } O(t 2 )={p 4 } I(t 3 )={p 3, p 3 } O(t 3 )={p 5 } I(t 4 )={p 4, p 4, p 4, p 5 } O(t 4 )={p 1 } μ 0 = {1, 0, 0, 2, 0} t 2 t 1 p 2 p 3 p 4 p 5 3 t 4 2 t 3 Page 35
36 Petri nets The state of a Petri net is characterized by the marking of all places. p 1 t 1 The set of all possible markings of a Petri net corresponds to its state space. p 2 p 3 3 t 2 How does the state of a Petri net evolve? Page 36
37 Execution Rules for Petri Nets (Dynamics of Petri nets) A transition t j ε is enabled if: p i P : ( pi ) # ( pi, I ( t j )) A transition t j may fire whenever enabled, resulting in a new marking given by: p p i i # ( p i,i( t j )) # ( p i,o( t j )) #( p i, I (t j ) ) = multiplicity of the arc from p i to t j #( p i, O (t j ) ) = multiplicity of the arc from t j to p i [Peterson81 2.3] Page 37
38 Execution Rules for Petri Nets (Dynamics of Petri nets) p p #( p,i(t )) #( p,o(t )) i i i j i j [Peterson81 2.3] Page 38
39 Petri nets Example of evolution of a Petri net Initial marking: μ 0 = {1, 0, 1, 2, 0} This discrete event system can not change state.. It is in a deadlock! t 2 p 1 t 1 p 2 p 3 p 4 p t 4 2 t 3 Page 39
40 Petri nets: Conditions and Events (Places and Transitions) Example: Machine waits until an order appears and then machines the ordered part and sends it out for delivery. Conditions: a) The server is idle. b) A job arrives and waits to be processed c) The server is processing the job d) The job is complete Events 1) Job arrival 2) Server starts processing 3) Server finishes processing 4) The job is delivered Event Posconditions Preconditions - a, b c d b c d, a - 1) Job arrival 2) Start of processing 3) End of processing 4) Job is delivered b) Jobs waits processing c) Job is being processed d) Job is complete a) Server is idle Page 40
41 Discrete Event Systems Example of a simple automation system modeled using PNs t 9 An automatic soda selling machine accepts 50c and $1 coins and sells 2 types of products: SODA A, that costs $1.50 and SODA B, that costs $2.00. p 1 p t 2 1 t 2 t 3 t 4 t 5 t 7 p 4 Assume that the money return operation is omitted. p 3 t 6 p 5 t 8 p 1 : machine with $0.00; t 1,t 3,t 5,t 7 : coin of 50 c introduced; t 2,t 4,t 6 : coin of $1 introduced; t 9 : SODA A sold, t 8 : SODA B sold. Page 41
42 Petri nets: Modeling mechanisms Concurrence Conflict t 1 t 1 t 2 t 2 Page 42
43 Petri nets: Modeling mechanisms Mutual Exclusion Producer / Consumer Critical Section t 1 t 2 m Critical Section produce B consume Place m represents the permission to enter the critical section B= buffer holding produced parts Page 43
44 Petri nets: Modeling mechanisms Producer / Consumer with finite capacity s Readers / t Writers s t produce B n B' consume read n n n write Page 44
45 Extensions to Petri nets Switches [Baer 1973] f f e f e f e e Possible to be implemented with restricted Petri nets. Page 45
46 Extensions to Petri nets Inhibitor Arcs Equivalent to nets with priorities Can be implemented with restricted Petri nets? Zero tests... Infinity tests... Page 46
47 Extensions to Petri nets P-Timed nets Job arrival Start of processing End of processing Job is delivered Jobs waits processing Job is beeing processed Job is complete Server is idle Page 47
48 Extensions to Petri nets T-Timed nets Job arrival Start of processing End of processing Job is delivered Jobs waits processing Job is being processed Job is complete Server is idle Page 48
49 Extensions to Petri nets Stochastic nets Stochastic switches q 0 q 1 q 2 Transitions with stochastic timings described by a stochastic variable with known pdf μ 0 q 0 +q 1 + q 2 =1 Page 49
50 Discrete Event Systems Sub-classes of Petri nets State Machine: Petri nets where each transition has exactly one input arc and one output arc. Marked Graphs: Petri nets where each place has lesser than or equal to one input arc and one output arc. Page 50
51 Discrete Event Systems Example of DES: Manufacturing system composed by 2 machines (M 1 and M 2 ) and a robotic manipulator (R). This takes the finished parts from machine M 1 and transports them to M 2. M 1 M 2 No buffers available on the machines. If R arrives near M 1 and the machine is busy, the part is rejected. R If R arrives near M 2 and the machine is busy, the manipulator must wait. Machining time: M 1 =0.5s; M 2 =1.5s; R M1 M2=0.2s; R M2 M1=0.1s; Page 51
52 Discrete Event Systems Example of DES: Define places M 1 is characterized by places x 1 M 2 is characterized by places x 2 R is characterized by places x 3 M 1 R M 2 x 1 = {Idle, Busy, Waiting} x 2 = {Idle, Busy} x 3 = {Idle, Carrying, Returning} Example of arrival of parts: a( t) 1 0 in in {0.1, 0.7, other 1.1, 1.6, time stamps 2.5} Page 52
53 Discrete Event Systems Example of DES: Definition of events: a 1 - loads part in M 1 d 1 - ends part processing in M 1 r 1 r 2 - loads manipulator - unloads manipulator and loads M 2 M 1 R M 2 d 2 - ends part processing in M 2 r 3 - manipulator at base Page 53
54 Discrete Event Systems a 1 d t x 1 x 1 = {Idle, Busy, Waiting} x 2 = {Idle, Busy} x 3 = {Idle, Carrying, Returning} r t t W B I x t r 2 r t B I t d t t x 3 R C I t Page 54
55 Discrete Event Systems Example of DES: Events: new part M 1 R M 2... Idle Idle Idle a 1 - loads part in M 1 d 1 - ends part processing in M 1 r 1 - loads manipulator r 2 - unloads manipulator and loads M 2 d 2 - ends part processing in M 2 r 3 - manipulator at base reject part Busy r 1 Carrying r 2 Busy d 1 d 2 Waiting M 1 M 2 Returning R r 3 Page 55
Industrial Automation de Processos Industriais)
Industrial Automation (Automação de Processos Industriais) (Sequential Function Chart) http://users.isr.ist.utl.pt/~jag/courses/api1213/api1213.html Slides 2010/2011 Prof. Paulo Jorge Oliveira Rev. 2011-2013
More informationIndustrial Automation (Automação de Processos Industriais)
Industrial Automation (Automação de Processos Industriais) (Sequential Function Chart) http://users.isr.ist.utl.pt/~jag/courses/api1415/api1415.html Slides 2010/2011 Prof. Paulo Jorge Oliveira Rev. 2011-2015
More informationAnalysis and Optimization of Discrete Event Systems using Petri Nets
Volume 113 No. 11 2017, 1 10 ISSN: 1311-8080 (printed version); ISSN: 1314-3395 (on-line version) url: http://www.ijpam.eu ijpam.eu Analysis and Optimization of Discrete Event Systems using Petri Nets
More informationMEEC 2010-2011 http://www.isr.ist.utl.pt/~pjcro/courses/api1011/api1011.html Prof. Paulo Jorge Oliveira pjcro @ isr.ist.utl.pt Tel: 21 8418053 ou 2053 (internal) API P. Oliveira Page 1 MEEC 2008-2009 Chap.
More informationStéphane Lafortune. August 2006
UNIVERSITY OF MICHIGAN DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE LECTURE NOTES FOR EECS 661 CHAPTER 1: INTRODUCTION TO DISCRETE EVENT SYSTEMS Stéphane Lafortune August 2006 References for
More informationDES. 4. Petri Nets. Introduction. Different Classes of Petri Net. Petri net properties. Analysis of Petri net models
4. Petri Nets Introduction Different Classes of Petri Net Petri net properties Analysis of Petri net models 1 Petri Nets C.A Petri, TU Darmstadt, 1962 A mathematical and graphical modeling method. Describe
More information7. Queueing Systems. 8. Petri nets vs. State Automata
Petri Nets 1. Finite State Automata 2. Petri net notation and definition (no dynamics) 3. Introducing State: Petri net marking 4. Petri net dynamics 5. Capacity Constrained Petri nets 6. Petri net models
More informationEmbedded systems specification and design
Embedded systems specification and design David Kendall David Kendall Embedded systems specification and design 1 / 21 Introduction Finite state machines (FSM) FSMs and Labelled Transition Systems FSMs
More informationMA/CSSE 474 Theory of Computation
MA/CSSE 474 Theory of Computation CFL Hierarchy CFL Decision Problems Your Questions? Previous class days' material Reading Assignments HW 12 or 13 problems Anything else I have included some slides online
More informationIntroduction: Computer Science is a cluster of related scientific and engineering disciplines concerned with the study and application of computations. These disciplines range from the pure and basic scientific
More informationcse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska
cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 5 CHAPTER 2 FINITE AUTOMATA 1. Deterministic Finite Automata DFA 2. Nondeterministic Finite Automata NDFA 3. Finite Automata
More informationNondeterministic Finite Automata
Nondeterministic Finite Automata Not A DFA Does not have exactly one transition from every state on every symbol: Two transitions from q 0 on a No transition from q 1 (on either a or b) Though not a DFA,
More informationCS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism,
CS 54, Lecture 2: Finite Automata, Closure Properties Nondeterminism, Why so Many Models? Streaming Algorithms 0 42 Deterministic Finite Automata Anatomy of Deterministic Finite Automata transition: for
More informationIntroduction to Computers & Programming
16.070 Introduction to Computers & Programming Theory of computation: What is a computer? FSM, Automata Prof. Kristina Lundqvist Dept. of Aero/Astro, MIT Models of Computation What is a computer? If you
More informationTuring s thesis: (1930) Any computation carried out by mechanical means can be performed by a Turing Machine
Turing s thesis: (1930) Any computation carried out by mechanical means can be performed by a Turing Machine There is no known model of computation more powerful than Turing Machines Definition of Algorithm:
More information1. Draw a parse tree for the following derivation: S C A C C A b b b b A b b b b B b b b b a A a a b b b b a b a a b b 2. Show on your parse tree u,
1. Draw a parse tree for the following derivation: S C A C C A b b b b A b b b b B b b b b a A a a b b b b a b a a b b 2. Show on your parse tree u, v, x, y, z as per the pumping theorem. 3. Prove that
More informationFinite Automata. Finite Automata
Finite Automata Finite Automata Formal Specification of Languages Generators Grammars Context-free Regular Regular Expressions Recognizers Parsers, Push-down Automata Context Free Grammar Finite State
More informationRecap DFA,NFA, DTM. Slides by Prof. Debasis Mitra, FIT.
Recap DFA,NFA, DTM Slides by Prof. Debasis Mitra, FIT. 1 Formal Language Finite set of alphabets Σ: e.g., {0, 1}, {a, b, c}, { {, } } Language L is a subset of strings on Σ, e.g., {00, 110, 01} a finite
More informationPushdown Automata. Chapter 12
Pushdown Automata Chapter 12 Recognizing Context-Free Languages We need a device similar to an FSM except that it needs more power. The insight: Precisely what it needs is a stack, which gives it an unlimited
More informationIntroduction to Formal Languages, Automata and Computability p.1/42
Introduction to Formal Languages, Automata and Computability Pushdown Automata K. Krithivasan and R. Rama Introduction to Formal Languages, Automata and Computability p.1/42 Introduction We have considered
More informationUNIT-II. NONDETERMINISTIC FINITE AUTOMATA WITH ε TRANSITIONS: SIGNIFICANCE. Use of ε-transitions. s t a r t. ε r. e g u l a r
Syllabus R9 Regulation UNIT-II NONDETERMINISTIC FINITE AUTOMATA WITH ε TRANSITIONS: In the automata theory, a nondeterministic finite automaton (NFA) or nondeterministic finite state machine is a finite
More informationTheory & Practice Book. Computer Science & IT. for. Public Sector Exams
Theory & Practice Book Computer Science & IT for Public Sector Exams ISRO, DRDO, BARC, BEL, HAL, NTPC, ONGC, BHEL, SAIL, GAIL, MTNL, FCI, ECL, ATC, DMRC, HLL, UPRVNL, CSPEB, OPTCL... Corporate Office:
More informationHarvard CS 121 and CSCI E-207 Lecture 10: CFLs: PDAs, Closure Properties, and Non-CFLs
Harvard CS 121 and CSCI E-207 Lecture 10: CFLs: PDAs, Closure Properties, and Non-CFLs Harry Lewis October 8, 2013 Reading: Sipser, pp. 119-128. Pushdown Automata (review) Pushdown Automata = Finite automaton
More informationLet us first give some intuitive idea about a state of a system and state transitions before describing finite automata.
Finite Automata Automata (singular: automation) are a particularly simple, but useful, model of computation. They were initially proposed as a simple model for the behavior of neurons. The concept of a
More informationTHEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET
THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET Regular Languages and FA A language is a set of strings over a finite alphabet Σ. All languages are finite or countably infinite. The set of all languages
More informationTheory of Computation
Theory of Computation Lecture #2 Sarmad Abbasi Virtual University Sarmad Abbasi (Virtual University) Theory of Computation 1 / 1 Lecture 2: Overview Recall some basic definitions from Automata Theory.
More informationCSE 105 Homework 1 Due: Monday October 9, Instructions. should be on each page of the submission.
CSE 5 Homework Due: Monday October 9, 7 Instructions Upload a single file to Gradescope for each group. should be on each page of the submission. All group members names and PIDs Your assignments in this
More informationMidterm Exam 2 CS 341: Foundations of Computer Science II Fall 2018, face-to-face day section Prof. Marvin K. Nakayama
Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2018, face-to-face day section Prof. Marvin K. Nakayama Print family (or last) name: Print given (or first) name: I have read and understand
More informationFinite-state machines (FSMs)
Finite-state machines (FSMs) Dr. C. Constantinides Department of Computer Science and Software Engineering Concordia University Montreal, Canada January 10, 2017 1/19 Finite-state machines (FSMs) and state
More informationTheory of Computation Turing Machine and Pushdown Automata
Theory of Computation Turing Machine and Pushdown Automata 1. What is a Turing Machine? A Turing Machine is an accepting device which accepts the languages (recursively enumerable set) generated by type
More informationAC68 FINITE AUTOMATA & FORMULA LANGUAGES DEC 2013
Q.2 a. Prove by mathematical induction n 4 4n 2 is divisible by 3 for n 0. Basic step: For n = 0, n 3 n = 0 which is divisible by 3. Induction hypothesis: Let p(n) = n 3 n is divisible by 3. Induction
More informationChapter Five: Nondeterministic Finite Automata
Chapter Five: Nondeterministic Finite Automata From DFA to NFA A DFA has exactly one transition from every state on every symbol in the alphabet. By relaxing this requirement we get a related but more
More informationComputability Theory. CS215, Lecture 6,
Computability Theory CS215, Lecture 6, 2000 1 The Birth of Turing Machines At the end of the 19th century, Gottlob Frege conjectured that mathematics could be built from fundamental logic In 1900 David
More informationHarvard CS 121 and CSCI E-207 Lecture 10: Ambiguity, Pushdown Automata
Harvard CS 121 and CSCI E-207 Lecture 10: Ambiguity, Pushdown Automata Salil Vadhan October 4, 2012 Reading: Sipser, 2.2. Another example of a CFG (with proof) L = {x {a, b} : x has the same # of a s and
More informationNondeterministic Finite Automata and Regular Expressions
Nondeterministic Finite Automata and Regular Expressions CS 2800: Discrete Structures, Spring 2015 Sid Chaudhuri Recap: Deterministic Finite Automaton A DFA is a 5-tuple M = (Q, Σ, δ, q 0, F) Q is a finite
More informationDM17. Beregnelighed. Jacob Aae Mikkelsen
DM17 Beregnelighed Jacob Aae Mikkelsen January 12, 2007 CONTENTS Contents 1 Introduction 2 1.1 Operations with languages...................... 2 2 Finite Automata 3 2.1 Regular expressions/languages....................
More informationPushdown Automata. Pushdown Automata. Pushdown Automata. Pushdown Automata. Pushdown Automata. Pushdown Automata. The stack
A pushdown automata (PDA) is essentially: An NFA with a stack A move of a PDA will depend upon Current state of the machine Current symbol being read in Current symbol popped off the top of the stack With
More informationAutomata Theory (2A) Young Won Lim 5/31/18
Automata Theory (2A) Copyright (c) 2018 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later
More informationADVANCED ROBOTICS. PLAN REPRESENTATION Generalized Stochastic Petri nets and Markov Decision Processes
ADVANCED ROBOTICS PLAN REPRESENTATION Generalized Stochastic Petri nets and Markov Decision Processes Pedro U. Lima Instituto Superior Técnico/Instituto de Sistemas e Robótica September 2009 Reviewed April
More informationDesign and Analysis of Distributed Interacting Systems
Design and Analysis of Distributed Interacting Systems Organization Prof. Dr. Joel Greenyer April 11, 2013 Organization Lecture: Thursdays, 10:15 11:45, F 128 Tutorial: Thursdays, 13:00 13:45, G 323 first
More informationGEETANJALI INSTITUTE OF TECHNICAL STUDIES, UDAIPUR I
GEETANJALI INSTITUTE OF TECHNICAL STUDIES, UDAIPUR I Internal Examination 2017-18 B.Tech III Year VI Semester Sub: Theory of Computation (6CS3A) Time: 1 Hour 30 min. Max Marks: 40 Note: Attempt all three
More informationIntroduction to Turing Machines
Introduction to Turing Machines Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 12 November 2015 Outline 1 Turing Machines 2 Formal definitions 3 Computability
More informationSri vidya college of engineering and technology
Unit I FINITE AUTOMATA 1. Define hypothesis. The formal proof can be using deductive proof and inductive proof. The deductive proof consists of sequence of statements given with logical reasoning in order
More informationEquivalent Variations of Turing Machines
Equivalent Variations of Turing Machines Nondeterministic TM = deterministic TM npda = pushdown automata with n stacks 2PDA = npda = TM for all n 2 Turing machines with n tapes (n 2) and n tape heads has
More informationUNIT-I. Strings, Alphabets, Language and Operations
UNIT-I Strings, Alphabets, Language and Operations Strings of characters are fundamental building blocks in computer science. Alphabet is defined as a non empty finite set or nonempty set of symbols. The
More informationCS 133 : Automata Theory and Computability
CS 133 : Automata Theory and Computability Lecture Slides 1 Regular Languages and Finite Automata Nestine Hope S. Hernandez Algorithms and Complexity Laboratory Department of Computer Science University
More informationSt.MARTIN S ENGINEERING COLLEGE Dhulapally, Secunderabad
St.MARTIN S ENGINEERING COLLEGE Dhulapally, Secunderabad-500 014 Subject: FORMAL LANGUAGES AND AUTOMATA THEORY Class : CSE II PART A (SHORT ANSWER QUESTIONS) UNIT- I 1 Explain transition diagram, transition
More informationFormal Methods Engineering Nasreen Iqbal De Montfort University
Formal Methods Engineering Nasreen Iqbal De Montfort University EX: 2.C13. DESCRIBE THE FINITE STATE MACHINE The finite state machine is an approach to the mathematical model of computation, exploited
More informationCMSC 330: Organization of Programming Languages. Theory of Regular Expressions Finite Automata
: Organization of Programming Languages Theory of Regular Expressions Finite Automata Previous Course Review {s s defined} means the set of string s such that s is chosen or defined as given s A means
More informationSpecification models and their analysis Petri Nets
Specification models and their analysis Petri Nets Kai Lampka December 10, 2010 1 30 Part I Petri Nets Basics Petri Nets Introduction A Petri Net (PN) is a weighted(?), bipartite(?) digraph(?) invented
More information60-354, Theory of Computation Fall Asish Mukhopadhyay School of Computer Science University of Windsor
60-354, Theory of Computation Fall 2013 Asish Mukhopadhyay School of Computer Science University of Windsor Pushdown Automata (PDA) PDA = ε-nfa + stack Acceptance ε-nfa enters a final state or Stack is
More informationInf2A: Converting from NFAs to DFAs and Closure Properties
1/43 Inf2A: Converting from NFAs to DFAs and Stuart Anderson School of Informatics University of Edinburgh October 13, 2009 Starter Questions 2/43 1 Can you devise a way of testing for any FSM M whether
More informationMethods for the specification and verification of business processes MPB (6 cfu, 295AA)
Methods for the specification and verification of business processes MPB (6 cfu, 295AA) Roberto Bruni http://www.di.unipi.it/~bruni 08 - Petri nets basics 1 Object Formalization of the basic concepts of
More informationPetri Nets. 1. Overview and Foundations. Y Narahari
GENERAL[ ARTICLE Petri Nets 1. Overview and Foundations Y Narahari Petri nets offer a versatile modeling framework for complex, distributed, concurrent systems and have been used in a wide range of modeling
More informationPushdown Automata: Introduction (2)
Pushdown Automata: Introduction Pushdown automaton (PDA) M = (K, Σ, Γ,, s, A) where K is a set of states Σ is an input alphabet Γ is a set of stack symbols s K is the start state A K is a set of accepting
More informationINSTITUTE OF AERONAUTICAL ENGINEERING
INSTITUTE OF AERONAUTICAL ENGINEERING DUNDIGAL 500 043, HYDERABAD COMPUTER SCIENCE AND ENGINEERING TUTORIAL QUESTION BANK Course Name : FORMAL LANGUAGES AND AUTOMATA THEORY Course Code : A40509 Class :
More informationCS21 Decidability and Tractability
CS21 Decidability and Tractability Lecture 8 January 24, 2018 Outline Turing Machines and variants multitape TMs nondeterministic TMs Church-Turing Thesis So far several models of computation finite automata
More informationChapter 3. Regular grammars
Chapter 3 Regular grammars 59 3.1 Introduction Other view of the concept of language: not the formalization of the notion of effective procedure, but set of words satisfying a given set of rules Origin
More informationTheory of Computation
Theory of Computation COMP363/COMP6363 Prerequisites: COMP4 and COMP 6 (Foundations of Computing) Textbook: Introduction to Automata Theory, Languages and Computation John E. Hopcroft, Rajeev Motwani,
More informationCSE 105 THEORY OF COMPUTATION
CSE 105 THEORY OF COMPUTATION Spring 2016 http://cseweb.ucsd.edu/classes/sp16/cse105-ab/ Today's learning goals Sipser Ch 3.3, 4.1 State and use the Church-Turing thesis. Give examples of decidable problems.
More informationUNIT-VI PUSHDOWN AUTOMATA
Syllabus R09 Regulation UNIT-VI PUSHDOWN AUTOMATA The context free languages have a type of automaton that defined them. This automaton, called a pushdown automaton, is an extension of the nondeterministic
More informationLanguages. A language is a set of strings. String: A sequence of letters. Examples: cat, dog, house, Defined over an alphabet:
Languages 1 Languages A language is a set of strings String: A sequence of letters Examples: cat, dog, house, Defined over an alphaet: a,, c,, z 2 Alphaets and Strings We will use small alphaets: Strings
More informationMethods for the specification and verification of business processes MPB (6 cfu, 295AA)
Methods for the specification and verification of business processes MPB (6 cfu, 295AA) Roberto Bruni http://www.di.unipi.it/~bruni 07 - Introduction to nets 1 Object Overview of the basic concepts of
More informationUses of finite automata
Chapter 2 :Finite Automata 2.1 Finite Automata Automata are computational devices to solve language recognition problems. Language recognition problem is to determine whether a word belongs to a language.
More informationBusiness Processes Modelling MPB (6 cfu, 295AA)
Business Processes Modelling MPB (6 cfu, 295AA) Roberto Bruni http://www.di.unipi.it/~bruni 07 - Introduction to nets!1 Object Overview of the basic concepts of Petri nets Free Choice Nets (book, optional
More informationcse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska
cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 14 SMALL REVIEW FOR FINAL SOME Y/N QUESTIONS Q1 Given Σ =, there is L over Σ Yes: = {e} and L = {e} Σ Q2 There are uncountably
More informationClarifications from last time. This Lecture. Last Lecture. CMSC 330: Organization of Programming Languages. Finite Automata.
CMSC 330: Organization of Programming Languages Last Lecture Languages Sets of strings Operations on languages Finite Automata Regular expressions Constants Operators Precedence CMSC 330 2 Clarifications
More informationSCHEME FOR INTERNAL ASSESSMENT TEST 3
SCHEME FOR INTERNAL ASSESSMENT TEST 3 Max Marks: 40 Subject& Code: Automata Theory & Computability (15CS54) Sem: V ISE (A & B) Note: Answer any FIVE full questions, choosing one full question from each
More informationTuring Machines A Turing Machine is a 7-tuple, (Q, Σ, Γ, δ, q0, qaccept, qreject), where Q, Σ, Γ are all finite
The Church-Turing Thesis CS60001: Foundations of Computing Science Professor, Dept. of Computer Sc. & Engg., Turing Machines A Turing Machine is a 7-tuple, (Q, Σ, Γ, δ, q 0, q accept, q reject ), where
More informationFormal Definition of a Finite Automaton. August 26, 2013
August 26, 2013 Why a formal definition? A formal definition is precise: - It resolves any uncertainties about what is allowed in a finite automaton such as the number of accept states and number of transitions
More informationMidterm Exam 2 CS 341: Foundations of Computer Science II Fall 2016, face-to-face day section Prof. Marvin K. Nakayama
Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2016, face-to-face day section Prof. Marvin K. Nakayama Print family (or last) name: Print given (or first) name: I have read and understand
More informationAn Adaptive Finite-State Automata Application to the problem of Reducing the Number of States in Approximate String Matching
An Adaptive Finite-State Automata Application to the problem of Reducing the Number of States in Approximate String Matching Ricardo Luis de Azevedo da Rocha 1, João José Neto 1 1 Laboratório de Linguagens
More informationBridging the Gap between Reactive Synthesis and Supervisory Control
Bridging the Gap between Reactive Synthesis and Supervisory Control Stavros Tripakis University of California, Berkeley Joint work with Ruediger Ehlers (Berkeley, Cornell), Stéphane Lafortune (Michigan)
More informationSupervisory Control: Advanced Theory and Applications
Supervisory Control: Advanced Theory and Applications Dr Rong Su S1-B1b-59, School of EEE Nanyang Technological University Tel: +65 6790-6042, Email: rsu@ntu.edu.sg EE6226, Discrete Event Systems 1 Introduction
More informationAccept or reject. Stack
Pushdown Automata CS351 Just as a DFA was equivalent to a regular expression, we have a similar analogy for the context-free grammar. A pushdown automata (PDA) is equivalent in power to contextfree grammars.
More informationCISC 4090: Theory of Computation Chapter 1 Regular Languages. Section 1.1: Finite Automata. What is a computer? Finite automata
CISC 4090: Theory of Computation Chapter Regular Languages Xiaolan Zhang, adapted from slides by Prof. Werschulz Section.: Finite Automata Fordham University Department of Computer and Information Sciences
More informationAutomata and Languages
Automata and Languages Prof. Mohamed Hamada Software Engineering Lab. The University of Aizu Japan Nondeterministic Finite Automata with empty moves (-NFA) Definition A nondeterministic finite automaton
More informationFinite Automata. Seungjin Choi
Finite Automata Seungjin Choi Department of Computer Science and Engineering Pohang University of Science and Technology 77 Cheongam-ro, Nam-gu, Pohang 37673, Korea seungjin@postech.ac.kr 1 / 28 Outline
More informationFORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
15-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY REVIEW for MIDTERM 1 THURSDAY Feb 6 Midterm 1 will cover everything we have seen so far The PROBLEMS will be from Sipser, Chapters 1, 2, 3 It will be
More informationcse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska
cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 11 CHAPTER 3 CONTEXT-FREE LANGUAGES 1. Context Free Grammars 2. Pushdown Automata 3. Pushdown automata and context -free
More informationFoundations of Informatics: a Bridging Course
Foundations of Informatics: a Bridging Course Week 3: Formal Languages and Semantics Thomas Noll Lehrstuhl für Informatik 2 RWTH Aachen University noll@cs.rwth-aachen.de http://www.b-it-center.de/wob/en/view/class211_id948.html
More informationPart I: Definitions and Properties
Turing Machines Part I: Definitions and Properties Finite State Automata Deterministic Automata (DFSA) M = {Q, Σ, δ, q 0, F} -- Σ = Symbols -- Q = States -- q 0 = Initial State -- F = Accepting States
More informationOctober 6, Equivalence of Pushdown Automata with Context-Free Gramm
Equivalence of Pushdown Automata with Context-Free Grammar October 6, 2013 Motivation Motivation CFG and PDA are equivalent in power: a CFG generates a context-free language and a PDA recognizes a context-free
More informationPush-down Automata = FA + Stack
Push-down Automata = FA + Stack PDA Definition A push-down automaton M is a tuple M = (Q,, Γ, δ, q0, F) where Q is a finite set of states is the input alphabet (of terminal symbols, terminals) Γ is the
More informationFinal exam study sheet for CS3719 Turing machines and decidability.
Final exam study sheet for CS3719 Turing machines and decidability. A Turing machine is a finite automaton with an infinite memory (tape). Formally, a Turing machine is a 6-tuple M = (Q, Σ, Γ, δ, q 0,
More informationTheoretical Computer Science
Theoretical Computer Science Zdeněk Sawa Department of Computer Science, FEI, Technical University of Ostrava 17. listopadu 15, Ostrava-Poruba 708 33 Czech republic September 22, 2017 Z. Sawa (TU Ostrava)
More informationCOM364 Automata Theory Lecture Note 2 - Nondeterminism
COM364 Automata Theory Lecture Note 2 - Nondeterminism Kurtuluş Küllü March 2018 The FA we saw until now were deterministic FA (DFA) in the sense that for each state and input symbol there was exactly
More informationAutomata Theory for Presburger Arithmetic Logic
Automata Theory for Presburger Arithmetic Logic References from Introduction to Automata Theory, Languages & Computation and Constraints in Computational Logic Theory & Application Presented by Masood
More informationUNIT-VIII COMPUTABILITY THEORY
CONTEXT SENSITIVE LANGUAGE UNIT-VIII COMPUTABILITY THEORY A Context Sensitive Grammar is a 4-tuple, G = (N, Σ P, S) where: N Set of non terminal symbols Σ Set of terminal symbols S Start symbol of the
More informationCOMP9334 Capacity Planning for Computer Systems and Networks
COMP9334 Capacity Planning for Computer Systems and Networks Week 2: Operational Analysis and Workload Characterisation COMP9334 1 Last lecture Modelling of computer systems using Queueing Networks Open
More informationOn the Design of Adaptive Supervisors for Discrete Event Systems
On the Design of Adaptive Supervisors for Discrete Event Systems Vigyan CHANDRA Department of Technology, Eastern Kentucky University Richmond, KY 40475, USA and Siddhartha BHATTACHARYYA Division of Computer
More informationContext Free Languages (CFL) Language Recognizer A device that accepts valid strings. The FA are formalized types of language recognizer.
Context Free Languages (CFL) Language Recognizer A device that accepts valid strings. The FA are formalized types of language recognizer. Language Generator: Context free grammars are language generators,
More informationCISC 4090 Theory of Computation
9/2/28 Stereotypical computer CISC 49 Theory of Computation Finite state machines & Regular languages Professor Daniel Leeds dleeds@fordham.edu JMH 332 Central processing unit (CPU) performs all the instructions
More informationCSE443 Compilers. Dr. Carl Alphonce 343 Davis Hall
CSE443 Compilers Dr. Carl Alphonce alphonce@buffalo.edu 343 Davis Hall http://www.cse.buffalo.edu/faculty/alphonce/sp17/cse443/index.php https://piazza.com/class/iybn4ndqa1s3ei Syllabus Posted on website
More informationTheory of Computation
Fall 2002 (YEN) Theory of Computation Midterm Exam. Name:... I.D.#:... 1. (30 pts) True or false (mark O for true ; X for false ). (Score=Max{0, Right- 1 2 Wrong}.) (1) X... If L 1 is regular and L 2 L
More informationPeter Wood. Department of Computer Science and Information Systems Birkbeck, University of London Automata and Formal Languages
and and Department of Computer Science and Information Systems Birkbeck, University of London ptw@dcs.bbk.ac.uk Outline and Doing and analysing problems/languages computability/solvability/decidability
More informationCSCI 2670 Introduction to Theory of Computing
CSCI 267 Introduction to Theory of Computing Agenda Last class Reviewed syllabus Reviewed material in Chapter of Sipser Assigned pages Chapter of Sipser Questions? This class Begin Chapter Goal for the
More information1. (a) Explain the procedure to convert Context Free Grammar to Push Down Automata.
Code No: R09220504 R09 Set No. 2 II B.Tech II Semester Examinations,December-January, 2011-2012 FORMAL LANGUAGES AND AUTOMATA THEORY Computer Science And Engineering Time: 3 hours Max Marks: 75 Answer
More informationThe Turing Machine. Computability. The Church-Turing Thesis (1936) Theory Hall of Fame. Theory Hall of Fame. Undecidability
The Turing Machine Computability Motivating idea Build a theoretical a human computer Likened to a human with a paper and pencil that can solve problems in an algorithmic way The theoretical provides a
More informationCSE 105 Theory of Computation
CSE 105 Theory of Computation http://www.jflap.org/jflaptmp/ Professor Jeanne Ferrante 1 Today s Agenda Quick Review of CFG s and PDA s Introduction to Turing Machines and their Languages Reminders and
More information