Petri automata for Kleene allegories

Size: px
Start display at page:

Download "Petri automata for Kleene allegories"

Transcription

1 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, < <0.09/LIS.205.7>. <hl v3> HL I: hl Sumitte on 6 Mr 205 HL 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 HL, 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 Petri utomt for Kleene llegories Pul Brunet n mien Pous Plume tem LIP, NRS, NS e Lyon, Inri, UBL, Université e Lyon, UMR 5668 {pul.runet,mien.pous}@ens-lyon.fr strt Kleene lger xioms re omplete with respet to oth lnguge moels n inry reltion moels. In prtiulr, two regulr expressions reognise the sme lnguge if n only if they re universlly equivlent in the moel of inry reltions. We onsier Kleene llegories, i.e., Kleene lgers with two itionl opertions whih re nturl in inry reltion moels: intersetion n onverse. While regulr lnguges re lose uner those opertions, the ove hrteristion reks. Inste, we give hrteristion in terms of lnguges of irete n lelle grphs. We then esign finite utomt moel llowing to reognise suh grphs, y tking inspirtion from Petri nets. This moel llows us to otin eiility of ientity-free reltionl Kleene ltties, i.e., the equtionl theory generte y inry reltions on the signture of regulr expressions with intersetion, ut where one foris unit. This restrition is use to ensure tht the orresponing grphs re yli. The eiility of grph-lnguge equivlene in the full moel remins open. I. INTROUTION We onsier inry reltions n the opertions of union ( ), intersetion ( ), omposition ( ), onverse ( ), trnsitive losure ( + ), reflexive-trnsitive losure ( ), n the onstnts ientity () n empty reltion (0). This moel gives rise to n (in)equtionl theory: pir of terms e, f me from those opertions n some vriles,,... is vli eqution, enote Rel e = f, if the orresponing equlity hols universlly. Similrly, n ineqution Rel e f is vli when the orresponing ontinment hols universlly. Here re vli equtions n inequtions: they hol whtever the reltions we ssign to vriles,, n. Rel ( ) ( ) = ( ) + () Rel + (2) Rel ( ) (3) Rel + ( ) + (4) Vrious frgments of this theory hve een stuie in the literture: Kleene lger [7], where one removes intersetion n onverse, so tht terms re plin regulr expressions. The theory is eile y Kleene s work [], n tully PSP-omplete [4], [5]. qution () lies in this frgment, n one n notie tht the two expressions reognise the sme lnguge. Kleene lger with onverse, where one only removes intersetion, is lso eile frgment [3]. It remins PSP [5]. Ineqution (2) elongs to this frgment. (representle, istriutive) llegories [8], sometimes lle positive reltion lgers, where trnsitive n reflexive-trnsitive losures re not llowe. They re eile [8, pge 208]; Ineqution (3) is known s the moulrity lw in this setting. To the est of our knowlege, the eiility of the whole theory, Kleene llegories, is open. Here we otin severl importnt steps towrs the resolution of this prolem: ) we give hrteristion of the full (in)equtionl theory in terms of grph lnguges; 2) we esign n utomt moel inspire y Petri nets, tht mkes it possile to reognise suh grphs; 3) we show how to ssoite suh grph utomton to ny term of Kleene llegories; 4) using these grph utomt, we give eision proeure for the frgment where onverse n ientity re forien. The ltter frgment ws stuie reently y nrék et l. []; its eiility ws open s fr s we know. The restrition to this frgment llows us to exploit simplifying ssumptions out the proue utomt, n to otin oinutive lgorithm for lnguge inlusion (Setion V). We tully show tht lnguge inlusion for these utomt is XPSPomplete (Setion VI). The next prolem, whih remins open, onsists in otining the eiility of lnguge inlusion in the full utomt moel: together with the presente results, this woul entil eiility of Kleene llegories. We outline some of the iffiulties rising with onverse or unit in presene of intersetion in Setion V-. We ontinue this introutory setion y n informl esription of the grph lnguge hrteristion n our utomt moel.. Lnguges In the simple se of Kleene lger, i.e., without onverse n intersetion, the (in)equtionl theory generte y reltions n e hrterise y using regulr lnguges. Write e for the lnguge enote y regulr expression e; for ny two regulr expressions e, f, we hve Rel e f if n only if e f. (5) (This result is esy n folklore; proving tht this is lso equivlent to provility using Kleene lger xioms [4], [2], [3] is muh hrer.) While regulr lnguges re lose uner intersetion n onverse, the ove hrteristion oes not exten to those opertions. For intersetion, onsier two istint vriles

3 (): (( ( )) ): (( ) ( )): (( ) ): ( ): Figure : rphs ssoite to some groun terms. n. The extene regulr expressions n 0 oth reognise the empty lnguge, while Rel / = 0: one n interpret n with interseting reltions. For onverse, the extene regulr expressions n oth reognise the singleton lnguge onsisting of the single-letter wor. Yet Rel / =, s there re non-symmetri reltions. B. rphs Frey n Serov eision proeure for representle llegories [8, pge 208] relies on notion of irete, lelle, 2-pointe grph. The sme notion ws propose inepenently y nrék n Breikhin [2], in more omprehensive wy. ll groun terms the terms in the syntx of llegories (omposition, intersetion, onverse, n unit). groun term u n e represente s lelle irete grph (u) with two istinguishe verties lle the input n the output. We give some exmples in Figure, see efinition for preise efinition. These grphs n e enowe with preorer reltion: we write F when there exists grph homomorphism from F to preserving lels, inputs, n outputs. For instne the grph orresponing to ( ( )) is smller thn the grph of ( ) ( ), thnks to the homomorphism epite in Figure 2 using otte rrows. Notie tht the homomorphism nees not e injetive or surjetive, so tht this preorer hs nothing to o with the respetive sizes of the grphs: grph my very well e smller thn nother in the sense of, while hving more verties or eges (n vie vers). The key result from Frey n Serov [8, pge 208], or nrék n Breikhin [2, Theorem ], is tht for ny two groun terms u, v, we hve Rel u v if n only if (u) (v). (6) The grphs re finite so tht one n serh exhustively for homomorphism, whene the eiility result.. rph lnguges To exten the ove grph-theoretil hrteristion to Kleene llegories, we nee to hnle union n (reflexive-) trnsitive losures. It suffies for tht to onsier sets of grphs: to eh expression e, we ssoite set of grphs (e). This set is most often infinite when the expression e ontins (reflexive-)trnsitive losures. Writing X for the ownwr losure of set of grphs X y the preorer on grphs, we otin the following generlistion of oth (5) n (6): for ny two expressions e n f, Rel e f if n only if (e) (f). (7) This is Theorem 6 in the sequel, n this result is lmost there in the work y nrék et l. [], [2]. To the est of our knowlege this expliit formultion is new, s well s its use towrs eiility results. When e n f re groun terms, we reover the hrteristion (6) for representle llegories: (e) n (f) re singleton sets in this se. For plin regulr expressions, the grphs re just wors n the preorer reues to isomorphism. We thus reover the hrteristion (5) for Kleene lger. This result lso generlises the hrteristion provie y Ésik et l. [3] for Kleene lger with onverse: grphs of expressions without intersetion re just wors over uplite lphet, n the orresponing restrition of the preorer preisely orrespons to the wor rewriting system they use (see Remrk 7).. Petri utomt In orer to exploit the ove hrteristion n otin eiility results, one hs first to represent grph lnguges in finitry wy. We propose for tht new finite utomt moel, lrgely se on Petri nets [6] [8]. We esrie this moel elow, ignoring onverse n unit for the ske of lrity. Rell tht Petri net onsists of finite set of ples, enote with irles; set of trnsitions, enote with retngles; for eh trnsition, set of input ples n set of output ples, enote with rrows; n initil ple, enote y n entrnt rrow; set of finl mrkings, enote y otte oxes ( mrking, or onfigurtion, eing set of ples). The exeution moel is the following: strt y putting token on the initil ple; hoose trnsition whose input ples ll ontin token, remove those tokens n put new tokens in the output ples of the trnsition; repet this proess until finl mrking is rehe. The otine sequene of trnsitions is lle n epting run. (We tully restrit ourselves to sfe Petri nets, to ensure tht there is lwys t most one token in given ple when plying this gme.) Petri utomton is just sfe Petri net with vriles lelling the outputs of eh trnsition. The utomton epite For every rehle mrking in sfe net, there is t most one token in ny given ple. 2

4 : 4 F : 0 Figure 2: grph homomorphism. elow is the utomton we will onstrut for the groun term. ny run must strt y firing the left-most trnsition, rehing the mrking {B, }; then we hve the hoie of firing the upper trnsition first, rehing the mrking {, }, or the lower one, rehing the mrking {B, }. In oth ses we reh the finl mrking {, } y firing the remining trnsition. To re grph in suh n utomton, we try to fin n epting run tht mthes the grph up to homomorphism (efinitions 0 n ). We o tht y using n evolving funtion from the tokens to the verties of the grph. We strt with the funtion mpping the unique token, in the initil ple, to the input vertex of the grph. To fire trnsition, we must hek tht ll its input tokens re mppe to the sme vertex in the grph, n tht this vertex hs severl outgoing eges, lelle oring to the outputs of the trnsition. If this is the se, we upte the funtion y removing the mppings orresponing to the elete tokens, n y ing new mppings for eh of the rete tokens (using the trget verties of the forementione outgoing eges, oring to the lels). The grph is epte y the Petri utomton if we n reh finl mrking of the Petri utomton, with ll tokens mppe to the output vertex of the grph. For instne, the previous utomton epts the grph of (F in Figure 2). We strt with the funtion { 0}. We n fire the first trnsition, upting the funtion into {B, 2} (We oul lso hoose to upte the funtion into {B 2, }, or {B, }, or {B, 2} ut this woul le to e-en). Then we n fire the upper trnsition, evolving the funtion into { 3, 2}, n we finish y firing the remining trnsition, otining the funtion {, 3}. We ll lnguge of the set of grphs L ( ) epte y Petri utomton. This lnguge is ownwr-lose: L ( ) = L ( ). For instne, the previous utomton lso epts the grph from Figure 2, whih is smller thn F. Inee, when we fire the first trnsition, we n ssoite the two newly rete tokens (in ples B n ) to the B sme vertex (5). This tully orrespons to omposing the funtions use to ept F with the homomorphism epite with otte rrows. This utomt moel is expressive enough for Kleene llegories: for ny expression e, we n onstrut Petri utomton (e) suh tht L ( (e)) = (e) (Setion IV). We give three other exmples of Petri utomt to give more intuition on their ehviour. The first trnsition in the previous Petri utomton splits the initil token into two tokens, whih re move onurrently in the reminer of the run. This orrespons to n intersetion in the onsiere expression. This is to e ontrste with the ehviour of the following utomton, whih we woul onstrut for the non-groun expression. This utomton hs two epting runs: {}, {B}, {} n {}, {}, {}, whih n e use to ept the (grphs of the) groun terms n. In sense, two trnsitions ompeting for the sme tokens represent non-eterministi hoie, i.e., union in the strting expression. Still in the first exmple, the two tokens rete y the first trnsition re lter ollete in the finl mrking. Tokens my lso e ollete n merge y trnsition. onsier for instne the following utomton for ( ). It hs only one epting run, {}, {B, }, {B, }, {}, n this run n e use to re the fourth grph from Figure. s lst exmple, onsier the following utomton for the expression +. The upper trnsition introues loop, so tht there re infinitely mny epting runs. For ny n > 0, the grph of the groun term n is epte y this utomton. oring to hrteristion (7), the next step is to eie whether the ontinment L ( ) L (B) hols, for two given Petri utomt n B. Severl iffiulties rise, tht o not pper with lssil wor utomt. Our solution nevertheless uses stnr oinutive pproh, where we efine n pproprite notion of simultion (Setion V-). B B B 3

5 () = () = (w ) = (w) (u v) = (u) (v) (u v) = (u) (v) Figure 3: Inutive onstrution of the grph of groun term. Stnr nottions. For ny sets, B, we write P (S) = {P P } for the set of susets of, B for the set of funtions from to B, n B for the set of prtil mps from to B. The omin of prtil mp f is enote y om (f). II. RPH-THORTIL HRTRISTION We onsier the signture,,, +,, 0, of Kleene llegories, where e is n revition for e +. We fix set X of vriles, n we enote y Reg X the set of expressions e, f... uilt from vriles in X with these onnetives. roun terms re the expressions u, v, w... uilt from X only with the su-signture,,,. If σ X P (S S) is n interprettion of the lphet X into some spe of reltions, we write σ for the unique homomorphism extening σ into funtion from Reg X to P (S S). n ineqution etween two expressions e n f is vli, written Rel e f, if for ny reltionl interprettion σ we hve σ(e) σ(f). We let rnge over 2-pointe lelle irete grphs, whih we simply ll grphs in the sequel. Those re tuples V,, ι, o with V finite set of verties, V X V set of eges lelle with X, n ι, o V the two istinguishe verties, respetively lle input n output. efinition (rph of groun term: (w)) To eh groun term w, we ssoite grph (w), y inution on w. The grph of X hs one ege lelle y linking its input to its output. The grph for hs only one vertex, oth input n output. The omposition of two grphs with isjoint sets of verties n e performe y ientifying the output of the first grph n the input of the seon one. The intersetion on grphs onsists in merging their inputs n merging their outputs. The onverse onsists simply in exhnging the input n the output of grph. See Figure 3 for grphil esription of this onstrution. Those grphs were introue inepenently y Frey n Serov [8, pge 208], n nrék n Breikhin [2]. efinition 2 (rph homomorphism, preorers n ) grph homomorphism from V,, ι, o to V 2, 2, ι 2, o 2 is mp ϕ V V 2 suh tht ϕ(ι ) = ι 2, ϕ(o ) = o 2, n (p, x, q) entils (ϕ(p), x, ϕ(q)) 2. We enote y the reltion on grphs efine y if there exists grph homomorphism from to. This reltion gives rise to preorer on groun terms, written n efine y u v if (u) (v). iven set S of grphs, we write S for its ownwr losure: S = {, S }. Similrly, we write S for the ownwr losure of set of groun terms w.r.t.. s expline in the introution, the ove preorer on groun terms preisely hrterises inlusion uner ritrry reltionl interprettions: Theorem 3 ([2, Theorem ], or [8, pge 208]). For ll groun terms u, v, we hve Rel u v u v. To exten this result to Kleene llegories, we introue the following generlistion of the lnguge of regulr expression. Sets of wors eome sets of groun terms. efinition 4 (Terms n grphs of n expression) The set of terms of n expression e Reg X, written e, is the set of groun terms efine inutively s follows: = {} 0 = x = {x} e f = {w w w e n w f} e f = {w w w e n w f} e f = e f e = n N {w w n i, w i e} e = {w w e}. The set of grphs proue y n expression e, enote y (e) is the set of grphs ssoite to the groun terms in e: (e) = {(w) w e}. To otin the hrteristion nnoune in the introution, we nee slight refinement of lemm estlishe y nrék, Mikulás, n Németi []: Lemm 5. For ll expression e Reg X X, n ll reltionl interprettions σ X P (S S), we hve σ(e) = σ(u) = u e w e σ(w). Proof. The first equlity is extly [, Lemm 2.]; for the seon one, we use the ft tht σ(w) σ(u) whenever w u, thnks to Theorem 3 (i.e., [2, Theorem ]). Theorem 6. The following properties re equivlent, for ll expressions e, f Reg X : (i) Rel e f, (ii) e f, (iii) (e) (f). Proof. We give etile proof in ppenix. The implition (ii) (i) follows esily from Lemm 5, n (iii) (ii) is mtter of unfoling efinitions. For (i) (iii), we minly use [2, Lemm 3]. (The ext hrteristion nnoune in the introution (7) follows: for ny sets X, Y, we hve X Y iff X Y.) 4

6 B H I F t t 0 B t 2 t 4 t 3 t 5 Figure 5: n epting run in the utomton from Figure 4. F Figure 4: Petri utomton. The initil ple is, n the finl onfigurtions re {I} n {F, }. lso notie tht while (f) only ontins grphs emnting from groun terms, this is not the se for its losure (f). For instne, (( ) ( )) ontins the following grph, whih is not the grph of ny groun term. e Remrk 7. The grphs ssoite to groun terms without intersetion re isomorphi to wors over uplite lphet. grph homomorphism etween two suh grphs is preisely wht Ésik et l. ll n missile mp [3]. Theorem 6 n thus e seen s generlistion of [3, Theorem 5.3]. III. PTRI UTOMT We exten the set X of vriles into set X of lels: X = X {x x X } {}. Petri utomton is Petri net whose trnsition s outputs re lelle y X. efinition 8 (Petri utomton) Petri utomton over the lphet X is tuple P, T, ι, F where: P is finite set of ples, T P (P ) P ( X P ) is set of trnsitions, ι P is the initil ple of the utomton, F P (P ) is set of finl onfigurtions, onfigurtion eing set of ples. For eh trnsition t = (t, t) T, t n t re ssume to e non-empty; t P is the input of t; n t X P is the output of t. We use the grphil nottion from the introution to represent Petri utomt; the Petri utomton from Figure 4 will e use s running exmple. From onfigurtion ξ P, trnsition t = (t, t) T is enle if t ξ. If so, one my fire t, whih proues new onfigurtion ξ = ξ t {p P x X (x, p) t}. We write ξ t ξ in this se. set of trnsitions T T is sttilly omptile (or just omptile) if their inputs re pirwise isjoint. If furthermore ll trnsitions in T re enle in onfigurtion ξ, one n oserve tht the onfigurtion ξ rehe fter firing them suessively oes not epen on the orer in whih they re fire. In tht se we write ξ T ξ. In the sequel, we ssume ll onsiere Petri utomt to e sfe. (I.e., in Petri nets terminology, suh tht ny rehle mrking hs t most one token in eh ple [6]). Formlly, with our efinitions: Petri utomton P, T, ι, F is sfe if for ll onfigurtion ξ P rehle from {ι} y firing ny numer of trnsitions, if (t, t) T is enle from ξ, p ξ, n (x, p) t, then p t. Now we explin how to use Petri utomt to efine lnguges of grphs. We first efine the runs of n utomton. efinition 9 (Run, epting run, prllel run) run is sequene ξ = (ξ k ) 0 k n, (t k ) 0 k<n of onfigurtions n trnsitions, suh tht ξ k P, t k T n t k k < n, ξ k ξk+. When ξ 0 = {ι} n ξ n F, we ll ξ n epting run. prllel run is efine similrly, s sequene Ξ = (Ξ k ) 0 k n, (T k ) 0 k<n, where the T k T re omptile T k sets of trnsitions suh tht Ξ k Ξk+. (Note tht run ξ is uniquely etermine y ξ 0 n the sequene (t k ): ll susequent onfigurtions n e ompute eterministilly.) onsier the following sequene of trnsitions from the utomton in Figure 4: with ξ = (ξ 0, ξ, ξ 2, ξ 3, ξ 4, ξ 5, ξ 6 ), (t 0, t, t 2, t 3, t 4, t 5 ), ξ 0 ={}, ξ ={B, }, ξ 2 = ξ 4 ={,, }, ξ 3 = ξ 5 ={,, }, ξ 6 ={F, }. We hve {} t0 {B, } t {,, } t 0 =({}, {(, B), (, )}), t =({B}, {(, ), (, )}), t 2 = t 4 =({}, {(, )}), t 3 =({, }, {(, ), (, )}), t 5 =({, }, {(, F )}). t 2,t 4 t 3 t 5 {,, } {F, }, n sine {} is the initil onfigurtion n {F, } F, this sequene is n epting run. It n e represente grphilly s in Figure 5. s for stnr finite stte utomt, we now nee to speify how to re grph in n utomton. s expline in the introution, this is one y linking the intermeite onfigurtions of run to verties in the grph, n y imposing onitions to mth trnsitions with lelle eges of the grph. efinition 0 (Reing, prllel reing, lnguge of run) reing of = V,, ι, o long run ξ = 5

7 0 2 3 Figure 6: rph proue y the run epite in Figure 5. (ξ k ) 0 k n, (t k, t k ) 0 k<n is sequene (ρ k ) 0 k n suh tht for ll k, ρ k is mp from ξ k to V, ρ 0 (ξ 0 ) = {ι}, ρ n (ξ n ) = {o}, n k < n, the following hols: ll tokens in the input of the trnsition re mppe to the sme vertex in the grph: p, q t k, ρ k (p) = ρ k (q); the imges of tokens in ξ k tht re not in the input of the trnsition re unhnge: p ξ k t k, ρ k (p) = ρ k+ (p); eh pir in the output of the trnsition n e vlite y the grph: p t k, (x, q) t k, 4 x X (ρ k (p), x, ρ k+ (q)), x = y n y X (ρ k+ (q), y, ρ k (p)), x = ρ k (p) = ρ k+ (q). Similrly, we efine prllel reing ρ long some prllel run Ξ = (Ξ k ) 0 k n, (T k ) 0 k<n y requiring tht: ρ 0 (Ξ 0 ) = {ι}, ρ n (Ξ n ) = {o}, n k < n the following hols: p Ξ k (t,t) Tk t, ρ k+ (p) = ρ k (p); (t, t) T k, p, q t, ρ k (p) = ρ k (q); (t, t) T k, p t, (x, q) t, x X (ρ k (p), x, ρ k+ (q)), x = y n y X (ρ k+ (q), y, ρ k (p)), x = ρ k (p) = ρ k+ (q). The lnguge of run ξ, enote y L (ξ) is the set of grphs tht n e re long ξ. The lnguge of Petri utomton is finlly otine y onsiering ll epting runs. efinition (Lnguge reognise y Petri utomton) The lnguge reognise y, written L ( ), is the following set of grphs: L ( ) = ξ epting in 5 L (ξ). The lnguge of run ξ n e hrterise y using single grph whih we ll the grph proue y ξ: grphs re epte y ξ extly when they re smller thn the grph proue y ξ oring to (Lemm 4 elow). For instne, the run presente in Figure 5 proues the grph epite in Figure 6. This grph is otine in two steps, y first onsiering notion of tre, whih is grph lelle with X rther thn X, n whih tully orrespons to the notion of pomsettre from stnr Petri nets (see Setion VII for more etils on this orresponene). The tre is onstrute y reting vertex k for eh trnsition t k = (t k, t k ) of the run, plus finl vertex n. We 6 n ege (k, x, l) whenever there is some ple q suh tht (x, q) t k, n t l is the first trnsition fter t k in the run with q mong its inputs, or l = n if there is no suh trnsition in the run. efinition 2 (Tre of run) Let ξ = (ξ k ) 0 k n, (t k, t k ) 0 k<n e run. For n inex k n n ple q, let ν(k, q) e either the smllest inex l suh tht k l n q t l, or n if there is no suh inex. The tre of ξ is the grph ξ = {0,..., n}, ξ, 0, n with ξ = {(k, x, ν(k +, q)) (x, q) t k }. To get the finl grph, whih is lelle y X, one ientifies noes linke y eges lelle y, n one reples eh ege of the form (i, x, j) y (j, x, i). Formlly: efinition 3 (rph proue y run) Let ξ = (ξ k ) 0 k n, (t k, t k ) 0 k<n e run. Let ξ e the smllest equivlene reltion on {0,..., n} ontining ll pirs (i, j) suh tht (i,, j) ξ. The grph proue y ξ, is the grph (ξ) efine y (ξ) = {[i] ξ 0 i n}, ξ, [0] ξ, [n] ξ [i] ξ = {k {0,..., n} i ξ k } ξ = ([i] ξ, x, [j] ξ ) x X n k [i] ξ, l [j] ξ (k, x, l) ξ or (l, x, k) ξ We write ( ) for the set of grphs proue y epting runs of Petri utomton. To voi onfusions with the lnguge L ( ) of, we write is proue y when ( ), reserving lnguge theoreti terminology like is epte y or reognises to ses where we men L ( ). The grph proue y the run presente in Figure 5 hppens to e equl to its tre, sine it is lelle in X only. more involve exmple is given in Figures 7 to 9. Notie tht lthough the tre of run is yli n n e enowe with prtil orer struture (simply hek tht p, ν(_, p) is inresing), it is not neessrily the se for its proue grph. Lemm 4. For ny epting run ξ, we hve L (ξ) if n only if (ξ). Proof. Suppose there exists grph homomorphism ϕ from (ξ) to. Then we n uil reing y efining ρ k (p) = ϕ([ν(k, p)] ξ ) for 0 k n n p ξ k. On the other hn, if we hve reing (ρ k ) 0 k n of, we n uil homomorphism ϕ y letting ϕ([k] ξ ) = ρ k (p) for ny p t k. s (ρ k ) k is reing, ϕ is well efine. The etils of this proof n e foun in ppenix B. s n immeite orollry, we otin the following hrteristion of the lnguge of Petri utomton. orollry 5. L ( ) = ( ). 6

8 0 0 B 2 2 Figure 7: run ξ. 3 Figure 8: The tre of ξ F Figure 9: The grph proue y ξ. The left-hn sie lnguge is efine through reings long epting runs, whih is lol n inrementl notion n whih llows us to efine simultions in Setion V-. By ontrst, the right-hn sie lnguge is efine glolly, whih eses the following onstrution of n utomton reognising the lnguge of n expression. IV. FROM XPRSSIONS TO UTOMT We now show how to ssoite to ny expression e Reg X n utomton (e) tht reognises the lnguge (e). In ft the utomton we otin hs n even stronger onnetion with e: the grphs in (e) re extly those proue y epting runs in (e). To mke the onstrution simpler, we first moify the expression so tht the opertor is only pplie to vriles, y using the following rewriting system: ( ) 0 0 ( + ) ( ) + ( ) ( ). (These rules preserve the set of grphs of the expression; lso rell tht e is shorthn for e + +, so tht we o not nee to hnle it expliitly.) The forml onstrution is inutive; it is given in efinition 6 elow. We esrie it first in informl terms. For the se of x X, we simply uil n utomton with single trnsition lelle y x, going from the initil ple to istint finl ple 2. The union onsists in putting oth utomt sie y sie, n merging their initil ples. For the omposition of n 2 on the other hn we put one utomton in front of the other: the initil ple of the resulting utomton is tht of ; the finl onfigurtions re those of 2 ; for eh finl onfigurtion f of, n for eh initil trnsition (ι 2, t) oming out of the initil ple of 2, we trnsition with input f n output t. This lst step mounts to ing epsilon trnsitions from the finl 2 Note tht this overs uniformly the se of the unit, of vriles, n of onverse vriles. onfigurtions of to the initil ple of 2, n then pply some epsilon-elimintion proeure. We lso put the two utomt sie y sie for the intersetion, ut we merge their initil ples, their initil trnsitions, n their finl onfigurtions: for ny pir of initil trnsitions of the two utomt ({ι }, t ), ({ι 2 }, t 2 ), we put in the intersetion utomton the trnsition ({ι }, t t 2 ); finl onfigurtion of this utomton is the union of finl onfigurtion from n finl onfigurtion of 2. For the trnsitive losure ( + ), we use the ies for union n omposition, ing loops from the finl onfigurtions using the initil trnsitions of the utomton. efinition 6 To eh expression e Reg X, we ssoite Petri utomton (e) efine inutively s follows: x X, (x) = {0, }, {({0}, {(x, )})}, 0, {{}} (0) = {0},, 0, (e e 2 ) = P P 2, T, ι, F F 2 with T = T T 2 {({ι }, t) ({ι 2 }, t) T 2 }. (e e 2 ) = P P 2, T, ι, F 2 with T = T T 2 {(f, t) f F n ({ι 2 }, t) T 2 }. (e + ) = P, T, ι, F with T = T {(f, t) f F n ({ι }, t) T }. (e e 2 ) = P P 2, T, ι, F with F = {f f 2 f F, f 2 F 2 } n T = {(t, t) i {, 2} (t, t) T i, ι i t} {({ι }, t t 2 ) i {, 2}, ({ι i }, t i ) T i }. (In the inutive ses, we ssume (e i ) = P i, T i, ι i, F i for i {, 2}, with P P 2 =.) We prove y inution on e tht (e) is inee sfe Petri utomton; for the sfety requirement, we to the inution hypothesis the ft tht for ny onfigurtion ξ essile in (e), if there is finl onfigurtion f F suh tht f ξ, then f = ξ. nother invrint is tht the initil ple never ppers in finl onfigurtion, nor in the output of ny trnsition. Note tht the ple ι 2 eomes unrehle y onstrution in the ses for union, omposition n intersetion, so tht it oul sfely e remove, together with the ssoite trnsitions. Theorem 7 (orretness). For ll expression e Reg X, L ( (e)) = (e). Proof. We prove stronger result: ( (e)) = (e) (up to grph isomorphisms see ppenix ). This llows us to onlue thnks to orollry 5. orollry 8. The (in)equtionl theory of Kleene llegories is o-reursively enumerle. Proof. onstrut Petri utomt for the two expressions n enumerte ll potentil ounter-exmples, i.e., grphs. grph 7

9 is ounter-exmple if it n e re in one utomton ut not in the other, whih is eile property. Remrk 9. If e is n expression without intersetion, onverse or, it n e shown tht the trnsitions in (e) re ll of the form ({p}, {(x, q)}), with only one input, one output n lel in X. s onsequene, the essile onfigurtions re singletons, n the resulting Petri utomton hs the struture of non-eterministi finite-stte utomton (NF). tully, in tht se, the onstrution we esrie ove is just vrition on Thompson s onstrution [20], with inline epsilon trnsition elimintion.. Simple utomt V. OMPRIN UTOMT The ove results hol for the whole syntx of regulr expressions with onverse n intersetion. However, in the reminer of the pper, we hve to fous on expressions without onverse or ientity. This is euse in omintion with intersetion, these two opertions introue yles in the grphs ssoite to groun terms. onsier for instne the grphs for n : ( ) = ( ) = Sine reflexive-trnsitive losure ( ) impliitly ontins n ourrene of the ientity, we lso hve to fori this opertor. Inste, we the trnsitive losure ( + ). We thus work with expressions from Reg X, efine with the following syntx: e, f Reg X = x X e f e f e f e+ 0. oringly, groun terms re restrite to the following syntx: u, v, w = x X w w w w. utomt uilt using efinition 6 from expressions without onverse or unit only hve trnsitions lelle with X. This orrespons to the notion of simple utomt. efinition 20 (Simple Petri utomton) Petri utomton = P, T, ι, F is lle simple if (t, t) T, (x, p) t, x X. For ll e Reg X, (e) is simple. Moreover for ny run ξ of simple Petri utomton, ξ = (ξ) (up to isomorphism); in prtiulr, simple utomton only proues yli grphs. B. Intuitions In this setion, we show how the notion of simultion reltion, tht llows to ompre NF, n e pte to hnle simple Petri utomt. onsier two utomt = P, T, ι, F n 2 = P 2, T 2, ι 2, F 2, we try to show tht for ny grph epte y, is reognise y 2. By Lemm 4, this mounts to proving tht for ny epting run ξ in, (ξ) is reognise y some epting run ξ in 2. Leving non-eterminism prt, the first ie tht omes to min is to fin reltion etween the onfigurtions in. n the onfigurtions in 2, tht stisfy some onitions on the initil n finl onfigurtions, n suh tht if ξ k ξ k n t ξ k ξ k+, then there is onfigurtion ξ k+ in 2 suh t 2 tht ξ k+ ξ k+, ξ k ξ k+, n these trnsition steps re omptile in some sense. However, suh efinition will not give us the result we re looking for. onsier these two runs: W B Y 2 X 2 The grphs proue y the first n the seon runs orrespon respetively to the groun terms ( ) n ( ). These two terms re inomprle, ut the reltion epite elow stisfies the previously stte onitions. {} {W } {B, } {X, Y } 2 2 B Z Y {B, } {Y, Z} The prolem here is tht in Petri utomt, runs re token firing gmes. To equtely ompre two runs, we nee to losely trk the tokens. For this reson, we will relte onfigurtion ξ k in not only to onfigurtion ξ k in 2, ut to mp η k from ξ k to ξ k. This will enle us to ssoite with eh token situte on some ple in P 2 nother token ple on. We wnt to fin reing of (ξ) in 2, i.e., run in 2 together with sequene of mps ssoiting ples in 2 to positions in (ξ). onsier the piture elow. Sine we lrey hve reing of (ξ) long ξ (y efining ρ k (p) = ν(k, p), s in the proof of Lemm 4), it suffies to fin mps from the ples in 2 to the ples in (the mps η k ): the reing of (ξ) in 2 will e otine y omposing η k with ρ k. η 0 (ξ) ξ 0 t 0 ξ t tn ξ n t n ξ n+ ξ 0 t 0 ρ 0 η ξ t ρ ρ n t n ξ n ρ n+ η n t n ξ n+ η n+ We nee to impose some onstrints on the mps (η k ) to ensure tht (ρ k η k ) 0 k n is inee orret reing in 2. First, we nee to sertin tht trnsition t k in 2 my e fire from the reing stte ρ k η k to reh the reing stte ρ k+ η k+. Furthermore, s for NF, we wnt trnsitions t k 8

10 n t k to e relte: speifilly, we require t k to e inlue (vi the homomorphisms η k n η k+ ) in the trnsition t k. This is meningful euse trnsition t k ontins lot of informtion out the vertex k of (ξ) n out ρ: the lels of the outgoing eges from k re the lels on the output of t k, n the only ples tht will ever e mppe to k in the reing ρ re extly the ples in the input of t k. This lrey shows n importnt ifferene etween the simultions for NF 0 B n Petri utomt. For NF, we relte trnsition p p to trnsi- tion q q with the sme lel. t k Y Here the trnsitions ξ k ξ k+ n X 0 ξ t k k 2 ξ k+ my hve ifferent lels. Z onsier the step represente on the right, orresponing to squre in the ove igrm. The output of 0 hs lel tht oes not pper in 0, n 0 hs two outputs lelle y. Nevertheless this stisfies the onitions informlly stte ove, inee, hols. However this efinition is not yet stisftory. onsier the two runs elow: X 0 B Y 0 Z Their proue grphs orrespon respetively to the groun terms ( ) n ( ) ( ). The prolem is tht ( ) ( ) ( ), ut with the previous efinition, we nnot relte these runs: they o not hve the sme length. The solution here onsists in grouping the trnsitions n 2 together, n onsier these two steps s single step in prllel run. This lst moifition gives us notion of simultion tht suits our nees.. Simultions efinition 2 (Simultion) reltion P (P ) P (P 2 P ) etween the onfigurtions of n the prtil mps from the ples of 2 to the ples of is lle simultion etween n 2 if: if ξ n η then the rnge of η must e inlue in ξ; {ι } {[ι 2 ι ]}; if ξ n ξ (t,t) ξ, then ξ where is the set of ll η suh tht there is some η n omptile set of trnsitions T T 2 suh tht: om (η) T 2 om (η ); (t, t ) T, η(t ) t n (x, q) t,(x, η (q)) t; p om (η), ( (t, t ) T, p t ) η(p) = η (p). T Z 2 T U α B β γ δ ɛ ζ ɛ Figure 0: meing of prllel run into the run from Figure 5. if ξ n ξ F, then there must e some η suh tht om (η) F 2. We will now prove tht the lnguge of is ontine in the lnguge of 2 if n only if there exists suh simultion. We first introue the following notion of emeing. efinition 22 (meing) Let ξ = (ξ k ) 0 k n, (t k ) 0 i<n e run in, n Ξ = (Ξ k ) 0 k n, (T i ) 0 i<n prllel run in 2. n emeing of Ξ into ξ is sequene (η i ) 0 i n of mps suh tht for ny i < n, we hve: η i is mp from Ξ i to ξ i ; the imge of T i y η i is inlue in t i, mening tht for ny (t, t) T i, for ny p t n (x, q) t, η i (p) is ontine in the input of t i n (x, η i+ (q)) is in the output of t i ; the imge of the tokens in Ξ i tht o not pper in the input of T i re preserve (η i (p) = η i+ (p)) n their imge is not in the input of t i. η i ξ i t i ξ i+ Ξ i T i Ξ i+ η i+ Figure 0 illustrtes the emeing of some prllel run, prouing ((( ) ( )) ), into the run presente in Figure 5. Notie tht is it neessry to hve prllel run inste of simple one: to fin something tht mthes the seon trnsition in the upper run, we nee to fire two trnsitions in prllel in the lower run. There is lose reltionship etween simultions n emeings: Lemm 23. Let n 2 e two Petri utomt, the following re equivlent: ) there exists simultion etween n 2 ; 2) for ny epting run ξ in, there is n epting prllel run Ξ in 2 tht n e emee into ξ. Proof. If we hve simultion, let ξ = (ξ k ) 0 k n, (t k ) 0 k<n e n epting run in. By the efinition of simultion, we n fin sequene of sets of mps ( k ) 0 k n suh tht 0 = {[ι 2 ι ]} n k, ξ k k. Furthermore, we n extrt from this η θ η ι F κ 9

11 sequene of mps (η k ) 0 k n n sequene of prllel trnsitions (T k ) 0 k<n suh tht (η k ) is n emeing of (om (η k )) 0 k n, (T k ) 0 k<n (whih is epting) into ξ. This follows iretly from the efinitions of emeing n simultion. On the other hn, if we hve property 2., then we n efine reltion y sying tht ξ if there is n epting run ξ = (ξ k ) 0 k n, (t k) 0 k<n in suh tht there is n inex k 0 : ξ = ξ k 0 ; n the following hols: η if there is n epting prllel run Ξ = (Ξ k ) 0 k n, (T k ) 0 k<n n (η k ) 0 k n n emeing of Ξ into ξ suh tht η = η k 0. It is then immeite to hek tht is inee simultion. If η is n emeing of Ξ into ξ, we n esily hek tht (ρ i η i ) 0 i n is prllel reing of (ξ) long Ξ in 2. Thus, it is ler tht one we hve suh run Ξ with the sequene of mps η, we hve tht (ξ) is inee in the lnguge of 2. The more iffiult question is the ompleteness of this pproh: if (ξ) is reognise y 2, is it lwys the se tht we n fin run Ξ tht my e emee into ξ? The nswer is ffirmtive, thnks to Lemm 24 elow. If (ρ j ) 0 j n is reing of long ξ = (ξ k ) 0 k n, (t k, t k ) 0 k<n, we write tive(j) for the only position in ρ j (t j ) 3. We ll onsistent orering on = V,, ι, o if V, is liner orer n (p, x, q) entils p q. Lemm 24. Let L ( 2 ) n e ny onsistent orering on. Then there exists run ξ n reing (ρ j ) 0 j n of long ξ suh tht k, tive(k) tive(k + ). Proof. The proof of this result is hieve y tking ny run ξ epting, n then exhnging trnsitions in ξ oring to, while preserving the existene of reing. The etils of this proof eing it tehnil, we move them to ppenix. (Notie tht if ontins yles, this lemm nnot pply euse of the lk of onsistent orering.) Lemm 24 enles us to uil n emeing from ny reing of (ξ) in 2. Lemm 25. Let ξ epting run of. Then (ξ) is in L ( 2 ) if n only if there is n epting prllel run in 2 tht n e emee into ξ. Proof. The etile proof of this result n e foun in ppenix. For the if iretion, we uil prllel reing from the emeing, s expline ove. For the other iretion, we onsier reing of (ξ) in 2 long some run ξ. Notie tht the nturl orering on N is onsistent for (ξ); we my thus hnge the orer of the trnsitions in ξ (using Lemm 24) n group them equtely to otin prllel reing Ξ tht emes in ξ. So we know tht the existene of emeings is equivlent to the inlusion of lnguges, n we previously estlishe 3 Rell tht if (ρ j ) 0 j n is reing long ξ then for ny p, q t j, we hve ρ j (p) = ρ j (q). B Figure : Petri utomton for +. tht it is lso equivlent to the existene of simultion reltion. Hene, the following hrteristion hols: Theorem 26. Let n 2 e two simple Petri utomt. L ( ) L ( 2 ) if n only if there exists simultion reltion etween n 2. Proof. By Lemms 4, 23 n 25. s Petri utomt re finite, there re finitely mny reltions in P (P (P ) P (P 2 P )). The existene of simultion thus is eile, llowing us to prove the min result: Theorem 27. iven two expressions e, f Reg X, testing whether Rel e = f is eile. Proof. By Theorems 6, 7 n 26, n resoning y oule inlusion. In prtie, we n uil the simultion on-the-fly, strting from the pir ({ι }, {[ι 2 ι ]}) n progressing from there. We hve implemente this lgorithm in OML [6]. ven though its theoretil worst se time omplexity is huge 4, we get result lmost instntneously on simple one-line exmples.. The prolems with onverse or unit The previous lgorithm is not omplete in presene of onverse or unit. More preisely, Lemm 25 oes not hol for generl utomt. Inee, it is not possile to ompre two runs just y relting the tokens t eh step, n heking eh trnsition inepenently. onsier the utomton from Figure. This utomton hs in prtiulr n epting run reognising. Let us try to test if this is smller thn the following runs from nother utomton (we represent the trnsitions simply s rrows, euse they only hve single input n single output): x 0 x x 2 x 3 x 4 x 5 x 6 y 0 y y 2 y 3 y 4 y 5 y 6 y 7 It stns to reson tht we woul reh point where for the first run: {, } {[x 3 ]} n for the seon run: {, } {[y 3 ]}. 4 quik nlysis gives O (2 n+(n+)m ) omplexity oun, where n n m re the numers of ples of the utomt. 0

12 So if it were possile to relte the en of the runs just with this informtion, they shoul oth e igger thn or oth smller or inomprle. But in ft the first run (reognising ) is igger thn ut the seon (reognising ) is not. This highlights the nee for hving some memory of previously fire trnsition when trying to ompre runs of generl Petri utomt, thus preventing our lol pproh to er fruits. The sme kin of exmple oul e foun with the onverse opertion inste of. ι X ι e fn Figure 2: Squring of the utomton for e. X fn VI. OMPLXITY The previous notion of simultion tully llows us to eie lnguge inlusion of simple utomt in XPSP. We tully otin tht the prolem is XPSP-omplete. Lemm 28. ompring simple Petri utomt is XPSPesy. Proof. Our mesure for the size of n utomton here is its numer of ples (the numer of trnsitions is t most exponentil in this numer). Here is non-eterministi semilgorithm tht tries to refute the existene of simultion reltion etween n 2. : strt with ξ = {ι } n = {[ι 2 ι ]}; 2: if ξ F, hek if there is some η suh tht om (η) F 2, if not return FLS; 3: hoose non-eterministilly trnsition (t, t) T suh tht t ξ; 4: fire (t, t), whih mens tht ξ = ξ t {p P x X (x, p) t} ; 5: hve progress long (t, t) s well, oring to the onitions from efinition 2. 6: go to step 2. ll these omputtions n e one in exponentil spe. In prtiulr s ξ is set of ples in P, it n e store in spe P log( P ). Similrly,, eing set of prtil funtions from P 2 to P, eh of whih of size P 2 log( P + ), n e store in spe P + P2 P 2 log( P + ). This noneterministi XPSP semi-lgorithm n then e turne into n XPSP lgorithm y Svith theorem [9]. One n hek tht the numer of ples in (e) is liner in the size of e. (The exponentil upper-oun on the numer of trnsitions is symptotilly rehe, onsier for instne the utomton for (x y ) (x 2 y 2 ) (x n y n ).) Therefore, the previous Lemm gives us XPSP lgorithm for eiing the (in)equtionl theory of ientity-free reltionl Kleene ltties. Theorem 29. ompring simple Petri utomt is XPSP-omplete. Proof. By Lemm 28, it suffies to show hrness. We perform reution from the equlity of lnguges enote y regulr expressions with squring (e 2 = e e), n XPSPomplete prolem [4]. To voi onfusion, the regulr lnguge enote y the expression e will e written e. ny wor u n e see uniquely s liner grph λ(u). By extension, the set of grphs of wors from e will e enote y λ e. First, notie tht if u n v re just wors over X, λ(u) λ(v) is equivlent to u = v. Beuse of this, it is strightforwr to hek tht for ny e, f Reg 2 X the following hols (λ e ) = (λ f ) e = f. (8) iven n expression e on this signture, we n uil in liner time Petri utomton, with liner numer of ples n trnsitions. The losure of the lnguge enote y e is e extly the lnguge reognise y. This utomton is not simple: some outgoing rs re lelle with ; therefore, this reution only ensures tht the equivlene of ritrry Petri utomt is XPSP-hr. To get XPSP-hrness for simple Petri utomt, we nee to refine the onstrution so tht is interprete s stnr letter. (More etils re given in ppenix F.) The utomt we proue here only hve one finl onfigurtion, onsisting in singleton. The onstrution is strightforwr pttion of Thompson s lgorithm for NF [20]. The only interesting se is for omputing n utomton for e = (e ) 2. We represent it grphilly in Figure 2. The trnsitions lelle y X re shorthn for set of trnsitions, ontining for eh letter x in X trnsition with one output, lelle y x. This onstrution is liner: the utomton for e is not opie. Furthermore, run in this utomton will strt y sening one token in n one in ι, the initil stte of the utomton for e. Then it will perform run in this utomton until single token rehes the finl stte for e, fn. t this point the tokens from n fn will e sent to n ι, strting new run of e. When token is finlly sent to fn, it n e onsume together with the one in, to reh the finl onfigurtion. This proof oes not llow us to eue tht lso the (in)equtionl theory of Kleene llegories is XPSP-hr: the Petri utomt we onstrut re not ssoite to some expressions of polynomil size, priori. VII. RLTIONSHIP WITH STNR PTRI NT NOTIONS Our notion of Petri utomton is relly lose to the stnr notion of lelle (sfe) Petri net, where the trnsitions themselves re lelle, rther thn their outputs. We motivte this

13 esign hoie, n we relte some of the notions we introue to the stnr ones [6]. ny Petri utomton n e trnslte into sfe Petri net whose trnsitions re lelle y X {τ}, the itionl lel τ stning for silent tions. For eh utomton trnsition ({p,..., p n }, {(x, q ),..., (x m, q m )}) with m >, we introue m fresh ples r,..., r m n m + trnsitions: silent trnsition t 0 with preset {p,..., p n } n postset {r,..., r m }; n for eh k m trnsition t k lelle y x k, with preset {r k } n postset {q k }. The inutive onstrution from Setion IV is tully simpler to write using lelle Petri nets, s one n freely use τ- lelle trnsitions to ssemle utomt into lrger ones, one oes not nee to perform the τ-elimintion steps on the fly. On the other sie, we oul not efine n pproprite notion of simultion for Petri nets: we nee to fire severl trnsitions t one in the smll net, to provie enough informtion for the lrger net to nswer; elimiting whih trnsitions to group n whih to seprte is non-trivil; similrly, efining notion of prllel step is elite in presene of τ-trnsitions. By swithing to our notion of Petri utomt, we impose strong onstrints out how those τ-trnsitions shoul e use, resulting in more fitte moel. To esrie run in Petri net N, one my use proess p K N, where K is n ourrene net ( prtilly orere Petri net) [9]. The grphil representtion (Figures 5, 7 n 0) we use to esrie runs in n utomton re in ft mere pttion of this notion to our setting (with lels on rs rther thn on trnsitions). Our notion ξ of tre of run tully orrespons to the stnr notion of pomset-tre, vi ulistion (see ppenix H). Jtegonkr n Meyer showe tht the pomsettre equivlene prolem for sfe Petri nets is XPSPomplete [0]. However this equivlene is too strong n oes not oinie with the one isusse in the present pper, even for simple Petri utomt. The grph proue y run is its tre in this se, so tht pomset-tre equivlene for Petri nets orrespons to equivlene of the sets of grphs proue y Petri utomt ( ( ) = (B), up to grph isomorphism). However, for the equtionl theory we onsier, we nee to ompre the lnguges, whih re ownwr-lose sets of grphs, ( ( ) = (B), i.e., L ( ) = L (B)) rther thn the sets of grphs themselves. lso note tht the lss of sets of grphs proue y Petri utomt ({ ( ) Petri utomton}) is not lose uner ownwr losure. Intuitively, the with of ny grph in ( ) is oune y the numer numer of ples of, ut ( ) usully ontins grphs of ritrry with. s onsequene, one nnot esily reue our prolem to pomsettre equivlene of sfe Petri nets. VIII. IRTIONS FOR FUTUR WORK The utomt moel we introue to reognise ownwrlose grph lnguges llowe us to otin the eiility of ientity-free reltionl Kleene ltties, n (in)equtionl theory stuie reently y nrék et l. []. Thnks to this moel, we lso otine tht the (in)equtionl theory of Kleene llegories is o-reursively enumerle. We leve severl questions open. First, is the (in)equtionl theory of Kleene llegories eile? Two pprohes oul provie n ffirmtive nswer: fining n lgorithm for ompring ritrry sfe Petri utomt, or fining omplete n reursively enumerle xiomtistion. Seon, n we otin Kleene-like theorem for Petri utomt: is the lnguge of ny Petri utomton lso the lnguge of Kleene llegory term? This question n e restrite to simple Petri utomt; if one of the nswers is negtive, is there n lgeri wy of representing these utomt? Whih re the missing opertors? RFRNS [] H. nrék, S. Mikulás, n I. Németi. The equtionl theory of Kleene ltties. Theoretil omputer Siene, 42(52): , 20. [2] H. nrék n. Breikhin. The equtionl theory of union-free lgers of reltions. lger Universlis, 33(4):56 532, 995. [3] S. L. Bloom, Z. Ésik, n. Stefnesu. Notes on equtionl theories of reltions. lger Universlis, 33():98 26, 995. [4] M. Boff. Une onition impliqunt toutes les ientités rtionnelles. Informtique Théorique et pplitions, 29(6):55 58, 995. [5] P. Brunet n. Pous. Kleene lger with onverse. In Pro. RMiS, volume 8428 of Leture Notes in omputer Siene, pges 0 8. Springer Verlg, 204. [6] P. Brunet n. Pous. We ppenix to this strt, [7] J. H. onwy. Regulr lger n finite mhines. hpmn n Hll Mthemtis Series, 97. [8] P. J. Frey n. Serov. tegories, llegories. North Holln, 990. [9] U. oltz n W. Reisig. The non-sequentil ehviour of petri nets. Informtion n ontrol, 57(2):25 47, 983. [0] L. Jtegonkr n. R. Meyer. eiing true onurreny equivlenes on sfe, finite nets. Theoretil omputer Siene, 54():07 43, 996. Twentieth Interntionl olloquium on utomt, Lnguges n Progrmming. [] S.. Kleene. Representtion of vents in Nerve Nets n Finite utomt. Memornum. Rn orportion, 95. [2]. Kozen. ompleteness theorem for Kleene lgers n the lger of regulr events. In Pro. LIS, pges I omputer Soiety, 99. [3]. Kro. omplete System of B-Rtionl Ientities. In Pro. ILP, volume 443 of Leture Notes in omputer Siene, pges Springer Verlg, 990. [4]. Meyer n L. Stokmeyer. The equivlene prolem for regulr expressions with squring requires exponentil spe. In Swithing n utomt Theory, 972., I onferene Reor of 3th nnul Symposium on, pges I, 972. [5]. Meyer n L. J. Stokmeyer. Wor prolems requiring exponentil time. In Pro. M symposium on Theory of omputing, pges 9. M, 973. [6] T. Murt. Petri nets: Properties, nlysis n pplitions. Pro. of the I, 77(4):54 580, pr 989. [7].. Petri. Funmentls of theory of synhronous informtion flow. In IFIP ongress, pges , 962. [8].. Petri. Kommuniktion mit utomten. Ph thesis, rmstt Univ. of Teh., 962. [9] W. J. Svith. Reltionships etween noneterministi n eterministi tpe omplexities. Journl of omputer n system sienes, 4(2):77 92, 970. [20] K. Thompson. Regulr expression serh lgorithm.. of the M, :49 422,

14 . Omitte proof: Theorem 6 PPNIX We enote y W X the set of groun terms. We wnt to estlish tht for ny regulr expressions with intersetion n onverse e n f, the following re equivlent: (i) Rel e f, (ii) e f, (iii) (e) (f). ) (iii) (ii): Suppose (e) (f), let u e e groun term. Neessrily there is some grph (f) suh tht (u). By efinition of (f), there is some term v f suh tht = (v). This mens tht u v, thus proving tht u f. ) (ii) (i): Let e, f Reg X two expressions suh tht e f, n σ X P (S S) some reltionl interprettion. σ(e) = σ(w) (Lemm 5) w e w f σ(w) (e f) = σ(f) (Lemm 5) ) (i) (iii): In orer to prove this lst implition, we nee the following lemm, whih is ue to nrék n Breikhin. Lemm 30 ( [2, Lemm 3]). Let S e se set, i, j S, v W X, (v) = V v, v, ι v, o v n σ X P (S S). The following re equivlent: ) (i, j) σ(v); 2) ϕ V v S suh tht ϕ(ι v ) = i; ϕ(o v ) = j n (p,, q) v (ϕ(p), ϕ(q)) σ(). Let e, f Reg X two expressions suh tht Rel e f, n u e suh tht (u) = V u, u, ι u, o u ; we n uil n interprettion σ X P (V u V u ) y speifying: σ() = {(p, q) (p,, q) u }. It is quite simple to hek tht σ(u) = {(ι u, o u )}. By Lemm 5 n Rel e f, we know tht σ(u) σ(f) = σ(v). v f Thus there is some v f suh tht (ι u, o u ) σ(v). By Lemm 30 we get tht there is mp ϕ V v V u suh tht ϕ(ι v ) = ι u ; ϕ(o v ) = o u n (p,, q) v (ϕ(p), ϕ(q)) σ(). Using the efinition of σ, we rewrite this lst onition s (p,, q) v (ϕ(p),, ϕ(q)) u. Thus ϕ is grph homomorphism from (v) to (u), proving tht (u) (v), hene (u) (f). B. Omitte proof: Lemm 4 Let = V,, ι, o, ξ = {0,..., n}, ξ, 0, n, n (ξ) = {[i] ξ 0 i j }, ξ, [0] ξ, [n] ξ. Suppose there exists grph homomorphism ϕ from (ξ) to. We uil reing (ρ k ) k of long ξ y letting ρ k (p) = ϕ([ν(k, p)] ξ ) for 0 k n n p ξ k. We now hve to hek tht ρ is truly reing of in : for the initilistion n onlusion of the reing: ρ 0 (ι ) = ϕ([ν(0, ι )] ξ ) (y efinition) = ϕ([0] ξ ) = {ι} (ϕ is homomorphism) p ξ n, ρ n (p) = ϕ([ν(n, p)] ξ ) = ϕ([n] ξ ) ( k, p, k ν(k, p) n) = {o}. (ϕ is homomorphism) for ll p t k, ρ k (p) = ϕ([ν(k, p)] ξ ) = ϕ([k] ξ ) whih oes not epen on p. for ll p ξ k t k, we hve ν(k, p) = ν(k +, p) (sine p t k ). Hene ρ k (p) = ϕ([ν(k, p)] ξ ) = ϕ([ν(k +, p)] ξ ) = ρ k+ (p). for ll p t k n (x, q) t k, we know tht ρ k (p) = ϕ([k] ξ ) n tht (k, x, ν(k +, q)) ξ. If x X, we lso hve ([k] ξ, x, [ν(k +, q)] ξ ) ξ. Beuse ϕ is homomorphism we n eue tht: (ϕ([k] ξ ), x, ϕ([ν(k +, q)] ξ )), whih n e rewritten (ρ k (p), x, ρ k+ (q)). If x = y, y X, we lso hve ([ν(k +, q)] ξ, y, [k] ξ ) ξ. Beuse ϕ is homomorphism we n get like efore (ρ k+ (q), y, ρ k (p)). If finlly x =, then we know tht k ξ ν(k +, q), thus proving tht ρ k (p) = ϕ([k] ξ ) = ϕ([ν(k +, q)] ξ ) = ρ k+ (q). If on the other hn we hve reing (ρ k ) 0 k n of, we efine ϕ {0,..., n} V y ϕ([k] ξ ) = ρ k (p) for ny p t k. s (ρ k ) k is reing, ϕ is well efine 5. Let us hek tht ϕ is homomorphism from (ξ) to : ϕ([0] ξ ) = ρ 0 (ι ) = ι; ϕ([n] ξ ) = ρ n (p) with p ξ n, n sine (ρ k ) k is reing ρ n (p) = o. if ([k] ξ, x, [l] ξ ) ξ is n ege of (ξ), then it ws proue from some ege (i, y, j) ξ, with either x = y n i, j [k] ξ [l] ξ or y = x n i, j [l] ξ [k] ξ. There is some p t i n q suh tht (y, q) t j n j = ν(i +, q). By efinition of ν we know tht i + m < j, q t m. Thus, euse (ρ k ) k is reing, ρ i+ (q) = ρ j (q) n either (ρ i (p), x, ρ i+ (q)) or (ρ i+ (q), x, ρ i (p)), n thus (ϕ([k] ξ ), x, ϕ([l] ξ )). 5 It is not iffiult to hek tht k ξ l p, q t k t l, ρ k (p) = ρ l (q). 3

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

If the numbering is a,b,c,d 1,2,3,4, then the matrix representation is as follows:

If the numbering is a,b,c,d 1,2,3,4, then the matrix representation is as follows: Reltions. Solutions 1. ) true; ) true; ) flse; ) true; e) flse; f) true; g) flse; h) true; 2. 2 A B 3. Consier ll reltions tht o not inlue the given pir s n element. Oviously, the rest of the reltions

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

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

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

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

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

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

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

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

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

arxiv: v2 [math.co] 31 Oct 2016

arxiv: v2 [math.co] 31 Oct 2016 On exlue minors of onnetivity 2 for the lss of frme mtrois rxiv:1502.06896v2 [mth.co] 31 Ot 2016 Mtt DeVos Dryl Funk Irene Pivotto Astrt We investigte the set of exlue minors of onnetivity 2 for the lss

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

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

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

CS261: A Second Course in Algorithms Lecture #5: Minimum-Cost Bipartite Matching

CS261: A Second Course in Algorithms Lecture #5: Minimum-Cost Bipartite Matching CS261: A Seon Course in Algorithms Leture #5: Minimum-Cost Biprtite Mthing Tim Roughgren Jnury 19, 2016 1 Preliminries Figure 1: Exmple of iprtite grph. The eges {, } n {, } onstitute mthing. Lst leture

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

Factorising FACTORISING.

Factorising FACTORISING. Ftorising FACTORISING www.mthletis.om.u Ftorising FACTORISING Ftorising is the opposite of expning. It is the proess of putting expressions into rkets rther thn expning them out. In this setion you will

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

CARLETON UNIVERSITY. 1.0 Problems and Most Solutions, Sect B, 2005

CARLETON UNIVERSITY. 1.0 Problems and Most Solutions, Sect B, 2005 RLETON UNIVERSIT eprtment of Eletronis ELE 2607 Swithing iruits erury 28, 05; 0 pm.0 Prolems n Most Solutions, Set, 2005 Jn. 2, #8 n #0; Simplify, Prove Prolem. #8 Simplify + + + Reue to four letters (literls).

More information

Algebra 2 Semester 1 Practice Final

Algebra 2 Semester 1 Practice Final Alger 2 Semester Prtie Finl Multiple Choie Ientify the hoie tht est ompletes the sttement or nswers the question. To whih set of numers oes the numer elong?. 2 5 integers rtionl numers irrtionl numers

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

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

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

Aperiodic tilings and substitutions

Aperiodic tilings and substitutions Aperioi tilings n sustitutions Niols Ollinger LIFO, Université Orléns Journées SDA2, Amiens June 12th, 2013 The Domino Prolem (DP) Assume we re given finite set of squre pltes of the sme size with eges

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

Eigenvectors and Eigenvalues

Eigenvectors and Eigenvalues MTB 050 1 ORIGIN 1 Eigenvets n Eigenvlues This wksheet esries the lger use to lulte "prinipl" "hrteristi" iretions lle Eigenvets n the "prinipl" "hrteristi" vlues lle Eigenvlues ssoite with these iretions.

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

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

Data Structures LECTURE 10. Huffman coding. Example. Coding: problem definition

Data Structures LECTURE 10. Huffman coding. Example. Coding: problem definition Dt Strutures, Spring 24 L. Joskowiz Dt Strutures LEURE Humn oing Motivtion Uniquel eipherle oes Prei oes Humn oe onstrution Etensions n pplitions hpter 6.3 pp 385 392 in tetook Motivtion Suppose we wnt

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

The DOACROSS statement

The DOACROSS statement The DOACROSS sttement Is prllel loop similr to DOALL, ut it llows prouer-onsumer type of synhroniztion. Synhroniztion is llowe from lower to higher itertions sine it is ssume tht lower itertions re selete

More information

A Primer on Continuous-time Economic Dynamics

A Primer on Continuous-time Economic Dynamics Eonomis 205A Fll 2008 K Kletzer A Primer on Continuous-time Eonomi Dnmis A Liner Differentil Eqution Sstems (i) Simplest se We egin with the simple liner first-orer ifferentil eqution The generl solution

More information

Particle Physics. Michaelmas Term 2011 Prof Mark Thomson. Handout 3 : Interaction by Particle Exchange and QED. Recap

Particle Physics. Michaelmas Term 2011 Prof Mark Thomson. Handout 3 : Interaction by Particle Exchange and QED. Recap Prtile Physis Mihelms Term 2011 Prof Mrk Thomson g X g X g g Hnout 3 : Intertion y Prtile Exhnge n QED Prof. M.A. Thomson Mihelms 2011 101 Rep Working towrs proper lultion of ey n sttering proesses lnitilly

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

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

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

On a Class of Planar Graphs with Straight-Line Grid Drawings on Linear Area

On a Class of Planar Graphs with Straight-Line Grid Drawings on Linear Area Journl of Grph Algorithms n Applitions http://jg.info/ vol. 13, no. 2, pp. 153 177 (2009) On Clss of Plnr Grphs with Stright-Line Gri Drwings on Liner Are M. Rezul Krim 1,2 M. Siur Rhmn 1 1 Deprtment of

More information

Lesson 2.1 Inductive Reasoning

Lesson 2.1 Inductive Reasoning Lesson 2.1 Inutive Resoning Nme Perio Dte For Eerises 1 7, use inutive resoning to fin the net two terms in eh sequene. 1. 4, 8, 12, 16,, 2. 400, 200, 100, 50, 25,, 3. 1 8, 2 7, 1 2, 4, 5, 4. 5, 3, 2,

More information

Separable discrete functions: recognition and sufficient conditions

Separable discrete functions: recognition and sufficient conditions Seprle isrete funtions: reognition n suffiient onitions Enre Boros Onřej Čepek Vlimir Gurvih Novemer 21, 217 rxiv:1711.6772v1 [mth.co] 17 Nov 217 Astrt A isrete funtion of n vriles is mpping g : X 1...

More information

GRUPOS NANTEL BERGERON

GRUPOS NANTEL BERGERON Drft of Septemer 8, 2017 GRUPOS NANTEL BERGERON Astrt. 1. Quik Introution In this mini ourse we will see how to ount severl ttriute relte to symmetries of n ojet. For exmple, how mny ifferent ies with

More information

Graph Theory. Simple Graph G = (V, E). V={a,b,c,d,e,f,g,h,k} E={(a,b),(a,g),( a,h),(a,k),(b,c),(b,k),...,(h,k)}

Graph Theory. Simple Graph G = (V, E). V={a,b,c,d,e,f,g,h,k} E={(a,b),(a,g),( a,h),(a,k),(b,c),(b,k),...,(h,k)} Grph Theory Simple Grph G = (V, E). V ={verties}, E={eges}. h k g f e V={,,,,e,f,g,h,k} E={(,),(,g),(,h),(,k),(,),(,k),...,(h,k)} E =16. 1 Grph or Multi-Grph We llow loops n multiple eges. G = (V, E.ψ)

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

A Short Introduction to Self-similar Groups

A Short Introduction to Self-similar Groups A Short Introution to Self-similr Groups Murry Eler* Asi Pifi Mthemtis Newsletter Astrt. Self-similr groups re fsinting re of urrent reserh. Here we give short, n hopefully essile, introution to them.

More information

Maximum size of a minimum watching system and the graphs achieving the bound

Maximum size of a minimum watching system and the graphs achieving the bound Mximum size of minimum wthing system n the grphs hieving the oun Tille mximum un système e ontrôle minimum et les grphes tteignnt l orne Dvi Auger Irène Chron Olivier Hury Antoine Lostein 00D0 Mrs 00 Déprtement

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

Section 2.3. Matrix Inverses

Section 2.3. Matrix Inverses Mtri lger Mtri nverses Setion.. Mtri nverses hree si opertions on mtries, ition, multiplition, n sutrtion, re nlogues for mtries of the sme opertions for numers. n this setion we introue the mtri nlogue

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

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

Lesson 2.1 Inductive Reasoning

Lesson 2.1 Inductive Reasoning Lesson 2.1 Inutive Resoning Nme Perio Dte For Eerises 1 7, use inutive resoning to fin the net two terms in eh sequene. 1. 4, 8, 12, 16,, 2. 400, 200, 100, 50, 25,, 3. 1 8, 2 7, 1 2, 4, 5, 4. 5, 3, 2,

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

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

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

Welcome. Balanced search trees. Balanced Search Trees. Inge Li Gørtz

Welcome. Balanced search trees. Balanced Search Trees. Inge Li Gørtz Welome nge Li Gørt. everse tehing n isussion of exerises: 02110 nge Li Gørt 3 tehing ssistnts 8.00-9.15 Group work 9.15-9.45 isussions of your solutions in lss 10.00-11.15 Leture 11.15-11.45 Work on exerises

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

A Process-Algebraic Semantics for Generalised Nonblocking

A Process-Algebraic Semantics for Generalised Nonblocking A Proess-Algeri Semntis for Generlise Nonloking Simon Wre Roi Mlik Deprtment of Computer Siene The University of Wikto Privte Bg 3105, Hmilton 3240, New Zeln Emil: {siw4,roi}@s.wikto..nz Astrt Generlise

More information

Computing on rings by oblivious robots: a unified approach for different tasks

Computing on rings by oblivious robots: a unified approach for different tasks Computing on rings y olivious roots: unifie pproh for ifferent tsks Ginlorenzo D Angelo, Griele Di Stefno, Alfreo Nvrr, Niols Nisse, Krol Suhn To ite this version: Ginlorenzo D Angelo, Griele Di Stefno,

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

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

Section 2.1 Special Right Triangles

Section 2.1 Special Right Triangles Se..1 Speil Rigt Tringles 49 Te --90 Tringle Setion.1 Speil Rigt Tringles Te --90 tringle (or just 0-60-90) is so nme euse of its ngle mesures. Te lengts of te sies, toug, ve very speifi pttern to tem

More information

Chapter 3. Vector Spaces. 3.1 Images and Image Arithmetic

Chapter 3. Vector Spaces. 3.1 Images and Image Arithmetic Chpter 3 Vetor Spes In Chpter 2, we sw tht the set of imges possessed numer of onvenient properties. It turns out tht ny set tht possesses similr onvenient properties n e nlyzed in similr wy. In liner

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

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

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

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

SIMPLE NONLINEAR GRAPHS

SIMPLE NONLINEAR GRAPHS S i m p l e N o n l i n e r G r p h s SIMPLE NONLINEAR GRAPHS www.mthletis.om.u Simple SIMPLE Nonliner NONLINEAR Grphs GRAPHS Liner equtions hve the form = m+ where the power of (n ) is lws. The re lle

More information

Common intervals of genomes. Mathieu Raffinot CNRS LIAFA

Common intervals of genomes. Mathieu Raffinot CNRS LIAFA Common intervls of genomes Mthieu Rffinot CNRS LIF Context: omprtive genomis. set of genomes prtilly/totlly nnotte Informtive group of genes or omins? Ex: COG tse Mny iffiulties! iology Wht re two similr

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

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

Math 32B Discussion Session Week 8 Notes February 28 and March 2, f(b) f(a) = f (t)dt (1)

Math 32B Discussion Session Week 8 Notes February 28 and March 2, f(b) f(a) = f (t)dt (1) Green s Theorem Mth 3B isussion Session Week 8 Notes Februry 8 nd Mrh, 7 Very shortly fter you lerned how to integrte single-vrible funtions, you lerned the Fundmentl Theorem of lulus the wy most integrtion

More information

Discrete Structures, Test 2 Monday, March 28, 2016 SOLUTIONS, VERSION α

Discrete Structures, Test 2 Monday, March 28, 2016 SOLUTIONS, VERSION α Disrete Strutures, Test 2 Mondy, Mrh 28, 2016 SOLUTIONS, VERSION α α 1. (18 pts) Short nswer. Put your nswer in the ox. No prtil redit. () Consider the reltion R on {,,, d with mtrix digrph of R.. Drw

More information

Surds and Indices. Surds and Indices. Curriculum Ready ACMNA: 233,

Surds and Indices. Surds and Indices. Curriculum Ready ACMNA: 233, Surs n Inies Surs n Inies Curriulum Rey ACMNA:, 6 www.mthletis.om Surs SURDS & & Inies INDICES Inies n surs re very losely relte. A numer uner (squre root sign) is lle sur if the squre root n t e simplifie.

More information

Automata Theory and Infinite Transition Systems

Automata Theory and Infinite Transition Systems Automt Theory n Infinite Trnsition Systems Wolfgng Thoms Lehrstuhl Informtik 7, RWTH Ahen, Germny thoms@informtik.rwth-hen.e Astrt These leture notes report on the use of utomt theory in the stuy of infinite

More information

On the Spectra of Bipartite Directed Subgraphs of K 4

On the Spectra of Bipartite Directed Subgraphs of K 4 On the Spetr of Biprtite Direte Sugrphs of K 4 R. C. Bunge, 1 S. I. El-Znti, 1, H. J. Fry, 1 K. S. Kruss, 2 D. P. Roerts, 3 C. A. Sullivn, 4 A. A. Unsiker, 5 N. E. Witt 6 1 Illinois Stte University, Norml,

More information

The Word Problem in Quandles

The Word Problem in Quandles The Word Prolem in Qundles Benjmin Fish Advisor: Ren Levitt April 5, 2013 1 1 Introdution A word over n lger A is finite sequene of elements of A, prentheses, nd opertions of A defined reursively: Given

More information

Transition systems (motivation)

Transition systems (motivation) Trnsition systems (motivtion) Course Modelling of Conurrent Systems ( Modellierung neenläufiger Systeme ) Winter Semester 2009/0 University of Duisurg-Essen Brr König Tehing ssistnt: Christoph Blume In

More information

Outline Data Structures and Algorithms. Data compression. Data compression. Lossy vs. Lossless. Data Compression

Outline Data Structures and Algorithms. Data compression. Data compression. Lossy vs. Lossless. Data Compression 5-2 Dt Strutures n Algorithms Dt Compression n Huffmn s Algorithm th Fe 2003 Rjshekr Rey Outline Dt ompression Lossy n lossless Exmples Forml view Coes Definition Fixe length vs. vrile length Huffmn s

More information

Let s divide up the interval [ ab, ] into n subintervals with the same length, so we have

Let s divide up the interval [ ab, ] into n subintervals with the same length, so we have III. INTEGRATION Eonomists seem muh more intereste in mrginl effets n ifferentition thn in integrtion. Integrtion is importnt for fining the epete vlue n vrine of rnom vriles, whih is use in eonometris

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