Learning Subregular Classes of Languages with Factored Deterministic Automata

Size: px
Start display at page:

Download "Learning Subregular Classes of Languages with Factored Deterministic Automata"

Transcription

1 Lerning Suregulr Clsses of Lnguges with Ftored Deterministi Automt Astrt This pper shows how ftored finitestte representtions of suregulr lnguge lsses re identifile in the limit from positive dt y lerners whih re polytime itertive nd optiml. These representtions re motivted in two wys. First, the size of this representtion for given regulr lnguge n e exponentilly smller thn the size of the miniml deterministi eptor reognizing the lnguge. Seond, these representtions (inluding the exponentilly smller ones) desrie tul forml lnguges whih suessfully model nturl lnguge phenomenon, notly in the sufield of phonology. 1 Introdution In this pper we show how to define ertin suregulr lsses of lnguges whih re identifile in the limit from positive dt (ILPD) y effiient, well-ehved lerners with lttie-strutured hypothesis spe (Heinz et l., 2012). It is shown tht every finite set of DFAs defines suh n ILPD lss. In this se, eh DFA n e viewed s one ftor in the desription of every lnguge in the lss. This ftoring of lnguge lsses into multiple DFA n provide ompt, nonil representtion of the grmmrs for every lnguge in the lss. Additionlly, mny suregulr lsses of lnguges n e lerned y the ove methods inluding the Lollyk-Testle, Stritlyk-Lol, Pieewise k-testle, nd Stritly k-pieewise lnguges (MNughton nd Ppert, 1971; Rogers nd Pullum, 2011; Rogers et l., 2010). From linguisti (nd ognitive) perspetive, these suregulr lsses re interesting euse they pper to e suffiient for modeling phonotti ptterns in humn lnguge (Heinz, 2010; Heinz et l., 2011; Rogers et l., to pper). 2 Preliminries For ny funtion f nd elementin the domin of f, we write f() if f() is defined, nd f() otherwise. Σ nd Σ k denote ll sequenes of ny finite length, nd of length k, over finite lphet Σ. The empty string is denoted λ. A lnguge L is suset of Σ. For ll x, y elonging to prtilly-ordered set (S, ), if x z nd y z then z is n upper ound ofxndy. For llx,y S, the lest upper ound (lu)x y = z iffx z,y z, nd for ll z whih upper ound x nd y, it is the se tht z z. An upper semi-lttie is prtilly ordered set (S, ) suh tht every suset of S hs lu. If S is finite, this is equivlent to the existene of x y for ll x,y S. A deterministi finite-stte utomton (DFA) is tuple (Q,Σ,q 0,F,δ). The sttes of the DFA re Q; the input lphet is Σ; the initil stte is q 0 ; the finl sttes re F ; nd δ : Q Σ Q is the trnsition funtion. The trnsition funtion s domin is extended to Q Σ in the usul wy. The lnguge of DFA is writtenl(a) nd equls {w Σ δ(q 0,w) F}. A DFA is trim iff ( q Q)[ w,v Σ δ(q 0,w) = q δ(q,v) F]. The empty DFA isa = (,Σ,q 0,, ). The DFA produt of A 1 = (Q 1,Σ,q 01,F 1,δ 1 ) nd A 2 = (Q 2,Σ,q 02,F 2,δ 2 ) is (A 1,A 2 ) = (Q,Σ,q 0,F,δ) whereq = Q 1 Q 2,q 0 = (q 01,q 02 ),F = F 1 F 2 nd [ ( q Q)( σ Σ) δ ( (q 1,q 2 ),σ ) = (q 1,q 2 ) δ 1 (q 1,σ) = q 1 δ 2(q 2,σ) = q 2 The DFA produt of two DFA is lso DFA. If the two DFA re trim, then their produt is s well. ].

2 The produt opertion is ssoitive nd ommuttive (up to isomorphism), nd so it n e pplied to finite set S of DFA, in whih se we write S = A S A (letting {A} = A). In this pper, grmmrs re finite sequenes of DFAs A = A 1 A n nd we lso use the nottion for the produt of finite sequene of DFAs: L( A) = L ( A A A). Sequenes re used insted of sets in order to mth ftors in two grmmrs. Let DFA denote the olletion of finite sequenes of DFAs. Theorem 1 is well-known. Theorem 1 Consider finite set of S of DFA. Then L ( A S A) = A S L(A). An importnt onsequene of Theorem 1 is tht some lnguges re exponentilly more omptly represented y their ftors. The grmmr A = {A 1 A n } hs 1 i n rd(q i) sttes, wheres the trimmed G n hve s mny s 1 i n rd(q i) Θ(mx 1 i n (rd(q i )) n ) sttes. 2.1 Identifition in the limit A positive text T for lnguge L is totl funtion T : N L {#} (# is puse ) suh tht w L, n N suh tht T(n) = w. Let T[i] denote the initil finite sequene T(0),T(1)...T(i 1). Let SEQ denote the set of ll finite initil portions of ll positive texts for ll possile lnguges. The ontent of n element T[i] of SEQ is ontent(t[i]) = {w Σ ( j i 1)[T(j) = w]}. In this pper, lerning lgorithms re progrms: φ : SEQ DFA. A lerner φ identifies in the limit from positive texts olletion of lnguges L if nd only if for ll L L, for ll positive texts T for L, there exists n n N suh tht for ll m n, φ(t[m]) = φ(t[n]) = G nd L(G) = L (see Gold (1967; Jin et l. (1999)). A lss of lnguges is ILPD iff it is identifile in the limit y suh lerner. 3 Clsses of ftorle-dfa lnguges In this setion, lsses of ftorle-dfa lnguges re introdued. The notion of su-dfa is entrl to this onept. Pitorilly, su-dfa is otined from DFA y removing zero or more sttes, trnsitions, nd/or revoking the finl sttus of zero or more finl sttes. Definition 1 For ny DFA A = (Q,Σ,q 0,F,δ), DFA A = (Q,Σ,q 0,F,δ ) is su-dfa of A, written A A, if nd only if Q Q, Σ Σ, q 0 = q 0, F F, δ δ. The su-dfa reltion is extended to grmmrs (sequenes of DFA). Let A = A 1 A n nd A = A 1 A n. Then A A ( 0 i n)[a i A i]. Clerly, if A A then L(A ) L(A). Every grmmr A determines lss of lnguges: those reognized y su-grmmr of A. Our interest is not inl( A), itself. Indeed, this will generlly eσ. Rther, we our interest is in identifying lnguges reltive to the lss of lnguges tht re reognizle y su-grmmrs of A. Definition 2 Let G( A) def = { B B A}, the lss of grmmrs tht re su-grmmrs of A. Let L( A) def = {L( B) B A}, the lss of lnguges reognized y su-grmmrs of A. A lss of lnguges is ftorle-dfa lss iff it isl( A) for some A. The set G( A) is neessrily finite, sine A is, so every lss L( A) is trivilly ILPD y lerning lgorithm tht systemtilly rules out grmmrs tht re inomptile with the text, ut this nïve lgorithm is prohiitively ineffiient. Our gol is to estlish tht the effiient generl lerning lgorithm given y Heinz et l. (2012) n e pplied to every lss of ftorle-dfa lnguges, nd tht this lss inludes mny of the well-known su-regulr lnguge lsses s well s lsses tht re, in prtiulr sense, mixtures of these. 4 A motivting exmple This setion desries the Stritly 2-Pieewise lnguges, whih motivtes the ftoriztion whih is t the hert of this nlysis Stritly Pieewise (SP) lnguges re hrterized in Rogers et l. (2010) nd re speil sulss of the Pieewise Testle lnguges (Simon, 1975). In ft SP re extly those lnguges losed under susequene. Every SP lnguge is the intersetion of finite set of omplements of priniple shuffle idels: where L SP def L = w S[SI(w)], S finite SI(w) def = {v Σ w = σ 1 σ k nd ( v 0,...,v k Σ )[v = v 0 σ 1 v 1 σ k v k ]} So v SI(w) iff w ours s susequene of v nd L SP iff there is finite set of strings for

3 ,,,,,,,,, Figure 1: The sequene of DFA A = A,A,A, where Σ = {,,} nd eh A σ epts Σ nd whose sttes distinguish whether σ hs yet ourred., ,,, , Figure 2: The produt A A A.

4 whihlinludes ll nd only those strings tht do not inlude those strings s susequenes. A lnguge is SP k iff it is generted y set of strings eh of whih is of length less thn or equl to k. Clerly, every SP lnguge is SP k for some k nd SP = 1 k N [SP k]. If w Σ nd w = k, then SI(w) = L(A w ) for DFA A w with no more thn k sttes. For exmple, if k = 2 nd Σ = {,,} nd, hene, w {,,} 2, then the miniml trim DFA reognizing SI(w) will e su-dfa (in whih one of the trnsitions from theσ 1 stte hs een removed) of one of the three DFA of Figure 1. Figure 1 shows A = A,A,A, where Σ = {,,} nd eh A σ is DFA epting Σ whose sttes distinguish whether σ hs yet ourred. Figure 2 shows A. Note tht every SP 2 lnguge over {,,} is L( B) for some B A. The lss of grmmrs of G( A) reognize slight extension of SP 2 over {,, } (whih inludes 1-Reverse Definite lnguges s well). Oserve tht 6 sttes re required to desrie A ut 8 sttes re required to desrie A. Let AΣ e the sequene of DFA with one DFA for eh letter in Σ, s in Figure 1. As rd(σ) inreses the numer of sttes of AΣ is 2 rd(σ) ut the numer of sttes in AΣ is 2 rd(σ). The numer of sttes in the produt, in this se, is exponentil in the numer of its ftors. The Stritly 2-Pieewise lnguges re urrently the strongest omputtionl hrteriztion 1 of long-distne phonotti ptterns in humn lnguges (Heinz, 2010). The size of the phonemi inventories 2 in the world s lnguges rnges from 11 to 140 (Mddieson, 1984). English hs out 40, depending on the dilet. The ft tht there re out neurons in humn rins (Willims nd Herrup, 1988), whih is out helps motivte interest in the more ompt, prllel representtion given y A Σ s opposed to the singulr representtion of the DFA AΣ. 1 See Heinz et l. (2011) for ompeting hrteriztions. 2 The mentl representtions of speeh sounds re lled phonemes, nd the phonemi inventory is the set of these representtions (Hyes, 2009). 5 Lerning ftorle lsses of lnguges In this setion, lsses of ftorle-dfa lnguges re shown to e nlyzle s finite lttie spes. By Theorem 6 of Heinz et l. (2012), every suh lss of lnguges n e identified in the limit from positive texts. Definition 3 (Joins) Let A = (Q,Σ,q 0,F,δ), A 1 = (Q 1,Σ,q 0,F 1,δ 1 ), A 2 = (Q 2,Σ,q 0,F 2,δ 2 ) suh tht A 1 A nd A 2 A. The join of A 1 nd A 2 is A 1 A 2 = (Q 1 Q 2,Σ,q 0,F 1 F 2,δ 1 δ 2 ). Similrly, for ll A = A1 A n, B = B 1 B n, nd C 2 = C 1 C n suh tht B A nd C A, the join of nd B nd C is B C = B 1 C 1 B n C n. Note tht the join of two su-dfa of A is lso su-dfa of A. Sine G( A) is finite, inry join suffies to define join of ny set of su-dfa of given DFA (s reursive inry joins). Let [S] e the join of the set of su-dfass. Lemm 1 The set of su-dfa of DFA A, ordered y, ({B A}, ), is n upper semilttie with the lest upper ound of set of S su-dfa of A eing their join. Similrly the set of su-grmmrs of grmmr A, ordered gin y,({ B A}, ), is n upper semi-lttie with the lest upper ound of set of su-grmmrs of A eing their join. This follows from the ft tht Q 1 Q 2 (similrly F 1 F 2 ndδ 1 δ 2 ) is the lu ofq 1 ndq 2 (et.) in the lttie of sets ordered y suset. 5.1 Pths nd Chisels Definition 4 For DFAA, the pth of wordw = σ 0 σ 1 σ n Σ inais the sequene π(a,w) = (q0,σ 0 ),(q 1,σ 1 ), (q n,σ n ),(q n+1,λ) where ( 0 i n)[q i+1 = δ(q i,σ i )] if δ(q 0,w) ; otherwise π(a,w). The set of sttes trversed in pth π will e denoted Q π, the trnsitions trversed δ π, nd if w L(A) then the set of finl sttes in the pthπisf π = {q n+1 } nd the empty set otherwise. Next, for ny DFA A, we define the hisel of word, whih ethes out pth within A iff w L(A) nd returns the su-dfa extly enompssing tht pth. Definition 5 For ny DFA A = (Q,Σ,q 0,F,δ) nd ll w Σ. The hisel of w

5 given A is the su-dfa C A (w) = (Q π(a,w),σ,q 0,F π(a,w),δ π(a,w) ) if w L(A); otherwise C A (w) = A. Consider ny A = A1 A n nd ny word w Σ. The hisel of w given A is C A (w) = C A 1 (w) C A1 (w). Oserve tht for ll words w nd ll A, C A (w) A nd tht C A (w) is trim. Using the join, the domin of the hisel is extended to sets of words: C A (S) = w S C A (w). Note tht {C A (w) w Σ } is finite, sine { B B A} is. Theorem 2 For ny grmmr A, let C( A) = {C A (S) S Σ }. Then (C( A), ) is n upper semi-lttie with the lu of two elements given y the join. Proof This follows immeditely from the finiteness of {C A (w) w Σ } nd Lemm 1. Lemm 2 For ll A = (Q,Σ,q 0,F,δ), there is finite set S Σ suh tht w S C A(w) = A. Similrly, for ll A = A 1 A n, there is finite set S Σ suh tht C A (S) = G. Proof For the first sttement, let S e the set of uσv where, for eh q Q nd for eh σ Σ, δ(q 0,u) = q nd δ(δ(q,σ),v) F suh tht uσv hs miniml length. By onstrution, S is finite. Furthermore, for every stte nd every trnsition in A, there is word in S whose pth touhes tht stte nd trnsition. By definition of it follows tht C A (S) = A. For proof of the seond sttement, A i ina, onstrut S i s stted nd tke their union. Heinz et l. (2012) define lttie spes. For n upper semi-lttie V nd funtion f : Σ V suh tht f nd re (totl) omputle, (V, f) is lled Lttie Spe (LS) iff, for eh v V, there exists finited rnge(f) with D = v. Theorem 3 For ll grmmrs A = A 1 A n, (C( A),C A ) is lttie spe. Proof For ll A C( A), y Lemm 2, there is finite S Σ suh tht w S C A (w) = A. For Heinz et l. (2012), elements of the lttie re grmmrs. Likewise, here, eh grmmr A = A 1 A n defines lttie whose elements re its su-grmmrs. Heinz et l. (2012) ssoite the lnguges of grmmr v in lttie spe (V,f) with{w Σ f(w) v}. This definition oinides with ours: for ny element A of C( A) (note A A), word w elongs to L( A ) if nd only if CA (w) is su-dfa of A. The lss of lnguges of LS is the olletion of lnguges otined y every element in the lttie. For every LS(C( A),C A ), we now define lerner φ ording to the onstrution in Heinz et l. (2012): T SEQ, φ(t) = w ontent(t) C A (w). Let L (C( A),C A ) denote the lss of lnguges ssoited with the LS in Theorem 3. Aording to Heinz et l. (2012, Theorem 6), the lerner φ identifies L (C( A),CvA) in the limit from positive dt. Furthermore, φ is polytime itertive, i.e n ompute the next hypothesis in polytime from the previous hypothesis lone, nd optiml in the sense tht no other lerner onverges more quikly on lnguges in L (C( A),C G ). In ddition, this lerner is glolly-onsistent, lolly-onservtive, strongly-monotone, nd prudent. Forml definitions of these terms re given in Heinz et l. (2012) nd n lso e found elsewhere, e.g. (Jin et l., 1999). 6 Complexity onsidertions The spe of su-grmmrs of given sequene of DFAs is neessrily finite nd, thus, identifile in the limit from positive dt y nïve lerner tht simply enumertes the spe of grmmrs. The lttie lerning lgorithm hs etter effiieny euse it works ottom-up, extending the grmmr minimlly, t eh step, with the hisel of the urrent string of the text. The lttie lerner never explores ny prt of the spe of grmmrs tht is not su-grmmr of the orret one nd, s it never moves down in the lttie, it will skip muh of the spe of grmmrs tht re su-grmmrs of the orret one. The spe it explores will e miniml, given the text it is running on. Generliztion is result of the ft tht in extending the grmmr for string the lerner dds its entire Nerode equivlene lss to the lnguge. The time omplexity of either lerning or reognition with the ftored utomt my tully e somewht worse thn the omplexity of doing so with its produt. Computing the hisel of string w in the produt mhine of Figure 2 is Θ( w ), while in the ftored mhine of Figure 1 one must ompute the hisel in eh ftor nd its omplexity is, thus, Θ( w rd(σ) k 1 ). But Σ nd k re

6 fixed for given ftoriztion, so this works out to e onstnt ftor. Where the ftoriztion mkes sustntil differene is in the numer of fetures tht must e lerned. In the ftored grmmr of the exmple, the totl numer of sttes plus edges is Θ(krd(Σ) k 1 ), while in its produt it is Θ(2 (rd(σ)k 1) ). This represents n exponentil improvement in the spe omplexity of the ftored grmmr. Every DFA n e ftored in mny wys, ut the ftoriztions do not, neessrily provide n symptotilly signifint improvement in spe omplexity. The nonil ontrst is etween sequenes of utomt A 1,...,A n tht ount modulo some sequene of m i N. If the m i re pirwise prime, the produt will require 1 i n [m i] = Θ((mx i [m i ]) n ) sttes. If on the other hnd, they re ll multiples of eh other it will require just Θ(mx i [m i ]). 7 Exmples Ftored grmmrs in whih eh ftor reognizes Σ, s in the se of Figure 1, re of prtiulr interest. Every su-str-free lss of lnguges in whih the prmeters of the lss (k, for exmple) re fixed n e ftored in this wy. 3 If the prmeters re not fixed nd the lss of lnguges is not finite, none of these lsses n e identified in the limit from positive dt t ll. 4 So this pproh is potentilly useful t lest for ll su-str-free. The lerners for non-strit lsses re prtil, however, only for smll vlues of the prmeters. So tht leves the Stritly Lol SL k nd Stritly Pieewise SP k lnguges s the ovious trgets. The SL k lnguges re those tht re determined y the sustrings of length no greter thn k tht our within the string (inluding endmrkers). These n e ftored on the sis of those sustrings, just s the SP k lnguges n, lthough the onstrution is somewht more omplex. (See the Knuth-Morris-Prtt lgorithm (Knuth et l., 1977) for wy of doing this.) But SL k is se in 3 We onjeture tht there is prmeterized lss of lnguges tht is equivlent to the Str-Free lnguges, whih would mke tht lss lernle in this wy s well. 4 For most of these lsses, inluding the Definite, Reverse-Definite nd Stritly Lol lsses nd their super lsses, this is immedite from the ft tht they re superfinite. SP, on the other hnd, is not super-finite (sine it does not inlude ll finite lnguges) ut it is, nevertheless not IPLD. whih there is no omplexity dvntge in ftoring the DFA. This is euse every SL k lnguge is reognized y DFA tht is Myhill grph: with stte for eh string of Σ <k (i.e., of length less thn k). Suh grph hs Θ(rd(Σ) k 1 ) sttes, symptotilly the sme s the numer of sttes in the ftored grmmr, whih is tully mrginlly worse. Therefore, ftored SL k grmmrs re not, in themselves, interesting. But they re interesting s ftors of other grmmrs. Let(SL+SP) k,l (resp. (LT + SP) k,l, (SL + PT) k,l ) e the lss of lnguges tht re intersetions of SL k nd SP l (resp. LT k nd SP l, SL k nd PT l ) lnguges. Where LT (PT) lnguges re determined y the set of sustrings (susequenes) tht our in the string. These lsses re of prtiulr interest in phonottis. They re linguistilly well-motivted pprohes to modeling phonottis nd they re suffiiently powerful to model most phonotti ptterns. The results of Heinz (2007) nd Heinz (2010) strongly suggest tht nerly ll segmentl ptterns re(sl+sp) k,l for smll k nd l. Moreover, roughly 72% of the stress ptterns tht re inluded in Heinz s dtse (Phonology L, 2012) of ptterns tht hve een ttested in nturl lnguge n e modeled with SL k grmmrs with k 6. Of the rest, ll ut four re LT 1 + SP 4 nd ll ut two re LT 2 + SP 4. Both of these lst two re properly regulr (Wiel et l., ). 8 Conlusion We hve shown how suregulr lsses of lnguges n e lerned over ftored representtions, whih n e exponentilly more ompt thn representtions with single DFA. Essentilly, words in the dt presenttion re pssed through eh ftor, tivting the prts touhed. This pproh immeditely llows one to nturlly mix well-hrterized lernle suregulr lsses in suh wy tht the resulting lnguge lss is lso lernle. While this mixing is prtly motivted y the different kinds of phonotti ptterns in nturl lnguge, it lso suggests very interesting theoretil possiility. Speifilly, we ntiipte tht the right prmeteriztion of these well-studied suregulr lsses will over the lss of str-free lnguges. Future work ould lso inlude extending the urrent nlysis to ftoring stohsti lnguges, perhps in wy tht onnets with erlier reserh on ftored HMMs

7 (Ghhrmni nd Jordn, 1997). Referenes Zouin Ghhrmni nd Mihel I. Jordn Ftoril hidden mrkov models. Mhine Lerning, 29(2): E.M. Gold Lnguge identifition in the limit. Informtion nd Control, 10: Brue Hyes Introdutory Phonology. Wiley- Blkwell. Jeffrey Heinz, Chetn Rwl, nd Herert G. Tnner Tier-sed stritly lol onstrints for phonology. In Proeedings of the 49th Annul Meeting of the Assoition for Computtionl Linguistis, pges 58 64, Portlnd, Oregon, USA, June. Assoition for Computtionl Linguistis. Jmes Rogers, Jeffrey Heinz, Mrgret Fero, Jeremy Hurst, Dkoth Lmert, nd Sen Wiel. to pper. Cognitive nd su-regulr omplexity. In Proeedings of the 17th Conferene on Forml Grmmr. Imre Simon Pieewise testle events. In Automt Theory nd Forml Lnguges: 2nd Grmmtil Inferene onferene, pges , Berlin. Springer-Verlg. Sen Wiel, Jmes Rogers, nd Jeffery Heinz. Ftoring of stress ptterns. In preprtion. R.W. Willims nd K. Herrup The ontrol of neuron numer. Annul Review of Neurosiene, 11: Jeffrey Heinz, Ann Ksprzik, nd Timo Kötzing Lerning with lttie-strutured hypothesis spes. Theoretil Computer Siene, 457: , Otoer. Jeffrey Heinz The Indutive Lerning of Phonotti Ptterns. Ph.D. thesis, University of Cliforni, Los Angeles. Jeffrey Heinz Lerning long-distne phonottis. Linguisti Inquiry, 41(4): Snjy Jin, Dniel Osherson, Jmes S. Royer, nd Arun Shrm Systems Tht Lern: An Introdution to Lerning Theory (Lerning, Development nd Coneptul Chnge). The MIT Press, 2nd edition. Donld Knuth, Jmes H Morris, nd Vughn Prtt Fst pttern mthing in strings. SIAM Journl on Computing, 6(2): In Mddieson Ptterns of Sounds. Cmridge University Press, Cmridge, UK. Roert MNughton nd Seymour Ppert Counter-Free Automt. MIT Press. UD Phonology L UD phonology l stress pttern dtse. ogsi.udel.edu/ds/stress. Aessed Deemer Jmes Rogers nd Geoffrey Pullum Aurl pttern reognition experiments nd the suregulr hierrhy. Journl of Logi, Lnguge nd Informtion, 20: Jmes Rogers, Jeffrey Heinz, Gil Biley, Mtt Edlefsen, Molly Vissher, Dvid Wellome, nd Sen Wiel On lnguges pieewise testle in the strit sense. In Christin Eert, Gerhrd Jäger, nd Jens Mihelis, editors, The Mthemtis of Lnguge, volume 6149 of Leture Notes in Artifil Intelligene, pges Springer.

Learning Subregular Classes of Languages with Factored Deterministic Automata

Learning Subregular Classes of Languages with Factored Deterministic Automata Lerning Suregulr Clsses of Lnguges with Ftored Deterministi Automt Jeffrey Heinz Dept. of Linguistis nd Cognitive Siene University of Delwre heinz@udel.edu Jmes Rogers Dept. of Computer Siene Erlhm College

More information

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution Tehnishe Universität Münhen Winter term 29/ I7 Prof. J. Esprz / J. Křetínský / M. Luttenerger. Ferur 2 Solution Automt nd Forml Lnguges Homework 2 Due 5..29. Exerise 2. Let A e the following finite utomton:

More information

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6 CS311 Computtionl Strutures Regulr Lnguges nd Regulr Grmmrs Leture 6 1 Wht we know so fr: RLs re losed under produt, union nd * Every RL n e written s RE, nd every RE represents RL Every RL n e reognized

More information

CS 573 Automata Theory and Formal Languages

CS 573 Automata Theory and Formal Languages Non-determinism Automt Theory nd Forml Lnguges Professor Leslie Lnder Leture # 3 Septemer 6, 2 To hieve our gol, we need the onept of Non-deterministi Finite Automton with -moves (NFA) An NFA is tuple

More information

NON-DETERMINISTIC FSA

NON-DETERMINISTIC FSA Tw o types of non-determinism: NON-DETERMINISTIC FS () Multiple strt-sttes; strt-sttes S Q. The lnguge L(M) ={x:x tkes M from some strt-stte to some finl-stte nd ll of x is proessed}. The string x = is

More information

Nondeterministic Automata vs Deterministic Automata

Nondeterministic Automata vs Deterministic Automata Nondeterministi Automt vs Deterministi Automt We lerned tht NFA is onvenient model for showing the reltionships mong regulr grmmrs, FA, nd regulr expressions, nd designing them. However, we know tht n

More information

An algebraic characterization of strictly piecewise languages

An algebraic characterization of strictly piecewise languages An lgeri hrteriztion of stritly pieewise lnguges Jie Fu, Jeffrey Heinz, nd Herert G. Tnner University of Delwre jiefu,heinz,tnner@udel.edu Astrt. This pper provides n lgeri hrteriztion of the Stritly Pieewise

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

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS The University of ottinghm SCHOOL OF COMPUTR SCIC A LVL 2 MODUL, SPRIG SMSTR 2015 2016 MACHIS AD THIR LAGUAGS ASWRS Time llowed TWO hours Cndidtes my omplete the front over of their nswer ook nd sign their

More information

Estimating Strictly Piecewise Distributions

Estimating Strictly Piecewise Distributions Estimting Stritly Pieewise Distriutions Jeffrey Heinz University of Delwre Newrk, Delwre, USA heinz@udel.edu Jmes Rogers Erlhm College Rihmond, Indin, USA jrogers@qurk.s.erlhm.edu Astrt Stritly Pieewise

More information

Data Structures and Algorithm. Xiaoqing Zheng

Data Structures and Algorithm. Xiaoqing Zheng Dt Strutures nd Algorithm Xioqing Zheng zhengxq@fudn.edu.n String mthing prolem Pttern P ours with shift s in text T (or, equivlently, tht pttern P ours eginning t position s + in text T) if T[s +... s

More information

Compression of Palindromes and Regularity.

Compression of Palindromes and Regularity. Compression of Plinromes n Regulrity. Kyoko Shikishim-Tsuji Center for Lierl Arts Eution n Reserh Tenri University 1 Introution In [1], property of likstrem t t view of tse is isusse n it is shown tht

More information

Nondeterministic Finite Automata

Nondeterministic Finite Automata Nondeterministi Finite utomt The Power of Guessing Tuesdy, Otoer 4, 2 Reding: Sipser.2 (first prt); Stoughton 3.3 3.5 S235 Lnguges nd utomt eprtment of omputer Siene Wellesley ollege Finite utomton (F)

More information

General Suffix Automaton Construction Algorithm and Space Bounds

General Suffix Automaton Construction Algorithm and Space Bounds Generl Suffix Automton Constrution Algorithm nd Spe Bounds Mehryr Mohri,, Pedro Moreno, Eugene Weinstein, Cournt Institute of Mthemtil Sienes 251 Merer Street, New York, NY 10012. Google Reserh 76 Ninth

More information

= state, a = reading and q j

= state, a = reading and q j 4 Finite Automt CHAPTER 2 Finite Automt (FA) (i) Derterministi Finite Automt (DFA) A DFA, M Q, q,, F, Where, Q = set of sttes (finite) q Q = the strt/initil stte = input lphet (finite) (use only those

More information

Finite State Automata and Determinisation

Finite State Automata and Determinisation Finite Stte Automt nd Deterministion Tim Dworn Jnury, 2016 Lnguges fs nf re df Deterministion 2 Outline 1 Lnguges 2 Finite Stte Automt (fs) 3 Non-deterministi Finite Stte Automt (nf) 4 Regulr Expressions

More information

2.4 Theoretical Foundations

2.4 Theoretical Foundations 2 Progrmming Lnguge Syntx 2.4 Theoretil Fountions As note in the min text, snners n prsers re se on the finite utomt n pushown utomt tht form the ottom two levels of the Chomsky lnguge hierrhy. At eh level

More information

Regular languages refresher

Regular languages refresher Regulr lnguges refresher 1 Regulr lnguges refresher Forml lnguges Alphet = finite set of letters Word = sequene of letter Lnguge = set of words Regulr lnguges defined equivlently y Regulr expressions Finite-stte

More information

Project 6: Minigoals Towards Simplifying and Rewriting Expressions

Project 6: Minigoals Towards Simplifying and Rewriting Expressions MAT 51 Wldis Projet 6: Minigols Towrds Simplifying nd Rewriting Expressions The distriutive property nd like terms You hve proly lerned in previous lsses out dding like terms ut one prolem with the wy

More information

Algorithms & Data Structures Homework 8 HS 18 Exercise Class (Room & TA): Submitted by: Peer Feedback by: Points:

Algorithms & Data Structures Homework 8 HS 18 Exercise Class (Room & TA): Submitted by: Peer Feedback by: Points: Eidgenössishe Tehnishe Hohshule Zürih Eole polytehnique fédérle de Zurih Politenio federle di Zurigo Federl Institute of Tehnology t Zurih Deprtement of Computer Siene. Novemer 0 Mrkus Püshel, Dvid Steurer

More information

Prefix-Free Regular-Expression Matching

Prefix-Free Regular-Expression Matching Prefix-Free Regulr-Expression Mthing Yo-Su Hn, Yjun Wng nd Derik Wood Deprtment of Computer Siene HKUST Prefix-Free Regulr-Expression Mthing p.1/15 Pttern Mthing Given pttern P nd text T, find ll sustrings

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

Descriptional Complexity of Non-Unary Self-Verifying Symmetric Difference Automata

Descriptional Complexity of Non-Unary Self-Verifying Symmetric Difference Automata Desriptionl Complexity of Non-Unry Self-Verifying Symmetri Differene Automt Lurette Mris 1,2 nd Lynette vn Zijl 1 1 Deprtment of Computer Siene, Stellenosh University, South Afri 2 Merk Institute, CSIR,

More information

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b CS 294-2 9/11/04 Quntum Ciruit Model, Solovy-Kitev Theorem, BQP Fll 2004 Leture 4 1 Quntum Ciruit Model 1.1 Clssil Ciruits - Universl Gte Sets A lssil iruit implements multi-output oolen funtion f : {0,1}

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

Introduction to Olympiad Inequalities

Introduction to Olympiad Inequalities Introdution to Olympid Inequlities Edutionl Studies Progrm HSSP Msshusetts Institute of Tehnology Snj Simonovikj Spring 207 Contents Wrm up nd Am-Gm inequlity 2. Elementry inequlities......................

More information

Discrete Structures Lecture 11

Discrete Structures Lecture 11 Introdution Good morning. In this setion we study funtions. A funtion is mpping from one set to nother set or, perhps, from one set to itself. We study the properties of funtions. A mpping my not e funtion.

More information

Lecture Notes No. 10

Lecture Notes No. 10 2.6 System Identifition, Estimtion, nd Lerning Leture otes o. Mrh 3, 26 6 Model Struture of Liner ime Invrint Systems 6. Model Struture In representing dynmil system, the first step is to find n pproprite

More information

Grammar. Languages. Content 5/10/16. Automata and Languages. Regular Languages. Regular Languages

Grammar. Languages. Content 5/10/16. Automata and Languages. Regular Languages. Regular Languages 5//6 Grmmr Automt nd Lnguges Regulr Grmmr Context-free Grmmr Context-sensitive Grmmr Prof. Mohmed Hmd Softwre Engineering L. The University of Aizu Jpn Regulr Lnguges Context Free Lnguges Context Sensitive

More information

6.5 Improper integrals

6.5 Improper integrals Eerpt from "Clulus" 3 AoPS In. www.rtofprolemsolving.om 6.5. IMPROPER INTEGRALS 6.5 Improper integrls As we ve seen, we use the definite integrl R f to ompute the re of the region under the grph of y =

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

Bisimulation, Games & Hennessy Milner logic

Bisimulation, Games & Hennessy Milner logic Bisimultion, Gmes & Hennessy Milner logi Leture 1 of Modelli Mtemtii dei Proessi Conorrenti Pweł Soboiński Univeristy of Southmpton, UK Bisimultion, Gmes & Hennessy Milner logi p.1/32 Clssil lnguge theory

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

Abstraction of Nondeterministic Automata Rong Su

Abstraction of Nondeterministic Automata Rong Su Astrtion of Nondeterministi Automt Rong Su My 6, 2010 TU/e Mehnil Engineering, Systems Engineering Group 1 Outline Motivtion Automton Astrtion Relevnt Properties Conlusions My 6, 2010 TU/e Mehnil Engineering,

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

arxiv: v1 [cs.fl] 13 Oct 2010

arxiv: v1 [cs.fl] 13 Oct 2010 Regulr Expressions, u point Andre Asperti Deprtment of Computer Siene, University of Bologn Mur Anteo Zmoni 7, 40127, Bologn, ITALY sperti@s.unio.it Cludio Serdoti Coen Deprtment of Computer Siene, University

More information

A Lower Bound for the Length of a Partial Transversal in a Latin Square, Revised Version

A Lower Bound for the Length of a Partial Transversal in a Latin Square, Revised Version A Lower Bound for the Length of Prtil Trnsversl in Ltin Squre, Revised Version Pooy Htmi nd Peter W. Shor Deprtment of Mthemtil Sienes, Shrif University of Tehnology, P.O.Bo 11365-9415, Tehrn, Irn Deprtment

More information

INTEGRATION. 1 Integrals of Complex Valued functions of a REAL variable

INTEGRATION. 1 Integrals of Complex Valued functions of a REAL variable INTEGRATION NOTE: These notes re supposed to supplement Chpter 4 of the online textbook. 1 Integrls of Complex Vlued funtions of REAL vrible If I is n intervl in R (for exmple I = [, b] or I = (, b)) nd

More information

11.1 Finite Automata. CS125 Lecture 11 Fall Motivation: TMs without a tape: maybe we can at least fully understand such a simple model?

11.1 Finite Automata. CS125 Lecture 11 Fall Motivation: TMs without a tape: maybe we can at least fully understand such a simple model? CS125 Lecture 11 Fll 2016 11.1 Finite Automt Motivtion: TMs without tpe: mybe we cn t lest fully understnd such simple model? Algorithms (e.g. string mtching) Computing with very limited memory Forml verifiction

More information

Finite-State Automata: Recap

Finite-State Automata: Recap Finite-Stte Automt: Recp Deepk D Souz Deprtment of Computer Science nd Automtion Indin Institute of Science, Bnglore. 09 August 2016 Outline 1 Introduction 2 Forml Definitions nd Nottion 3 Closure under

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

Symmetrical Components 1

Symmetrical Components 1 Symmetril Components. Introdution These notes should e red together with Setion. of your text. When performing stedy-stte nlysis of high voltge trnsmission systems, we mke use of the per-phse equivlent

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

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

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

Learning Partially Observable Markov Models from First Passage Times

Learning Partially Observable Markov Models from First Passage Times Lerning Prtilly Oservle Mrkov s from First Pssge s Jérôme Cllut nd Pierre Dupont Europen Conferene on Mhine Lerning (ECML) 8 Septemer 7 Outline. FPT in models nd sequenes. Prtilly Oservle Mrkov s (POMMs).

More information

Subsequence Automata with Default Transitions

Subsequence Automata with Default Transitions Susequene Automt with Defult Trnsitions Philip Bille, Inge Li Gørtz, n Freerik Rye Skjoljensen Tehnil University of Denmrk {phi,inge,fskj}@tu.k Astrt. Let S e string of length n with hrters from n lphet

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

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

On Implicative and Strong Implicative Filters of Lattice Wajsberg Algebras

On Implicative and Strong Implicative Filters of Lattice Wajsberg Algebras Glol Journl of Mthemtil Sienes: Theory nd Prtil. ISSN 974-32 Volume 9, Numer 3 (27), pp. 387-397 Interntionl Reserh Pulition House http://www.irphouse.om On Implitive nd Strong Implitive Filters of Lttie

More information

Lecture 6: Coding theory

Lecture 6: Coding theory Leture 6: Coing theory Biology 429 Crl Bergstrom Ferury 4, 2008 Soures: This leture loosely follows Cover n Thoms Chpter 5 n Yeung Chpter 3. As usul, some of the text n equtions re tken iretly from those

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

22: Union Find. CS 473u - Algorithms - Spring April 14, We want to maintain a collection of sets, under the operations of:

22: Union Find. CS 473u - Algorithms - Spring April 14, We want to maintain a collection of sets, under the operations of: 22: Union Fin CS 473u - Algorithms - Spring 2005 April 14, 2005 1 Union-Fin We wnt to mintin olletion of sets, uner the opertions of: 1. MkeSet(x) - rete set tht ontins the single element x. 2. Fin(x)

More information

s the set of onsequenes. Skeptil onsequenes re more roust in the sense tht they hold in ll possile relities desried y defult theory. All its desirle p

s the set of onsequenes. Skeptil onsequenes re more roust in the sense tht they hold in ll possile relities desried y defult theory. All its desirle p Skeptil Rtionl Extensions Artur Mikitiuk nd Miros lw Truszzynski University of Kentuky, Deprtment of Computer Siene, Lexington, KY 40506{0046, frtur mirekg@s.engr.uky.edu Astrt. In this pper we propose

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

Pure 2D Context-free Puzzle P system with Conditional Communication

Pure 2D Context-free Puzzle P system with Conditional Communication IOSR Journl of Mthemtis (IOSR-JM) e-issn: 78-578 p-issn: 39-765X. Volume 0 Issue 6 Ver. III (Nov - De. 04) PP 06- www.iosrjournls.org Pure D Context-free Puzzle P system with Conditionl Communition S.Hemlth

More information

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

Compiler Design. Spring Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz University of Southern Cliforni Computer Siene Deprtment Compiler Design Spring 7 Lexil Anlysis Smple Exerises nd Solutions Prof. Pedro C. Diniz USC / Informtion Sienes Institute 47 Admirlty Wy, Suite

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

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

CONTROLLABILITY and observability are the central

CONTROLLABILITY and observability are the central 1 Complexity of Infiml Oservle Superlnguges Tomáš Msopust Astrt The infiml prefix-losed, ontrollle nd oservle superlnguge plys n essentil role in the reltionship etween ontrollility, oservility nd o-oservility

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

@#? Text Search ] { "!" Nondeterministic Finite Automata. Transformation NFA to DFA and Simulation of NFA. Text Search Using Automata

@#? Text Search ] { ! Nondeterministic Finite Automata. Transformation NFA to DFA and Simulation of NFA. Text Search Using Automata g Text Serh @#? ~ Mrko Berezovský Rdek Mřík PAL 0 Nondeterministi Finite Automt n Trnsformtion NFA to DFA nd Simultion of NFA f Text Serh Using Automt A B R Power of Nondeterministi Approh u j Regulr Expression

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

LIP. Laboratoire de l Informatique du Parallélisme. Ecole Normale Supérieure de Lyon

LIP. Laboratoire de l Informatique du Parallélisme. Ecole Normale Supérieure de Lyon LIP Lortoire de l Informtique du Prllélisme Eole Normle Supérieure de Lyon Institut IMAG Unité de reherhe ssoiée u CNRS n 1398 One-wy Cellulr Automt on Cyley Grphs Zsuzsnn Rok Mrs 1993 Reserh Report N

More information

Computational Biology Lecture 18: Genome rearrangements, finding maximal matches Saad Mneimneh

Computational Biology Lecture 18: Genome rearrangements, finding maximal matches Saad Mneimneh Computtionl Biology Leture 8: Genome rerrngements, finding miml mthes Sd Mneimneh We hve seen how to rerrnge genome to otin nother one sed on reversls nd the knowledge of the preserved loks or genes. Now

More information

Part 4. Integration (with Proofs)

Part 4. Integration (with Proofs) Prt 4. Integrtion (with Proofs) 4.1 Definition Definition A prtition P of [, b] is finite set of points {x 0, x 1,..., x n } with = x 0 < x 1

More information

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides. 1 PYTHAGORAS THEOREM 1 1 Pythgors Theorem In this setion we will present geometri proof of the fmous theorem of Pythgors. Given right ngled tringle, the squre of the hypotenuse is equl to the sum of the

More information

Spacetime and the Quantum World Questions Fall 2010

Spacetime and the Quantum World Questions Fall 2010 Spetime nd the Quntum World Questions Fll 2010 1. Cliker Questions from Clss: (1) In toss of two die, wht is the proility tht the sum of the outomes is 6? () P (x 1 + x 2 = 6) = 1 36 - out 3% () P (x 1

More information

System Validation (IN4387) November 2, 2012, 14:00-17:00

System Validation (IN4387) November 2, 2012, 14:00-17:00 System Vlidtion (IN4387) Novemer 2, 2012, 14:00-17:00 Importnt Notes. The exmintion omprises 5 question in 4 pges. Give omplete explntion nd do not onfine yourself to giving the finl nswer. Good luk! Exerise

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

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

CMSC 330: Organization of Programming Languages

CMSC 330: Organization of Programming Languages CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 CMSC 330 1 Types of Finite Automt Deterministic Finite Automt (DFA) Exctly one sequence of steps for ech string All exmples so fr Nondeterministic

More information

Model Reduction of Finite State Machines by Contraction

Model Reduction of Finite State Machines by Contraction Model Reduction of Finite Stte Mchines y Contrction Alessndro Giu Dip. di Ingegneri Elettric ed Elettronic, Università di Cgliri, Pizz d Armi, 09123 Cgliri, Itly Phone: +39-070-675-5892 Fx: +39-070-675-5900

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

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

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

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2 CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 Types of Finite Automt Deterministic Finite Automt () Exctly one sequence of steps for ech string All exmples so fr Nondeterministic Finite Automt

More information

Line Integrals and Entire Functions

Line Integrals and Entire Functions Line Integrls nd Entire Funtions Defining n Integrl for omplex Vlued Funtions In the following setions, our min gol is to show tht every entire funtion n be represented s n everywhere onvergent power series

More information

A Disambiguation Algorithm for Finite Automata and Functional Transducers

A Disambiguation Algorithm for Finite Automata and Functional Transducers A Dismigution Algorithm for Finite Automt n Funtionl Trnsuers Mehryr Mohri Cournt Institute of Mthemtil Sienes n Google Reserh 51 Merer Street, New York, NY 1001, USA Astrt. We present new ismigution lgorithm

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

Java II Finite Automata I

Java II Finite Automata I Jv II Finite Automt I Bernd Kiefer Bernd.Kiefer@dfki.de Deutsches Forschungszentrum für künstliche Intelligenz Finite Automt I p.1/13 Processing Regulr Expressions We lredy lerned out Jv s regulr expression

More information

Supervisory Control under Partial Observation

Supervisory Control under Partial Observation Supervisory Control under Prtil Observtion Dr Rong Su S1-B1b-59, Shool of EEE Nnyng Tehnologil University Tel: +65 6790-6042, Emil: rsu@ntu.edu.sg EE6226 Disrete Event Dynmi Systems 1 Outline Motivtion

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

State Minimization for DFAs

State Minimization for DFAs Stte Minimiztion for DFAs Red K & S 2.7 Do Homework 10. Consider: Stte Minimiztion 4 5 Is this miniml mchine? Step (1): Get rid of unrechle sttes. Stte Minimiztion 6, Stte is unrechle. Step (2): Get rid

More information

Chapter 4 State-Space Planning

Chapter 4 State-Space Planning Leture slides for Automted Plnning: Theory nd Prtie Chpter 4 Stte-Spe Plnning Dn S. Nu CMSC 722, AI Plnning University of Mrylnd, Spring 2008 1 Motivtion Nerly ll plnning proedures re serh proedures Different

More information

8 THREE PHASE A.C. CIRCUITS

8 THREE PHASE A.C. CIRCUITS 8 THREE PHSE.. IRUITS The signls in hpter 7 were sinusoidl lternting voltges nd urrents of the so-lled single se type. n emf of suh type n e esily generted y rotting single loop of ondutor (or single winding),

More information

Génération aléatoire uniforme pour les réseaux d automates

Génération aléatoire uniforme pour les réseaux d automates Génértion létoire uniforme pour les réseux d utomtes Niols Bsset (Trvil ommun ve Mihèle Sori et Jen Miresse) Université lire de Bruxelles Journées Alé 2017 1/25 Motivtions (1/2) p q Automt re omni-present

More information

Non-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1

Non-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1 Non-Deterministic Finite Automt Fll 2018 Costs Busch - RPI 1 Nondeterministic Finite Automton (NFA) Alphbet ={} q q2 1 q 0 q 3 Fll 2018 Costs Busch - RPI 2 Nondeterministic Finite Automton (NFA) Alphbet

More information

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

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2014 CS125 Lecture 12 Fll 2014 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

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb.

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb. CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 Types of Finite Automt Deterministic Finite Automt () Exctly one sequence of steps for ech string All exmples so fr Nondeterministic Finite Automt

More information

Hybrid Systems Modeling, Analysis and Control

Hybrid Systems Modeling, Analysis and Control Hyrid Systems Modeling, Anlysis nd Control Rdu Grosu Vienn University of Tehnology Leture 5 Finite Automt s Liner Systems Oservility, Rehility nd More Miniml DFA re Not Miniml NFA (Arnold, Diky nd Nivt

More information

CHENG Chun Chor Litwin The Hong Kong Institute of Education

CHENG Chun Chor Litwin The Hong Kong Institute of Education PE-hing Mi terntionl onferene IV: novtion of Mthemtis Tehing nd Lerning through Lesson Study- onnetion etween ssessment nd Sujet Mtter HENG hun hor Litwin The Hong Kong stitute of Edution Report on using

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

Petri Nets. Rebecca Albrecht. Seminar: Automata Theory Chair of Software Engeneering

Petri Nets. Rebecca Albrecht. Seminar: Automata Theory Chair of Software Engeneering Petri Nets Ree Alreht Seminr: Automt Theory Chir of Softwre Engeneering Overview 1. Motivtion: Why not just using finite utomt for everything? Wht re Petri Nets nd when do we use them? 2. Introdution:

More information

QUADRATIC EQUATION. Contents

QUADRATIC EQUATION. Contents QUADRATIC EQUATION Contents Topi Pge No. Theory 0-04 Exerise - 05-09 Exerise - 09-3 Exerise - 3 4-5 Exerise - 4 6 Answer Key 7-8 Syllus Qudrti equtions with rel oeffiients, reltions etween roots nd oeffiients,

More information

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

State Complexity of Union and Intersection of Binary Suffix-Free Languages

State Complexity of Union and Intersection of Binary Suffix-Free Languages Stte Complexity of Union nd Intersetion of Binry Suffix-Free Lnguges Glin Jirásková nd Pvol Olejár Slovk Ademy of Sienes nd Šfárik University, Košie 0000 1111 0000 1111 Glin Jirásková nd Pvol Olejár Binry

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

Ling 3701H / Psych 3371H: Lecture Notes 9 Hierarchic Sequential Prediction

Ling 3701H / Psych 3371H: Lecture Notes 9 Hierarchic Sequential Prediction Ling 3701H / Psyh 3371H: Leture Notes 9 Hierrhi Sequentil Predition Contents 9.1 Complex events.................................... 1 9.2 Reognition of omplex events using event frgments................

More information