Compression vs Queryability - A Case Study

Size: px
Start display at page:

Download "Compression vs Queryability - A Case Study"

Transcription

1 Compression vs Queryility - A Cse Stuy Siv Annthrmn To ite this version: Siv Annthrmn. Compression vs Queryility - A Cse Stuy. Dgstuhl Seminr 08621, Jun 2008, Dgstuhl, Germny , Struture-Bse Compression of Complex Mssive Dt. < <inri > HAL I: inri Sumitte on 22 Jn 2010 HAL is multi-isiplinry open ess rhive for the eposit n issemintion of sientifi reserh ouments, whether they re pulishe or not. The ouments my ome from tehing n reserh institutions in Frne or ro, or from puli or privte reserh enters. L rhive ouverte pluriisiplinire HAL, est estinée u épôt et à l iffusion e ouments sientifiques e niveu reherhe, puliés ou non, émnnt es étlissements enseignement et e reherhe frnçis ou étrngers, es lortoires pulis ou privés.

2 Compression vs Queryility - A Cse Stuy Siv Annthrmn LIFO, Université Orléns (Frne) e-mil: siv@univ-orlens.fr Astrt Some ompromise on ompression is known to e neessry, if the reltive positions of the informtion store y semi-struture ouments re to remin essile uner queries. With this in view, we ompre, on n exmple, the query-frienliness of XML ouments, when ompresse into strightline tree grmmrs whih re either regulr or ontext-free. The queries onsiere re in limite frgment of XPth, orresponing to type of ptterns; eh suh query efines nturlly non-eterministi, ottom-up query utomton tht runs just s well on tree s on its ompresse g. Keywors: Tree utomt, Tree Grmmrs, Dgs, XML ouments, Queries. 1 Introution Strutures over gs inste of over trees hve een wiely use in orer to optimize lgorithms. Tree utomt (TA) re mong the si tools employe for querying XML ouments (e.g., [10, 11, 16, 17]); on the other hn, the notion of ompresse XML oument hs een introue in [2, 9, 14], n possile vntge of using g strutures for the mnipultion of suh ouments hs een rought out in [14]. It is legitimte then to investigte the possiility of using utomt running iretly over gs inste of over trees, for querying ompresse XML ouments. Unfortuntely however, the Dg Automt (DA), efine s nturl extension of tree utomt in [5] s ottom-up tree utomt running on gs, nnot iretly serve suh purpose. The reson is tht the lss of their lnguges efine s the set of gs epte uner their ottom-up runs is lgerilly ill-ehve ([1]): lthough eterministi ottom-up TA runs extly like on g or on its unompresse tree, the set of gs epte y non-eterministi DA oes not represent, in generl, regulr tree lnguge. Thus if the notion of eptne is not pte ppropritely, the lnguges of DAs (woul) form strit superlss of the lss of regulr tree lnguges. Note, on the other hn, tht the nswers to MSO-efinle queries on semi-struture trees re known to e regulr tree lnguges, f. [17, 19]. So, for suitle efinition of eptne. ottom-up Dgstuhl Seminr Proeeings Struture-Bse Compression of Complex Mssive Dt

3 run of non-eterministi TA, on g, hs to e ouple in generl with n on the fly eterminiztion of the TA long the run. Severl oservtions re in orer t this point, efore we proee. First, we re onerne with queries on XML ouments, n the trees moeling suh ouments re unrnke, i.e., the symols t the noes n hve ritrrily mny rguments; so the utomt we wnt to employ for querying shoul lso e unrnke. A seon oservtion is tht, fully or prtilly ompressing n unrnke tree into DAG is not mjor issue: suffies to represent it s strightline regulr tree grmmr (SLR), e.g., s in [3]. In the sequel, therefore, we shll onsier the terms oument n g to e synonymous; n y tree, we shll men g with opying fully llowe, i.e., with no ompression t ll. It must e pointe out here tht higher egree of ompression of rnke tree n e hieve y representing it s strightline, ontext-free, tree grmmr (SLCF), f. e.g., [3, 4]; ut it is not ler if the requirement on the se lphet to e rnke n e roppe. Now, ptterns (f. [15], n Setion 3 elow) re often onveniently use to speify queries on XML ouments; n they n e nturlly visulize s ottom-up, non-eterministi, query utomt; the full evlution of suh queries i.e., ess to the informtion store, long with their respetive reltive positions is quite possile on ouments ompresse uner SLR, without ny nee for eompression; while on oument ompresse uner SLCF, heking for query stisfiility n e heke effiiently, ut full query evlution ppers to e more intrite. Severl mehnisms hve een propose in the literture for querying (ompresse, unrnke) ouments. The one propose in [2] is priori for query stisfiility, n employs tree-like utomt; it n e either top-own, or ottom-up, on gs. Tht of [7] is mixture of top-own n ottom-up nlysis, se on the SLR vision, suitle for query evlution on gs, for frgment of Core XPth, ut it is not hr to exten it little frther. [17] proposes very generl query mehnism nme query utomton (QA), whih is 2-wy tree utomton with speifie seleting sttes: seletion lel 1 is ttriute to some speifie sttes, n 0 or to the others; this works only for trees, however. For the view presente elow, our onern will e limite to lss of queries tht re expressile insie restrite XPth formt; they orrespon to the ptterns using the / n // of XPth, s efine in [15], possily with some filters (or rnhes, s ws lle there). Besies eing simple, this limittion will lso hve the vntge tht suh queries n e visulize s usul, ottomup, non-eterministi tree utomt with speifie seleting sttes (Note: this, inientlly, will lso llow us to onsier n-ry queries). This pper is struture s follows. The nottion n the preliminries re given in Setion 2. In Setion 3, we efine the notion of ptterns (s in [15]), n show how to visulize them, nturlly, s ottom-up query utomt (QA); we lso show, on n exmple, how to evlute the query orresponing to given pttern p on given oument t, vi ottom-up run on t of the QA ssoite with p, if the oument is ompresse uner SLR; on the sme exmple, we will 2

4 lso show tht, if the oument gets ompresse s SLCF, the query is not tht esy to evlute (lthough it n e teste for stisfiility). A finl remrk efore losing this setion: lthough we note ove tht ottom-up runs of non-eterministi TA on gs n e prolemti, no suh omplition rises tully for the QAs efine y the ptterns we onsier here; so, we o not nee to eterminize the QA on the fly, long its evluting runs. Moreover, it n e shown tht the nswer to the query efine y ny given pttern on given SLR-ompresse oument t, will e the sme s when the query is evlute on the unompresse tree equivlent of t. 2 Nottion n Preliminries We ssume given n unrnke se lphet Σ. Trees n gs over Σ re efine s usul, eh of their noes ring nme tht is symol from Σ. (Forml efinitions o not seem neee.) A first exmple to show wht we men y fully or prtilly ompresse gs is the following: f f f Tree Fully Compresse Prtilly Compresse The most elegnt n effiient wy to istinguish etween these 3 formts of the sme oument (sme informtion, ut store with more or less optimiztion) is to ssoite to eh formt t, nonilly, strightline regulr tree grmmr (SLR) G t : nonil in the sense tht G t reognizes extly t, n nothing else. The three respetive SLR for the ove 3 formts re s follows: X 0 f(x 1,X 2,X 3,X 4 ) X 1 X 2 X 3 X 4 X 0 f(y 1,Y 1,Y 2,Y 1 ) Y 1 Y 2 X 0 f(z 1,Z 1,Z 2,Z 3 ) Z 1 Z 2 Z 3 The notions of hil, prent, esenent, nestor re ll efine, in nturl mnner, on the set of noes of ny given g. A noe is root (resp. lef) for g, iff it hs no prent (resp. hil). All our gs will e ssume roote, i.e., to hve unique root noe. It is then esy to ssoite set of positions to ny given noe on ny given g, suh tht the following hols: A g is tree iff the set of positions of ny of its noes is singleton. (Note: noe on g n hve more thn one prents.) 3

5 We lso nee the the notion of ottom-up tree utomton over n unrnke lphet; to filitte unerstning, we first rell the notion over rnke lphet; the efinition is esily extene to the unrnke se. Definition 1 A ottom-up tree utomton (TA) over rnke lphet Σ is tuple (Σ,Q,F,Δ), whereq is finite non-empty set of sttes, F Q is the set of finl (or epting) sttes, n Δ is set of trnsition rules of the form: f(q 1,..., q k ) q, wheref Σ is of rnk k, nq 1,...,q k,q Q. Now, trnsition f(q 1,...,q k ) q n lso e written s f(q 1...q k ) q, where q 1...q k is seen s wor in Q, tht hs to e of length = rnk(f) in the rnke se. So the extension is esy to the unrnke se: suffies to efine the trnsitions to e of the form f(ω) q, whereω Q,nf Σ. A TA is si to e ottom-up eterministi iff whenever there re two trnsition rules of the form f(ω) q, f(ω ) q, with q q, we hve neessrily ω ω = ; otherwise it is si to e non-eterministi. We lso gree to enote the trnsitions of the form f( ) q simply s f q, nrefertothems initil trnsitions. Exmple. We ome now to our seon exmple: to the right of the figure elow is the tree formt of oument, of whih the fully ompresse g formt is to the left. Over the unrnke signture {, f, g} we onsier the ottom-up TA A, with the following trnsitions: p, p, q, (p) q, (q) p, g(qq ) q, g(pq) p, f(qpq) q fin, f(pq ) q fin, with Q = {p, q, q fin }, q fin eing the unique epting stte. f f g g g It is not hr to hek tht there is n epting run of the TA on the tree to the right. An if we wnt to run the TA iretly on the g to the left, we my hve to eterminize the run on the fly, s n when we move up, in generl. This n e one more elegntly, n more nturlly, y seeing the g s its SLR, n y seeing its proutions s well s the trnsitions of the TA s rewrite rules, n using innermost rewriting. For instne, the SLR for 4

6 the g to the left ove is s follows: X 0 f(x 1,X 1,X 2 ) X 1 g(x 3,X2) X 3 (X 2 ), X 2 We get y innermost rewriting: X 2 = {p, q}, X 3 = (X 2 ) {p, q}, X 1 g({p, q}{p, q}), n finlly: X 0 f({p, q}{p, q}{p, q}). An we en up y heking tht q fin is in the set f({p, q}{p, q}{p, q}). This is how one woul proee, in generl, for eiing eptne uner the ottom-up runs of non-eterministi TAs on gs. However, to ny query efine y pttern of limite formt tht we shll e onsiering elow, we shll nturlly ssoite ottom-up non-eterministi TA, lle its query utomton (QA); for suh QA, the seleting runs n e ompute more iretly (without on the fly eterminiztions). 3 Query Automt for Ptterns We heneforth ssume known the usul notions n terminology of XML, n of XPth whih is lnguge generlly employe for querying XML ouments. For simpliity, we only onsier unry queries, i.e., queries tht return set of noes n/or the t tthe to these noes. We re intereste here in limite su-lss of XPth expressions whih n lso e seen nturlly s non-eterministi ottom-up QA. These expressions re ll representle s ptterns with seletion lels with the help of the symols /, //, of XPth, long with those from the (unrnke) se lphet Σ, n the filter expressions of XPth. For instne, the XPth expression // [//][] is represente s the following pttern, where,,, re in the se lphet, is the wilr, n s is the seletion symol: * s Anoeu on ny given oument t is n nswer to the query of this pttern, iff: - the root noe of t ers the nme, nu is esennt of the root, -nu hs two hilren noes n, the hil nme itself hving esennt. 5

7 The XPth expressions tht we re intereste in here, n e efine formlly in terms of simple grmmrs; for instne, s in [15], one n efine them y: P ::= σ. P/P P//P P [P ] where σ Σ, is the wilr of XPth, n. stns for the urrent noe position. To eh suh expression, one n ssoite pttern tree (pttern, for short), s in the ove exmple (f. [15] for etils). A pttern is essentilly (roote) tree with usul eges, plus some istinguishe oule-eges (s in the ove exmple), referre to s esennt-eges; the noes re nme from Σ { }; in ition, to extly one of the noes is ssigne seletion symol: 1ors. (Note: we re only onerne here with unry queries.) An essentil ifferene etween the usul trees n ptterns is tht the set of outgoing noes from noe, on pttern, re not orere. (Thus, in the ove pttern exmple, it is not require tht the -hil, of the noe u to e selete, e to the left of its -hil.) A point we wnt to rive in now, is tht to ny pttern n e ssoite QA in nturl mnner. We shll o tht only on n exmple, with whih we will ontinue in the next setion. Consier, for instne, the following pttern: s This pttern represents the following XPth expression: //[]//[.//], whih is short for: //[hil : ]//[eennt : ]. The QA ssoite with this pttern is the ottom-up non-eterministi TA over the lphet {,,, }, with Q = {q in,q 0,q 1,q 2,q 3 q } s its set of sttes, q s the epting stte, q 1 s the seleting stte, n the following trnsitions: q in (Q q in Q ) q in q 0 (Q q in Q ) q 0 (Q q 0 Q ) q 0 (Q q 0 Q ) q 1 (Q q 1 Q ) q 1 (Q q in Q ) q 2 (Q q 1 Q q 2 Q ) q 3 (Q q 2 Q q 1 Q ) q 3 (Q q 3 Q ) q 3 (Q q 3 Q ) q (Q q Q ) q (The Q stns for ny string over the set Q.) The semntis of the trnsitions re s follows: t ny lef noe other thn -nme we woul e in stte q in ; when we reh n -noe we woul e in stte q 0 ;whenwereh-noe ove 6

8 we woul e in stte q 1 ;t-noe, in generl we woul e in q 2, ut if it is ove -noe, we woul e in q 3 ; finlly, t ny noe stritly ove -noe rehe t stte q 3, we woul e in the epting stte q. (Note: query utomton returns selete noe only on n epte oument.) 4 Querying uner SLR or uner SLCF We show here, riefly, how the query //[hil : ]//[eennt : ] ne evlute on the following oument : t = ((, ),((, ),((, ),((, ),(, ))))), uner the runs of the QA efine in the previous setion. The exmple hs een orrowe from [3]; s ws shown there, the following SLCF with S, A, B(y),C s non-terminls, S eing the xiom gives nie ompression of this tree: S B(B(C)) B(y) (C, (C, y)) C (A, A) A Oserve first tht our QA, if run on the tree t, woul selet the suterm ((, ),(, )), the position of whih (on t) n e eue y following the pth from the -noe to whih is ssigne the seleting stte q 1,totheroot. Now, the g to the left of the figure ove is the fully ompresse g formt for t; n it is not hr to hek tht our QA n run ottom-up just s well on this g (without neeing ny eterminiztion on the fly), s on the tree t; the g will e epte, n the -noe to the ottom-right will e ssigne the seleting stte q 1 ; the set of positions on g eing well-efine, one eues esily the position(s) of the selete noe: it orrespons here to the pth forme of the full rrows in the g to the right. It is esy then to output the su-g t tht position (or its SLR), s the nswer to our query. On the other hn, our QA n lso run on the SLCF ompresse formt given ove for the oument t; we will then get the following: 7

9 - there is n innermost rewrite erivtion from the xiom S to the stte q ; -none of the intermeiry terms thus erive gets selete. In other wors, we n onlue tht the query efine y the pttern oes hve n nswer, somewhere. It oul lso e possile to sy extly where, using some itionl n more intrite syntx, se on the BPLEX lgorithm of [3, 4]. But, lthough BPLEX is ottom-up multiplex, it is not ler if it n output the ext SLCF grmmr orresponing to the nswer of the query; more preisely, it oes not seem simple to relte the SLCF grmmr of the nswer to the SLCF of the given oument. Before we lose this setion, few oservtions re perhps in orer: i) Severl of the usul XPth se queries on XML ouments or their skeletons n e visulize s pttern trees. ii) Bottom-up unrnke query utomt n e erive nturlly, from suh ptterns. iii) These unrnke query utomt re (not esy to eterminize, ut they) run ottom-up on ompresse gs, just s esily s on their orresponing unompresse trees; n the nswer sets otine orrespon. iv) Compression se on SLR, n the ottom-up evlution tehnique esrie ove for queries efine y our ptterns, n oth ontinue to funtion without ny mjor moifitions on ouments tht re sujet to rule-se ess ontrol poliies (RBAC). It is not ler if the sme hols for SLCF-se ompression. 5 Conlusion We hve trie to show tht lthough ompression uner SLR ensures t est only single exponentil spe optimiztion, it hs more query-frienly ehvior on severl fronts, thn ompression se on SLCF. We hve lso shown tht noneterministi, ottom-up, tree utomt re nturl n intuitive nites for fully evluting ertin lss of queries in the XPth formt, visulizle s ptterns, even on ouments ompresse s DAGs (it is tully the formultion s pttern tht gives the lue for eriving n utomton orresponing to the query). The pttern-se view for queries seems to hve other vntges s well: for instne, n-ry queries n e hnle quite nturlly in tht set up. Moreover, the ptterns of the formt stuie here n lso e iretly efine in terms of suitle grmmr; this is of help in hnling other prolems, suh s tht of pttern ontinment, vi rewrite tehniques (f. e.g., [8]). Referenes [1] S. Annthrmn, P. Nrenrn, M. Rusinowith, Closure Properties n Deision Prolems of Dg Automt, In Informtion Proessing Letters, 94(5): , [2] P. Bunemn, M. Grohe, C. Koh, Pth queries on ompresse XML. In Pro. of the 29th Conf. on VLDB, 2003, pp , E. Morgn Kufmnn. 8

10 [3] G. Bustto, M. Lohrey, S. Mneth, Grmmr-Bse Tree Compression. EPFL Teh. Report IC/2004/80, [4] G. Bustto, M. Lohrey, S. Mneth, Effiient Memory Representtion of XML Douments. In Pro. DBPL 05, LNCS 3774, pp , Springer-Verlg, [5] W. Chrtonik, Automt on DAG Representtions of Finite Trees, Tehnil Report MPI-I , Mx-Plnk-Institut für Informtik, Srrüken, Germny. [6] H. Comon, M. Duhet, R. Gilleron, F. Jquemr, D. Lugiez, S. Tison, M. Tommsi, Tree Automt Tehniques n Applitions, [7] B. Fil, S. Annthrmn, Automt for Positive Core XPth Queries on Compresse Douments, In Pro. of the Int. Conf. LPAR-13, pp , LNAI 4246, Springer-Verlg, Novemer [8] B. Fil-Kory, A Rewrite Approh for Pttern Continment, In Pro. WADT 2008, Pis, June [9] M.Frik,M.Grohe,C.Koh, Query Evlution of Compresse Trees, InPro.of LICS 03, pp , IEEE, [10] G. Gottlo, C. Koh, Moni Queries over Tree-Struture Dt, In Pro. of LICS 02, pp , IEEE. [11] G. Gottlo, C. Koh, Moni Dtlog n the Expressive Power of Lnguges for We Informtion Extrtion, In Journl of the ACM, 51(1):12 28, [12] G. Gottlo, C. Koh, R. Pihler, L. Segoufin, The omplexity of XPth query evlution n XML typing In Journl of the ACM 52(2): , [13] W. Mrtens, F. Neven, On the omplexity of typeheking top-own XML trnsformtions, In Theoretil Computer S., 336(1): , [14] M. Mrx, XPth n Mol Logis for Finite DAGs. In Pro. of TABLEAUX 03, pp , LNAI 2796, [15] G. Miklu, D. Suiu, Continment n Equivlene for Frgment of XPth, In Journl of the ACM, 51(1):2-45, [16] F. Neven, Automt Theory for XML Reserhers, In SIGMOD Reor 31(3), Septemer [17] F. Neven, T. Shwentik, Query utomt over finite trees, In Theoretil Computer Siene, 275(1 2): , [18] A. Potthof, S. Seiert, W. Thoms, Noneterminism versus eterminism of finite utomt over irete yli grphs, In Bull. Belgin Mth. Soiety, 1: , [19] J.W. Thther, J.B. Wright, Generlize finite utomt theory with n pplition to eision prolem of seon-orer logi, In Mth. Syst. Theory, 2(1):57 81,

A Rewrite Approach for Pattern Containment

A Rewrite Approach for Pattern Containment A Rewrite Approh or Pttern Continment Brr Kory rr.kory@univ-orlens.r LIFO - Université Orléns, Frne Astrt. In this pper we introue n pproh tht llows to hnle the ontinment prolem or the rgment XP(/,//,[

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

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

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

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs Isomorphism of Grphs Definition The simple grphs G 1 = (V 1, E 1 ) n G = (V, E ) re isomorphi if there is ijetion (n oneto-one n onto funtion) f from V 1 to V with the property tht n re jent in G 1 if

More information

XML and Databases. Exam Preperation Discuss Answers to last year s exam. Sebastian Maneth NICTA and UNSW

XML and Databases. Exam Preperation Discuss Answers to last year s exam. Sebastian Maneth NICTA and UNSW XML n Dtses Exm Prepertion Disuss Answers to lst yer s exm Sestin Mneth NICTA n UNSW CSE@UNSW -- Semester 1, 2008 (1) For eh of the following, explin why it is not well-forme XML (is WFC or the XML grmmr

More information

CS 491G Combinatorial Optimization Lecture Notes

CS 491G Combinatorial Optimization Lecture Notes CS 491G Comintoril Optimiztion Leture Notes Dvi Owen July 30, August 1 1 Mthings Figure 1: two possile mthings in simple grph. Definition 1 Given grph G = V, E, mthing is olletion of eges M suh tht e i,

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

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

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

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

Automata for Analyzing and Querying Compressed Documents Barbara FILA, LIFO, Orl eans (Fr.) Siva ANANTHARAMAN, LIFO, Orl eans (Fr.) Rapport No

Automata for Analyzing and Querying Compressed Documents Barbara FILA, LIFO, Orl eans (Fr.) Siva ANANTHARAMAN, LIFO, Orl eans (Fr.) Rapport No Automt for Anlyzing nd Querying Compressed Documents Brr FILA, LIFO, Orléns (Fr.) Siv ANANTHARAMAN, LIFO, Orléns (Fr.) Rpport N o 2006-03 Automt for Anlyzing nd Querying Compressed Documents Brr Fil, Siv

More information

CIT 596 Theory of Computation 1. Graphs and Digraphs

CIT 596 Theory of Computation 1. Graphs and Digraphs CIT 596 Theory of Computtion 1 A grph G = (V (G), E(G)) onsists of two finite sets: V (G), the vertex set of the grph, often enote y just V, whih is nonempty set of elements lle verties, n E(G), the ege

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

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

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

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

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

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

for all x in [a,b], then the area of the region bounded by the graphs of f and g and the vertical lines x = a and x = b is b [ ( ) ( )] A= f x g x dx

for all x in [a,b], then the area of the region bounded by the graphs of f and g and the vertical lines x = a and x = b is b [ ( ) ( )] A= f x g x dx Applitions of Integrtion Are of Region Between Two Curves Ojetive: Fin the re of region etween two urves using integrtion. Fin the re of region etween interseting urves using integrtion. Desrie integrtion

More information

Solutions to Problem Set #1

Solutions to Problem Set #1 CSE 233 Spring, 2016 Solutions to Prolem Set #1 1. The movie tse onsists of the following two reltions movie: title, iretor, tor sheule: theter, title The first reltion provies titles, iretors, n tors

More information

Automata and Regular Languages

Automata and Regular Languages Chpter 9 Automt n Regulr Lnguges 9. Introution This hpter looks t mthemtil moels of omputtion n lnguges tht esrie them. The moel-lnguge reltionship hs multiple levels. We shll explore the simplest level,

More information

Formal Methods for XML: Algorithms & Complexity

Formal Methods for XML: Algorithms & Complexity Forml Methods for XML: Algorithms & Complexity S. Mrgherit di Pul August 2004 Thoms Shwentik Shwentik XML: Algorithms & Complexity Introdution 1 XML Exmple Doument Composer Nme Clude Debussy /Nme Vit Born

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

POSITIVE IMPLICATIVE AND ASSOCIATIVE FILTERS OF LATTICE IMPLICATION ALGEBRAS

POSITIVE IMPLICATIVE AND ASSOCIATIVE FILTERS OF LATTICE IMPLICATION ALGEBRAS Bull. Koren Mth. So. 35 (998), No., pp. 53 6 POSITIVE IMPLICATIVE AND ASSOCIATIVE FILTERS OF LATTICE IMPLICATION ALGEBRAS YOUNG BAE JUN*, YANG XU AND KEYUN QIN ABSTRACT. We introue the onepts of positive

More information

C. C^mpenu, K. Slom, S. Yu upper boun of mn. So our result is tight only for incomplete DF's. For restricte vlues of m n n we present exmples of DF's

C. C^mpenu, K. Slom, S. Yu upper boun of mn. So our result is tight only for incomplete DF's. For restricte vlues of m n n we present exmples of DF's Journl of utomt, Lnguges n Combintorics u (v) w, x{y c OttovonGuerickeUniversitt Mgeburg Tight lower boun for the stte complexity of shue of regulr lnguges Cezr C^mpenu, Ki Slom Computing n Informtion

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

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

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

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

Foundations of XML Types: Tree Automata

Foundations of XML Types: Tree Automata 1 / 43 Foundtions of XML Types: Tree Automt Pierre Genevès CNRS (slides mostly sed on slides y W. Mrtens nd T. Schwentick) University of Grenole Alpes, 2017 2018 2 / 43 Why Tree Automt? Foundtions of XML

More information

I 3 2 = I I 4 = 2A

I 3 2 = I I 4 = 2A ECE 210 Eletril Ciruit Anlysis University of llinois t Chigo 2.13 We re ske to use KCL to fin urrents 1 4. The key point in pplying KCL in this prolem is to strt with noe where only one of the urrents

More information

XML and Databases. Outline. 1. Top-Down Evaluation of Simple Paths. 1. Top-Down Evaluation of Simple Paths. 1. Top-Down Evaluation of Simple Paths

XML and Databases. Outline. 1. Top-Down Evaluation of Simple Paths. 1. Top-Down Evaluation of Simple Paths. 1. Top-Down Evaluation of Simple Paths Outline Leture Effiient XPth Evlution XML n Dtses. Top-Down Evlution of simple pths. Noe Sets only: Core XPth. Bottom-Up Evlution of Core XPth. Polynomil Time Evlution of Full XPth Sestin Mneth NICTA n

More information

Deterministic Finite Automata

Deterministic Finite Automata Finite Automt Deterministic Finite Automt H. Geuvers nd J. Rot Institute for Computing nd Informtion Sciences Version: fll 2016 J. Rot Version: fll 2016 Tlen en Automten 1 / 21 Outline Finite Automt Finite

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

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

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite!

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite! Solutions for HW9 Exerise 28. () Drw C 6, W 6 K 6, n K 5,3. C 6 : W 6 : K 6 : K 5,3 : () Whih of the following re iprtite? Justify your nswer. Biprtite: put the re verties in V 1 n the lk in V 2. Biprtite:

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

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

Linear choosability of graphs

Linear choosability of graphs Liner hoosility of grphs Louis Esperet, Mikel Montssier, André Rspud To ite this version: Louis Esperet, Mikel Montssier, André Rspud. Liner hoosility of grphs. Stefn Felsner. 2005 Europen Conferene on

More information

Lecture 11 Binary Decision Diagrams (BDDs)

Lecture 11 Binary Decision Diagrams (BDDs) C 474A/57A Computer-Aie Logi Design Leture Binry Deision Digrms (BDDs) C 474/575 Susn Lyseky o 3 Boolen Logi untions Representtions untion n e represente in ierent wys ruth tle, eqution, K-mp, iruit, et

More information

GNFA GNFA GNFA GNFA GNFA

GNFA GNFA GNFA GNFA GNFA DFA RE NFA DFA -NFA REX GNFA Definition GNFA A generlize noneterministic finite utomton (GNFA) is grph whose eges re lele y regulr expressions, with unique strt stte with in-egree, n unique finl stte with

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

CS 360 Exam 2 Fall 2014 Name

CS 360 Exam 2 Fall 2014 Name CS 360 Exm 2 Fll 2014 Nme 1. The lsses shown elow efine singly-linke list n stk. Write three ifferent O(n)-time versions of the reverse_print metho s speifie elow. Eh version of the metho shoul output

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

Lecture 2: Cayley Graphs

Lecture 2: Cayley Graphs Mth 137B Professor: Pri Brtlett Leture 2: Cyley Grphs Week 3 UCSB 2014 (Relevnt soure mteril: Setion VIII.1 of Bollos s Moern Grph Theory; 3.7 of Gosil n Royle s Algeri Grph Theory; vrious ppers I ve re

More information

Laboratory for Foundations of Computer Science. An Unfolding Approach. University of Edinburgh. Model Checking. Javier Esparza

Laboratory for Foundations of Computer Science. An Unfolding Approach. University of Edinburgh. Model Checking. Javier Esparza An Unfoling Approh to Moel Cheking Jvier Esprz Lbortory for Fountions of Computer Siene University of Einburgh Conurrent progrms Progrm: tuple P T 1 T n of finite lbelle trnsition systems T i A i S i i

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

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

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

Chapter 4 Regular Grammar and Regular Sets. (Solutions / Hints)

Chapter 4 Regular Grammar and Regular Sets. (Solutions / Hints) C K Ngpl Forml Lnguges nd utomt Theory Chpter 4 Regulr Grmmr nd Regulr ets (olutions / Hints) ol. (),,,,,,,,,,,,,,,,,,,,,,,,,, (),, (c) c c, c c, c, c, c c, c, c, c, c, c, c, c c,c, c, c, c, c, c, c, c,

More information

Numbers and indices. 1.1 Fractions. GCSE C Example 1. Handy hint. Key point

Numbers and indices. 1.1 Fractions. GCSE C Example 1. Handy hint. Key point GCSE C Emple 7 Work out 9 Give your nswer in its simplest form Numers n inies Reiprote mens invert or turn upsie own The reiprol of is 9 9 Mke sure you only invert the frtion you re iviing y 7 You multiply

More information

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014 S 224 DIGITAL LOGI & STATE MAHINE DESIGN SPRING 214 DUE : Mrh 27, 214 HOMEWORK III READ : Relte portions of hpters VII n VIII ASSIGNMENT : There re three questions. Solve ll homework n exm prolems s shown

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

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

Now we must transform the original model so we can use the new parameters. = S max. Recruits

Now we must transform the original model so we can use the new parameters. = S max. Recruits MODEL FOR VARIABLE RECRUITMENT (ontinue) Alterntive Prmeteriztions of the pwner-reruit Moels We n write ny moel in numerous ifferent ut equivlent forms. Uner ertin irumstnes it is onvenient to work with

More information

SOME INTEGRAL INEQUALITIES FOR HARMONICALLY CONVEX STOCHASTIC PROCESSES ON THE CO-ORDINATES

SOME INTEGRAL INEQUALITIES FOR HARMONICALLY CONVEX STOCHASTIC PROCESSES ON THE CO-ORDINATES Avne Mth Moels & Applitions Vol3 No 8 pp63-75 SOME INTEGRAL INEQUALITIES FOR HARMONICALLY CONVE STOCHASTIC PROCESSES ON THE CO-ORDINATES Nurgül Okur * Imt Işn Yusuf Ust 3 3 Giresun University Deprtment

More information

INTRODUCTION TO AUTOMATA THEORY

INTRODUCTION TO AUTOMATA THEORY Chpter 3 INTRODUCTION TO AUTOMATA THEORY In this hpter we stuy the most si strt moel of omputtion. This moel els with mhines tht hve finite memory pity. Setion 3. els with mhines tht operte eterministilly

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

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

Generalized Kronecker Product and Its Application

Generalized Kronecker Product and Its Application Vol. 1, No. 1 ISSN: 1916-9795 Generlize Kroneker Prout n Its Applition Xingxing Liu Shool of mthemtis n omputer Siene Ynn University Shnxi 716000, Chin E-mil: lxx6407@163.om Astrt In this pper, we promote

More information

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.) CS 373, Spring 29. Solutions to Mock midterm (sed on first midterm in CS 273, Fll 28.) Prolem : Short nswer (8 points) The nswers to these prolems should e short nd not complicted. () If n NF M ccepts

More information

18.06 Problem Set 4 Due Wednesday, Oct. 11, 2006 at 4:00 p.m. in 2-106

18.06 Problem Set 4 Due Wednesday, Oct. 11, 2006 at 4:00 p.m. in 2-106 8. Problem Set Due Wenesy, Ot., t : p.m. in - Problem Mony / Consier the eight vetors 5, 5, 5,..., () List ll of the one-element, linerly epenent sets forme from these. (b) Wht re the two-element, linerly

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

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

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

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

Converting Regular Expressions to Discrete Finite Automata: A Tutorial

Converting Regular Expressions to Discrete Finite Automata: A Tutorial Converting Regulr Expressions to Discrete Finite Automt: A Tutoril Dvid Christinsen 2013-01-03 This is tutoril on how to convert regulr expressions to nondeterministic finite utomt (NFA) nd how to convert

More information

Mid-Term Examination - Spring 2014 Mathematical Programming with Applications to Economics Total Score: 45; Time: 3 hours

Mid-Term Examination - Spring 2014 Mathematical Programming with Applications to Economics Total Score: 45; Time: 3 hours Mi-Term Exmintion - Spring 0 Mthemtil Progrmming with Applitions to Eonomis Totl Sore: 5; Time: hours. Let G = (N, E) e irete grph. Define the inegree of vertex i N s the numer of eges tht re oming into

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

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

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

Total score: /100 points

Total score: /100 points Points misse: Stuent's Nme: Totl sore: /100 points Est Tennessee Stte University Deprtment of Computer n Informtion Sienes CSCI 2710 (Trnoff) Disrete Strutures TEST 2 for Fll Semester, 2004 Re this efore

More information

Logic, Set Theory and Computability [M. Coppenbarger]

Logic, Set Theory and Computability [M. Coppenbarger] 14 Orer (Hnout) Definition 7-11: A reltion is qusi-orering (or preorer) if it is reflexive n trnsitive. A quisi-orering tht is symmetri is n equivlene reltion. A qusi-orering tht is nti-symmetri is n orer

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

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

Necessary and sucient conditions for some two. Abstract. Further we show that the necessary conditions for the existence of an OD(44 s 1 s 2 )

Necessary and sucient conditions for some two. Abstract. Further we show that the necessary conditions for the existence of an OD(44 s 1 s 2 ) Neessry n suient onitions for some two vrile orthogonl esigns in orer 44 C. Koukouvinos, M. Mitrouli y, n Jennifer Seerry z Deite to Professor Anne Penfol Street Astrt We give new lgorithm whih llows us

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

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

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

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

Petri automata for Kleene allegories

Petri automata for Kleene allegories Petri utomt for Kleene llegories Pul Brunet, mien Pous To ite this version: Pul Brunet, mien Pous. Petri utomt for Kleene llegories. Logi in omputer Siene, Jul 205, Kyoto, Jpn. I, pp.68-79, 205, .

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

Lecture 8: Abstract Algebra

Lecture 8: Abstract Algebra Mth 94 Professor: Pri Brtlett Leture 8: Astrt Alger Week 8 UCSB 2015 This is the eighth week of the Mthemtis Sujet Test GRE prep ourse; here, we run very rough-n-tumle review of strt lger! As lwys, this

More information

Unfoldings of Networks of Timed Automata

Unfoldings of Networks of Timed Automata Unfolings of Networks of Time Automt Frnk Cssez Thoms Chtin Clue Jr Ptrii Bouyer Serge H Pierre-Alin Reynier Rennes, Deemer 3, 2008 Unfolings [MMilln 93] First efine for Petri nets Then extene to other

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

CSE 332. Sorting. Data Abstractions. CSE 332: Data Abstractions. QuickSort Cutoff 1. Where We Are 2. Bounding The MAXIMUM Problem 4

CSE 332. Sorting. Data Abstractions. CSE 332: Data Abstractions. QuickSort Cutoff 1. Where We Are 2. Bounding The MAXIMUM Problem 4 Am Blnk Leture 13 Winter 2016 CSE 332 CSE 332: Dt Astrtions Sorting Dt Astrtions QuikSort Cutoff 1 Where We Are 2 For smll n, the reursion is wste. The onstnts on quik/merge sort re higher thn the ones

More information

Let's start with an example:

Let's start with an example: Finite Automt Let's strt with n exmple: Here you see leled circles tht re sttes, nd leled rrows tht re trnsitions. One of the sttes is mrked "strt". One of the sttes hs doule circle; this is terminl stte

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

Thoery of Automata CS402

Thoery of Automata CS402 Thoery of Automt C402 Theory of Automt Tle of contents: Lecture N0. 1... 4 ummry... 4 Wht does utomt men?... 4 Introduction to lnguges... 4 Alphets... 4 trings... 4 Defining Lnguges... 5 Lecture N0. 2...

More information

Arrow s Impossibility Theorem

Arrow s Impossibility Theorem Rep Voting Prdoxes Properties Arrow s Theorem Arrow s Impossiility Theorem Leture 12 Arrow s Impossiility Theorem Leture 12, Slide 1 Rep Voting Prdoxes Properties Arrow s Theorem Leture Overview 1 Rep

More information

CS241 Week 6 Tutorial Solutions

CS241 Week 6 Tutorial Solutions 241 Week 6 Tutoril olutions Lnguges: nning & ontext-free Grmmrs Winter 2018 1 nning Exerises 1. 0x0x0xd HEXINT 0x0 I x0xd 2. 0xend--- HEXINT 0xe I nd ER -- MINU - 3. 1234-120x INT 1234 INT -120 I x 4.

More information

CSC2542 State-Space Planning

CSC2542 State-Space Planning CSC2542 Stte-Spe Plnning Sheil MIlrith Deprtment of Computer Siene University of Toronto Fll 2010 1 Aknowlegements Some the slies use in this ourse re moifitions of Dn Nu s leture slies for the textook

More information

On the existence of a cherry-picking sequence

On the existence of a cherry-picking sequence On the existene of herry-piking sequene Jnosh Döker, Simone Linz Deprtment of Computer Siene, University of Tüingen, Germny Deprtment of Computer Siene, University of Aukln, New Zeln Astrt Reently, the

More information

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh Finite Automt Informtics 2A: Lecture 3 Mry Cryn School of Informtics University of Edinburgh mcryn@inf.ed.c.uk 21 September 2018 1 / 30 Lnguges nd Automt Wht is lnguge? Finite utomt: recp Some forml definitions

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

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

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

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