Languages That Are and Are Not Context-Free
|
|
- Deborah York
- 5 years ago
- Views:
Transcription
1 Languages Tha re and re No Conex-Free Read K & S 3.5, 3.6, 3.7. Read Supplemenary Maerials: Conex-Free Languages and Pushdown uomaa: Closure Properies of Conex-Free Languages Read Supplemenary Maerials: Conex-Free Languages and Pushdown uomaa: The Conex-Free Pumping Lemma. Do Homework 16. Deciding Wheher a Language is Conex-Free Theorem: There exis languages ha are no conex-free. Proof: (1) There are a counably infinie number of conex-free languages. This rue because every descripion of a conex-free language is of finie lengh, so here are a counably infinie number of such descripions. (2) There are an uncounable number of languages. Thus here are more languages han here are conex-free languages. So here mus exis some languages ha are no conex-free. Example: {a n b n c n } Showing ha a Language is Conex-Free Techniques for showing ha a language L is conex-free: 1. Exhibi a conex-free grammar for L. 2. Exhibi a PD for L. 3. Use he closure properies of conex-free languages. Unforunaely, hese are weaker han hey are for regular languages. Le G 1 = (V 1, Σ 1, R 1, S 1 ) and G 2 = (V 2, Σ 2, R 2, S 2 ) The Conex-Free Languages are Closed Under Union ssume ha G 1 and G 2 have disjoin ses of nonerminals, no including S. Le L = L(G 1 ) L(G 2 ) We can show ha L is conex-free by exhibiing a CFG for i: Le G 1 = (V 1, Σ 1, R 1, S 1 ) and G 2 = (V 2, Σ 2, R 2, S 2 ) The Conex-Free Languages are Closed Under Concaenaion ssume ha G 1 and G 2 have disjoin ses of nonerminals, no including S. Le L = L(G 1 ) L(G 2 ) We can show ha L is conex-free by exhibiing a CFG for i: Lecure Noes 19 Languages Tha re and re No Conex Free 1
2 The Conex-Free Languages are Closed Under Kleene Sar Le G 1 = (V 1, Σ 1, R 1, S 1 ) ssume ha G 1 does no have he nonerminal S. Le L = L(G 1 )* We can show ha L is conex-free by exhibiing a CFG for i: We know ha hey share a fae, since Wha bou Inersecion and Complemen? Bu wha fae? L 1 L 2 = L 1 L 2 We proved closure for regular languages wo differen ways. Can we use eiher of hem here: 1. Given a deerminisic auomaon for L, consruc an auomaon for is complemen. rgue ha, if closed under complemen and union, mus be closed under inersecion. 2. Given auomaa for L 1 and L 2, consruc a new auomaon for L 1 L 2 by simulaing he parallel operaion of he wo original machines, using saes ha are he Caresian produc of he ses of saes of he wo original machines. More on his laer. The Inersecion of a Conex-Free Language and a Regular Language is Conex-Free L = L(M 1 ), a PD = (K 1, Σ, Γ 1, 1, s 1, F 1 ) R = L(M 2 ), a deerminisic FS = (K 2, Σ, δ, s 2, F 2 ) We consruc a new PD, M 3, ha acceps L R by simulaing he parallel execuion of M 1 and M 2. M = (K 1 K 2, Σ, Γ 1,, (s 1, s 2 ), F 1 F 2 ) Inser ino : For each rule ((q 1, a, β), (p 1, γ)) in 1, and each rule (q 2, a, p 2 ) in δ, (((q 1, q 2 ), a, β), ((p 1, p 2 ), γ)) For each rule ((q 1, ε, β), (p 1, γ) in 1, and each sae q 2 in K 2, (((q 1, q 2 ), ε, β), ((p 1, q 2 ), γ)) This works because: we can ge away wih only one sack. Lecure Noes 19 Languages Tha re and re No Conex Free 2
3 Example L = a n b n (aa)*(bb)* b/a/ a B 1 2 a//a b/a/ a b b 3 4 b ((, a, ε), (, a)) (1, a, 2) ((, b, a), (B, ε)) (1, b, 3) ((B, b, a), (B, ε)) (2, a, 1) (3, b, 4) (4, b, 3) PD for L: Don Try o Use Closure Backwards One Closure Theorem: If L 1 and L 2 are conex free, hen so is L 3 = L 1 L 2. Bu wha if L 3 and L 1 are conex free? Wha can we say abou L 2? L 3 = L 1 L 2. Example: a n b n c* = a n b n c* a n b n c n The Conex-Free Pumping Lemma This ime we use parse rees, no auomaa as he basis for our argumen. S If L is a conex-free language, and if w is a sring in L where w > K, for some value of K, hen w can be rewrien as uvxyz, where vy > 0 and vxy M, for some value of M. uxz, uvxyz, uvvxyyz, uvvvxyyyz, ec. (i.e., uv n xy n z, for n 0) are all in L. Lecure Noes 19 Languages Tha re and re No Conex Free 3
4 Some Tree Basics roo nodes heigh leaves yield Theorem: The lengh of he yield of any ree T wih heigh H and branching facor (fanou) B is B H. Proof: By inducion on H. If H is 1, hen jus a single rule applies. By definiion of fanou, he longes yield is B. ssume rue for H = n. Consider a ree wih H = n + 1. I consiss of a roo, and some number of subrees, each of which is of heigh n (so inducion hypohesis holds) and yield B n. The number of subrees B. So he yield mus be B(B n ) or B n+1. S Wha Is K? Le T be he number of nonerminals in G. If here is a ree of heigh > T, hen some nonerminal occurs more han once on some pah. If i does, we can pump is yield. Since a ree of heigh = T can produce only srings of lengh B T, any sring of lengh > B T mus have a repeaed nonerminal and hus be pumpable. So K = B T, where T is he number of nonerminals in G and B is he branching facor (fanou). S Wha is M? ssume ha we are considering he boom mos wo occurrences of some nonerminal. Then he yield of he upper one is a mos B T+1 (since only one nonerminal repeas). So M = B T+1. Lecure Noes 19 Languages Tha re and re No Conex Free 4
5 The Conex-Free Pumping Lemma Theorem: Le G = (V, Σ, R, S) be a conex-free grammar wih T nonerminal symbols and fanou B. Then any sring w L(G) where w > K (B T ) can be rewrien as w = uvxyz in such a way ha: vy > 0, vxy M (B T+1 ), (making his he "srong" form), for every n 0, uv n xy n z is in L(G). Proof: Le w be such a sring and le T be he parse ree wih roo labeled S and wih yield w ha has he smalles number of leaves among all parse rees wih he same roo and yield. T has a pah of lengh a leas T+1, wih a boommos repeaed nonerminal, which we'll call. Clearly v and y can be repeaed any number of imes (including 0). If vy = 0, hen here would be a ree wih roo S and yield w wih fewer leaves han T. Finally, vxy B T+1. L = {a n b n c n : n 0} Choose w = a i b i c i where i > K/3 (making w > K) S n Example of Pumping Unforunaely, we don' know where v and y fall. Bu here are wo possibiliies: 1. If vy conains all hree symbols, hen a leas one of v or y mus conain wo of hem. Bu hen uvvxyyz conains a leas one ou of order symbol. 2. If vy conains only one or wo of he symbols, hen uvvxyyz mus conain unequal numbers of he symbols. Using he Srong Pumping Lemma for Conex Free Languages If L is conex free, hen There exis K and M (wih M K) such ha For all srings w, where w > K, (Since rue for all such w, i mus be rue for any paricular one, so you pick w) (Hin: describe w in erms of K or M) here exis u, v, x, y, z such ha w = uvxyz and vy > 0, and vxy M, and for all n 0, uv n xy n z is in L. We need o pick w, hen show ha here are no values for uvxyz ha saisfy all he above crieria. To do ha, we jus need o focus on possible values for v and y, he pumpable pars. So we show ha all possible picks for v and y violae a leas one of he crieria. Wrie ou a single sring, w (in erms of K or M) Divide w ino regions. For each possibiliy for v and y (described in erms of he regions defined above), find some value n such ha uv n xy n z is no in L. lmos always, he easies values are 0 (pumping ou) or 2 (pumping in). Your value for n may differ for differen cases. Lecure Noes 19 Languages Tha re and re No Conex Free 5
6 v y n why he resuling sring is no in L [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] Convince he reader ha here are no oher cases. Q. E. D. Proof ha L = {a n b n c n : n 0} is no conex free. Pumping Lemma Proof in Full Deail Suppose L is conex free. The conex free pumping lemma applies o L. Le M be he number from he pumping lemma. Choose w = a M b M c M. Now w L and w > M K. From he pumping lemma, for all srings w, where w > K, here exis u, v, x, y, z such ha w = uvxyz and vy > 0, and vxy M, and for all n 0, uv n xy n z is in L. There are wo main cases: 1. Eiher v or y conains wo or more differen ypes of symbols ( a, b or c ). In his case, uv 2 xy 2 z is no of he form a*b*c* and hence uv 2 xy 2 z L. 2. Neiher v nor y conains wo or more differen ypes of symbols. In his case, vy may conain a mos wo ypes of symbols. The sring uv 0 xy 0 z will decrease he coun of one or wo ypes of symbols, bu no he hird, so uv 0 xy 0 z L Cases 1 and 2 cover all he possibiliies. Therefore, regardless of how w is pariioned, here is some uv n xy n z ha is no in L. Conradicion. Therefore L is no conex free. Noe: he underlined pars of he above proof is boilerplae ha can be reused. complee proof should have his ex or somehing equivalen. Conex-Free Languages Over a Single-Leer lphabe Theorem: ny conex-free language over a single-leer alphabe is regular. Examples: L = {a n b n } L = {a n a n } = {a 2n } = {w {a}* : w is even} L = {ww R : w {a, b}*} L = {ww R : w {a}*} = {ww: w {a}*} = {w {a}* : w is even} L = {a n b m : n, m 0 and n m} L = {a n a m : n, m 0 and n m} = Proof: See Parikh's Theorem Lecure Noes 19 Languages Tha re and re No Conex Free 6
7 L = {a n : n 1 is prime} noher Language Tha Is No Conex Free Two ways o prove ha L is no conex free: 1. Use he pumping lemma: Choose a sring w = a n such ha n is prime and n > K. w = aaaaaaaaaaaaaaaaaaaaaaa Le vy = a p and uxz = a r. Then r + kp mus be prime for all values of k. This can' be rue, as we argued o show ha L was no regular. 2. Σ L = 1. So if L were conex free, i would also be regular. Bu we know ha i is no. So i is no conex free eiher. L = {w {a, b, c}* : w has an equal number of a's, b's, and c's} L is no conex free. Try pumping: Le w = a K b K c K Using Pumping and Closure Now wha? L = { : {a, b}* } Using Inersecion wih a Regular Language o Make Pumping Tracable Le's ry pumping: w > K Wha if u is ε, v is w, x is ε, y is w, and z is ε Then all pumping ells us is ha n n is in L. Lecure Noes 19 Languages Tha re and re No Conex Free 7
8 L = { : {a, b}* } Wha if we le w > M, i.e. choose o pump he sring a M ba M b: Now v and y can' be, since vxy M: Suppose v = y. Now we have o show ha repeaing hem makes he wo copies of differen. Bu we can. L = { : {a, b}* } Bu le's consider L' = L a*b*a*b* This ime, we le w > 2M, and he number of boh a's and b's in w >M: aaaaaaaaaabbbbbbbbbbaaaaaaaaaabbbbbbbbbb Now we use pumping o show ha L' is no conex free. Firs, noice ha if eiher v or y conains boh a's and b's, hen we immediaely violae he rules for L' when we pump. So now we know ha v and y mus each fall compleely in one of he four marked regions. L' = { : {a, b}* } a*b*a*b* w > 2M, and he number of boh a's and b's in w >M: aaaaaaaaaabbbbbbbbbbaaaaaaaaaabbbbbbbbbb Consider he combinaions of (v, y): (1,1) (2,2) (3,3) (4,4) (1,2) (2,3) (3,4) (1,3) (2,4) (1,4) Lecure Noes 19 Languages Tha re and re No Conex Free 8
9 The Conex-Free Languages re No Closed Under Inersecion Proof: (by counerexample) Consider L = {a n b n c n : n 0} L is no conex-free. Le L 1 = {a n b n c m : n, m 0} /* equal a's and b's L 2 = {a m b n c n : n, m 0} /* equal b's and c's Boh L 1 and L 2 are conex-free. Bu L = L 1 L 2. So, if he conex-free languages were closed under inersecion, L would have o be conex-free. Bu i isn'. The Conex-Free Languages re No Closed Under Complemenaion Proof: (by conradicion) By definiion: L 1 L 2 = L 1 L 2 Since he conex-free languages are closed under union, if hey were also closed under complemenaion, hey would necessarily be closed under inersecion. Bu we jus showed ha hey are no. Thus hey are no closed under complemenaion. Proof: The Deerminisic Conex-Free Languages re Closed Under Complemen Le L be a language such ha L$ is acceped by he deerminisic PD M. We consruc a deerminisic PD M' o accep (he complemen of L)$, jus as we did for FSMs: 1. Iniially, le M' = M. 2. M' is already deerminisic. 3. Make M' simple. Why? 4. Complee M' by adding a dead sae, if necessary, and adding all required ransiions ino i, including: Transiions ha are required o assure ha for all inpu, sack combinaions some ransiion can be followed. If some sae q has a ransiion on (ε, ε) and if i does no laer lead o a sae ha does consume somehing hen make a ransion on (ε, ε) o he dead sae. 5. Swap final and nonfinal saes. 6. Noice ha M is sill deerminisic. Lecure Noes 19 Languages Tha re and re No Conex Free 9
10 n Example of he Consrucion L = a n b n M acceps L$ (and is deerminisic): a//a b/a/ b/a/ $/ε/ $/ε/ Se M = M'. Make M simple. a/a/aa a/z/az b/a/ ε/ε/z b/a/ $/Z/ $/Z/ dd dead sae(s) and swap final and nonfinal saes: a/a/aa a/z/az b/a/ ε/ε/z b/a/ $/Z/ The Consrucion, Coninued $/Z/ b/z/, $/a/ 4 a//, $/a/, b/z/ a//, b//, $//, ε/a/, ε/z/ Issues: 1) Never having he machine die 2) (L$) ( L)$ 3) Keeping he machine deerminisic Deerminisic vs. Nondeerminisic Conex-Free Languages Theorem: The class of deerminisic conex-free languages is a proper subse of he class of conex-free languages. Proof: Consider L = {a n b m c p : m n or m p} L is conex free (we have shown a grammar for i). Bu L is no deerminisic. If i were, hen is complemen L 1 would be deerminisic conex free, and hus cerainly conex free. Bu hen L 2 = L 1 a*b*c* (a regular language) would be conex free. Bu L 2 = {a n b n c n : n 0}, which we know is no conex free. Thus here exiss a leas one conex-free language ha is no deerminisic conex free. Noe ha deerminisic conex-free languages are no closed under union, inersecion, or difference. Lecure Noes 19 Languages Tha re and re No Conex Free 10
11 There are decision procedures for he following (G is a CFG): Deciding wheher w L(G). Deciding wheher L(G) =. Deciding wheher L(G) is finie/infinie. Decision Procedures for CFLs & PDs Decision Procedures for CFLs Such decision procedures usually involve conversions o Chomsky Normal Form or Greibach Normal Form. Why? Theorem: For any conex free grammar G, here exiss a number n such ha: 1. If L(G), hen here exiss a w L(G) such ha w < n. 2. If L(G) is infinie, hen here exiss w L(G) such ha n w < 2n. There are no decision procedures for he following: Deciding wheher L(G) = Σ*. Deciding wheher L(G 1 ) = L(G 2 ). If we could decide hese problems, we could decide he haling problem. (More laer.) There are decision procedures for he following (M is a PD): Deciding wheher w L(M). Deciding wheher L(M) =. Deciding wheher L(M) is finie/infinie. Decision Procedures for PD s Conver M o is equivalen PD and use he corresponding CFG decision procedure. Why avoid using PD s direcly? There are no decision procedures for he following: Deciding wheher L(M) = Σ*. Deciding wheher L(M 1 ) = L(M 2 ). If we could decide hese problems, we could decide he haling problem. (More laer.) Lecure Noes 19 Languages Tha re and re No Conex Free 11
12 Comparing Regular and Conex-Free Languages Regular Languages regular exprs. or regular grammars recognize = DFSs recognize minimize FSs closed under: concaenaion union Kleene sar complemen inersecion pumping lemma deerminisic = nondeerminisic Conex-Free Languages conex-free grammars parse = NDPDs parse find deerminisic grammars find efficien parsers closed under: concaenaion union Kleene sar inersecion w/ reg. langs pumping lemma deerminisic nondeerminisic Languages and Machines Recursively Enumerable Languages Recursive Languages Conex-Free Languages Regular Languages FSMs PDs D ND Lecure Noes 19 Languages Tha re and re No Conex Free 12
Notes for Lecture 17-18
U.C. Berkeley CS278: Compuaional Complexiy Handou N7-8 Professor Luca Trevisan April 3-8, 2008 Noes for Lecure 7-8 In hese wo lecures we prove he firs half of he PCP Theorem, he Amplificaion Lemma, up
More informationt is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t...
Mah 228- Fri Mar 24 5.6 Marix exponenials and linear sysems: The analogy beween firs order sysems of linear differenial equaions (Chaper 5) and scalar linear differenial equaions (Chaper ) is much sronger
More informationMath 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities:
Mah 4 Eam Review Problems Problem. Calculae he 3rd Taylor polynomial for arcsin a =. Soluion. Le f() = arcsin. For his problem, we use he formula f() + f () + f ()! + f () 3! for he 3rd Taylor polynomial
More information11!Hí MATHEMATICS : ERDŐS AND ULAM PROC. N. A. S. of decomposiion, properly speaking) conradics he possibiliy of defining a counably addiive real-valu
ON EQUATIONS WITH SETS AS UNKNOWNS BY PAUL ERDŐS AND S. ULAM DEPARTMENT OF MATHEMATICS, UNIVERSITY OF COLORADO, BOULDER Communicaed May 27, 1968 We shall presen here a number of resuls in se heory concerning
More informationChapter 7: Solving Trig Equations
Haberman MTH Secion I: The Trigonomeric Funcions Chaper 7: Solving Trig Equaions Le s sar by solving a couple of equaions ha involve he sine funcion EXAMPLE a: Solve he equaion sin( ) The inverse funcions
More informationMA/CSSE 474 Theory of Computation
MA/CSSE 474 Theory of Computation Bottom-up parsing Pumping Theorem for CFLs Recap: Going One Way Lemma: Each context-free language is accepted by some PDA. Proof (by construction): The idea: Let the stack
More informationDesigning Information Devices and Systems I Spring 2019 Lecture Notes Note 17
EES 16A Designing Informaion Devices and Sysems I Spring 019 Lecure Noes Noe 17 17.1 apaciive ouchscreen In he las noe, we saw ha a capacior consiss of wo pieces on conducive maerial separaed by a nonconducive
More informationChapter 2. First Order Scalar Equations
Chaper. Firs Order Scalar Equaions We sar our sudy of differenial equaions in he same way he pioneers in his field did. We show paricular echniques o solve paricular ypes of firs order differenial equaions.
More informationCS5371 Theory of Computation. Lecture 9: Automata Theory VII (Pumping Lemma, Non-CFL)
CS5371 Theory of Computation Lecture 9: Automata Theory VII (Pumping Lemma, Non-CFL) Objectives Introduce Pumping Lemma for CFL Apply Pumping Lemma to show that some languages are non-cfl Pumping Lemma
More informationSome Ramsey results for the n-cube
Some Ramsey resuls for he n-cube Ron Graham Universiy of California, San Diego Jozsef Solymosi Universiy of Briish Columbia, Vancouver, Canada Absrac In his noe we esablish a Ramsey-ype resul for cerain
More informationWe just finished the Erdős-Stone Theorem, and ex(n, F ) (1 1/(χ(F ) 1)) ( n
Lecure 3 - Kövari-Sós-Turán Theorem Jacques Versraëe jacques@ucsd.edu We jus finished he Erdős-Sone Theorem, and ex(n, F ) ( /(χ(f ) )) ( n 2). So we have asympoics when χ(f ) 3 bu no when χ(f ) = 2 i.e.
More informationContext-Free and Noncontext-Free Languages
Examples: Context-Free and Noncontext-Free Languages a*b* is regular. A n B n = {a n b n : n 0} is context-free but not regular. A n B n C n = {a n b n c n : n 0} is not context-free The Regular and the
More informationHamilton- J acobi Equation: Weak S olution We continue the study of the Hamilton-Jacobi equation:
M ah 5 7 Fall 9 L ecure O c. 4, 9 ) Hamilon- J acobi Equaion: Weak S oluion We coninue he sudy of he Hamilon-Jacobi equaion: We have shown ha u + H D u) = R n, ) ; u = g R n { = }. ). In general we canno
More informationLecture Notes 2. The Hilbert Space Approach to Time Series
Time Series Seven N. Durlauf Universiy of Wisconsin. Basic ideas Lecure Noes. The Hilber Space Approach o Time Series The Hilber space framework provides a very powerful language for discussing he relaionship
More informationFinish reading Chapter 2 of Spivak, rereading earlier sections as necessary. handout and fill in some missing details!
MAT 257, Handou 6: Ocober 7-2, 20. I. Assignmen. Finish reading Chaper 2 of Spiva, rereading earlier secions as necessary. handou and fill in some missing deails! II. Higher derivaives. Also, read his
More informationT L. t=1. Proof of Lemma 1. Using the marginal cost accounting in Equation(4) and standard arguments. t )+Π RB. t )+K 1(Q RB
Elecronic Companion EC.1. Proofs of Technical Lemmas and Theorems LEMMA 1. Le C(RB) be he oal cos incurred by he RB policy. Then we have, T L E[C(RB)] 3 E[Z RB ]. (EC.1) Proof of Lemma 1. Using he marginal
More informationCS5371 Theory of Computation. Lecture 9: Automata Theory VII (Pumping Lemma, Non-CFL, DPDA PDA)
CS5371 Theory of Computation Lecture 9: Automata Theory VII (Pumping Lemma, Non-CFL, DPDA PDA) Objectives Introduce the Pumping Lemma for CFL Show that some languages are non- CFL Discuss the DPDA, which
More informationMonochromatic Infinite Sumsets
Monochromaic Infinie Sumses Imre Leader Paul A. Russell July 25, 2017 Absrac WeshowhahereisaraionalvecorspaceV suchha,whenever V is finiely coloured, here is an infinie se X whose sumse X+X is monochromaic.
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 informationAn Excursion into Set Theory using a Constructivist Approach
An Excursion ino Se Theory using a Consrucivis Approach Miderm Repor Nihil Pail under supervision of Ksenija Simic Fall 2005 Absrac Consrucive logic is an alernaive o he heory of classical logic ha draws
More informationTwo Coupled Oscillators / Normal Modes
Lecure 3 Phys 3750 Two Coupled Oscillaors / Normal Modes Overview and Moivaion: Today we ake a small, bu significan, sep owards wave moion. We will no ye observe waves, bu his sep is imporan in is own
More informationLongest Common Prefixes
Longes Common Prefixes The sandard ordering for srings is he lexicographical order. I is induced by an order over he alphabe. We will use he same symbols (,
More informationInventory Analysis and Management. Multi-Period Stochastic Models: Optimality of (s, S) Policy for K-Convex Objective Functions
Muli-Period Sochasic Models: Opimali of (s, S) Polic for -Convex Objecive Funcions Consider a seing similar o he N-sage newsvendor problem excep ha now here is a fixed re-ordering cos (> 0) for each (re-)order.
More informationHedgehogs are not colour blind
Hedgehogs are no colour blind David Conlon Jacob Fox Vojěch Rödl Absrac We exhibi a family of 3-uniform hypergraphs wih he propery ha heir 2-colour Ramsey numbers grow polynomially in he number of verices,
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 informationI. Introduction to place/transition nets. Place/Transition Nets I. Example: a vending machine. Example: a vending machine
Inroducory Tuorial I. Inroducion o place/ransiion nes Place/Transiion Nes I Prepared by: Jörg Desel, Caholic Universiy in Eichsä and Karsen Schmid, Humbold-Universiä zu Berlin Speaker: Wolfgang Reisig,
More informationPredator - Prey Model Trajectories and the nonlinear conservation law
Predaor - Prey Model Trajecories and he nonlinear conservaion law James K. Peerson Deparmen of Biological Sciences and Deparmen of Mahemaical Sciences Clemson Universiy Ocober 28, 213 Ouline Drawing Trajecories
More informationSolutions from Chapter 9.1 and 9.2
Soluions from Chaper 9 and 92 Secion 9 Problem # This basically boils down o an exercise in he chain rule from calculus We are looking for soluions of he form: u( x) = f( k x c) where k x R 3 and k is
More informationThe Pumping Lemma for Context Free Grammars
The Pumping Lemma for Context Free Grammars Chomsky Normal Form Chomsky Normal Form (CNF) is a simple and useful form of a CFG Every rule of a CNF grammar is in the form A BC A a Where a is any terminal
More informationMath 10B: Mock Mid II. April 13, 2016
Name: Soluions Mah 10B: Mock Mid II April 13, 016 1. ( poins) Sae, wih jusificaion, wheher he following saemens are rue or false. (a) If a 3 3 marix A saisfies A 3 A = 0, hen i canno be inverible. True.
More information) were both constant and we brought them from under the integral.
YIELD-PER-RECRUIT (coninued The yield-per-recrui model applies o a cohor, bu we saw in he Age Disribuions lecure ha he properies of a cohor do no apply in general o a collecion of cohors, which is wha
More informationChapter 2 Summary. Carnegie Learning
Chaper Summary Key Terms inducion (.1) deducion (.1) counerexample (.1) condiional saemen (.1) proposiional form (.1) proposiional variables (.1) hypohesis (.1) conclusion (.1) ruh value (.1) ruh able
More information5.1 - Logarithms and Their Properties
Chaper 5 Logarihmic Funcions 5.1 - Logarihms and Their Properies Suppose ha a populaion grows according o he formula P 10, where P is he colony size a ime, in hours. When will he populaion be 2500? We
More informationGuest Lectures for Dr. MacFarlane s EE3350 Part Deux
Gues Lecures for Dr. MacFarlane s EE3350 Par Deux Michael Plane Mon., 08-30-2010 Wrie name in corner. Poin ou his is a review, so I will go faser. Remind hem o go lisen o online lecure abou geing an A
More informationSecond Order Linear Differential Equations
Second Order Linear Differenial Equaions Second order linear equaions wih consan coefficiens; Fundamenal soluions; Wronskian; Exisence and Uniqueness of soluions; he characerisic equaion; soluions of homogeneous
More informationClosure Properties of Context-Free Languages. Foundations of Computer Science Theory
Closure Properties of Context-Free Languages Foundations of Computer Science Theory Closure Properties of CFLs CFLs are closed under: Union Concatenation Kleene closure Reversal CFLs are not closed under
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 informationCS 341 Homework 16 Languages that Are and Are Not Context-Free
CS 341 Homework 16 Languages that Are and Are Not Context-Free 1. Show that the following languages are context-free. You can do this by writing a context free grammar or a PDA, or you can use the closure
More informationSection 3.5 Nonhomogeneous Equations; Method of Undetermined Coefficients
Secion 3.5 Nonhomogeneous Equaions; Mehod of Undeermined Coefficiens Key Terms/Ideas: Linear Differenial operaor Nonlinear operaor Second order homogeneous DE Second order nonhomogeneous DE Soluion o homogeneous
More informationChallenge Problems. DIS 203 and 210. March 6, (e 2) k. k(k + 2). k=1. f(x) = k(k + 2) = 1 x k
Challenge Problems DIS 03 and 0 March 6, 05 Choose one of he following problems, and work on i in your group. Your goal is o convince me ha your answer is correc. Even if your answer isn compleely correc,
More informationHomework sheet Exercises done during the lecture of March 12, 2014
EXERCISE SESSION 2A FOR THE COURSE GÉOMÉTRIE EUCLIDIENNE, NON EUCLIDIENNE ET PROJECTIVE MATTEO TOMMASINI Homework shee 3-4 - Exercises done during he lecure of March 2, 204 Exercise 2 Is i rue ha he parameerized
More informationReading from Young & Freedman: For this topic, read sections 25.4 & 25.5, the introduction to chapter 26 and sections 26.1 to 26.2 & 26.4.
PHY1 Elecriciy Topic 7 (Lecures 1 & 11) Elecric Circuis n his opic, we will cover: 1) Elecromoive Force (EMF) ) Series and parallel resisor combinaions 3) Kirchhoff s rules for circuis 4) Time dependence
More information10. State Space Methods
. Sae Space Mehods. Inroducion Sae space modelling was briefly inroduced in chaper. Here more coverage is provided of sae space mehods before some of heir uses in conrol sysem design are covered in he
More informationLinear Response Theory: The connection between QFT and experiments
Phys540.nb 39 3 Linear Response Theory: The connecion beween QFT and experimens 3.1. Basic conceps and ideas Q: How do we measure he conduciviy of a meal? A: we firs inroduce a weak elecric field E, and
More informationLecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still.
Lecure - Kinemaics in One Dimension Displacemen, Velociy and Acceleraion Everyhing in he world is moving. Nohing says sill. Moion occurs a all scales of he universe, saring from he moion of elecrons in
More informationChapter 6. Systems of First Order Linear Differential Equations
Chaper 6 Sysems of Firs Order Linear Differenial Equaions We will only discuss firs order sysems However higher order sysems may be made ino firs order sysems by a rick shown below We will have a sligh
More informationThe Arcsine Distribution
The Arcsine Disribuion Chris H. Rycrof Ocober 6, 006 A common heme of he class has been ha he saisics of single walker are ofen very differen from hose of an ensemble of walkers. On he firs homework, we
More informationSOLUTIONS TO ECE 3084
SOLUTIONS TO ECE 384 PROBLEM 2.. For each sysem below, specify wheher or no i is: (i) memoryless; (ii) causal; (iii) inverible; (iv) linear; (v) ime invarian; Explain your reasoning. If he propery is no
More informationMATH 128A, SUMMER 2009, FINAL EXAM SOLUTION
MATH 28A, SUMME 2009, FINAL EXAM SOLUTION BENJAMIN JOHNSON () (8 poins) [Lagrange Inerpolaion] (a) (4 poins) Le f be a funcion defined a some real numbers x 0,..., x n. Give a defining equaion for he Lagrange
More informationLecture 20: Riccati Equations and Least Squares Feedback Control
34-5 LINEAR SYSTEMS Lecure : Riccai Equaions and Leas Squares Feedback Conrol 5.6.4 Sae Feedback via Riccai Equaions A recursive approach in generaing he marix-valued funcion W ( ) equaion for i for he
More informationProblem Set #3: AK models
Universiy of Warwick EC9A2 Advanced Macroeconomic Analysis Problem Se #3: AK models Jorge F. Chavez December 3, 2012 Problem 1 Consider a compeiive economy, in which he level of echnology, which is exernal
More informationContext-Free Languages
CS:4330 Theory of Computation Spring 2018 Context-Free Languages Non-Context-Free Languages Haniel Barbosa Readings for this lecture Chapter 2 of [Sipser 1996], 3rd edition. Section 2.3. Proving context-freeness
More informationComputational 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 informationQuestion 1: Question 2: Topology Exercise Sheet 3
Topology Exercise Shee 3 Prof. Dr. Alessandro Siso Due o 14 March Quesions 1 and 6 are more concepual and should have prioriy. Quesions 4 and 5 admi a relaively shor soluion. Quesion 7 is harder, and you
More informationODEs II, Lecture 1: Homogeneous Linear Systems - I. Mike Raugh 1. March 8, 2004
ODEs II, Lecure : Homogeneous Linear Sysems - I Mike Raugh March 8, 4 Inroducion. In he firs lecure we discussed a sysem of linear ODEs for modeling he excreion of lead from he human body, saw how o ransform
More informationBernoulli numbers. Francesco Chiatti, Matteo Pintonello. December 5, 2016
UNIVERSITÁ DEGLI STUDI DI PADOVA, DIPARTIMENTO DI MATEMATICA TULLIO LEVI-CIVITA Bernoulli numbers Francesco Chiai, Maeo Pinonello December 5, 206 During las lessons we have proved he Las Ferma Theorem
More informationt + t sin t t cos t sin t. t cos t sin t dt t 2 = exp 2 log t log(t cos t sin t) = Multiplying by this factor and then integrating, we conclude that
ODEs, Homework #4 Soluions. Check ha y ( = is a soluion of he second-order ODE ( cos sin y + y sin y sin = 0 and hen use his fac o find all soluions of he ODE. When y =, we have y = and also y = 0, so
More informationLAPLACE TRANSFORM AND TRANSFER FUNCTION
CHBE320 LECTURE V LAPLACE TRANSFORM AND TRANSFER FUNCTION Professor Dae Ryook Yang Spring 2018 Dep. of Chemical and Biological Engineering 5-1 Road Map of he Lecure V Laplace Transform and Transfer funcions
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 informationBiol. 356 Lab 8. Mortality, Recruitment, and Migration Rates
Biol. 356 Lab 8. Moraliy, Recruimen, and Migraion Raes (modified from Cox, 00, General Ecology Lab Manual, McGraw Hill) Las week we esimaed populaion size hrough several mehods. One assumpion of all hese
More informationThe equation to any straight line can be expressed in the form:
Sring Graphs Par 1 Answers 1 TI-Nspire Invesigaion Suden min Aims Deermine a series of equaions of sraigh lines o form a paern similar o ha formed by he cables on he Jerusalem Chords Bridge. Deermine he
More information5. Stochastic processes (1)
Lec05.pp S-38.45 - Inroducion o Teleraffic Theory Spring 2005 Conens Basic conceps Poisson process 2 Sochasic processes () Consider some quaniy in a eleraffic (or any) sysem I ypically evolves in ime randomly
More informationR t. C t P t. + u t. C t = αp t + βr t + v t. + β + w t
Exercise 7 C P = α + β R P + u C = αp + βr + v (a) (b) C R = α P R + β + w (c) Assumpions abou he disurbances u, v, w : Classical assumions on he disurbance of one of he equaions, eg. on (b): E(v v s P,
More informationAlgorithmic Discrete Mathematics 6. Exercise Sheet
Algorihmic Dicree Mahemaic. Exercie Shee Deparmen of Mahemaic SS 0 PD Dr. Ulf Lorenz 7. and 8. Juni 0 Dipl.-Mah. David Meffer Verion of June, 0 Groupwork Exercie G (Heap-Sor) Ue Heap-Sor wih a min-heap
More informationNotes 04 largely plagiarized by %khc
Noes 04 largely plagiarized by %khc Convoluion Recap Some ricks: x() () =x() x() (, 0 )=x(, 0 ) R ț x() u() = x( )d x() () =ẋ() This hen ells us ha an inegraor has impulse response h() =u(), and ha a differeniaor
More informationCISC4090: Theory of Computation
CISC4090: Theory of Computation Chapter 2 Context-Free Languages Courtesy of Prof. Arthur G. Werschulz Fordham University Department of Computer and Information Sciences Spring, 2014 Overview In Chapter
More informationHamilton- J acobi Equation: Explicit Formulas In this lecture we try to apply the method of characteristics to the Hamilton-Jacobi equation: u t
M ah 5 2 7 Fall 2 0 0 9 L ecure 1 0 O c. 7, 2 0 0 9 Hamilon- J acobi Equaion: Explici Formulas In his lecure we ry o apply he mehod of characerisics o he Hamilon-Jacobi equaion: u + H D u, x = 0 in R n
More informationMATH 4330/5330, Fourier Analysis Section 6, Proof of Fourier s Theorem for Pointwise Convergence
MATH 433/533, Fourier Analysis Secion 6, Proof of Fourier s Theorem for Poinwise Convergence Firs, some commens abou inegraing periodic funcions. If g is a periodic funcion, g(x + ) g(x) for all real x,
More information( ) ( ) if t = t. It must satisfy the identity. So, bulkiness of the unit impulse (hyper)function is equal to 1. The defining characteristic is
UNIT IMPULSE RESPONSE, UNIT STEP RESPONSE, STABILITY. Uni impulse funcion (Dirac dela funcion, dela funcion) rigorously defined is no sricly a funcion, bu disribuion (or measure), precise reamen requires
More informationExplore 2 Proving the Vertical Angles Theorem
Explore 2 Proving he Verical Angles Theorem The conjecure from he Explore abou verical angles can be proven so i can be saed as a heorem. The Verical Angles Theorem If wo angles are verical angles, hen
More informationExpert Advice for Amateurs
Exper Advice for Amaeurs Ernes K. Lai Online Appendix - Exisence of Equilibria The analysis in his secion is performed under more general payoff funcions. Wihou aking an explici form, he payoffs of he
More informationApproximation Algorithms for Unique Games via Orthogonal Separators
Approximaion Algorihms for Unique Games via Orhogonal Separaors Lecure noes by Konsanin Makarychev. Lecure noes are based on he papers [CMM06a, CMM06b, LM4]. Unique Games In hese lecure noes, we define
More information1 Review of Zero-Sum Games
COS 5: heoreical Machine Learning Lecurer: Rob Schapire Lecure #23 Scribe: Eugene Brevdo April 30, 2008 Review of Zero-Sum Games Las ime we inroduced a mahemaical model for wo player zero-sum games. Any
More informationExplaining Total Factor Productivity. Ulrich Kohli University of Geneva December 2015
Explaining Toal Facor Produciviy Ulrich Kohli Universiy of Geneva December 2015 Needed: A Theory of Toal Facor Produciviy Edward C. Presco (1998) 2 1. Inroducion Toal Facor Produciviy (TFP) has become
More informationTraversal of a subtree is slow, which affects prefix and range queries.
Compac Tries Tries suffer from a large number nodes, Ω( R ) in he wors case. The space requiremen is large, since each node needs much more space han a single symbol. Traversal of a subree is slow, which
More informationMath 333 Problem Set #2 Solution 14 February 2003
Mah 333 Problem Se #2 Soluion 14 February 2003 A1. Solve he iniial value problem dy dx = x2 + e 3x ; 2y 4 y(0) = 1. Soluion: This is separable; we wrie 2y 4 dy = x 2 + e x dx and inegrae o ge The iniial
More informationMachine Learning 4771
ony Jebara, Columbia Universiy achine Learning 4771 Insrucor: ony Jebara ony Jebara, Columbia Universiy opic 20 Hs wih Evidence H Collec H Evaluae H Disribue H Decode H Parameer Learning via JA & E ony
More informationMath Week 14 April 16-20: sections first order systems of linear differential equations; 7.4 mass-spring systems.
Mah 2250-004 Week 4 April 6-20 secions 7.-7.3 firs order sysems of linear differenial equaions; 7.4 mass-spring sysems. Mon Apr 6 7.-7.2 Sysems of differenial equaions (7.), and he vecor Calculus we need
More informationKINEMATICS IN ONE DIMENSION
KINEMATICS IN ONE DIMENSION PREVIEW Kinemaics is he sudy of how hings move how far (disance and displacemen), how fas (speed and velociy), and how fas ha how fas changes (acceleraion). We say ha an objec
More information4.1 - Logarithms and Their Properties
Chaper 4 Logarihmic Funcions 4.1 - Logarihms and Their Properies Wha is a Logarihm? We define he common logarihm funcion, simply he log funcion, wrien log 10 x log x, as follows: If x is a posiive number,
More informationHybrid Control and Switched Systems. Lecture #3 What can go wrong? Trajectories of hybrid systems
Hybrid Conrol and Swiched Sysems Lecure #3 Wha can go wrong? Trajecories of hybrid sysems João P. Hespanha Universiy of California a Sana Barbara Summary 1. Trajecories of hybrid sysems: Soluion o a hybrid
More informationChapter #1 EEE8013 EEE3001. Linear Controller Design and State Space Analysis
Chaper EEE83 EEE3 Chaper # EEE83 EEE3 Linear Conroller Design and Sae Space Analysis Ordinary Differenial Equaions.... Inroducion.... Firs Order ODEs... 3. Second Order ODEs... 7 3. General Maerial...
More informationon the interval (x + 1) 0! x < ", where x represents feet from the first fence post. How many square feet of fence had to be painted?
Calculus II MAT 46 Improper Inegrals A mahemaician asked a fence painer o complee he unique ask of paining one side of a fence whose face could be described by he funcion y f (x on he inerval (x + x
More informationMatlab and Python programming: how to get started
Malab and Pyhon programming: how o ge sared Equipping readers he skills o wrie programs o explore complex sysems and discover ineresing paerns from big daa is one of he main goals of his book. In his chaper,
More informationMatrix Versions of Some Refinements of the Arithmetic-Geometric Mean Inequality
Marix Versions of Some Refinemens of he Arihmeic-Geomeric Mean Inequaliy Bao Qi Feng and Andrew Tonge Absrac. We esablish marix versions of refinemens due o Alzer ], Carwrigh and Field 4], and Mercer 5]
More informationSection 4.4 Logarithmic Properties
Secion. Logarihmic Properies 59 Secion. Logarihmic Properies In he previous secion, we derived wo imporan properies of arihms, which allowed us o solve some asic eponenial and arihmic equaions. Properies
More informationdt = C exp (3 ln t 4 ). t 4 W = C exp ( ln(4 t) 3) = C(4 t) 3.
Mah Rahman Exam Review Soluions () Consider he IVP: ( 4)y 3y + 4y = ; y(3) = 0, y (3) =. (a) Please deermine he longes inerval for which he IVP is guaraneed o have a unique soluion. Soluion: The disconinuiies
More informationTopics in Combinatorial Optimization May 11, Lecture 22
8.997 Topics in Combinaorial Opimizaion May, 004 Lecure Lecurer: Michel X. Goemans Scribe: Alanha Newman Muliflows an Disjoin Pahs Le G = (V,E) be a graph an le s,,s,,...s, V be erminals. Our goal is o
More informationTHE MATRIX-TREE THEOREM
THE MATRIX-TREE THEOREM 1 The Marix-Tree Theorem. The Marix-Tree Theorem is a formula for he number of spanning rees of a graph in erms of he deerminan of a cerain marix. We begin wih he necessary graph-heoreical
More informationSome Basic Information about M-S-D Systems
Some Basic Informaion abou M-S-D Sysems 1 Inroducion We wan o give some summary of he facs concerning unforced (homogeneous) and forced (non-homogeneous) models for linear oscillaors governed by second-order,
More informationLet us start with a two dimensional case. We consider a vector ( x,
Roaion marices We consider now roaion marices in wo and hree dimensions. We sar wih wo dimensions since wo dimensions are easier han hree o undersand, and one dimension is a lile oo simple. However, our
More informationComputational 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 informationIntroduction to SLE Lecture Notes
Inroducion o SLE Lecure Noe May 13, 16 - The goal of hi ecion i o find a ufficien condiion of λ for he hull K o be generaed by a imple cure. I urn ou if λ 1 < 4 hen K i generaed by a imple curve. We will
More informationMore Digital Logic. t p output. Low-to-high and high-to-low transitions could have different t p. V in (t)
EECS 4 Spring 23 Lecure 2 EECS 4 Spring 23 Lecure 2 More igial Logic Gae delay and signal propagaion Clocked circui elemens (flip-flop) Wriing a word o memory Simplifying digial circuis: Karnaugh maps
More informationPhysics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle
Chaper 2 Newonian Mechanics Single Paricle In his Chaper we will review wha Newon s laws of mechanics ell us abou he moion of a single paricle. Newon s laws are only valid in suiable reference frames,
More informationProblem Set 5. Graduate Macro II, Spring 2017 The University of Notre Dame Professor Sims
Problem Se 5 Graduae Macro II, Spring 2017 The Universiy of Nore Dame Professor Sims Insrucions: You may consul wih oher members of he class, bu please make sure o urn in your own work. Where applicable,
More informationEcon107 Applied Econometrics Topic 7: Multicollinearity (Studenmund, Chapter 8)
I. Definiions and Problems A. Perfec Mulicollineariy Econ7 Applied Economerics Topic 7: Mulicollineariy (Sudenmund, Chaper 8) Definiion: Perfec mulicollineariy exiss in a following K-variable regression
More informationOn Boundedness of Q-Learning Iterates for Stochastic Shortest Path Problems
MATHEMATICS OF OPERATIONS RESEARCH Vol. 38, No. 2, May 2013, pp. 209 227 ISSN 0364-765X (prin) ISSN 1526-5471 (online) hp://dx.doi.org/10.1287/moor.1120.0562 2013 INFORMS On Boundedness of Q-Learning Ieraes
More information( ) a system of differential equations with continuous parametrization ( T = R + These look like, respectively:
XIII. DIFFERENCE AND DIFFERENTIAL EQUATIONS Ofen funcions, or a sysem of funcion, are paramerized in erms of some variable, usually denoed as and inerpreed as ime. The variable is wrien as a funcion of
More informationEmbedded Systems 5. Midterm, Thursday December 18, 2008, Final, Thursday February 12, 2009, 16-19
Embedded Sysems 5 - - Exam Daes / egisraion Miderm, Thursday December 8, 8, 6-8 Final, Thursday February, 9, 6-9 egisraion hrough HISPOS oen in arox. week If HISPOS no alicable Non-CS, Erasmus, ec send
More information