Ehrenfeucht-Fraïssé Games: Applications and Complexity. Department of Mathematics and Computer Science University of Udine, Italy ESSLLI 2010 CPH

Size: px
Start display at page:

Download "Ehrenfeucht-Fraïssé Games: Applications and Complexity. Department of Mathematics and Computer Science University of Udine, Italy ESSLLI 2010 CPH"

Transcription

1 Ehrenfeucht-Frïssé Gmes: Applictions nd Complexity Angelo Montnri Nicol Vitcolonn Deprtment of Mthemtics nd Computer Science University of Udine, Itly ESSLLI 2010 CPH Outline Introduction to EF-gmes Inexpressivity results for first-order logic Norml forms for first-order logic Algorithms nd complexity for specific clsses of structures Generl complexity ounds

2 Introduction to EF-gmes Inexpressivity results for first-order logic Norml forms for first-order logic Algorithms nd complexity for specific clsses of structures Generl complexity ounds Bckground on finite model theory Books H.-D. Einghus nd J. Flum Finite Model Theory Springer, 2nd edition, 2005 L. Likin Elements of Finite Model Theory Springer, 2004

3 Why finite model theory? Connections with computtion Verifiction finite structures cn e coded s words nd thus cn e ojects of computtions; moreover, finite structures cn e used to descrie finite runs of mchines Dtse theory the reltionl model identifies dtse with finite reltionl structure (formuls of forml lnguge cn e viewed s progrms to evlute their mening in structure nd, vice vers, one cn express queries of certin computtionl complexity in given forml lnguge) Genuinely finite queries, e.g., Hs the reltion R even crdinlity? Computtionl complexity logicl description of complexity clsses (e.g., the prolem P = NP mounts to the question whether two fixed-point logics hve the sme expressive power in finite structures) Most theorems fil, one method survives We focus our ttention on first-order (FO) logic Results of model theory often do not pply to the finite Gödel s completeness theorem Compctness theorem Löwenheim-Skolem theorem Definility nd interpoltion results etc. Ehrenfeucht-Frïssé gmes re n exception

4 An ppliction of the compctness theorem Theorem (Compctness Theorem) (i) If ψ is consequence of Φ, then ψ is consequence of finite suset of Φ. (ii) If every finite suset of Φ is stisfile, then Φ is stisfile. Connectivity is not FO-definle over the clss of ll grphs G =(G, E) The proof is vi compctness Assume φ defines connectivity ψ n : there is no pth of length n + 1fromc 1 to c 2 Let T = { ψ n n>0 } {c 1 = c 2, E(c 1, c 2 ), φ} Every finite suset of T is stisfile, ut T is not Compctness fils in the finite γ n : there re t lest n distinct elements γ n def = x 1 x n 1i<jn (x i = x j ) Γ = { γ n n>0 } Generl cse: every finite suset of Γ is stisfile nd thus (compctness theorem) Γ is stisfile, tht is, it hs n (infinite) model Finite structures: every finite suset of Γ is stisfile (it hs finitemodel),utγ hs no finite model Is connectivity definle over ll finite grphs? We cnnot exploit the compctness theorem to nswer the question

5 Isomorphic nd elementrily equivlent structures Definition (Isomorphic structures) Two structures A, B, over the sme finite voculry τ, re isomorphic (A = B) ifthereisnisomorphismfroma to B, tht is, ijection π : A B preserving reltions nd constnts. Theorem Every finite structure cn e chrcterized in FO logic up to isomorphism, tht is, for every finite structure A there exists FO sentence ϕ A such tht, for every B, we hve B = ϕ A iff A = B. Definition (Elementrily equivlent structures) Two structures A, B re elementrily equivlent (A B) ifthey stisfy the sme FO sentences. Nottion Voculry: finite set of reltion symols including = (for the ske of simplicity, we restrict ourselves to purely reltionl voculry; however, ll results extend to voculries tht hve constnt symols). A nd B structures on the sme voculry # = 1,..., k dom(a) # = 1,..., k dom(b) (A, # ): expnsion of structure A y k elements from its universe (B, # ): expnsion of structure B y k elements from its universe Configurtion: (A, #, B, # ), with # = # It represents the reltion { ( i, i ) 1 i # }

6 Awekeningofelementryequivlence:m-equivlent structures Quntifier rnk qr(φ) of FO-formul φ = mximum numer of nested quntifiers in φ: if φ is tomic then qr(φ) =0; qr( φ 1 )=qr(φ 1 ); qr(φ 1 φ 2 )=mx(qr(φ 1 ), qr(φ 2 )); qr( x φ 1 )=qr(φ 1 )+1. Exmple φ = x (P(x) yq(x, y) yr(y)) hs qr(φ) =2. Definition (m-equivlent structures) Two structures A nd B re m-equivlent, denoted A m B, with m 0, if they stisfy the sme FO sentences of quntifier rnk up to m. m-equivlence cn e esily generlized to expnded structures: (A, # ) m (B, # ) if they stisfy the sme FO formuls of quntifier rnk m with t most # free vriles A wekening of isomorphism:m-isomorphic structures Definition (prtil isomorphisms) (A, #, B, # ) is prtil isomorphism if it is n isomorphism of the sustructures induced y # nd #, respectively. Let I 1,...,I m e sets of prtil isomorphisms such tht, for every k, I k contins prtil isomorphisms which llow k-fold extensions. Definition (m-isomorphic structures) Two pirs (A, # ) nd (B, # ) re m-isomorphic, denoted (A, # ) = m (B, # ), if there re nonempty sets I 0, I 1,...,I m of prtil isomorphisms, ech of them extending the prtil isomorphism (A, #, B, # ), such tht, for ll k = 1,..., m, (forth property) p I k A B(p {(, )} I k 1 ) (ck property) p I k B A(p {(, )} I k 1 ) Theorem (Frïssé, 1954) For m 0, (A, # ) m (B, # ) iff (A, # ) = m (B, # ).

7 Comintoril Gmes Ehrenfeucht-Frïssé gmes re (logicl) comintoril gmes. Comintoril gmes: Two opponents Alternte moves No chnce No hidden informtion No loops The plyer who cnnot move loses 1 E. R. Berlekmp, J. H. Conwy, nd R. K. Guy Winning Wys for your mthemticl plys AKPetersLTD,2ndedition, In Comintoril Gme Theory (CGT), this is clled norml ply (the opposite rule: the plyer who cnnot move wins is clled misère ply, nd it gives rise to quite different theory) Ehrenfeucht-Frïssé gmes (EF-gmes) (Logicl) comintoril gmes The plyground: two reltionl structures A nd B (over the sme finite voculry) Two plyers: I (Spoiler) nd II (Duplictor) Perfect informtion Move y I : select structure nd pick n element in it Move y II : pick n element in the opposite structure Round: move y I followed y move y II Gme: sequence of rounds II tries to imitte I Aplyerwhocnnotmoveloses

8 Winning strtegies A ply from (A, #, B, # ) proceeds y extending the initil configurtion with the pir of elements chosen y the two plyers, e.g., if I picks c in A nd II replies with d in B then the new configurtion is (A, #, c, B, #, d) Ending condition: plyer repets move or the configurtion is not prtil isomorphism Definition II hs winning strtegy from (A, #, B, # ) if every configurtion of the gme until n ending configurtion is reched is prtil isomorphism, no mtter how I plys. An exmple on grphs G 1 G 2 II must respect the djcency reltion nd pick nodes with the sme lel s I does

9 An exmple on grphs G 1 G 2 II must respect the djcency reltion nd pick nodes with the sme lel s I does An exmple on grphs G 1 G 2 II must respect the djcency reltion nd pick nodes with the sme lel s I does

10 An exmple on grphs G 1 G 2 II must respect the djcency reltion nd pick nodes with the sme lel s I does An exmple on grphs G 1 G 2 II must respect the djcency reltion nd pick nodes with the sme lel s I does

11 An exmple on grphs G 1 G 2 II must respect the djcency reltion nd pick nodes with the sme lel s I does Bounded nd unounded gmes How long does gme lst? Bounded gme: G m (A, #, B, # ) (G m (A, B) if k = 0) the numer of rounds is fixed: the gme ends fter m rounds hve een plyed Unounded gme: G(A, #, B, # ) (G(A, B) if k = 0) the gme goes on s long s either plyer repets move or the current configurtion in not prtil isomorphism II wins if nd only if the ending configurtion is prtil isomorphism Unounded gmes turn out to e useful to compre (finite) structures (comprison gmes): the remoteness (durtion) of n unounded gme s mesure of structure similrity (the notion of remoteness will e formlized lter).

12 Min result First-order EF-gmes cpture m-equivlence Theorem (Ehrenfeucht, 1961) II hs winning strtegy in G m (A, #, B, # ) iff (A, # ) m (B, # ). Remrks. If two structures A nd B re m-equivlent for every nturl numer m, then they re elementrily equivlent In finite structures, A nd B re elementrily equivlent if nd only if they re isomorphic (in generl, this is not the cse: consider, for instnce, N nd the ordered sum N Z) Definition (EF-prolem) The EF-prolem is the prolem of determining whether II hs winning strtegy in G m (A, B), given A, B nd n integer m. Correspondence etween gmes nd formuls EF-gmes hve nturl logicl counterprt which is sed on the following simple properties of II winning strtegies. Given two structures A nd B, tuple # of elements of A nd tuple # of elements of B, with # = #, nd m 0, we hve tht: II wins G 0 (A, #, B, # ) iff (A, #, B, # ) is prtil isomorphism for every m>0, II wins G m (A, #, B, # ) iff for ll A, there exists B such tht II wins G m 1 (A, #,, B, #, ) for ll B, there exists A such tht II win G m 1 (A, #,, B, #, )

13 From gmes to formuls: Hintikk formuls Definition (Hintikk formuls) Given structure A, tuple # of elements of A, with # = k, nd tuple # x of vriles x 1,...,x k, let ϕ 0 (A, # ) (# x ) def = nd, for m 0, ϕ( # x ) tomic (A, # ) =ϕ( # x ) ϕ m+1 (A, # ) (# x ) def = A x k+1 ϕ( # x ) ϕ( # x ) tomic (A, # ) = ϕ( # x ) x k+1 ϕ m (A, #,) (# x, x k+1 ) A ϕ m (A, #,) (# x, x k+1 ). ϕ( # x ) For ech m, ϕ m (A, # ) (# x ) is clled the m-hintikk formul. From gmes to formuls: Hintikk formuls (cont.) The Hintikk formul ϕ 0 (A, # ) (# x ) descries the isomorphism type of the sustructure of A induced y #. In generl, ϕ m (A, # ) (# x ) descries to which isomorphism types the tuple # cn e extended in m steps y dding one element in ech step. Since the voculry is finite, the ove conjunctions nd disjunctions re finite even if the structure is infinite. Theorem (Ehrenfeucht, cont.) For ny given (A, # ), (B, # ), nd m 0, we hve (B, # ) = ϕ m (A, # ) (# x ) (A, # ) m (B, # ) II hs winning strtegy in G m (A, #, B, # ).

14 Distriutive norml form Hintikk formuls re the sis of norml form for FO formuls: the clss of structures which stisfies given FO formul ϕ( # x ) of quntifier rnk m must e union of m -clsses ech m -clss is defined y Hintikk formul hence, ϕ( # x ) is logiclly equivlent to the (finite) disjunction of those Hintikk formuls which define these m -clsses (distriutive norml form for FO logic) FO definility AwinningstrtegyforI in G m (A, B) cn e converted into FO sentence of quntifier rnk t most m tht is true in exctly one of A nd B (the Hintikk formul ϕ m (A, # ) (# x ) or the Hintikk formul ϕ m (B, # ) (# x )). A chrcteriztion of FO-definle (FO-xiomtizle) clsses A clss K of structures (on the sme finite voculry) is FO-definle if nd only if there is m N such tht I hs winning strtegy whenever A K nd B K. The sme chrcteriztion holds in the finite cse (clsses of finite structures) the sme rgument pplies.

15 FO undefinility FO-undefinle clsses of structures AclssK of structures is not FO-definle if nd only if, for ll m N, there re A K nd B K such tht II hs winning strtegy in G m (A, B). Exmple Let L k def =({1,..., k}, <). It is possile to show tht n, p 2 m 1 II wins G m (L n, L p ) The clss of liner orderings of even crdinlity is not FO-definle : given m, choose ñ = 2 m nd p = 2 m + 1; II wins G m (Lñ, L p ) (i.e., Lñ m L p ). Other pplictions will e given lter (inexpressivity results for FO logic). From differentiting formuls to gmes Let A nd B e fixed Let φ e formul with quntifier rnk m Let A = φ ut B = φ Repet m times: 1 If φ = x 1 ψ, let φ φ nd swp A nd B So, φ holds in A ut not in B nd its first quntifier is 2 Let ψ ψ{ x 1/ c 1 }, with c 1 freshconstntsymol 3 Let I pick 1 in A such tht (A, 1 ) = ψ[ c 1/ 1 ] (since A = φ, such n 1 must exist) 4 Whtever 1 II chooses in B, (B, 1 ) = ψ[ c 1/ 1 ] 5 Let A (A, 1 ), B (B, 1 ) nd φ ψ Switching etween models is encoded in φ s quntifier lterntions (step 1)

16 Exmple Consider the formul for density: φ = x 1 x 2 x 3 (x 1 <x 2 x 1 <x 3 <x 2 ), which holds in (Q, <) ut not in (Z, <). (step 1) φ x 1 x 2 x 3 (x 1 <x 2 (x 1 <x 3 <x 2 )) (step 2) ψ x 2 x 3 (x 1 <x 2 (x 1 <x 3 <x 2 )){ x 1/ c 1 } = x 2 x 3 ( c 1 <x 2 ( c 1 <x 3 <x 2 )) (step 3) I chooses z in (Z, <) such tht (Z, <, z) = ψ [ c 1/z] (step 4) II replies q in (Q, <) such tht (Q, <, q) = ψ [ c 1/q] (step 2) ψ x 3 ( c 1 <x 2 ( c 1 <x 3 <x 2 )){ x 2/ c 2 } = x 3 ( c 1 < c 2 ( c 1 <x 3 < c 2 )) Exmple (cont.) (step 3) I chooses z + 1in(Z, <, z) such tht (Z, <, z, z + 1) = ψ [ c 1/z, c 2/z+1] (step 4) II replies with q >qin (Q, <, q) (otherwise it loses immeditely) such tht (Q, <, q, q ) = ψ [ c 1/q, c 2/q ] (step 1) φ x 3 ( c 1 < c 2 ( c 1 <x 3 < c 2 )) (step 2) ψ c 1 < c 2 ( c 1 <x 3 < c 2 ){ x 3/ c 3 } = c 1 < c 2 ( c 1 < c 3 < c 2 ) (step 3) I chooses q + q q 2 in (Q, <, q) such tht (Q, <, q, q, q + q q 2 ) = c 1 < c 2 c 1 < c 3 < c 2 [ c 1/q, c 2/q, c 3/q+( q q 2 )]

17 Exmple (cont.) (step 4) Of course, whtever z II chooses, we hve (Z, <, z, z + 1, z ) = c 1 < c 2 c 1 < c 3 < c 2 [ c 1/z, c 2/z+1, c 3/z ] (gme over) The resulting mpping from Q to Z: q z q z + 1 q + q q 2 z is not prtil isomorphism, so I wins Applictions of EF-gmes EF-gmes hve een exploited to prove some sic results out (the expressive power of) FO logic: Hnf s theorem Sphere lemm Gifmn s theorem EF-gmes hve een extensively used to prove negtive expressivity results (sufficient conditions tht gurntee winning strtegy for II suffice) Gifmn s theorem nd norml forms for FO logic

18 Gifmn grph Gifmn grph G(A) of structure A: undirected grph (dom(a), E) where (, ) E iff nd occur in the sme tuple of some reltion of A If A itself is (directed) grph, then G(A) is (the undirected version of) A itself, plus ll self-loops The degree of node is the numer of nodes (= ) such tht (, ) E (the degree of G is the mximum of the degrees of its nodes) δ(, ): length of the shortest pth etween nd in G(A) (if there is not such pth, δ(, ) = ) Exmple A =({,, c, d}, R, S), R = {(, )}, S = {(, c, d)} δ(, c) =δ(, d) =2 d c r-sphere nd r-neighorhood Definition (r-sphere) Let A e structure with domin A, A, nd r N. The r-sphere of (in A), denoted S A r (), is defined s follows: S A r () def = { A δ(, ) r }. The notion of r-sphere cn e extended to vector # = 1... s (r-sphere S A r ( # )): S A r ( # ) def = { A δ( #, ) r } = S A r ( 1 )... S A r ( s ). Definition (r-neighorhood) The r-neighorhood N A r ( # ) is the sustructure of A induced y S A r ( # ). If we restrict ourselves to grphs of degree d for some fixed d, there re, for ny r>0, only finitely mny possile isomorphism types of r-spheres.

19 Hnf s theorem A r B: there is ijection f: A B such tht N A r () = N B r (f()) for every A The reltion A r B sttes tht loclly A nd B look the sme. Theorem (Hnf, 1965) Let A nd B e two structures such tht, for ny r N, ech r-sphere in A or B contins finitely mny elements. Then, A nd B re elementrily equivlent if A r B for every r N. Hnf s result does not hold if the Gifmn grph of (t lest) one structure hs infinite degree, e.g., the usul ordering reltion on nturl numers From the infinite cse to the finite one Hnf s theorem is of interest only for infinite structures: s we lredy pointed out, two finite structures re elementrily equivlent if nd only if they re isomorphic A wekened version of Hnf s theorem, clled sphere theorem, provides sufficient condition for m-equivlence (insted of sufficient condition for elementry equivlence) nd it turns out to e of interest for finite structures The proofs of oth Hnf s theorem nd sphere theorem use Frïssé s theorem

20 Sphere theorem A t r B: isomorphic r-neighorhoods occur the sme numer of times in oth structures (tht is, they hve the sme multiplicity) or they occur more thn t times in oth structures Theorem (Sphere theorem) Given A nd B with degree t most d nd m N, if A t r B for r = 3 m+1 nd t = m d 3m+1, then A m B. For ll m there re r nd t such tht t r is finer thn m with respect to the clss of structures with degree d Strong hypotheses (it is sufficient condition) isomorphic neighorhoods uniform threshold for ll neighorhood sizes scttering of neighorhoods is not tken into ccount Sphere theorem: proof Thnks to Frïssé s theorem, it suffices to show tht (A, # ) = m (B, # ). The required sequence of sets I 0,...,I m of prtil isomorphisms is defined s follows: p = { ( 1, 1 ),...,( m k, m k ) } I k iff N A 3 k ( 1,..., m k ) = N B 3 k ( 1,..., m k ) To prove the forth property ( similr rgument holds for the ck property), we ssume tht such condition holds for p nd we show tht, for every possile choice of (= m (k 1) ) A, we cn find (= m (k 1) ) B such tht: N A 3 k 1 ( 1,..., m (k 1) ) = N B 3 k 1 ( 1,..., m (k 1) )

21 Sphere theorem: proof (cont.) We must distinguish two cses: if S A 2/3 3 k ( i ) for some i, then we my choose corresponding from S B 2/3 3 k ( i ) (S A 3 k 1 () is contined in S A 3 k ( i ) nd S B 3 k 1 () is contined in S B 3 k ( i ), nd thus N A 3 k 1 () = N B 3 k 1 ()); otherwise, S A 3 k 1 () (of some isomorphism type σ) isdisjoint from S A 3 k 1 ( i ), for i = 1,..., m k. From A t r B, with r = 3 m+1 nd t = m d 3m+1, it follows tht the numer of occurrences of spheres of type σ in B is lrge enough to gurntee tht we my find one which is disjoint from S B 3 k 1 ( i ), for i = 1,..., m k. By sphere lemm nd distriutive norml form, ny FO formul is equivlent (over grphs of degree d) to Boolen comintion of sttements of the form there exist k occurrences of spheres of types σ : FO logic cn only express locl properties of grphs. References for Hnf s nd Sphere theorems W. Hnf Model-Theoretic Methods in the Study of Elementry Logic The Theory of Model, 1965 W. Thoms On logics, tilings, nd utomt Proc. 18th ICALP, LNCS 510, 1991 W. Thoms On the Ehrenfeucht-Frïssé gme in Theoreticl Computer Science Proc. 4th TAPSOFT, LNCS 668, 1993 R. Fgin, L. J. Stockmeyer, nd M. Y. Vrdi On mondic NP vs mondic co-np Informtion nd Computtion, 1995

Nondeterminism and Nodeterministic Automata

Nondeterminism and Nodeterministic Automata Nondeterminism nd Nodeterministic Automt 61 Nondeterminism nd Nondeterministic Automt The computtionl mchine models tht we lerned in the clss re deterministic in the sense tht the next move is uniquely

More information

Coalgebra, Lecture 15: Equations for Deterministic Automata

Coalgebra, Lecture 15: Equations for Deterministic Automata Colger, Lecture 15: Equtions for Deterministic Automt Julin Slmnc (nd Jurrin Rot) Decemer 19, 2016 In this lecture, we will study the concept of equtions for deterministic utomt. The notes re self contined

More information

Formal Languages and Automata

Formal Languages and Automata Moile Computing nd Softwre Engineering p. 1/5 Forml Lnguges nd Automt Chpter 2 Finite Automt Chun-Ming Liu cmliu@csie.ntut.edu.tw Deprtment of Computer Science nd Informtion Engineering Ntionl Tipei University

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 utomt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Prolem (II) Chpter II.5.: Properties of Context Free Grmmrs (14) nton Setzer (Bsed on ook drft y J. V. Tucker nd K. Stephenson)

More information

Designing finite automata II

Designing finite automata II Designing finite utomt II Prolem: Design DFA A such tht L(A) consists of ll strings of nd which re of length 3n, for n = 0, 1, 2, (1) Determine wht to rememer out the input string Assign stte to ech of

More information

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true. York University CSE 2 Unit 3. DFA Clsses Converting etween DFA, NFA, Regulr Expressions, nd Extended Regulr Expressions Instructor: Jeff Edmonds Don t chet y looking t these nswers premturely.. For ech

More information

Revision Sheet. (a) Give a regular expression for each of the following languages:

Revision Sheet. (a) Give a regular expression for each of the following languages: Theoreticl Computer Science (Bridging Course) Dr. G. D. Tipldi F. Bonirdi Winter Semester 2014/2015 Revision Sheet University of Freiurg Deprtment of Computer Science Question 1 (Finite Automt, 8 + 6 points)

More information

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014 CMPSCI 250: Introduction to Computtion Lecture #31: Wht DFA s Cn nd Cn t Do Dvid Mix Brrington 9 April 2014 Wht DFA s Cn nd Cn t Do Deterministic Finite Automt Forml Definition of DFA s Exmples of DFA

More information

Parse trees, ambiguity, and Chomsky normal form

Parse trees, ambiguity, and Chomsky normal form Prse trees, miguity, nd Chomsky norml form In this lecture we will discuss few importnt notions connected with contextfree grmmrs, including prse trees, miguity, nd specil form for context-free grmmrs

More information

1B40 Practical Skills

1B40 Practical Skills B40 Prcticl Skills Comining uncertinties from severl quntities error propgtion We usully encounter situtions where the result of n experiment is given in terms of two (or more) quntities. We then need

More information

Convert the NFA into DFA

Convert the NFA into DFA Convert the NF into F For ech NF we cn find F ccepting the sme lnguge. The numer of sttes of the F could e exponentil in the numer of sttes of the NF, ut in prctice this worst cse occurs rrely. lgorithm:

More information

On Determinisation of History-Deterministic Automata.

On Determinisation of History-Deterministic Automata. On Deterministion of History-Deterministic Automt. Denis Kupererg Mich l Skrzypczk University of Wrsw YR-ICALP 2014 Copenhgen Introduction Deterministic utomt re centrl tool in utomt theory: Polynomil

More information

Minimal DFA. minimal DFA for L starting from any other

Minimal DFA. minimal DFA for L starting from any other Miniml DFA Among the mny DFAs ccepting the sme regulr lnguge L, there is exctly one (up to renming of sttes) which hs the smllest possile numer of sttes. Moreover, it is possile to otin tht miniml DFA

More information

Chapter 2 Finite Automata

Chapter 2 Finite Automata Chpter 2 Finite Automt 28 2.1 Introduction Finite utomt: first model of the notion of effective procedure. (They lso hve mny other pplictions). The concept of finite utomton cn e derived y exmining wht

More information

Lecture 9: LTL and Büchi Automata

Lecture 9: LTL and Büchi Automata Lecture 9: LTL nd Büchi Automt 1 LTL Property Ptterns Quite often the requirements of system follow some simple ptterns. Sometimes we wnt to specify tht property should only hold in certin context, clled

More information

p-adic Egyptian Fractions

p-adic Egyptian Fractions p-adic Egyptin Frctions Contents 1 Introduction 1 2 Trditionl Egyptin Frctions nd Greedy Algorithm 2 3 Set-up 3 4 p-greedy Algorithm 5 5 p-egyptin Trditionl 10 6 Conclusion 1 Introduction An Egyptin frction

More information

The practical version

The practical version Roerto s Notes on Integrl Clculus Chpter 4: Definite integrls nd the FTC Section 7 The Fundmentl Theorem of Clculus: The prcticl version Wht you need to know lredy: The theoreticl version of the FTC. Wht

More information

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4 Intermedite Mth Circles Wednesdy, Novemer 14, 2018 Finite Automt II Nickols Rollick nrollick@uwterloo.c Regulr Lnguges Lst time, we were introduced to the ide of DFA (deterministic finite utomton), one

More information

CM10196 Topic 4: Functions and Relations

CM10196 Topic 4: Functions and Relations CM096 Topic 4: Functions nd Reltions Guy McCusker W. Functions nd reltions Perhps the most widely used notion in ll of mthemtics is tht of function. Informlly, function is n opertion which tkes n input

More information

Symbolic enumeration methods for unlabelled structures

Symbolic enumeration methods for unlabelled structures Go & Šjn, Comintoril Enumertion Notes 4 Symolic enumertion methods for unlelled structures Definition A comintoril clss is finite or denumerle set on which size function is defined, stisfying the following

More information

Lecture 3: Equivalence Relations

Lecture 3: Equivalence Relations Mthcmp Crsh Course Instructor: Pdric Brtlett Lecture 3: Equivlence Reltions Week 1 Mthcmp 2014 In our lst three tlks of this clss, we shift the focus of our tlks from proof techniques to proof concepts

More information

80 CHAPTER 2. DFA S, NFA S, REGULAR LANGUAGES. 2.6 Finite State Automata With Output: Transducers

80 CHAPTER 2. DFA S, NFA S, REGULAR LANGUAGES. 2.6 Finite State Automata With Output: Transducers 80 CHAPTER 2. DFA S, NFA S, REGULAR LANGUAGES 2.6 Finite Stte Automt With Output: Trnsducers So fr, we hve only considered utomt tht recognize lnguges, i.e., utomt tht do not produce ny output on ny input

More information

Linear Inequalities. Work Sheet 1

Linear Inequalities. Work Sheet 1 Work Sheet 1 Liner Inequlities Rent--Hep, cr rentl compny,chrges $ 15 per week plus $ 0.0 per mile to rent one of their crs. Suppose you re limited y how much money you cn spend for the week : You cn spend

More information

BİL 354 Veritabanı Sistemleri. Relational Algebra (İlişkisel Cebir)

BİL 354 Veritabanı Sistemleri. Relational Algebra (İlişkisel Cebir) BİL 354 Veritnı Sistemleri Reltionl lger (İlişkisel Ceir) Reltionl Queries Query lnguges: llow mnipultion nd retrievl of dt from dtse. Reltionl model supports simple, powerful QLs: Strong forml foundtion

More information

Handout: Natural deduction for first order logic

Handout: Natural deduction for first order logic MATH 457 Introduction to Mthemticl Logic Spring 2016 Dr Json Rute Hndout: Nturl deduction for first order logic We will extend our nturl deduction rules for sententil logic to first order logic These notes

More information

Closure Properties of Regular Languages

Closure Properties of Regular Languages Closure Properties of Regulr Lnguges Regulr lnguges re closed under mny set opertions. Let L 1 nd L 2 e regulr lnguges. (1) L 1 L 2 (the union) is regulr. (2) L 1 L 2 (the conctention) is regulr. (3) L

More information

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS CS 310 (sec 20) - Winter 2003 - Finl Exm (solutions) SOLUTIONS 1. (Logic) Use truth tles to prove the following logicl equivlences: () p q (p p) (q q) () p q (p q) (p q) () p q p q p p q q (q q) (p p)

More information

CISC 4090 Theory of Computation

CISC 4090 Theory of Computation 9/6/28 Stereotypicl computer CISC 49 Theory of Computtion Finite stte mchines & Regulr lnguges Professor Dniel Leeds dleeds@fordhm.edu JMH 332 Centrl processing unit (CPU) performs ll the instructions

More information

Good-for-Games Automata versus Deterministic Automata.

Good-for-Games Automata versus Deterministic Automata. Good-for-Gmes Automt versus Deterministic Automt. Denis Kuperberg 1,2 Mich l Skrzypczk 1 1 University of Wrsw 2 IRIT/ONERA (Toulouse) Séminire MoVe 12/02/2015 LIF, Luminy Introduction Deterministic utomt

More information

CS 330 Formal Methods and Models

CS 330 Formal Methods and Models CS 330 Forml Methods nd Models Dn Richrds, George Mson University, Spring 2017 Quiz Solutions Quiz 1, Propositionl Logic Dte: Ferury 2 1. Prove ((( p q) q) p) is tutology () (3pts) y truth tle. p q p q

More information

Lecture 08: Feb. 08, 2019

Lecture 08: Feb. 08, 2019 4CS4-6:Theory of Computtion(Closure on Reg. Lngs., regex to NDFA, DFA to regex) Prof. K.R. Chowdhry Lecture 08: Fe. 08, 2019 : Professor of CS Disclimer: These notes hve not een sujected to the usul scrutiny

More information

Lecture 2: January 27

Lecture 2: January 27 CS 684: Algorithmic Gme Theory Spring 217 Lecturer: Év Trdos Lecture 2: Jnury 27 Scrie: Alert Julius Liu 2.1 Logistics Scrie notes must e sumitted within 24 hours of the corresponding lecture for full

More information

Random subgroups of a free group

Random subgroups of a free group Rndom sugroups of free group Frédérique Bssino LIPN - Lortoire d Informtique de Pris Nord, Université Pris 13 - CNRS Joint work with Armndo Mrtino, Cyril Nicud, Enric Ventur et Pscl Weil LIX My, 2015 Introduction

More information

Automata Theory 101. Introduction. Outline. Introduction Finite Automata Regular Expressions ω-automata. Ralf Huuck.

Automata Theory 101. Introduction. Outline. Introduction Finite Automata Regular Expressions ω-automata. Ralf Huuck. Outline Automt Theory 101 Rlf Huuck Introduction Finite Automt Regulr Expressions ω-automt Session 1 2006 Rlf Huuck 1 Session 1 2006 Rlf Huuck 2 Acknowledgement Some slides re sed on Wolfgng Thoms excellent

More information

A negative answer to a question of Wilke on varieties of!-languages

A negative answer to a question of Wilke on varieties of!-languages A negtive nswer to question of Wilke on vrieties of!-lnguges Jen-Eric Pin () Astrct. In recent pper, Wilke sked whether the oolen comintions of!-lnguges of the form! L, for L in given +-vriety of lnguges,

More information

First Midterm Examination

First Midterm Examination Çnky University Deprtment of Computer Engineering 203-204 Fll Semester First Midterm Exmintion ) Design DFA for ll strings over the lphet Σ = {,, c} in which there is no, no nd no cc. 2) Wht lnguge does

More information

First Midterm Examination

First Midterm Examination 24-25 Fll Semester First Midterm Exmintion ) Give the stte digrm of DFA tht recognizes the lnguge A over lphet Σ = {, } where A = {w w contins or } 2) The following DFA recognizes the lnguge B over lphet

More information

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1 Chpter Five: Nondeterministic Finite Automt Forml Lnguge, chpter 5, slide 1 1 A DFA hs exctly one trnsition from every stte on every symol in the lphet. By relxing this requirement we get relted ut more

More information

Exercises with (Some) Solutions

Exercises with (Some) Solutions Exercises with (Some) Solutions Techer: Luc Tesei Mster of Science in Computer Science - University of Cmerino Contents 1 Strong Bisimultion nd HML 2 2 Wek Bisimultion 31 3 Complete Lttices nd Fix Points

More information

Formal languages, automata, and theory of computation

Formal languages, automata, and theory of computation Mälrdlen University TEN1 DVA337 2015 School of Innovtion, Design nd Engineering Forml lnguges, utomt, nd theory of computtion Thursdy, Novemer 5, 14:10-18:30 Techer: Dniel Hedin, phone 021-107052 The exm

More information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automt Theory nd Forml Lnguges TMV027/DIT321 LP4 2018 Lecture 10 An Bove April 23rd 2018 Recp: Regulr Lnguges We cn convert between FA nd RE; Hence both FA nd RE ccept/generte regulr lnguges; More

More information

INF1383 -Bancos de Dados

INF1383 -Bancos de Dados 3//0 INF383 -ncos de Ddos Prof. Sérgio Lifschitz DI PUC-Rio Eng. Computção, Sistems de Informção e Ciênci d Computção LGER RELCIONL lguns slides sedos ou modificdos dos originis em Elmsri nd Nvthe, Fundmentls

More information

DATABASE DESIGN I - 1DL300

DATABASE DESIGN I - 1DL300 DATABASE DESIGN I - DL300 Fll 00 An introductory course on dtse systems http://www.it.uu.se/edu/course/homepge/dstekn/ht0/ Mnivskn Sesn Uppsl Dtse Lortory Deprtment of Informtion Technology, Uppsl University,

More information

Tutorial Automata and formal Languages

Tutorial Automata and formal Languages Tutoril Automt nd forml Lnguges Notes for to the tutoril in the summer term 2017 Sestin Küpper, Christine Mik 8. August 2017 1 Introduction: Nottions nd sic Definitions At the eginning of the tutoril we

More information

Bases for Vector Spaces

Bases for Vector Spaces Bses for Vector Spces 2-26-25 A set is independent if, roughly speking, there is no redundncy in the set: You cn t uild ny vector in the set s liner comintion of the others A set spns if you cn uild everything

More information

CHAPTER 1 Regular Languages. Contents. definitions, examples, designing, regular operations. Non-deterministic Finite Automata (NFA)

CHAPTER 1 Regular Languages. Contents. definitions, examples, designing, regular operations. Non-deterministic Finite Automata (NFA) Finite Automt (FA or DFA) CHAPTER Regulr Lnguges Contents definitions, exmples, designing, regulr opertions Non-deterministic Finite Automt (NFA) definitions, equivlence of NFAs DFAs, closure under regulr

More information

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton 25. Finite Automt AUTOMATA AND LANGUAGES A system of computtion tht only hs finite numer of possile sttes cn e modeled using finite utomton A finite utomton is often illustrted s stte digrm d d d. d q

More information

Harvard University Computer Science 121 Midterm October 23, 2012

Harvard University Computer Science 121 Midterm October 23, 2012 Hrvrd University Computer Science 121 Midterm Octoer 23, 2012 This is closed-ook exmintion. You my use ny result from lecture, Sipser, prolem sets, or section, s long s you quote it clerly. The lphet is

More information

Formal Language and Automata Theory (CS21004)

Formal Language and Automata Theory (CS21004) Forml Lnguge nd Automt Forml Lnguge nd Automt Theory (CS21004) Khrgpur Khrgpur Khrgpur Forml Lnguge nd Automt Tle of Contents Forml Lnguge nd Automt Khrgpur 1 2 3 Khrgpur Forml Lnguge nd Automt Forml Lnguge

More information

How to simulate Turing machines by invertible one-dimensional cellular automata

How to simulate Turing machines by invertible one-dimensional cellular automata How to simulte Turing mchines by invertible one-dimensionl cellulr utomt Jen-Christophe Dubcq Déprtement de Mthémtiques et d Informtique, École Normle Supérieure de Lyon, 46, llée d Itlie, 69364 Lyon Cedex

More information

5. (±±) Λ = fw j w is string of even lengthg [ 00 = f11,00g 7. (11 [ 00)± Λ = fw j w egins with either 11 or 00g 8. (0 [ ffl)1 Λ = 01 Λ [ 1 Λ 9.

5. (±±) Λ = fw j w is string of even lengthg [ 00 = f11,00g 7. (11 [ 00)± Λ = fw j w egins with either 11 or 00g 8. (0 [ ffl)1 Λ = 01 Λ [ 1 Λ 9. Regulr Expressions, Pumping Lemm, Right Liner Grmmrs Ling 106 Mrch 25, 2002 1 Regulr Expressions A regulr expression descries or genertes lnguge: it is kind of shorthnd for listing the memers of lnguge.

More information

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science CSCI 340: Computtionl Models Kleene s Theorem Chpter 7 Deprtment of Computer Science Unifiction In 1954, Kleene presented (nd proved) theorem which (in our version) sttes tht if lnguge cn e defined y ny

More information

E 1 (n) = E 0 (n-1) E 0 (n) = E 0 (n-1)+e 0 (n-2) T(n -1)=2E 0 (n-2) + E 0 (n-3)

E 1 (n) = E 0 (n-1) E 0 (n) = E 0 (n-1)+e 0 (n-2) T(n -1)=2E 0 (n-2) + E 0 (n-3) cs3102: Theory of Computtion Clss 5: Non-Regulr PS1, Prolem 8 Menu Non-regulr lnguges Spring 2010 University of Virgini Dvid Evns PS1 Generl Comments Proofs re for mking convincing rguments, not for ofusction.

More information

Hamiltonian Cycle in Complete Multipartite Graphs

Hamiltonian Cycle in Complete Multipartite Graphs Annls of Pure nd Applied Mthemtics Vol 13, No 2, 2017, 223-228 ISSN: 2279-087X (P), 2279-0888(online) Pulished on 18 April 2017 wwwreserchmthsciorg DOI: http://dxdoiorg/1022457/pmv13n28 Annls of Hmiltonin

More information

CS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions

CS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions CS 330 Forml Methods nd Models Dn Richrds, George Mson University, Spring 2016 Quiz Solutions Quiz 1, Propositionl Logic Dte: Ferury 9 1. (4pts) ((p q) (q r)) (p r), prove tutology using truth tles. p

More information

2.4 Linear Inequalities and Interval Notation

2.4 Linear Inequalities and Interval Notation .4 Liner Inequlities nd Intervl Nottion We wnt to solve equtions tht hve n inequlity symol insted of n equl sign. There re four inequlity symols tht we will look t: Less thn , Less thn or

More information

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University U.U.D.M. Project Report 07:4 Frey Frctions Rickrd Fernström Exmensrete i mtemtik, 5 hp Hledre: Andres Strömergsson Exmintor: Jörgen Östensson Juni 07 Deprtment of Mthemtics Uppsl University Frey Frctions

More information

1 Nondeterministic Finite Automata

1 Nondeterministic Finite Automata 1 Nondeterministic Finite Automt Suppose in life, whenever you hd choice, you could try oth possiilities nd live your life. At the end, you would go ck nd choose the one tht worked out the est. Then you

More information

Boolean algebra.

Boolean algebra. http://en.wikipedi.org/wiki/elementry_boolen_lger Boolen lger www.tudorgir.com Computer science is not out computers, it is out computtion nd informtion. computtion informtion computer informtion Turing

More information

Assignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages

Assignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages Deprtment of Computer Science, Austrlin Ntionl University COMP2600 Forml Methods for Softwre Engineering Semester 2, 206 Assignment Automt, Lnguges, nd Computility Smple Solutions Finite Stte Automt nd

More information

CHAPTER 1 Regular Languages. Contents

CHAPTER 1 Regular Languages. Contents Finite Automt (FA or DFA) CHAPTE 1 egulr Lnguges Contents definitions, exmples, designing, regulr opertions Non-deterministic Finite Automt (NFA) definitions, euivlence of NFAs nd DFAs, closure under regulr

More information

Learning Goals. Relational Query Languages. Formal Relational Query Languages. Formal Query Languages: Relational Algebra and Relational Calculus

Learning Goals. Relational Query Languages. Formal Relational Query Languages. Formal Query Languages: Relational Algebra and Relational Calculus Forml Query Lnguges: Reltionl Alger nd Reltionl Clculus Chpter 4 Lerning Gols Given dtse ( set of tles ) you will e le to express dtse query in Reltionl Alger (RA), involving the sic opertors (selection,

More information

Lecture 09: Myhill-Nerode Theorem

Lecture 09: Myhill-Nerode Theorem CS 373: Theory of Computtion Mdhusudn Prthsrthy Lecture 09: Myhill-Nerode Theorem 16 Ferury 2010 In this lecture, we will see tht every lnguge hs unique miniml DFA We will see this fct from two perspectives

More information

Separating Regular Languages with First-Order Logic

Separating Regular Languages with First-Order Logic Seprting Regulr Lnguges with First-Order Logic Thoms Plce Mrc Zeitoun LBRI, Bordeux University, Frnce firstnme.lstnme@lri.fr Astrct Given two lnguges, seprtor is third lnguge tht contins the first one

More information

378 Relations Solutions for Chapter 16. Section 16.1 Exercises. 3. Let A = {0,1,2,3,4,5}. Write out the relation R that expresses on A.

378 Relations Solutions for Chapter 16. Section 16.1 Exercises. 3. Let A = {0,1,2,3,4,5}. Write out the relation R that expresses on A. 378 Reltions 16.7 Solutions for Chpter 16 Section 16.1 Exercises 1. Let A = {0,1,2,3,4,5}. Write out the reltion R tht expresses > on A. Then illustrte it with digrm. 2 1 R = { (5,4),(5,3),(5,2),(5,1),(5,0),(4,3),(4,2),(4,1),

More information

Chapter 8.2: The Integral

Chapter 8.2: The Integral Chpter 8.: The Integrl You cn think of Clculus s doule-wide triler. In one width of it lives differentil clculus. In the other hlf lives wht is clled integrl clculus. We hve lredy eplored few rooms in

More information

UNIFORM CONVERGENCE. Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3

UNIFORM CONVERGENCE. Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3 UNIFORM CONVERGENCE Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3 Suppose f n : Ω R or f n : Ω C is sequence of rel or complex functions, nd f n f s n in some sense. Furthermore,

More information

Context-Free Grammars and Languages

Context-Free Grammars and Languages Context-Free Grmmrs nd Lnguges (Bsed on Hopcroft, Motwni nd Ullmn (2007) & Cohen (1997)) Introduction Consider n exmple sentence: A smll ct ets the fish English grmmr hs rules for constructing sentences;

More information

CSE : Exam 3-ANSWERS, Spring 2011 Time: 50 minutes

CSE : Exam 3-ANSWERS, Spring 2011 Time: 50 minutes CSE 260-002: Exm 3-ANSWERS, Spring 20 ime: 50 minutes Nme: his exm hs 4 pges nd 0 prolems totling 00 points. his exm is closed ook nd closed notes.. Wrshll s lgorithm for trnsitive closure computtion is

More information

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38 Theory of Computtion Regulr Lnguges (NTU EE) Regulr Lnguges Fll 2017 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of Finite Automt A finite utomton hs finite set of control

More information

The area under the graph of f and above the x-axis between a and b is denoted by. f(x) dx. π O

The area under the graph of f and above the x-axis between a and b is denoted by. f(x) dx. π O 1 Section 5. The Definite Integrl Suppose tht function f is continuous nd positive over n intervl [, ]. y = f(x) x The re under the grph of f nd ove the x-xis etween nd is denoted y f(x) dx nd clled the

More information

Improper Integrals. The First Fundamental Theorem of Calculus, as we ve discussed in class, goes as follows:

Improper Integrals. The First Fundamental Theorem of Calculus, as we ve discussed in class, goes as follows: Improper Integrls The First Fundmentl Theorem of Clculus, s we ve discussed in clss, goes s follows: If f is continuous on the intervl [, ] nd F is function for which F t = ft, then ftdt = F F. An integrl

More information

MATH1050 Cauchy-Schwarz Inequality and Triangle Inequality

MATH1050 Cauchy-Schwarz Inequality and Triangle Inequality MATH050 Cuchy-Schwrz Inequlity nd Tringle Inequlity 0 Refer to the Hndout Qudrtic polynomils Definition (Asolute extrem for rel-vlued functions of one rel vrile) Let I e n intervl, nd h : D R e rel-vlued

More information

Vectors , (0,0). 5. A vector is commonly denoted by putting an arrow above its symbol, as in the picture above. Here are some 3-dimensional vectors:

Vectors , (0,0). 5. A vector is commonly denoted by putting an arrow above its symbol, as in the picture above. Here are some 3-dimensional vectors: Vectors 1-23-2018 I ll look t vectors from n lgeric point of view nd geometric point of view. Algericlly, vector is n ordered list of (usully) rel numers. Here re some 2-dimensionl vectors: (2, 3), ( )

More information

The Caucal Hierarchy of Infinite Graphs in Terms of Logic and Higher-order Pushdown Automata

The Caucal Hierarchy of Infinite Graphs in Terms of Logic and Higher-order Pushdown Automata The Cucl Hierrchy of Infinite Grphs in Terms of Logic nd Higher-order Pushdown Automt Arnud Cryol 1 nd Stefn Wöhrle 2 1 IRISA Rennes, Frnce rnud.cryol@iris.fr 2 Lehrstuhl für Informtik 7 RWTH Achen, Germny

More information

SWEN 224 Formal Foundations of Programming WITH ANSWERS

SWEN 224 Formal Foundations of Programming WITH ANSWERS T E W H A R E W Ā N A N G A O T E Ū P O K O O T E I K A A M Ā U I VUW V I C T O R I A UNIVERSITY OF WELLINGTON Time Allowed: 3 Hours EXAMINATIONS 2011 END-OF-YEAR SWEN 224 Forml Foundtions of Progrmming

More information

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2016

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2016 CS125 Lecture 12 Fll 2016 12.1 Nondeterminism The ide of nondeterministic computtions is to llow our lgorithms to mke guesses, nd only require tht they ccept when the guesses re correct. For exmple, simple

More information

Reasoning and programming. Lecture 5: Invariants and Logic. Boolean expressions. Reasoning. Examples

Reasoning and programming. Lecture 5: Invariants and Logic. Boolean expressions. Reasoning. Examples Chir of Softwre Engineering Resoning nd progrmming Einführung in die Progrmmierung Introduction to Progrmming Prof. Dr. Bertrnd Meyer Octoer 2006 Ferury 2007 Lecture 5: Invrints nd Logic Logic is the sis

More information

Finite Automata-cont d

Finite Automata-cont d Automt Theory nd Forml Lnguges Professor Leslie Lnder Lecture # 6 Finite Automt-cont d The Pumping Lemm WEB SITE: http://ingwe.inghmton.edu/ ~lnder/cs573.html Septemer 18, 2000 Exmple 1 Consider L = {ww

More information

More on automata. Michael George. March 24 April 7, 2014

More on automata. Michael George. March 24 April 7, 2014 More on utomt Michel George Mrch 24 April 7, 2014 1 Automt constructions Now tht we hve forml model of mchine, it is useful to mke some generl constructions. 1.1 DFA Union / Product construction Suppose

More information

STRUCTURE OF CONCURRENCY Ryszard Janicki. Department of Computing and Software McMaster University Hamilton, ON, L8S 4K1 Canada

STRUCTURE OF CONCURRENCY Ryszard Janicki. Department of Computing and Software McMaster University Hamilton, ON, L8S 4K1 Canada STRUCTURE OF CONCURRENCY Ryszrd Jnicki Deprtment of Computing nd Softwre McMster University Hmilton, ON, L8S 4K1 Cnd jnicki@mcmster.c 1 Introduction Wht is concurrency? How it cn e modelled? Wht re the

More information

Improper Integrals. Introduction. Type 1: Improper Integrals on Infinite Intervals. When we defined the definite integral.

Improper Integrals. Introduction. Type 1: Improper Integrals on Infinite Intervals. When we defined the definite integral. Improper Integrls Introduction When we defined the definite integrl f d we ssumed tht f ws continuous on [, ] where [, ] ws finite, closed intervl There re t lest two wys this definition cn fil to e stisfied:

More information

3 Regular expressions

3 Regular expressions 3 Regulr expressions Given n lphet Σ lnguge is set of words L Σ. So fr we were le to descrie lnguges either y using set theory (i.e. enumertion or comprehension) or y n utomton. In this section we shll

More information

Regular expressions, Finite Automata, transition graphs are all the same!!

Regular expressions, Finite Automata, transition graphs are all the same!! CSI 3104 /Winter 2011: Introduction to Forml Lnguges Chpter 7: Kleene s Theorem Chpter 7: Kleene s Theorem Regulr expressions, Finite Automt, trnsition grphs re ll the sme!! Dr. Neji Zgui CSI3104-W11 1

More information

RELATIONAL MODEL.

RELATIONAL MODEL. RELATIONAL MODEL Structure of Reltionl Dtbses Reltionl Algebr Tuple Reltionl Clculus Domin Reltionl Clculus Extended Reltionl-Algebr- Opertions Modifiction of the Dtbse Views EXAMPLE OF A RELATION BASIC

More information

Theory of Computation Regular Languages

Theory of Computation Regular Languages Theory of Computtion Regulr Lnguges Bow-Yw Wng Acdemi Sinic Spring 2012 Bow-Yw Wng (Acdemi Sinic) Regulr Lnguges Spring 2012 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of

More information

DFA minimisation using the Myhill-Nerode theorem

DFA minimisation using the Myhill-Nerode theorem DFA minimistion using the Myhill-Nerode theorem Johnn Högerg Lrs Lrsson Astrct The Myhill-Nerode theorem is n importnt chrcteristion of regulr lnguges, nd it lso hs mny prcticl implictions. In this chpter,

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 Automt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Problem (II) Chpter II.5.: Properties of Context Free Grmmrs (14) Anton Setzer (Bsed on book drft by J. V. Tucker nd K. Stephenson)

More information

The Quest for Perfect and Compact Symmetry Breaking for Graph Problems

The Quest for Perfect and Compact Symmetry Breaking for Graph Problems The Quest for Perfect nd Compct Symmetry Breking for Grph Prolems Mrijn J.H. Heule SYNASC Septemer 25, 2016 1/19 Stisfiility (SAT) solving hs mny pplictions... forml verifiction grph theory ioinformtics

More information

Polynomials and Division Theory

Polynomials and Division Theory Higher Checklist (Unit ) Higher Checklist (Unit ) Polynomils nd Division Theory Skill Achieved? Know tht polynomil (expression) is of the form: n x + n x n + n x n + + n x + x + 0 where the i R re the

More information

CS 330 Formal Methods and Models

CS 330 Formal Methods and Models CS 330 Forml Methods nd Models Dn Richrds, section 003, George Mson University, Fll 2017 Quiz Solutions Quiz 1, Propositionl Logic Dte: Septemer 7 1. Prove (p q) (p q), () (5pts) using truth tles. p q

More information

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University CS415 Compilers Lexicl Anlysis nd These slides re sed on slides copyrighted y Keith Cooper, Ken Kennedy & Lind Torczon t Rice University First Progrmming Project Instruction Scheduling Project hs een posted

More information

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh Lnguges nd Automt Finite Automt Informtics 2A: Lecture 3 John Longley School of Informtics University of Edinburgh jrl@inf.ed.c.uk 22 September 2017 1 / 30 Lnguges nd Automt 1 Lnguges nd Automt Wht is

More information

1 From NFA to regular expression

1 From NFA to regular expression Note 1: How to convert DFA/NFA to regulr expression Version: 1.0 S/EE 374, Fll 2017 Septemer 11, 2017 In this note, we show tht ny DFA cn e converted into regulr expression. Our construction would work

More information

Compiler Design. Fall Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz

Compiler Design. Fall Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz University of Southern Cliforni Computer Science Deprtment Compiler Design Fll Lexicl Anlysis Smple Exercises nd Solutions Prof. Pedro C. Diniz USC / Informtion Sciences Institute 4676 Admirlty Wy, Suite

More information

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS.

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS. THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS RADON ROSBOROUGH https://intuitiveexplntionscom/picrd-lindelof-theorem/ This document is proof of the existence-uniqueness theorem

More information

Homework 3 Solutions

Homework 3 Solutions CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 3 Solutions 1. Give NFAs with the specified numer of sttes recognizing ech of the following lnguges. In ll cses, the lphet is Σ = {,1}.

More information

Automata on Lempel-Ziv Compressed Strings

Automata on Lempel-Ziv Compressed Strings Automt on Lempel-Ziv Compressed Strings Hns Leiß 1 nd Michel de Rougemont 2 1 Universität München, CIS, D-80538 München, Germny, leiss@cis.uni-muenchen.de 2 Université Pris-II & LRI Bâtiment 490, F-91405

More information

Mathematics Number: Logarithms

Mathematics Number: Logarithms plce of mind F A C U L T Y O F E D U C A T I O N Deprtment of Curriculum nd Pedgogy Mthemtics Numer: Logrithms Science nd Mthemtics Eduction Reserch Group Supported y UBC Teching nd Lerning Enhncement

More information

Software Engineering using Formal Methods

Software Engineering using Formal Methods Softwre Engineering using Forml Methods Propositionl nd (Liner) Temporl Logic Wolfgng Ahrendt 13th Septemer 2016 SEFM: Liner Temporl Logic /GU 160913 1 / 60 Recpitultion: FormlistionFormlistion: Syntx,

More information