Flexible RNA design under structure and sequence constraints using a language theoretic approach

Size: px
Start display at page:

Download "Flexible RNA design under structure and sequence constraints using a language theoretic approach"

Transcription

1 Flexible RN design under structure and sequence constraints using a language theoretic approach Yu Zhou,, Yann Ponty Stéphane Vialette Jérôme Waldispühl Yi Zhang lain Denise LRI, niv. Paris-Sud, Orsay F-91405, France State Key Laboratory of Virology, Wuhan niversity, hina ellular and Molecular Medicine, niv. of alifornia San Diego, S LIX, NRS/Ecole Polytechnique, France + PIMS, Vancouver, anada LIM, niversité Paris-Est, France omputer Science, Mc ill niversity, anada Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB 13 1 / 21

2 RN structure Primary structure Secondary structure Tertiary structure 5s rrn (PDBID: 1K73:B) RN Folding: Θ(n 3 ) Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB 13 2 / 21

3 RN structure Primary structure Secondary structure Tertiary structure 5s rrn (PDBID: 1K73:B) RN Folding: Θ(n 3 ) RN Design: NP(-hard?) Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB 13 2 / 21

4 Motivation for constrained design Motivation: Impact of structure on function of Exon Splicing Enhancers (ESE). Different structures Presence of ESE motif void other ESEs ( 1500!) Structural context of ESE motif in transcript was shown to affects its functionality. [Liu et al, FEBS Lett. 2010] ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB 13 3 / 21

5 Design goals Positive design Optimize affinity of designed sequences towards target structure Negative design Limit affinity of designs towards alternative structures dditional constraints: Forbid motif list to appear anywhere in design Force motif list to appear each at least once Limit available alternatives for certain positions Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB 13 4 / 21

6 Existing approaches for negative design Based on local search... RNInverse Info-RN RN-SSD NPack... genetic algorithms... RNFBinv FRNKenstein... or exact approaches RNIFold O4 Few algorithms support avoided/mandatory motifs none guarantees reasonable runtimes for any RN/motifs set. Typical reasons: Mandatory motifs Late deadends (Branch and Bound) Forbidden motifs Search space disconnection (Local Search) ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB 13 5 / 21

7 Existing approaches for negative design Based on local search... RNInverse Info-RN RN-SSD NPack... genetic algorithms... RNFBinv FRNKenstein... or exact approaches RNIFold O4 Few algorithms support avoided/mandatory motifs none guarantees reasonable runtimes for any RN/motifs set. Typical reasons: Mandatory motifs Late deadends (Branch and Bound) Forbidden motifs Search space disconnection (Local Search) ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB 13 5 / 21

8 Problem with local approaches: n example Simplified vocabulary {, } ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB 13 6 / 21

9 Problem with local approaches: n example Simplified vocabulary {, } + Forbidden motifs F = {,} F may disconnect search space (holds for any move set!) ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB 13 6 / 21

10 lobal Sampling [Levin et al, NR 12] Boltzmann Distribution (BD) based on affinity towards target S enerate at random candidate sequences w.r.t. BD Refold generated sequences and compare to target Boltzmann factor: B(s) := e E(s) RT Partition function: 10 B(s) 20 1 Z = s Boltzmann probability: p(s) := B(s) Z 30 Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB 13 7 / 21

11 lobal Sampling [Levin et al, NR 12; Reinharz et al, ISMB 13] ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB 13 8 / 21

12 lobal Sampling [Levin et al, NR 12; Reinharz et al, ISMB 13] omplementarity: + Diversity + Flexible composition - ccuracy ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB 13 8 / 21

13 local approach [Reinharz et al, ISMB 13] Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB 13 9 / 21

14 Outline se formal language constructs to constrain global sampling Forced motifs voided motifs Structure compatibility + Positional constraints + Energy Model Regular language L Reg Weighted ontext-free Lang L S FL Folklore theorem (constructive): Reg (W)FL (W)FL Build weighted context-free grammar for L L S + Random generation lobal sampling under constraints Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

15 Outline se formal language constructs to constrain global sampling Forced motifs voided motifs Structure compatibility + Positional constraints + Energy Model Regular language L Reg Weighted ontext-free Lang L S FL Folklore theorem (constructive): Reg (W)FL (W)FL Build weighted context-free grammar for L L S + Random generation lobal sampling under constraints Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

16 Outline se formal language constructs to constrain global sampling Forced motifs voided motifs Structure compatibility + Positional constraints + Energy Model Regular language L Reg Weighted ontext-free Lang L S FL Folklore theorem (constructive): Reg (W)FL (W)FL Build weighted context-free grammar for L L S + Random generation lobal sampling under constraints ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

17 Outline se formal language constructs to constrain global sampling Forced motifs voided motifs Structure compatibility + Positional constraints + Energy Model Regular language L Reg Weighted ontext-free Lang L S FL Folklore theorem (constructive): Reg (W)FL (W)FL Build weighted context-free grammar for L L S + Random generation lobal sampling under constraints Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

18 Building the Finite State utomaton Forbidden motifs F = {f 1, f 2...} Mandatory motifs M = {m 1, m 2...} voiding a single word Linear automaton voiding multiple words Efficient ho-orasick construct Forcing a single word Linear automaton (omplemented) Forcing several words disjunctively ho-orasick Example: void (L ),,, ε Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

19 Building the Finite State utomaton Forbidden motifs F = {f 1, f 2...} Mandatory motifs M = {m 1, m 2...} voiding a single word Linear automaton voiding multiple words Efficient ho-orasick construct Forcing a single word Linear automaton (omplemented) Forcing several words disjunctively ho-orasick Example: void + (L L ) ε,,, ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

20 Building the Finite State utomaton Forbidden motifs F = {f 1, f 2...} Mandatory motifs M = {m 1, m 2...} voiding a single word Linear automaton voiding multiple words Efficient ho-orasick construct Forcing a single word Linear automaton (omplemented) Forcing several words disjunctively ho-orasick Example: Forcing (L ),,, ε ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

21 Building the Finite State utomaton Forbidden motifs F = {f 1, f 2...} Mandatory motifs M = {m 1, m 2...} voiding a single word Linear automaton voiding multiple words Efficient ho-orasick construct Forcing a single word Linear automaton (omplemented) Forcing several words disjunctively ho-orasick Example: Forcing or (L L ) ε ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

22 Building the Finite State utomaton To force multiple words, keep track of generated words: reate disjunctive automaton for each M M Reroute accepting states ccepting state = no forced word remaining (ε in ) Forbidden words can be added to sub-automata #States: O (2 M ( i f i + j m j )) Example: M = {, } ε {} ε M ε,,, ε {} Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

23 Building the Finite State utomaton To force multiple words, keep track of generated words: reate disjunctive automaton for each M M Reroute accepting states ccepting state = no forced word remaining (ε in ) Forbidden words can be added to sub-automata Example: M = {, } ε ε M ε #States: {} ε {} O (2 M ( i f i + j m j )),,, Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

24 Building the Finite State utomaton To force multiple words, keep track of generated words: reate disjunctive automaton for each M M Reroute accepting states ccepting state = no forced word remaining (ε in ) Forbidden words can be added to sub-automata #States: O (2 M ( i f i + j m j )) Example: M = {, }; F = {} ε ε ε,, ε ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

25 Building the grammar Input: Secondary Structure S + Positional constraints reate Parse Tree for secondary structure B Translate Parse Tree into single-word grammar Expand grammar to instantiate compatible base/base-pairs D Restrict to bases/base-pairs allowed at each position ( ( (. ) ) (.. ) ) Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

26 Building the grammar Input: Secondary Structure S + Positional constraints reate Parse Tree for secondary structure B Translate Parse Tree into single-word grammar Expand grammar to instantiate compatible base/base-pairs D Restrict to bases/base-pairs allowed at each position S 1 S 2 S 4 S 3 S 8 S 9 S10 S 5. ( ( (. ) ) (.. ) ) Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

27 Building the grammar Input: Secondary Structure S + Positional constraints reate Parse Tree for secondary structure B Translate Parse Tree into single-word grammar Expand grammar to instantiate compatible base/base-pairs D Restrict to bases/base-pairs allowed at each position S 1. S 2 S 2 ( S 3 ) S 3 ( S 4 ) S 8 S 4 ( S 5 ) S 5. S 8 ( S 9 ) S 9. S 10 S 10. ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

28 Building the grammar Input: Secondary Structure S + Positional constraints reate Parse Tree for secondary structure B Translate Parse Tree into single-word grammar Expand grammar to instantiate compatible base/base-pairs D Restrict to bases/base-pairs allowed at each position V 1 V 2 V 2 V 2 V 2 V 2 V 3 V 3 V 3 V 3 V 3 V 3 V 3 V 4 V 8 V 4 V 8 V 4 V 8 V 4 V 8 V 4 V 8 V 4 V 8 V 4 V 5 V 5 V 5 V 5 V 5 V 5 V 5 V 8 V 9 V 9 V 9 V 9 V 9 V 9 V 9 V 10 V 10 V 10 V 10 V 10 ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

29 Building the grammar Input: Secondary Structure S + Positional constraints reate Parse Tree for secondary structure B Translate Parse Tree into single-word grammar Expand grammar to instantiate compatible base/base-pairs D Restrict to bases/base-pairs allowed at each position V 1 V 2 V 2 V 2 V 2 V 2 V 3 V 3 V 3 V 3 V 3 V 3 V 3 V 4 V 8 V 4 V 8 V 4 V 8 V 4 V 8 V 4 V 8 V 4 V 8 V 4 V 5 V 5 V 5 V 5 V 5 V 5 V 5 V 8 V 9 V 9 V 9 V 9 V 9 V 9 V 9 V 10 V 10 V 10 V 10 V 10 ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

30 Random generation ombine F and automaton F (Multiplying #Rules by Q 3 ) (W)F Recurrence on #words (resp. weight) of each NT enrens [Ponty et al, Bioinformatics 06]: Precomputes #words for each non-terminal Random eneration w.r.t. weighted distribution niform distribution:,, or anywhere 1 or e 1/RT Nussinov energy model: or e 2/RT or e 3/RT E XY Stacking-pairs model (Turner 2004) WX YZ e WZ /RT (Based on refined, yet similar, grammar) Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

31 omplexity utomaton: Time #States Q O (2 M ( i f i + j m j )) Initial F: #Rules #Non Term. Θ(n) Final F: #Non Term. N O(n Q 2 ), #Rules R O(n Q 3 ) Random generation: ny NT fully determines the length of its produced words. Preprocessing: Θ( R ) time/θ( N ) space eneration: Θ(n Q ) time for each design omplete algorithm has linear overall complexity but total length of motifs impacts preprocessing stage. Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

32 Time benchmark 350 Running time (second) Length of structure (nt) Random realistic secondary structures [Denise et al, TS 10] Mandatory motifs M = {} Forbidden motifs F = {,, } Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

33 FRND vs NPK: k design Benchmark: Random target structure + Design k sequences Refold design + Structural Sensitivity using RNFold (Turner 2001) Proportion Struct. Sens. distribution FRND (uniform) Struct. Sens. 0-50% 50-75% 75-90% 90-99% 100% Length (nts) Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

34 FRND vs NPK: k design Benchmark: Random target structure + Design k sequences Refold design + Structural Sensitivity using RNFold (Turner 2001) Proportion Struct. Sens. distribution FRND (weighted) Struct. Sens. 0-50% 50-75% 75-90% 90-99% 100% Length (nts) Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

35 FRND vs NPK: k design Benchmark: Random target structure + Design k sequences Refold design + Structural Sensitivity using RNFold (Turner 2001) Proportion Struct. Sens. distribution NPK Struct. Sens. 0-50% 50-75% 75-90% 90-99% 100% Length (nts) Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

36 FRND vs NPK: Same time consumption For RNs up to 100 nts, #perfect/correct/decent designs are favorable to FRND if given same amount of time as NPK (inc. refolding) Struct. Sens. 100% - NPK 90-99% - NPK 75-90% - NPK 100% - FRND (weighted) 90-99% - FRND (weighted) 75-90% - FRND (weighted) Population Structures Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

37 FRND vs NPK: Same time consumption For RNs up to 100 nts, #perfect/correct/decent designs are favorable to FRND if given same amount of time as NPK (inc. refolding) Population Struct. Sens. 100% - NPK 90-99% - NPK 75-90% - NPK 100% - FRND (weighted) 90-99% - FRND (weighted) 75-90% - FRND (weighted) Structures Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

38 onclusion/perspectives Done: Linear time algorithm for positive design under constraints Practical runtime complexity Standalone Python implementation + Webserver ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

39 onclusion/perspectives Done: Linear time algorithm for positive design under constraints Practical runtime complexity Standalone Python implementation + Webserver To Dos: ombined with soft constraints (Boltzmann sampling) for compositional control Full Turner energy model Investigation of constrained glocal approach Better products for grammars/automata ann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

40 cknowledgments oauthors Yu Zhou (SD) Stéphane Vialette (LIM) Jérôme Waldispühl (Mcill) Yi Zhang (Wuhan, hina) lain Denise (LRI/IM) James Regis (Polytechnique) for technical help Vlad Reinharz (Mcill) You for your attention! Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

41 cknowledgments oauthors Yu Zhou (SD) Stéphane Vialette (LIM) Jérôme Waldispühl (Mcill) Yi Zhang (Wuhan, hina) lain Denise (LRI/IM) James Regis (Polytechnique) for technical help Vlad Reinharz (Mcill) You for your attention! Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

42 ombining grammar and automaton Ideas: Simulate run in automaton while generating word in grammar Each new non-terminal commits to connecting two states Terminal rules check if commitment is fulfilled Some non-terminals may become unproductive clean-up V t V = V q q t V δ(q,t) q V t V t = V q q t V δ(q,t) q t s.t. δ(q, t ) = q V t V t V = V q q t V δ(q,t) q t V { Vq q t if δ(q, t) = q V t = otherwise δ(q,t ) q Yann Ponty (NRS/Polytechnique, France) Flexible RN design Sept. 22 th M-BB / 21

Towards firm foundations for the rational design of RNA molecules

Towards firm foundations for the rational design of RNA molecules 39 28 4 8 282 28 98 32 3 36 68 3 82 : (405)-43-> 43 42 4 40 8 25 37 46 26 36 24 27 E23_9 34 22 3 33 32 E23_2 2 48 o 9 Towards firm foundations for the rational design of RN molecules 47 2 E23_6 E23_ 45

More information

Impact Of The Energy Model On The Complexity Of RNA Folding With Pseudoknots

Impact Of The Energy Model On The Complexity Of RNA Folding With Pseudoknots Impact Of The Energy Model On The omplexity Of RN Folding With Pseudoknots Saad Sheikh, Rolf Backofen Yann Ponty, niversity of Florida, ainesville, S lbert Ludwigs niversity, Freiburg, ermany LIX, NRS/Ecole

More information

RNA Abstract Shape Analysis

RNA Abstract Shape Analysis ourse: iegerich RN bstract nalysis omplete shape iegerich enter of Biotechnology Bielefeld niversity robert@techfak.ni-bielefeld.de ourse on omputational RN Biology, Tübingen, March 2006 iegerich ourse:

More information

Extending the hypergraph analogy for RNA dynamic programming

Extending the hypergraph analogy for RNA dynamic programming Extending the hypergraph analogy for RN dynamic programming Yann Ponty Balaji Raman édric Saule Polytechnique/NRS/INRI MIB France Yann Ponty, Balaji Raman, édric Saule RN Folding RN = Biopolymer composed

More information

CFG PSA Algorithm. Sequence Alignment Guided By Common Motifs Described By Context Free Grammars

CFG PSA Algorithm. Sequence Alignment Guided By Common Motifs Described By Context Free Grammars FG PS lgorithm Sequence lignment Guided By ommon Motifs Described By ontext Free Grammars motivation Find motifs- conserved regions that indicate a biological function or signature. Other algorithm do

More information

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,

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, 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 information

Automata Theory. CS F-10 Non-Context-Free Langauges Closure Properties of Context-Free Languages. David Galles

Automata Theory. CS F-10 Non-Context-Free Langauges Closure Properties of Context-Free Languages. David Galles Automata Theory CS411-2015F-10 Non-Context-Free Langauges Closure Properties of Context-Free Languages David Galles Department of Computer Science University of San Francisco 10-0: Fun with CFGs Create

More information

Harvard 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 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 information

RNAscClust clustering RNAs using structure conservation and graph-based motifs

RNAscClust clustering RNAs using structure conservation and graph-based motifs RNsclust clustering RNs using structure conservation and graph-based motifs Milad Miladi 1 lexander Junge 2 miladim@informatikuni-freiburgde ajunge@rthdk 1 Bioinformatics roup, niversity of Freiburg 2

More information

A new dichotomic algorithm for the uniform random generation of words in regular languages

A new dichotomic algorithm for the uniform random generation of words in regular languages A new dichotomic algorithm for the uniform random generation of words in regular languages Johan Oudinet 1,2, Alain Denise 1,2,3, and Marie-Claude Gaudel 1,2 1 Univ Paris-Sud, Laboratoire LRI, UMR8623,

More information

RNA Secondary Structure Prediction

RNA Secondary Structure Prediction RN Secondary Structure Prediction Perry Hooker S 531: dvanced lgorithms Prof. Mike Rosulek University of Montana December 10, 2010 Introduction Ribonucleic acid (RN) is a macromolecule that is essential

More information

CPS 220 Theory of Computation Pushdown Automata (PDA)

CPS 220 Theory of Computation Pushdown Automata (PDA) CPS 220 Theory of Computation Pushdown Automata (PDA) Nondeterministic Finite Automaton with some extra memory Memory is called the stack, accessed in a very restricted way: in a First-In First-Out fashion

More information

Einführung in die Computerlinguistik

Einführung in die Computerlinguistik Einführung in die Computerlinguistik Context-Free Grammars (CFG) Laura Kallmeyer Heinrich-Heine-Universität Düsseldorf Summer 2016 1 / 22 CFG (1) Example: Grammar G telescope : Productions: S NP VP NP

More information

Theory of Computation (IV) Yijia Chen Fudan University

Theory of Computation (IV) Yijia Chen Fudan University Theory of Computation (IV) Yijia Chen Fudan University Review language regular context-free machine DFA/ NFA PDA syntax regular expression context-free grammar Pushdown automata Definition A pushdown automaton

More information

Pushdown Automata (PDA) The structure and the content of the lecture is based on

Pushdown Automata (PDA) The structure and the content of the lecture is based on Pushdown Automata (PDA) The structure and the content of the lecture is based on http://www.eecs.wsu.edu/~ananth/cpts317/lectures/index.htm 1 Excursion: Previous lecture n Context-free grammar G=(V,T,P,S),

More information

Push-down Automata = FA + Stack

Push-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 information

Automata-based Verification - III

Automata-based Verification - III COMP30172: Advanced Algorithms Automata-based Verification - III Howard Barringer Room KB2.20: email: howard.barringer@manchester.ac.uk March 2009 Third Topic Infinite Word Automata Motivation Büchi Automata

More information

Everything You Always Wanted to Know About Parsing

Everything You Always Wanted to Know About Parsing Everything You Always Wanted to Know About Parsing Part V : LR Parsing University of Padua, Italy ESSLLI, August 2013 Introduction Parsing strategies classified by the time the associated PDA commits to

More information

Foreword. Grammatical inference. Examples of sequences. Sources. Example of problems expressed by sequences Switching the light

Foreword. Grammatical inference. Examples of sequences. Sources. Example of problems expressed by sequences Switching the light Foreword Vincent Claveau IRISA - CNRS Rennes, France In the course of the course supervised symbolic machine learning technique concept learning (i.e. 2 classes) INSA 4 Sources s of sequences Slides and

More information

Pushdown Automata (Pre Lecture)

Pushdown Automata (Pre Lecture) Pushdown Automata (Pre Lecture) Dr. Neil T. Dantam CSCI-561, Colorado School of Mines Fall 2017 Dantam (Mines CSCI-561) Pushdown Automata (Pre Lecture) Fall 2017 1 / 41 Outline Pushdown Automata Pushdown

More information

CS 61B Asymptotic Analysis Fall 2017

CS 61B Asymptotic Analysis Fall 2017 CS 61B Asymptotic Analysis Fall 2017 1 More Running Time Give the worst case and best case running time in Θ( ) notation in terms of M and N. (a) Assume that slam() Θ(1) and returns a boolean. 1 public

More information

Solution Scoring: SD Reg exp.: a(a

Solution Scoring: SD Reg exp.: a(a MA/CSSE 474 Exam 3 Winter 2013-14 Name Solution_with explanations Section: 02(3 rd ) 03(4 th ) 1. (28 points) For each of the following statements, circle T or F to indicate whether it is True or False.

More information

What we have done so far

What we have done so far What we have done so far DFAs and regular languages NFAs and their equivalence to DFAs Regular expressions. Regular expressions capture exactly regular languages: Construct a NFA from a regular expression.

More information

Functions on languages:

Functions on languages: MA/CSSE 474 Final Exam Notation and Formulas page Name (turn this in with your exam) Unless specified otherwise, r,s,t,u,v,w,x,y,z are strings over alphabet Σ; while a, b, c, d are individual alphabet

More information

Efficient Divide-and-Conquer Parsing of Practical Context-Free Languages

Efficient Divide-and-Conquer Parsing of Practical Context-Free Languages Efficient Divide-and-onquer Parsing of Practical ontext-free Languages Jean-Philippe ernardy Koen laessen LASP Seminar, Nov 14, 2016 FP workhorse: lists : 1 : 2 : 3 : 4 [] FP workhorse: lists : 1 : 2 :

More information

Automata-based Verification - III

Automata-based Verification - III CS3172: Advanced Algorithms Automata-based Verification - III Howard Barringer Room KB2.20/22: email: howard.barringer@manchester.ac.uk March 2005 Third Topic Infinite Word Automata Motivation Büchi Automata

More information

Foundations of Informatics: a Bridging Course

Foundations 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 information

Computational Models - Lecture 4

Computational Models - Lecture 4 Computational Models - Lecture 4 Regular languages: The Myhill-Nerode Theorem Context-free Grammars Chomsky Normal Form Pumping Lemma for context free languages Non context-free languages: Examples Push

More information

Constraint-based Subspace Clustering

Constraint-based Subspace Clustering Constraint-based Subspace Clustering Elisa Fromont 1, Adriana Prado 2 and Céline Robardet 1 1 Université de Lyon, France 2 Universiteit Antwerpen, Belgium Thursday, April 30 Traditional Clustering Partitions

More information

11. Automata and languages, cellular automata, grammars, L-systems

11. Automata and languages, cellular automata, grammars, L-systems 11. Automata and languages, cellular automata, grammars, L-systems 11.1 Automata and languages Automaton (pl. automata): in computer science, a simple model of a machine or of other systems. ( a simplification

More information

Lecture 17: Language Recognition

Lecture 17: Language Recognition Lecture 17: Language Recognition Finite State Automata Deterministic and Non-Deterministic Finite Automata Regular Expressions Push-Down Automata Turing Machines Modeling Computation When attempting to

More information

Intro to Theory of Computation

Intro to Theory of Computation Intro to Theory of Computation LECTURE 7 Last time: Proving a language is not regular Pushdown automata (PDAs) Today: Context-free grammars (CFG) Equivalence of CFGs and PDAs Sofya Raskhodnikova 1/31/2016

More information

Definition: A grammar G = (V, T, P,S) is a context free grammar (cfg) if all productions in P have the form A x where

Definition: 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 information

Recitation 4: Converting Grammars to Chomsky Normal Form, Simulation of Context Free Languages with Push-Down Automata, Semirings

Recitation 4: Converting Grammars to Chomsky Normal Form, Simulation of Context Free Languages with Push-Down Automata, Semirings Recitation 4: Converting Grammars to Chomsky Normal Form, Simulation of Context Free Languages with Push-Down Automata, Semirings 11-711: Algorithms for NLP October 10, 2014 Conversion to CNF Example grammar

More information

Introduction to Theory of Computing

Introduction to Theory of Computing CSCI 2670, Fall 2012 Introduction to Theory of Computing Department of Computer Science University of Georgia Athens, GA 30602 Instructor: Liming Cai www.cs.uga.edu/ cai 0 Lecture Note 3 Context-Free Languages

More information

Chapter 1. Formal Definition and View. Lecture Formal Pushdown Automata on the 28th April 2009

Chapter 1. Formal Definition and View. Lecture Formal Pushdown Automata on the 28th April 2009 Chapter 1 Formal and View Lecture on the 28th April 2009 Formal of PA Faculty of Information Technology Brno University of Technology 1.1 Aim of the Lecture 1 Define pushdown automaton in a formal way

More information

CS 455/555: Finite automata

CS 455/555: Finite automata CS 455/555: Finite automata Stefan D. Bruda Winter 2019 AUTOMATA (FINITE OR NOT) Generally any automaton Has a finite-state control Scans the input one symbol at a time Takes an action based on the currently

More information

Before We Start. The Pumping Lemma. Languages. Context Free Languages. Plan for today. Now our picture looks like. Any questions?

Before We Start. The Pumping Lemma. Languages. Context Free Languages. Plan for today. Now our picture looks like. Any questions? Before We Start The Pumping Lemma Any questions? The Lemma & Decision/ Languages Future Exam Question What is a language? What is a class of languages? Context Free Languages Context Free Languages(CFL)

More information

Introduction to Theoretical Computer Science. Motivation. Automata = abstract computing devices

Introduction to Theoretical Computer Science. Motivation. Automata = abstract computing devices Introduction to Theoretical Computer Science Motivation Automata = abstract computing devices Turing studied Turing Machines (= computers) before there were any real computers We will also look at simpler

More information

Homing and Synchronizing Sequences

Homing and Synchronizing Sequences Homing and Synchronizing Sequences Sven Sandberg Information Technology Department Uppsala University Sweden 1 Outline 1. Motivations 2. Definitions and Examples 3. Algorithms (a) Current State Uncertainty

More information

A Novel Statistical Model for the Secondary Structure of RNA

A Novel Statistical Model for the Secondary Structure of RNA ISBN 978-1-8466-93-3 Proceedings of the 5th International ongress on Mathematical Biology (IMB11) Vol. 3 Nanjing, P. R. hina, June 3-5, 11 Novel Statistical Model for the Secondary Structure of RN Liu

More information

5 Context-Free Languages

5 Context-Free Languages CA320: COMPUTABILITY AND COMPLEXITY 1 5 Context-Free Languages 5.1 Context-Free Grammars Context-Free Grammars Context-free languages are specified with a context-free grammar (CFG). Formally, a CFG G

More information

Computational RNA Secondary Structure Design:

Computational RNA Secondary Structure Design: omputational RN Secondary Structure Design: Empirical omplexity and Improved Methods by Rosalía guirre-hernández B.Sc., niversidad Nacional utónoma de México, 996 M. Eng., niversidad Nacional utónoma de

More information

Finite Automata Theory and Formal Languages TMV026/TMV027/DIT321 Responsible: Ana Bove

Finite Automata Theory and Formal Languages TMV026/TMV027/DIT321 Responsible: Ana Bove Finite Automata Theory and Formal Languages TMV026/TMV027/DIT321 Responsible: Ana Bove Tuesday 28 of May 2013 Total: 60 points TMV027/DIT321 registration VT13 TMV026/DIT321 registration before VT13 Exam

More information

On the S-Labeling problem

On the S-Labeling problem On the S-Labeling problem Guillaume Fertin Laboratoire d Informatique de Nantes-Atlantique (LINA), UMR CNRS 6241 Université de Nantes, 2 rue de la Houssinière, 4422 Nantes Cedex - France guillaume.fertin@univ-nantes.fr

More information

A Method for Aligning RNA Secondary Structures

A Method for Aligning RNA Secondary Structures Method for ligning RN Secondary Structures Jason T. L. Wang New Jersey Institute of Technology J Liu, JTL Wang, J Hu and B Tian, BM Bioinformatics, 2005 1 Outline Introduction Structural alignment of RN

More information

Introduction and Motivation. Introduction and Motivation. Introduction to Computability. Introduction and Motivation. Theory. Lecture5: Context Free

Introduction and Motivation. Introduction and Motivation. Introduction to Computability. Introduction and Motivation. Theory. Lecture5: Context Free ntroduction to Computability Theory Lecture5: Context Free Languages Prof. Amos sraeli 1 ntroduction and Motivation n our study of RL-s we Covered: 1. Motivation and definition of regular languages. 2.

More information

Computational Models - Lecture 3

Computational Models - Lecture 3 Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 1 Computational Models - Lecture 3 Equivalence of regular expressions and regular languages (lukewarm leftover

More information

Conserved RNA Structures. Ivo L. Hofacker. Institut for Theoretical Chemistry, University Vienna.

Conserved RNA Structures. Ivo L. Hofacker. Institut for Theoretical Chemistry, University Vienna. onserved RN Structures Ivo L. Hofacker Institut for Theoretical hemistry, University Vienna http://www.tbi.univie.ac.at/~ivo/ Bled, January 2002 Energy Directed Folding Predict structures from sequence

More information

Accept or reject. Stack

Accept 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 information

CSE 105 Homework 5 Due: Monday November 13, Instructions. should be on each page of the submission.

CSE 105 Homework 5 Due: Monday November 13, Instructions. should be on each page of the submission. CSE 05 Homework 5 Due: Monday November 3, 207 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

More information

Pushdown Automata. Notes on Automata and Theory of Computation. Chia-Ping Chen

Pushdown Automata. Notes on Automata and Theory of Computation. Chia-Ping Chen Pushdown Automata Notes on Automata and Theory of Computation Chia-Ping Chen Department of Computer Science and Engineering National Sun Yat-Sen University Kaohsiung, Taiwan ROC Pushdown Automata p. 1

More information

Computational Models: Class 3

Computational Models: Class 3 Computational Models: Class 3 Benny Chor School of Computer Science Tel Aviv University November 2, 2015 Based on slides by Maurice Herlihy, Brown University, and modifications by Iftach Haitner and Yishay

More information

Note: In any grammar here, the meaning and usage of P (productions) is equivalent to R (rules).

Note: In any grammar here, the meaning and usage of P (productions) is equivalent to R (rules). Note: In any grammar here, the meaning and usage of P (productions) is equivalent to R (rules). 1a) G = ({R, S, T}, {0,1}, P, S) where P is: S R0R R R0R1R R1R0R T T 0T ε (S generates the first 0. R generates

More information

(b) If G=({S}, {a}, {S SS}, S) find the language generated by G. [8+8] 2. Convert the following grammar to Greibach Normal Form G = ({A1, A2, A3},

(b) If G=({S}, {a}, {S SS}, S) find the language generated by G. [8+8] 2. Convert the following grammar to Greibach Normal Form G = ({A1, A2, A3}, Code No: 07A50501 R07 Set No. 2 III B.Tech I Semester Examinations,MAY 2011 FORMAL LANGUAGES AND AUTOMATA THEORY Computer Science And Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All

More information

Taking Stock. IE170: Algorithms in Systems Engineering: Lecture 3. Θ Notation. Comparing Algorithms

Taking Stock. IE170: Algorithms in Systems Engineering: Lecture 3. Θ Notation. Comparing Algorithms Taking Stock IE170: Algorithms in Systems Engineering: Lecture 3 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University January 19, 2007 Last Time Lots of funky math Playing

More information

Grammars and Context Free Languages

Grammars and Context Free Languages Grammars and Context Free Languages H. Geuvers and A. Kissinger Institute for Computing and Information Sciences Version: fall 2015 H. Geuvers & A. Kissinger Version: fall 2015 Talen en Automaten 1 / 23

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

FORMAL 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 information

CS375: Logic and Theory of Computing

CS375: Logic and Theory of Computing CS375: Logic and Theory of Computing Fuhua (Frank) Cheng Department of Computer Science University of Kentucky 1 Table of Contents: Week 1: Preliminaries (set algebra, relations, functions) (read Chapters

More information

PUSHDOWN AUTOMATA (PDA)

PUSHDOWN AUTOMATA (PDA) PUSHDOWN AUTOMATA (PDA) FINITE STATE CONTROL INPUT STACK (Last in, first out) input pop push ε,ε $ 0,ε 0 1,0 ε ε,$ ε 1,0 ε PDA that recognizes L = { 0 n 1 n n 0 } Definition: A (non-deterministic) PDA

More information

October 6, Equivalence of Pushdown Automata with Context-Free Gramm

October 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 information

Representing Arithmetic Constraints with Finite Automata: An Overview

Representing Arithmetic Constraints with Finite Automata: An Overview Representing Arithmetic Constraints with Finite Automata: An Overview Bernard Boigelot Pierre Wolper Université de Liège Motivation Linear numerical constraints are a very common and useful formalism (our

More information

Equivalence of DFAs and NFAs

Equivalence 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 information

Computational Models - Lecture 5 1

Computational Models - Lecture 5 1 Computational Models - Lecture 5 1 Handout Mode Iftach Haitner. Tel Aviv University. November 28, 2016 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice Herlihy, Brown University.

More information

CKY & Earley Parsing. Ling 571 Deep Processing Techniques for NLP January 13, 2016

CKY & Earley Parsing. Ling 571 Deep Processing Techniques for NLP January 13, 2016 CKY & Earley Parsing Ling 571 Deep Processing Techniques for NLP January 13, 2016 No Class Monday: Martin Luther King Jr. Day CKY Parsing: Finish the parse Recognizer à Parser Roadmap Earley parsing Motivation:

More information

CFGs and PDAs are Equivalent. We provide algorithms to convert a CFG to a PDA and vice versa.

CFGs and PDAs are Equivalent. We provide algorithms to convert a CFG to a PDA and vice versa. CFGs and PDAs are Equivalent We provide algorithms to convert a CFG to a PDA and vice versa. CFGs and PDAs are Equivalent We now prove that a language is generated by some CFG if and only if it is accepted

More information

of all secondary structures of k-point mutants of a is an RNA sequence s = s 1,..., s n obtained by mutating

of all secondary structures of k-point mutants of a is an RNA sequence s = s 1,..., s n obtained by mutating BIOINFORMICS Vol. 00 no. 00 2005 Pages 1 10 Energy landscape of k-point mutants of an RN molecule P. Clote 1,2, J. Waldispühl 1,3,4,, B. Behzadi 3, J.-M. Steyaert 3, 1 Department of Biology, Higgins 355,

More information

arxiv: v1 [cs.ds] 9 Apr 2018

arxiv: v1 [cs.ds] 9 Apr 2018 From Regular Expression Matching to Parsing Philip Bille Technical University of Denmark phbi@dtu.dk Inge Li Gørtz Technical University of Denmark inge@dtu.dk arxiv:1804.02906v1 [cs.ds] 9 Apr 2018 Abstract

More information

Rare decays at LHCb Siim Tolk (NIKHEF, Amsterdam) on behalf of the LHCb Collaboration

Rare decays at LHCb Siim Tolk (NIKHEF, Amsterdam) on behalf of the LHCb Collaboration Rare decays at LHCb Siim Tolk (NIKHEF, Amsterdam) on behalf of the LHCb Collaboration Bormio 2014 Rare decays at LHCb Siim Tolk (NIKHEF, Amsterdam) on behalf of the LHCb Collaboration Other talks from

More information

Introduction to Formal Languages, Automata and Computability p.1/42

Introduction 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 information

CP405 Theory of Computation

CP405 Theory of Computation CP405 Theory of Computation BB(3) q 0 q 1 q 2 0 q 1 1R q 2 0R q 2 1L 1 H1R q 1 1R q 0 1L Growing Fast BB(3) = 6 BB(4) = 13 BB(5) = 4098 BB(6) = 3.515 x 10 18267 (known) (known) (possible) (possible) Language:

More information

Automata Theory CS F-08 Context-Free Grammars

Automata Theory CS F-08 Context-Free Grammars Automata Theory CS411-2015F-08 Context-Free Grammars David Galles Department of Computer Science University of San Francisco 08-0: Context-Free Grammars Set of Terminals (Σ) Set of Non-Terminals Set of

More information

Automata Theory (2A) Young Won Lim 5/31/18

Automata 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 information

Computational Models - Lecture 4 1

Computational Models - Lecture 4 1 Computational Models - Lecture 4 1 Handout Mode Iftach Haitner and Yishay Mansour. Tel Aviv University. April 3/8, 2013 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice

More information

C2.1 Regular Grammars

C2.1 Regular Grammars Theory of Computer Science March 22, 27 C2. Regular Languages: Finite Automata Theory of Computer Science C2. Regular Languages: Finite Automata Malte Helmert University of Basel March 22, 27 C2. Regular

More information

Languages. Languages. An Example Grammar. Grammars. Suppose we have an alphabet V. Then we can write:

Languages. Languages. An Example Grammar. Grammars. Suppose we have an alphabet V. Then we can write: Languages A language is a set (usually infinite) of strings, also known as sentences Each string consists of a sequence of symbols taken from some alphabet An alphabet, V, is a finite set of symbols, e.g.

More information

Flat counter automata almost everywhere!

Flat counter automata almost everywhere! Flat counter automata almost everywhere! Jérôme Leroux and Grégoire Sutre Projet Vertecs, IRISA / INRIA Rennes, FRANCE Équipe MVTsi, CNRS / LABRI, FRANCE Counter-automata verification A simple counter-automata:

More information

C2.1 Regular Grammars

C2.1 Regular Grammars Theory of Computer Science March 6, 26 C2. Regular Languages: Finite Automata Theory of Computer Science C2. Regular Languages: Finite Automata Malte Helmert University of Basel March 6, 26 C2. Regular

More information

Homework 4. Chapter 7. CS A Term 2009: Foundations of Computer Science. By Li Feng, Shweta Srivastava, and Carolina Ruiz

Homework 4. Chapter 7. CS A Term 2009: Foundations of Computer Science. By Li Feng, Shweta Srivastava, and Carolina Ruiz CS3133 - A Term 2009: Foundations of Computer Science Prof. Carolina Ruiz Homework 4 WPI By Li Feng, Shweta Srivastava, and Carolina Ruiz Chapter 7 Problem: Chap 7.1 part a This PDA accepts the language

More information

Pushdown Automata: Introduction (2)

Pushdown 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 information

Theory of Computation (I) Yijia Chen Fudan University

Theory of Computation (I) Yijia Chen Fudan University Theory of Computation (I) Yijia Chen Fudan University Instructor Yijia Chen Homepage: http://basics.sjtu.edu.cn/~chen Email: yijiachen@fudan.edu.cn Textbook Introduction to the Theory of Computation Michael

More information

1. (a) Explain the procedure to convert Context Free Grammar to Push Down Automata.

1. (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 information

Optimum Prefix Adders in a Comprehensive Area, Timing and Power Design Space

Optimum Prefix Adders in a Comprehensive Area, Timing and Power Design Space Optimum Prefix Adders in a Comprehensive Area, Timing and Power Design Space Jianhua Liu, Yi Zhu, Haikun Zhu, John Lillis 2, Chung-Kuan Cheng Department of Computer Science and Engineering University of

More information

Computational Models - Lecture 3 1

Computational Models - Lecture 3 1 Computational Models - Lecture 3 1 Handout Mode Iftach Haitner and Yishay Mansour. Tel Aviv University. March 13/18, 2013 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice

More information

On the Sizes of Decision Diagrams Representing the Set of All Parse Trees of a Context-free Grammar

On the Sizes of Decision Diagrams Representing the Set of All Parse Trees of a Context-free Grammar Proceedings of Machine Learning Research vol 73:153-164, 2017 AMBN 2017 On the Sizes of Decision Diagrams Representing the Set of All Parse Trees of a Context-free Grammar Kei Amii Kyoto University Kyoto

More information

Grammars and Context Free Languages

Grammars and Context Free Languages Grammars and Context Free Languages H. Geuvers and J. Rot Institute for Computing and Information Sciences Version: fall 2016 H. Geuvers & J. Rot Version: fall 2016 Talen en Automaten 1 / 24 Outline Grammars

More information

CS21 Decidability and Tractability

CS21 Decidability and Tractability CS21 Decidability and Tractability Lecture 2 January 5, 2018 January 5, 2018 CS21 Lecture 2 1 Outline Finite Automata Nondeterministic Finite Automata Closure under regular operations NFA, FA equivalence

More information

Theory of Computer Science

Theory 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 information

Mildly Context-Sensitive Grammar Formalisms: Embedded Push-Down Automata

Mildly Context-Sensitive Grammar Formalisms: Embedded Push-Down Automata Mildly Context-Sensitive Grammar Formalisms: Embedded Push-Down Automata Laura Kallmeyer Heinrich-Heine-Universität Düsseldorf Sommersemester 2011 Intuition (1) For a language L, there is a TAG G with

More information

Indexed Languages and why you care. Presented by Pieter Hooimeijer

Indexed Languages and why you care. Presented by Pieter Hooimeijer Indexed Languages and why you care Presented by Pieter Hooimeijer 2008-02-07 1 Think Way Back... www.xkcd.com 2 ...Far Enough:... CS NCF DCF REG REG 3 Formal Language Classes... CS NCF DCF REG REG PDA

More information

Theory of Computation Turing Machine and Pushdown Automata

Theory 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 information

EE249 - Fall 2012 Lecture 18: Overview of Concrete Contract Theories. Alberto Sangiovanni-Vincentelli Pierluigi Nuzzo

EE249 - Fall 2012 Lecture 18: Overview of Concrete Contract Theories. Alberto Sangiovanni-Vincentelli Pierluigi Nuzzo EE249 - Fall 2012 Lecture 18: Overview of Concrete Contract Theories 1 Alberto Sangiovanni-Vincentelli Pierluigi Nuzzo Outline: Contracts and compositional methods for system design Where and why using

More information

Philippe Flajolet & Analytic Combinatorics: Inherent Ambiguity of Context-Free Languages

Philippe Flajolet & Analytic Combinatorics: Inherent Ambiguity of Context-Free Languages Philippe Flajolet & Analytic Combinatorics: Inherent Ambiguity of Context-Free Languages Frédérique Bassino and Cyril Nicaud LIGM, Université Paris-Est & CNRS December 16, 2011 I first met Philippe in

More information

Computability and Complexity

Computability and Complexity Computability and Complexity Push-Down Automata CAS 705 Ryszard Janicki Department of Computing and Software McMaster University Hamilton, Ontario, Canada janicki@mcmaster.ca Ryszard Janicki Computability

More information

Chapter Five: Nondeterministic Finite Automata

Chapter 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 information

CSE 105 THEORY OF COMPUTATION

CSE 105 THEORY OF COMPUTATION CSE 105 THEORY OF COMPUTATION Spring 2017 http://cseweb.ucsd.edu/classes/sp17/cse105-ab/ Review of CFG, CFL, ambiguity What is the language generated by the CFG below: G 1 = ({S,T 1,T 2 }, {0,1,2}, { S

More information

THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET

THEORY 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 information

Static Program Analysis using Abstract Interpretation

Static Program Analysis using Abstract Interpretation Static Program Analysis using Abstract Interpretation Introduction Static Program Analysis Static program analysis consists of automatically discovering properties of a program that hold for all possible

More information

Fundamentele Informatica II

Fundamentele Informatica II Fundamentele Informatica II Answer to selected exercises 5 John C Martin: Introduction to Languages and the Theory of Computation M.M. Bonsangue (and J. Kleijn) Fall 2011 5.1.a (q 0, ab, Z 0 ) (q 1, b,

More information

Ogden s Lemma. and Formal Languages. Automata Theory CS 573. The proof is similar but more fussy. than the proof of the PL4CFL.

Ogden s Lemma. and Formal Languages. Automata Theory CS 573. The proof is similar but more fussy. than the proof of the PL4CFL. CS 573 Automata Theory and Formal Languages Professor Leslie Lander Lecture # 24 December 4, 2000 Ogden s Lemma (6.2) Let L be a CFL, then there is a constant n such that if z is a word in L with z > n

More information