Topics in Timed Automata
|
|
- Edgar Davis
- 6 years ago
- Views:
Transcription
1 1/32 Topics in Timed Automata B. Srivathsan RWTH-Aachen Software modeling and Verification group
2 2/32 Timed Automata A theory of timed automata R. Alur and D. Dill, TCS 94
3 2/32 Timed Automata Language theory Verification Lectures 1,..., 5 Lectures 6,..., 10 A theory of timed automata R. Alur and D. Dill, TCS 94
4 3/32 Lecture 1: Timed languages and timed automata
5 4/32 Σ : alphabet {a, b} L Σ Σ : words : language {ε, a, b, aa, ab, ba, bb, aab,... } property over words L 1 := {set of words starting with an a } {a, aa, ab, aaa, aab,... } L 2 := {set of words with a non-zero even length } {aa, bb, ab, ba, abab, aaaa,... }
6 4/32 Σ : alphabet {a, b} L Σ Σ : words : language {ε, a, b, aa, ab, ba, bb, aab,... } property over words L 1 := {set of words starting with an a } {a, aa, ab, aaa, aab,... } L 2 := {set of words with a non-zero even length } {aa, bb, ab, ba, abab, aaaa,... } Finite automata, pushdown automata, Turing machines,...
7 5/32 Σ : alphabet {a, b} T Σ : timed words a a a b b π (aa; 0.8, 2.5) (abb; π, 203, 312.3)
8 5/32 Σ : alphabet {a, b} T Σ : timed words a a a b b π (aa; 0.8, 2.5) (abb; π, 203, 312.3) Word w = a 1... a n a i Σ (w, τ) Time sequence τ = τ 1... τ n τ i R 0 τ 1 τ n
9 6/32 L T Σ : Timed language property over timed words L 1 := {( ab(a + b), τ ) τ 2 τ 1 = 1} a b ab b a b a b b L 2 := { (w, τ) τ i+1 τ i 2 for all i < w } a b a a b a
10 6/32 L T Σ : Timed language property over timed words L 1 := {( ab(a + b), τ ) τ 2 τ 1 = 1} a b ab b a b a b b L 2 := { (w, τ) τ i+1 τ i 2 for all i < w } a b a a b a Timed automata
11 7/32
12 Timed automata 7/32
13 Timed automaton: Finite automaton + Finite no. of Clocks 8/32 Clock 0 time
14 Timed automaton: Finite automaton + Finite no. of Clocks 8/32 Clock 0 time {( ab(a + b), τ) τ 2 2} a b q 0 q 1 q 2 a, b
15 Timed automaton: Finite automaton + Finite no. of Clocks 8/32 Clock 0 time {( ab(a + b), τ) τ 2 2} a x 2, b q 0 q 1 q 2 a, b
16 Timed automaton: Finite automaton + Finite no. of Clocks 8/32 Clock 0 time {( ab(a + b), τ) τ 2 2} a x 2, b q 0 q 1 q 2 a, b a b b a b b q 0 q 1 q 2 q 0 q 1 accept reject
17 Timed automaton: Finite automaton + Finite no. of Clocks 8/32 Clock Guards φ := x c x c φ φ φ x Clocks, c Q 0 0 time {( ab(a + b), τ) τ 2 2} a x 2, b q 0 q 1 q 2 a, b a b b a b b q 0 q 1 q 2 q 0 q 1 accept reject
18 Timed automaton: Finite automaton + Finite no. of Clocks 8/32 Clock Guards φ := x c x c φ φ φ x Clocks, c Q 0 0 time {( ab(a + b), τ) τ 2 τ 1 2} a x 2, b q 0 q 1 q 2 a, b
19 Timed automaton: Finite automaton + Finite no. of Clocks 8/32 Clock Guards φ := x c x c φ φ φ 0 time x Clocks, c Q 0 Resets {( ab(a + b), τ) τ 2 τ 1 2} q 0 a q 1 x 2, b q 2 {x} a, b
20 Timed automaton: Finite automaton + Finite no. of Clocks 8/32 Clock Guards φ := x c x c φ φ φ 0 time x Clocks, c Q 0 Resets {( ab(a + b), τ) τ 2 τ 1 2} q 0 a q 1 x 2, b q 2 {x} a, b a b b a bb q 0 q 1 x : 0 accept q 2 x 2 q 0 q 1 x : 0 reject x > 2
21 9/32 L 3 := { ( a k, τ ) k > 0, τ i = i for all i k} An a occurs in every integer from 1,..., k a a a a a
22 9/32 L 3 := { ( a k, τ ) k > 0, τ i = i for all i k} An a occurs in every integer from 1,..., k a a a a a q 0 x = 1, a q 1 {x} x = 1, a {x}
23 10/32 L 4 := { ( a k, τ ) exist i, j s.t. τ j τ i = 1} There are 2 a s which are at distance 1 apart a a a a a a a 0 t t + 1
24 10/32 L 4 := { ( a k, τ ) exist i, j s.t. τ j τ i = 1} There are 2 a s which are at distance 1 apart a a a a a a a 0 t t + 1 a a a q 0 a q 1 x = 1, a q 2 {x}
25 11/32 Three mechanisms to exploit: Reset: to start measuring time Guard: to impose time constraint on action Non-determinism: for existential time constraints
26 12/32 s 2 b, (y = 1) c, (x < 1) c, (x < 1) a, {y} s 0 s 1 s 3 d, (x > 1) A = (Q, Σ, X, T, Q 0, F) T Q Σ guard reset Q a, (y < 1), {y}
27 12/32 (ac; 0.4, 0.9) s 2 b, (y = 1) c, (x < 1) c, (x < 1) a, {y} s 0 s 1 s 3 d, (x > 1) A = (Q, Σ, X, T, Q 0, F) T Q Σ guard reset Q a, (y < 1), {y} x y s s 0 s 1 s a 0.5 c s
28 12/32 (ac; 0.4, 0.9) s 2 b, (y = 1) c, (x < 1) c, (x < 1) a, {y} s 0 s 1 s 3 d, (x > 1) A = (Q, Σ, X, T, Q 0, F) T Q Σ guard reset Q a, (y < 1), {y} x y s s 0 s 1 s a 0.5 c s Run of A over (a 1 a 2... a k ; τ 1 τ 2... τ k ) δ i := τ i τ i 1 ; τ 0 := 0 (q 0, v 0 ) δ 1 (q0, v 0 + δ 1 ) a 1 (q1, v 1 ) δ 2 (q1, v 1 + δ 2 ) (w, τ) L(A) if A has an accepting run over (w, τ) a k (qk, v k )
29 13/32 Timed automata Runs
30 14/32 L 5 := { ( abcd.σ, τ ) τ 3 τ 1 2 and τ 4 τ 2 5} Interleaving distances a b c d
31 14/32 L 5 := { ( abcd.σ, τ ) τ 3 τ 1 2 and τ 4 τ 2 5} Interleaving distances a b c d Σ q 0 a q 1 b q 2 x 1, c q 3 y 5, d q 4 {x} {y}
32 14/32 L 5 := { ( abcd.σ, τ ) τ 3 τ 1 2 and τ 4 τ 2 5} Interleaving distances a b c d Σ q 0 a q 1 b q 2 x 1, c q 3 y 5, d q 4 {x} {y} Exercise: Prove that L 5 cannot be accepted by a one-clock TA.
33 15/32 n interleavings need n clocks n + 1 clocks more expressive than n clocks
34 16/32 Timed automata Runs 1 clock < 2 clocks <...
35 17/32 L 6 := { ( a k, τ ) τ i is some integer for each i} a a a
36 17/32 L 6 := { ( a k, τ ) τ i is some integer for each i} a a a Claim: No timed automaton can accept L 6
37 18/32 Step 1: Suppose L 6 = L(A) Let c max be the maximum constant appearing in a guard of A
38 18/32 Step 1: Suppose L 6 = L(A) Let c max be the maximum constant appearing in a guard of A Step 2: For a clock x, x = c max + 1 and x = c max satisfy the same guards
39 18/32 Step 1: Suppose L 6 = L(A) Let c max be the maximum constant appearing in a guard of A Step 3: Step 2: For a clock x, x = c max + 1 and x = c max satisfy the same guards (a; c max + 1) L 6 and so A has an accepting run (q 0, v 0 ) δ = cmax +1 (q 0, v 0 + δ) a (q F, v F )
40 18/32 Step 1: Suppose L 6 = L(A) Let c max be the maximum constant appearing in a guard of A Step 3: Step 2: For a clock x, x = c max + 1 and x = c max satisfy the same guards (a; c max + 1) L 6 and so A has an accepting run (q 0, v 0 ) δ = cmax +1 (q 0, v 0 + δ) a (q F, v F ) Step 4: By Step 2, the following is an accepting run (q 0, v 0 ) δ = c max +1.1 (q 0, v 0 + δ ) a (q F, v F )
41 Step 1: Suppose L 6 = L(A) Let c max be the maximum constant appearing in a guard of A Step 3: Step 2: For a clock x, x = c max + 1 and x = c max satisfy the same guards (a; c max + 1) L 6 and so A has an accepting run (q 0, v 0 ) δ = cmax +1 (q 0, v 0 + δ) a (q F, v F ) Step 4: By Step 2, the following is an accepting run (q 0, v 0 ) δ = c max +1.1 (q 0, v 0 + δ ) a (q F, v F ) Hence (a; c max + 1.1) L(A) L 6 Therefore no timed automaton can accept L 6 18/32
42 19/32 L 7 = { ( (ab) k, τ ) τ 2i+2 τ 2i+1 < τ 2i τ 2i 1 for each i 1} Converging ab distances a a a b b b
43 19/32 L 7 = { ( (ab) k, τ ) τ 2i+2 τ 2i+1 < τ 2i τ 2i 1 for each i 1} Converging ab distances a a a b b b Exercise: Prove that no timed automaton can accept L 7
44 L 7 = { ( (ab) k, τ ) τ 2i = i and τ 2i+2 τ 2i+1 < τ 2i τ 2i 1 } Pivoted converging ab distances a b a b a b a b
45 L 7 = { ( (ab) k, τ ) τ 2i = i and τ 2i+2 τ 2i+1 < τ 2i τ 2i 1 } Pivoted converging ab distances > 1 a b a b a b a b
46 L 7 = { ( (ab) k, τ ) τ 2i = i and τ 2i+2 τ 2i+1 < τ 2i τ 2i 1 } Pivoted converging ab distances > 1 a b a b a b a b τ 2i+2 τ 2i+1 < τ 2i τ 2i 1 τ 2i+2 τ 2i < τ 2i+1 τ 2i 1 1 < τ 2i+1 τ 2i 1
47 20/32 L 7 = { ( (ab) k, τ ) τ 2i = i and τ 2i+2 τ 2i+1 < τ 2i τ 2i 1 } Pivoted converging ab distances > 1 a b a b a b a b τ 2i+2 τ 2i+1 < τ 2i τ 2i 1 τ 2i+2 τ 2i < τ 2i+1 τ 2i 1 1 < τ 2i+1 τ 2i 1 q 0 a y = 1, b q 1 {x} {y} q 2 x > 1, a {x}
48 21/32 Timed automata Runs 1 clock < 2 clocks <... Role of max constant
49 21/32 Timed automata Timed regular lngs. Runs 1 clock < 2 clocks <... Role of max constant
50 22/32 Timed regular languages Timed languages L L(A) L L Timed regular languages L = L(A) Definition A timed language is called timed regular if it can be accepted by a timed automaton
51 23/32 L L = L(A ) L L L = L(A) L L L = L(A ) A = (Q, Σ, X, T, Q 0, F) A = (Q, Σ, X, T, Q 0, F ) A = ( Q Q, Σ, X X, T T, Q 0 Q 0, F F ) L(A) L(A ) = L(A ) Timed regular languages are closed under union
52 24/32 L L = L(A ) L L L = L(A) L L L = L(A ) A = (Q, Σ, X, T, Q 0, F) A = (Q, Σ, X, T, Q 0, F ) A = ( Q Q, Σ, X X, T, Q 0 Q 0, F F ) T : (q 1, q 1 ) a, g g (q 2, q 2 ) if R R a, g q 1 q 2 T and q 1 a, g q 2 T R R Timed regular languages are closed under intersection
53 25/32 L : a timed language over Σ Untime(L) {w Σ τ. (w, τ) L} Untiming construction For every timed automaton A there is a finite automaton A u s.t. Untime( L(A) ) = L(A u ) more about this in Lecture 6...
54 26/32 Complementation Σ : {a, b} L = { (w, τ) there is an a at some time t and no action occurs at time t + 1 } L = { (w, τ) every a has an action at a distance 1 from it }
55 26/32 Complementation Σ : {a, b} L = { (w, τ) there is an a at some time t and no action occurs at time t + 1 } L = { (w, τ) every a has an action at a distance 1 from it } Claim: No timed automaton can accept L Decision problems for timed automata: A survey Alur, Madhusudhan. SFM 04: RT
56 27/32 Step 1: L = { (w, τ) every a has an action at a distance 1 from it } Suppose L is timed regular
57 27/32 Step 1: L = { (w, τ) every a has an action at a distance 1 from it } Suppose L is timed regular Step 2: Let L = { (a b, τ) all a s occur before time 1 and no two a s happen at same time } Clearly L is timed regular
58 27/32 Step 1: L = { (w, τ) every a has an action at a distance 1 from it } Suppose L is timed regular Step 2: Let L = { (a b, τ) all a s occur before time 1 and no two a s happen at same time } Clearly L is timed regular Step 3: Untime( L L ) should be a regular language
59 27/32 Step 1: L = { (w, τ) every a has an action at a distance 1 from it } Suppose L is timed regular Step 2: Let L = { (a b, τ) all a s occur before time 1 and no two a s happen at same time } Clearly L is timed regular Step 3: Untime( L L ) should be a regular language Step 4: But, Untime( L L ) = {a n b m m n}, not regular!
60 27/32 Step 1: L = { (w, τ) every a has an action at a distance 1 from it } Suppose L is timed regular Step 2: Let L = { (a b, τ) all a s occur before time 1 and no two a s happen at same time } Clearly L is timed regular Step 3: Untime( L L ) should be a regular language Step 4: But, Untime( L L ) = {a n b m m n}, not regular! Therefore L cannot be timed regular
61 28/32 L L Timed regular languages are not closed under complementation
62 29/32 Timed automata Runs 1 clock < 2 clocks <... Role of max constant Timed regular lngs. Closure under, Non-closure under complement
63 29/32 Timed automata Runs 1 clock < 2 clocks <... Role of max constant Timed regular lngs. Closure under, Non-closure under complement ε-transitions
64 30/32 L 6 := { ( a k, τ ) τ i is some integer for each i} a a a Claim: No timed automaton can accept L 6
65 30/32 L 6 := { ( a k, τ ) τ i is some integer for each i} a ε a ε ε ε a
66 30/32 L 6 := { ( a k, τ ) τ i is some integer for each i} a ε a ε ε ε a x = 1, ε, {x} q 0 x = 1, a, {x}
67 31/32 ε-transitions ε-transitions add expressive power to timed automata. Characterization of the expressive power of silent transitions in timed automata Bérard, Diekert, Gastin, Petit. Fundamenta Informaticae 98
68 31/32 ε-transitions ε-transitions add expressive power to timed automata. However, they add power only when a clock is reset in an ε-transition. Characterization of the expressive power of silent transitions in timed automata Bérard, Diekert, Gastin, Petit. Fundamenta Informaticae 98
69 32/32 Timed automata Runs 1 clock < 2 clocks <... Role of max constant Timed regular lngs. Closure under, Non-closure under complement ε-transitions More expressive ε without reset TA
70 32/32 Timed automata Runs 1 clock < 2 clocks <... Role of max constant Timed regular lngs. Closure under, Non-closure under complement ε-transitions More expressive ε without reset TA Next lecture: Determinization
cse303 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 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 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 informationmodels, languages, dynamics Eugene Asarin PIMS/EQINOCS Workshop on Automata Theory and Symbolic Dynamics LIAFA - University Paris Diderot and CNRS
models, s, LIAFA - University Paris Diderot and CNRS PIMS/EQINOCS Workshop on Automata Theory and Symbolic Dynamics Context A model for verification of real-time systems Invented by Alur and Dill in early
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 informationCS Automata, Computability and Formal Languages
Automata, Computability and Formal Languages Luc Longpré faculty.utep.edu/longpre 1 - Pg 1 Slides : version 3.1 version 1 A. Tapp version 2 P. McKenzie, L. Longpré version 2.1 D. Gehl version 2.2 M. Csűrös,
More informationCS 121, Section 2. Week of September 16, 2013
CS 121, Section 2 Week of September 16, 2013 1 Concept Review 1.1 Overview In the past weeks, we have examined the finite automaton, a simple computational model with limited memory. We proved that DFAs,
More informationA Universal Turing Machine
A Universal Turing Machine A limitation of Turing Machines: Turing Machines are hardwired they execute only one program Real Computers are re-programmable Solution: Universal Turing Machine Attributes:
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 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 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 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 informationCOSE212: Programming Languages. Lecture 1 Inductive Definitions (1)
COSE212: Programming Languages Lecture 1 Inductive Definitions (1) Hakjoo Oh 2017 Fall Hakjoo Oh COSE212 2017 Fall, Lecture 1 September 4, 2017 1 / 9 Inductive Definitions Inductive definition (induction)
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 informationOn decision problems for timed automata
On decision problems for timed automata Olivier Finkel Equipe de Logique Mathématique, U.F.R. de Mathématiques, Université Paris 7 2 Place Jussieu 75251 Paris cedex 05, France. finkel@logique.jussieu.fr
More informationClosure Properties of Regular Languages
Closure Properties of Regular Languages Lecture 13 Section 4.1 Robb T. Koether Hampden-Sydney College Wed, Sep 21, 2016 Robb T. Koether (Hampden-Sydney College) Closure Properties of Regular Languages
More informationReal-Time Systems. Lecture 15: The Universality Problem for TBA Dr. Bernd Westphal. Albert-Ludwigs-Universität Freiburg, Germany
Real-Time Systems Lecture 15: The Universality Problem for TBA 2013-06-26 15 2013-06-26 main Dr. Bernd Westphal Albert-Ludwigs-Universität Freiburg, Germany Contents & Goals Last Lecture: Extended Timed
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 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 informationFABER Formal Languages, Automata. Lecture 2. Mälardalen University
CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 2 Mälardalen University 2010 1 Content Languages, g Alphabets and Strings Strings & String Operations Languages & Language Operations
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 informationUndecidability Results for Timed Automata with Silent Transitions
Fundamenta Informaticae XXI (2001) 1001 1025 1001 IOS Press Undecidability Results for Timed Automata with Silent Transitions Patricia Bouyer LSV, ENS Cachan, CNRS, France bouyer@lsv.ens-cachan.fr Serge
More informationPushdown automata. Twan van Laarhoven. Institute for Computing and Information Sciences Intelligent Systems Radboud University Nijmegen
Pushdown automata Twan van Laarhoven Institute for Computing and Information Sciences Intelligent Systems Version: fall 2014 T. van Laarhoven Version: fall 2014 Formal Languages, Grammars and Automata
More informationCOSE212: Programming Languages. Lecture 1 Inductive Definitions (1)
COSE212: Programming Languages Lecture 1 Inductive Definitions (1) Hakjoo Oh 2018 Fall Hakjoo Oh COSE212 2018 Fall, Lecture 1 September 5, 2018 1 / 10 Inductive Definitions Inductive definition (induction)
More informationAutomata Theory and Formal Grammars: Lecture 1
Automata Theory and Formal Grammars: Lecture 1 Sets, Languages, Logic Automata Theory and Formal Grammars: Lecture 1 p.1/72 Sets, Languages, Logic Today Course Overview Administrivia Sets Theory (Review?)
More informationIntroduction to the Theory of Computation. Automata 1VO + 1PS. Lecturer: Dr. Ana Sokolova.
Introduction to the Theory of Computation Automata 1VO + 1PS Lecturer: Dr. Ana Sokolova http://cs.uni-salzburg.at/~anas/ Setup and Dates Lectures and Instructions 23.10. 3.11. 17.11. 24.11. 1.12. 11.12.
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 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 informationSFWR ENG 2FA3. Solution to the Assignment #4
SFWR ENG 2FA3. Solution to the Assignment #4 Total = 131, 100%= 115 The solutions below are often very detailed on purpose. Such level of details is not required from students solutions. Some questions
More informationIntroduction to the Theory of Computation. Automata 1VO + 1PS. Lecturer: Dr. Ana Sokolova.
Introduction to the Theory of Computation Automata 1VO + 1PS Lecturer: Dr. Ana Sokolova http://cs.uni-salzburg.at/~anas/ Setup and Dates Lectures Tuesday 10:45 pm - 12:15 pm Instructions Tuesday 12:30
More informationAutomata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS
Automata Theory Lecture on Discussion Course of CS2 This Lecture is about Mathematical Models of Computation. Why Should I Care? - Ways of thinking. - Theory can drive practice. - Don t be an Instrumentalist.
More informationTwo-Way Automata and Descriptional Complexity
Two-Way Automata and Descriptional Complexity Giovanni Pighizzini Dipartimento di Informatica Università degli Studi di Milano TCS 2014 Rome, Italy September 1-3, 2014 IFIP TC1, Working Group 1.2, Descriptional
More informationFORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
5-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY NON-DETERMINISM and REGULAR OPERATIONS THURSDAY JAN 6 UNION THEOREM The union of two regular languages is also a regular language Regular Languages Are
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 informationSection 1 (closed-book) Total points 30
CS 454 Theory of Computation Fall 2011 Section 1 (closed-book) Total points 30 1. Which of the following are true? (a) a PDA can always be converted to an equivalent PDA that at each step pops or pushes
More informationTheory of Computer Science
Theory of Computer Science C1. Formal Languages and Grammars Malte Helmert University of Basel March 14, 2016 Introduction Example: Propositional Formulas from the logic part: Definition (Syntax of Propositional
More informationRegular Expressions Kleene s Theorem Equation-based alternate construction. Regular Expressions. Deepak D Souza
Regular Expressions Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 16 August 2012 Outline 1 Regular Expressions 2 Kleene s Theorem 3 Equation-based
More informationCS 154, Lecture 3: DFA NFA, Regular Expressions
CS 154, Lecture 3: DFA NFA, Regular Expressions Homework 1 is coming out Deterministic Finite Automata Computation with finite memory Non-Deterministic Finite Automata Computation with finite memory and
More informationTAFL 1 (ECS-403) Unit- III. 3.1 Definition of CFG (Context Free Grammar) and problems. 3.2 Derivation. 3.3 Ambiguity in Grammar
TAFL 1 (ECS-403) Unit- III 3.1 Definition of CFG (Context Free Grammar) and problems 3.2 Derivation 3.3 Ambiguity in Grammar 3.3.1 Inherent Ambiguity 3.3.2 Ambiguous to Unambiguous CFG 3.4 Simplification
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 informationFolk Theorems on the Determinization and Minimization of Timed Automata
Folk Theorems on the Determinization and Minimization of Timed Automata Stavros Tripakis VERIMAG Centre Equation 2, avenue de Vignate, 38610 Gières, France www-verimag.imag.fr Abstract. Timed automata
More informationText Search and Closure Properties
Text Search and Closure Properties CSCI 330 Formal Languages and Automata Theory Siu On CHAN Fall 208 Chinese University of Hong Kong /28 Text Search grep program grep -E regex file.txt Searches for an
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 informationText Search and Closure Properties
Text Search and Closure Properties CSCI 3130 Formal Languages and Automata Theory Siu On CHAN Chinese University of Hong Kong Fall 2017 1/30 Text Search 2/30 grep program grep -E regexp file.txt Searches
More informationCMSC 330: Organization of Programming Languages. Regular Expressions and Finite Automata
CMSC 330: Organization of Programming Languages Regular Expressions and Finite Automata CMSC330 Spring 2018 1 How do regular expressions work? What we ve learned What regular expressions are What they
More informationFinite-State Machines (Automata) lecture 12
Finite-State Machines (Automata) lecture 12 cl a simple form of computation used widely one way to find patterns 1 A current D B A B C D B C D A C next 2 Application Fields Industry real-time control,
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 informationAutomata: a short introduction
ILIAS, University of Luxembourg Discrete Mathematics II May 2012 What is a computer? Real computers are complicated; We abstract up to an essential model of computation; We begin with the simplest possible
More informationCMSC 330: Organization of Programming Languages
CMSC 330: Organization of Programming Languages Regular Expressions and Finite Automata CMSC 330 Spring 2017 1 How do regular expressions work? What we ve learned What regular expressions are What they
More informationDefinition: A grammar G = (V, T, P,S) is a context free grammar (cfg) if all productions in P have the form A x where
Recitation 11 Notes Context Free Grammars Definition: A grammar G = (V, T, P,S) is a context free grammar (cfg) if all productions in P have the form A x A V, and x (V T)*. Examples Problem 1. Given the
More informationFormal Languages, Automata and Models of Computation
CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 5 School of Innovation, Design and Engineering Mälardalen University 2011 1 Content - More Properties of Regular Languages (RL)
More informationPushdown Automata. Reading: Chapter 6
Pushdown Automata Reading: Chapter 6 1 Pushdown Automata (PDA) Informally: A PDA is an NFA-ε with a infinite stack. Transitions are modified to accommodate stack operations. Questions: What is a stack?
More informationFinite Automata and Languages
CS62, IIT BOMBAY Finite Automata and Languages Ashutosh Trivedi Department of Computer Science and Engineering, IIT Bombay CS62: New Trends in IT: Modeling and Verification of Cyber-Physical Systems (2
More informationHarvard CS 121 and CSCI E-207 Lecture 4: NFAs vs. DFAs, Closure Properties
Harvard CS 121 and CSCI E-207 Lecture 4: NFAs vs. DFAs, Closure Properties Salil Vadhan September 13, 2012 Reading: Sipser, 1.2. How to simulate NFAs? NFA accepts w if there is at least one accepting computational
More informationarxiv: v1 [cs.fl] 25 Nov 2018
Real-Time Systems Modeling and Analysis Lakhan Shiva Kamireddy [0000 0001 6007 5408] University of Colorado, Boulder CO 80302, USA {lakhan.kamireddy}@colorado.edu arxiv:1811.10083v1 [cs.fl] 25 Nov 2018
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 informationCSE 105 THEORY OF COMPUTATION
CSE 105 THEORY OF COMPUTATION "Winter" 2018 http://cseweb.ucsd.edu/classes/wi18/cse105-ab/ Today's learning goals Sipser Section 1.1 Design an automaton that recognizes a given language. Specify each of
More informationEquivalence of DFAs and NFAs
CS 172: Computability and Complexity Equivalence of DFAs and NFAs It s a tie! DFA NFA Sanjit A. Seshia EECS, UC Berkeley Acknowledgments: L.von Ahn, L. Blum, M. Blum What we ll do today Prove that DFAs
More informationHarvard CS121 and CSCI E-121 Lecture 2: Mathematical Preliminaries
Harvard CS121 and CSCI E-121 Lecture 2: Mathematical Preliminaries Harry Lewis September 5, 2013 Reading: Sipser, Chapter 0 Sets Sets are defined by their members A = B means that for every x, x A iff
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 informationLe rning Regular. A Languages via Alt rn ting. A E Autom ta
1 Le rning Regular A Languages via Alt rn ting A E Autom ta A YALE MIT PENN IJCAI 15, Buenos Aires 2 4 The Problem Learn an unknown regular language L using MQ and EQ data mining neural networks geometry
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 informationLecture Notes On THEORY OF COMPUTATION MODULE -1 UNIT - 2
BIJU PATNAIK UNIVERSITY OF TECHNOLOGY, ODISHA Lecture Notes On THEORY OF COMPUTATION MODULE -1 UNIT - 2 Prepared by, Dr. Subhendu Kumar Rath, BPUT, Odisha. UNIT 2 Structure NON-DETERMINISTIC FINITE AUTOMATA
More informationClosure under the Regular Operations
September 7, 2013 Application of NFA Now we use the NFA to show that collection of regular languages is closed under regular operations union, concatenation, and star Earlier we have shown this closure
More informationAuthor: Vivek Kulkarni ( )
Author: Vivek Kulkarni ( vivek_kulkarni@yahoo.com ) Chapter-3: Regular Expressions Solutions for Review Questions @ Oxford University Press 2013. All rights reserved. 1 Q.1 Define the following and give
More informationDecision Problems with TM s. Lecture 31: Halting Problem. Universe of discourse. Semi-decidable. Look at following sets: CSCI 81 Spring, 2012
Decision Problems with TM s Look at following sets: Lecture 31: Halting Problem CSCI 81 Spring, 2012 Kim Bruce A TM = { M,w M is a TM and w L(M)} H TM = { M,w M is a TM which halts on input w} TOTAL TM
More informationIn English, there are at least three different types of entities: letters, words, sentences.
Chapter 2 Languages 2.1 Introduction In English, there are at least three different types of entities: letters, words, sentences. letters are from a finite alphabet { a, b, c,..., z } words are made up
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 informationJumping Finite Automata
Jumping Finite Automata Alexander Meduna and Petr Zemek Brno University of Technology, Faculty of Information Technology IT4Innovations Centre of Excellence Božetěchova 2, 612 00 Brno, Czech Republic http://www.fit.vutbr.cz/
More informationThe Pumping Lemma (cont.) 2IT70 Finite Automata and Process Theory
The Pumping Lemma (cont.) 2IT70 Finite Automata and Process Theory Technische Universiteit Eindhoven May 4, 2016 The Pumping Lemma theorem if L Σ is a regular language then m > 0 : w L, w m : x,y,z : w
More informationCS 154. Finite Automata, Nondeterminism, Regular Expressions
CS 54 Finite Automata, Nondeterminism, Regular Expressions Read string left to right The DFA accepts a string if the process ends in a double circle A DFA is a 5-tuple M = (Q, Σ, δ, q, F) Q is the set
More informationCS 154. Finite Automata vs Regular Expressions, Non-Regular Languages
CS 154 Finite Automata vs Regular Expressions, Non-Regular Languages Deterministic Finite Automata Computation with finite memory Non-Deterministic Finite Automata Computation with finite memory and guessing
More informationC1.1 Introduction. Theory of Computer Science. Theory of Computer Science. C1.1 Introduction. C1.2 Alphabets and Formal Languages. C1.
Theory of Computer Science March 20, 2017 C1. Formal Languages and Grammars Theory of Computer Science C1. Formal Languages and Grammars Malte Helmert University of Basel March 20, 2017 C1.1 Introduction
More informationFinite Automata Part One
Finite Automata Part One Computability Theory What problems can we solve with a computer? What kind of computer? Computers are Messy http://en.wikipedia.org/wiki/file:eniac.jpg Computers are Messy That
More informationRegular Expressions and Finite-State Automata. L545 Spring 2008
Regular Expressions and Finite-State Automata L545 Spring 2008 Overview Finite-state technology is: Fast and efficient Useful for a variety of language tasks Three main topics we ll discuss: Regular Expressions
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 2 Define push down automata Trace the computation of a push down automaton Design
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 informationCDM Closure Properties
CDM Closure Properties Klaus Sutner Carnegie Mellon Universality 15-closure 2017/12/15 23:19 1 Nondeterministic Machines 2 Determinization 3 Closure Properties Where Are We? 3 We have a definition of regular
More information5/10/16. Grammar. Automata and Languages. Today s Topics. Grammars Definition A grammar G is defined as G = (V, T, P, S) where:
Grammar Automata and Languages Grammar Prof. Mohamed Hamada oftware Engineering Lab. The University of Aizu Japan Regular Grammar Context-free Grammar Context-sensitive Grammar Left-linear Grammar right-linear
More informationDeterministic PDA s. Deepak D Souza. 08 Nov Department of Computer Science and Automation Indian Institute of Science, Bangalore.
Deterministic PDA s Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 08 Nov 2016 Outline 1 Deterministic PDA s 2 Closure properties of DCFL s 3 Complementing
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 informationRecent results on Timed Systems
Recent results on Timed Systems Time Petri Nets and Timed Automata Béatrice Bérard LAMSADE Université Paris-Dauphine & CNRS berard@lamsade.dauphine.fr Based on joint work with F. Cassez, S. Haddad, D.
More informationVerification of Polynomial Interrupt Timed Automata
Verification of Polynomial Interrupt Timed Automata Béatrice Bérard 1, Serge Haddad 2, Claudine Picaronny 2, Mohab Safey El Din 1, Mathieu Sassolas 3 1 Université P. & M. Curie, LIP6 2 ENS Cachan, LSV
More informationFinite Automata Part Two
Finite Automata Part Two DFAs A DFA is a Deterministic Finite Automaton A DFA is defined relative to some alphabet Σ. For each state in the DFA, there must be exactly one transition defined for each symbol
More informationReview : Powers of a matrix
Review : Powers of a matrix Given a square matrix A and a positive integer k, we define A k = AA A } {{ } k times Note that the multiplications AA, AAA,... make sense. Example. Suppose A=. Then A 0 2 =
More informationTimed Automata VINO 2011
Timed Automata VINO 2011 VeriDis Group - LORIA July 18, 2011 Content 1 Introduction 2 Timed Automata 3 Networks of timed automata Motivation Formalism for modeling and verification of real-time systems.
More informationTheory of Computation (Classroom Practice Booklet Solutions)
Theory of Computation (Classroom Practice Booklet Solutions) 1. Finite Automata & Regular Sets 01. Ans: (a) & (c) Sol: (a) The reversal of a regular set is regular as the reversal of a regular expression
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 informationÖVNINGSUPPGIFTER I SAMMANHANGSFRIA SPRÅK. 17 april Classrum Edition
ÖVNINGSUPPGIFTER I SAMMANHANGSFRIA SPRÅK 7 april 23 Classrum Edition CONTEXT FREE LANGUAGES & PUSH-DOWN AUTOMATA CONTEXT-FREE GRAMMARS, CFG Problems Sudkamp Problem. (3.2.) Which language generates the
More informationAutomata Theory CS F-04 Non-Determinisitic Finite Automata
Automata Theory CS411-2015F-04 Non-Determinisitic Finite Automata David Galles Department of Computer Science University of San Francisco 04-0: Non-Determinism A Deterministic Finite Automata s transition
More informationUndecibability. Hilbert's 10th Problem: Give an algorithm that given a polynomial decides if the polynomial has integer roots or not.
Undecibability Hilbert's 10th Problem: Give an algorithm that given a polynomial decides if the polynomial has integer roots or not. The problem was posed in 1900. In 1970 it was proved that there can
More informationECS120 Fall Discussion Notes. October 25, The midterm is on Thursday, November 2nd during class. (That is next week!)
ECS120 Fall 2006 Discussion Notes October 25, 2006 Announcements The midterm is on Thursday, November 2nd during class. (That is next week!) Homework 4 Quick Hints Problem 1 Prove that the following languages
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 informationGreat Theoretical Ideas in Computer Science. Lecture 4: Deterministic Finite Automaton (DFA), Part 2
5-25 Great Theoretical Ideas in Computer Science Lecture 4: Deterministic Finite Automaton (DFA), Part 2 January 26th, 27 Formal definition: DFA A deterministic finite automaton (DFA) M =(Q,,,q,F) M is
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 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 information6.8 The Post Correspondence Problem
6.8. THE POST CORRESPONDENCE PROBLEM 423 6.8 The Post Correspondence Problem The Post correspondence problem (due to Emil Post) is another undecidable problem that turns out to be a very helpful tool for
More informationProbabilistic Aspects of Computer Science: Probabilistic Automata
Probabilistic Aspects of Computer Science: Probabilistic Automata Serge Haddad LSV, ENS Paris-Saclay & CNRS & Inria M Jacques Herbrand Presentation 2 Properties of Stochastic Languages 3 Decidability Results
More informationLanguages, regular languages, finite automata
Notes on Computer Theory Last updated: January, 2018 Languages, regular languages, finite automata Content largely taken from Richards [1] and Sipser [2] 1 Languages An alphabet is a finite set of characters,
More informationLecture 4: More on Regexps, Non-Regular Languages
6.045 Lecture 4: More on Regexps, Non-Regular Languages 6.045 Announcements: - Pset 1 is on piazza (as of last night) - If you don t have piazza access but are registered for 6.045, send email to TAs with
More information