On Rational Graphs. Christophe Morvan. IRISA, Campus de Beaulieu, Rennes, France
|
|
- Toby Daniel
- 5 years ago
- Views:
Transcription
1 On Rtionl Grphs Christophe Morvn IRISA, Cmpus de Beulieu, Rennes, Frnce Astrct. Using rtionlity, like in lnguge theory, we define fmily of infinite grphs. This fmily is strict extension of the context-free grphs of Muller nd Schupp, the equtionl grphs of Courcelle nd the prefix recognizle grphs of Cucl. We give sic properties, s well s n internl nd n externl chrcteriztion of these grphs. We lso show tht their trces form n AFL of recursive lnguges, contining the context-free lnguges. 1 Introduction When deling with computers, infinite grphs re nturl ojects. They emerge nturlly in recursive progrm schemes or communicting utomt, for exmple. Studying them s fmilies of ojects is comprtively recent: Muller nd Schupp (in [MS 85]) first cptured the structure of the grphs of pushdown utomt, then Courcelle (in [Co 90]) defined the set of regulr (equtionl) grphs. More recently Cucl introduced (in [C 96]) chrcteriztion of grphs in terms of inverse (rtionl) sustitution from the complete inry tree. Step y step, like Chomsky s lnguges fmily, hierrchy of grph fmilies is uilt: the grphs of pushdown utomt, regulr grphs nd prefix-recognizle grphs. To define infinite ojects conveniently, we hve to use finite systems. For infinite grphs, two kinds of finite systems re employed: internl systems or externl systems. Roughly speking n internl chrcteriztion is mchine producing the rcs of the grph. An externl chrcteriztion yields the structure of the grph (usully up to isomorphism ). There is, of course reltionship etween internl nd externl chrcteriztion: for exmple the pushdown utomt re n internl chrcteriztion of the connected regulr grphs of finite degree wheres the deterministic grph grmmrs re n externl system for the fmily of regulr grphs. The purpose of this rticle is to give oth internl nd externl chrcteriztion of wider fmily of grphs. Using words for vertices, rtionlity (like in lnguge theory) will provide n internl chrcteriztion; it will lso give sic results for this fmily: for exmple rtionl grphs will e recognized y trnsducers; rtionl grph is recursive set; determinism for rtionl grphs will e decidle. Then inverse sustitution from the complete inry tree (like in [C 96]) will e n externl chrcteriztion of this fmily. Strngely this extension will prove to e slight extension of the prefix-recognizle grphs: insted J. Tiuryn (Ed.): FOSSACS 2000, LNCS 1784, pp , c Springer-Verlg Berlin Heidelerg 2000
2 On Rtionl Grphs 253 of tking the inverse imge of the complete inry tree y rtionl sustitution we will consider the inverse imge of the complete inry tree y liner sustitution (i.e., sustitution where the imge of ech letter is liner lnguge). Finlly properties of the trces of these grphs will e investigted: we will show tht the trces of these grphs form n strct fmily of (recursive) lnguges contining the context-free lnguges. 2 Rtionl Grphs In this section we will define new fmily of infinite grphs, nmely the set of rtionl grphs. We will stte some results for this fmily nd give exmples of rtionl grphs. 2.1 Prtil Semigroups This prgrph introduces rtionlity for prtil semigroups nd uses this notion to give nturl introduction for rtionl grphs. We strt y reclling some stndrds nottions: for ny set E, its crdinl is denoted y E ; its powerset is denoted y 2 E. Let the set of nonnegtive integers e denoted y N. A semigroup S is set equipped with n opertion : S S S such tht: for ll u, v in S there exists w in S such tht (u, v) =w denoted y u v = w nd this opertion is ssocitive (i.e., u, v, w S, (u v) w = u (v w). Finlly, monoid M is semigroup with (unique) neutrl element (denoted ε long these lines) i.e., n element ε M such tht for ll element u in M u ε = ε u = u. Now, prtil semigroup is set S equipped with : S S S, prtilopertion, with D S S the domin of ; setd need not e S S. Moreover we impose this opertion to e ssocitive s follows: [(u, v) D ((u v),w) D] [(v, w) D (u, (v w)) D]ndinthtcse,u (v w) =(u v) w. Mening tht if multipliction is defined on the one side, then it is defined on the other side nd oth gree. Notice tht prtil semigroup S such tht D is S S is semigroup. Exmple 2.1. Given two semigroups (S 1, 1) nd(s 2, 2) such tht S 1 S 2 is empty. The union S = S 1 S 2, with the prtil opertion defined s 1 over the elements of S 1 nd 2 over the element of S 2, is prtil semigroup. Tking new element we complete ny prtil semigroup S into semigroup S { }y extending its opertion s follows: = for ll, S { }such tht (, ) D. Also the product S S of two prtil semigroups S nd S is prtil semigroup for opertion defined componentwise: (, ) (, )=(, ) for ll (, ) Dnd (, ) D. In order to define the rtionl susets of prtil semigroup, we hve to extend its opertion to its susets: A B := { A B } for every A, B S
3 254 Christophe Morvn The powerset 2 S of S, is semigroup for so defined. Now, suset P of prtil semigroup S is prtil susemigroup of S, ifp is prtil semigroup for of S i.e., P P is suset of P. For ny suset P of prtil semigroup S, following suset P + = n 1 P n (with P 1 = P nd P n+1 = P n P for every n 1) is the smllest (for inclusion) prtil susemigroup of S contining P.SetP + is clled the prtil semigroup generted y P. In prticulr (P + ) + = P +.Also,S is finitely generted if S = P + for some finite P. AsetP S is code if there is no two fctoriztion in P + of the sme element: u 1 u m = v 1 v n u 1,...,u m,v 1,...,v n P m = n i [1 n],u i = v i A prtil semigroup S is free if there is code P such tht P + = S. For every W 2 S,wedenotey W = { P W, P }. Opertor+ commutes with opertor, i.e., (W + )=( W ) + for every W 2 S. The (left) residul u 1 P of P S y u S is following suset: u 1 P := {v S u v P } nd stisfies following sic equlity: (u v) 1 P = v 1 (u 1 P ) for ll u, v S nd P S. Definition 2.2. Let (S, ) e prtil semigroup. The fmily Rt(S) ofrtionl susets of S is the lest fmily R of susets of S stisfying the following conditions: (i) R; {m} Rfor ll m in S; (ii) if A, B Rthen A B,A B nd A + R. In order to generlize well known results for monoids in the cse of prtil semigroups, nd s our purpose is to del with grphs, we will set some nottions nd definitions for grphs nd utomt. Let P e suset of S. A (simple oriented lelled) P -grph G over V with rcs lelled in P is suset of V P V.Anelement(s,, t) ing is n rc of source s, golt nd lel (s nd t re vertices of G). We denote y Dom(G), Im(G) ndv G the sets respectively of sources, gols nd vertices of G. Ech (s,, t) ofg is identified with lelled trnsition s t or simply s t if G is G understood. A grph G is deterministic if distinct rcs with sme source hve distinct lel: r s r t s = t. A grph is (source) complete if, for every lel, every vertex is source of n rc lelled : P, s V G, t s t. + V P V Set 2 of P + -grphs with vertices in V is semigroup for composition reltion: G H := {r t s, r s s t} for ny G, H V P + V. G H Reltion u denoted y = u or simply = u if G is understood, is the existence G + G of pth in G lelled u in P +. For ny L in S, wedenoteys= L t tht there exists u in L such tht s u = t.
4 On Rtionl Grphs 255 The trce (or set of pth lels) L(G, E, F )ofg from set E to set F is the following suset of P + : L(G, E, F ) := {u S s E, t F, s u = G t } Given P S, P -utomton A is P -grph G whose vertices re clled sttes, with n initil stte i nd suset F of finl sttes; the utomton recognizes suset L(A) ofp + : L(A) := L(G, {i},f). An utomton is finite (resp. deterministic, complete) if its grph is finite (resp. deterministic, complete). This llows to stte stndrd result for rtionl susets. Proposition 2.3. Given suset P of prtil semigroup S, Rt(P + ) is (i) the smllest suset of 2 S contining nd {} for ech P,ndclosed for,, + (ii) the set of susets recognized y finite P -utomt, (iii) the set of susets recognized y finite nd deterministic P -utomt. We simply trnslted the stndrds definitions of rtionl susets of monoids given for exmple in [Be 79]. An interesting exmple of prtil semigroup is the suject of these lines: the set of rcs (lelled with n element of finite set) etween elements of free monoid is prtil semigroup; its rtionl susets re the rtionl grphs. 2.2 Prtil Semigroups nd Grphs In this section, we will consider n importnt exmple of prtil semigroup: the set of rtionl grphs. So consider n ritrry finite set X nd denote X its ssocited free monoid. We will consider grphs s susets of X A X (the set of grphs over X with rcs lelled in A). For convenience, set 2 X A X is denoted G A (X ). Now, with (u, i,v) i (u, i,v )=(u u, i,v v ), set X { i } X ( i in A) is monoid. As stted in Exmple 2.1 the union of these monoids (nmely X A X ) is prtil semigroup. We denote y the opertion in X A X (which is i for ech X { i } X ). Remrk: this opertion for grphs is indeed, similr to the synchroniztion product for trnsition systems defined y Nivt nd Arnold in [AN 88]. We re now le to define the set of rtionl grphs. Definition 2.4. The set of rtionl grphs, denoted Rt(X A X )isthe fmily of rtionl susets of X A X. Let us now recll tht trnsducer is finite utomton over pirs (see for exmple [Au 88] [Be 79]). A rtionl reltion (i.e., rtionl suset of X X ) is recognized y rtionl trnsducer. There is strong reltionship etween rtionl grphs nd rtionl reltions nd to chrcterize the fmily of rtionl grphs in more prcticl wy we will use lelled trnsducers.
5 256 Christophe Morvn Definition 2.5. A lelled trnsducer T = Q, I, F, E, L over X, iscomposed of finite set of sttes Q, set of initil sttes I Q, setoffinlsttesf Q, finite set of trnsitions (or edges) E Q X X Q nd n ppliction L from F into 2 A. Like for P -grphs, trnsition (p, u, v, q) of trnsducer T will e denoted y p u/v q T or simply p u/v q if T is understood. Now similrly n element (u, d, v) X A X u 1/v 1 is recognized y trnsducer T if there is pth p 0 T u n/v n p 1 p n 1 T p n nd p 0 I, p n F, u = u 1 u n, v = v 1 v n nd d L(p n ). Remrk: n illustrtion of trnsducer execution will e given in Exmple 2.7. Proposition 2.6. A grph G in G A (X ) is rtionl if nd only if it stisfies one of the following equivlent properties: (i) G elongs to the smllest suset of G A (X ) contining:,{ε d ε},{x d ε} nd {ε d x}, for ll x X, lld A,ndclosed under, nd +; (ii) G is finite union of rtionl reltions over ech letter: G = d A R d,forr d Rt(X {d} X ); (iii) G is recognized y lelled rtionl trnsducer. This Proposition sttes tht for ny grph G in Rt(X A X ), the reltion: d := {(u, v) u d v} is rtionl for ech d in A. Therefore we lso introduce G G := d G d A, which is lso rtionl reltion. Nturlly we denote y G d (u) (resp. (u)) the imge of word u y reltion (resp. )(nd G G G similrly for susets of X). Also for rtionl grph G there re possily mny trnsducers generting it, thus we will denote y Θ(G) the set of trnsducers generting G. We will now give some exmples of rtionl grphs. Exmple 2.7. This grph : ε A A 2 d G B AB A 2 B B 2 AB 2 A 2 B 2 is rtionl grph generted y this trnsducer : A/A ε/a A/A q 1 p ε/b q 2 B/B
6 On Rtionl Grphs 257 Notice tht its second order mondic theory is undecidle nd therefore rtionl grphs hve n undecidle second order mondic theory. Why does the rc (AB,,AB 2 ) elong to the grph? Simply ecuse the following pth is in the trnsducer: p A/A p ε/b q 2 B/B q 2 nd tht is ssocited to the finl stte q 2. Exmple 2.8. This grph : ε c 1 01 c c 111 is rtionl, generted y this trnsducer : 0/0 ε/0 0/0 r 1 1/1 p 0/0 q 1 0/1 0/1 r 2 1/ε 1/ q 2 1/1 r 3 c 1/1 We finish with lst exmple showing tht the trnsition grphs of Petri nets re rtionl grphs. Exmple 2.9. For more detil on Petri nets the reder my refer to [Re 85]. A Petri net cn e seen s finite set of trnsitions of this form: A n1 d 1 An2 2 Anm m A l1 1 Al2 2 Alm m,withax i representing there re x coins in plce A i (d represents the lel (if ny) of the trnsition). Following trnsducer genertes the trnsition grph ssocited to the ove trnsition: A 1 /A 1 A 2 /A 2 A n 1 p 1 /Al p 2 A n 2 2 /Al 2 A nm 2 m /Alm m q d Ech vertex of the generted grph correspond to mrking of the Petri net. Ech rc of the grph represents tht trnsition hs een fired.
7 258 Christophe Morvn 2.3 Some Results for Rtionl Grphs This section will introduce results for this fmily of grphs. Some of these results re just reformultion of known results over rtionl reltions. Others re simple fcts on these grphs nd their oundry. The first fct is tht this fmily is n extension of previous fmilies. Simply recll tht every prefix-recognizle grph (defined in [C 96]) is finite union of grphs of the following form : ( U V ) W := { uw vw u U v V w W } with U, V, W rtionl sets. This chrcteriztion ensures tht prefix-recognizle grphs re rtionl grphs. As the regulr grphs (defined in [Co 90]) re prefix-recognizle grphs, theyre rtionl too. Furthermore, the grphs in Exmples 2.7 nd 2.8 re not prefixrecognizle grphs thus the inclusion is strict. Let us now trnslte some wellknown results for rtionl reltions, to rtionl grphs (the proofs will e omitted they re mostly direct consequences of results found in [Au 88] nd [Be 79]). Proposition A rtionl grph G is of finite out-degree if nd only if there exists trnsducer T Θ(G) such tht there exists no cycle in T lelled on the left with the empty word which is not lelled on the right with the empty word. In other words the only cycles lelled on the left ε, re lelled on the right ε. Remrk: nturlly this proposition cn e trnslted to chrcterize the grphs of finite in-degree, y simply replcing right y left nd vice-vers. Proposition Every rtionl grph is recursive: it is decidle whether n rc (u, d, v) elongs to rtionl grph. Theorem It is decidle whether rtionl grph is deterministic (from its trnsducer). Proposition The inclusion nd equlity of deterministic rtionl grphs is decidle. Remrk: unfortuntely this result ceses to e true for generl rtionl grphs ([Be 79] Theorem 8.4, pge 90). We hve lredy seen tht the second order mondic theory of these grphs is undecidle in generl. We will now see tht it is lso the cse for the first order theory. Proposition The first order theory of rtionl grphs is undecidle. Proof. We will prove this proposition y reducing Post s correspondence prolem (P.C.P.) to this prolem. Let us recll the P.C.P.: given n lphet X nd (u 0,v 0 ), (u 1,v 1 ),..., (u n,v n )elementsofx X. Does there exist sequence 0 6 i 1,i 2,...,i m 6 n, such tht u 0 u i1 u im = v 0 v i1 v im? To n instnce of P.C.P. (i.e. fmily (u i,v i )) we ssocite following trnsducer:
8 On Rtionl Grphs 259 u i /v i (for i [1 n]) p u 0 /v 0 q The resolution of P.C.P. ecomes finding vertex s such tht s s is n rc of the grph generted y the trnsducer. It is first order instnce, therefore,s P.C.P. is undecidle, the first order theory of rtionl grphs is not decidle in generl. Before giving nother negtive decision result, let us denote y ũ the mirror of word u (defined y induction on the length of u: ε = ε nd ãu =ũ (for ny u with u 0). Proposition Accessiility is not decidle for rtionl grphs in generl. Proof. Once gin, we use P.C.P. Using the sme nottions s erlier define (word) rewriting system G, using two new symols # nd $, in the following wy: $ u i $ṽ i i {0,,n} G $ # A#A # A X Now P.C.P. hs solution is equivlent to the existence of derivtion from u 0 $ṽ 0 to #. But, considering the following trnsducer: A/A(for A X) A/A(for A X) $/# p $/u i $ṽ i (for i {0,,n}) A#A/#(for A X) q the question ecomes: is there pth leding from u 0 $ṽ 0 to the vertex #? Answering the lst question would llow P.C.P. to e solved in the generl cse which is contrdiction. Therefore ccessiility is undecidle for the rtionl grphs in generl. Remrk: the trnsitive closure of rtionl grph is, t lest, uneffective. If this construction were effective nd rtionl, then ccessiility for rtionl grph would e decidle. Now we will see cse where ccessiility is decidle for rtionl grphs. A trnsducer T is incresing if every pir (u, v) recognized y T is such tht the length of v (denoted y v ) is greter or equl to the length of u : v u. Proposition The ccessiility is decidle for ny rtionl grph with n incresing trnsducer. Proof. Let us denote y T 6n (u) following set: T 6n (u) := n i=0 T i (u). For ll n N this set is rtionl. Now, let G e rtionl grph generted y n incresing trnsducer T nd let u nd v e two vertices of G. Let us put n 0 = {w X u 6 w 6 v } = X u + + X v.vertexv is ccessile from u if nd only if v elongs to T 6n0 (u). Thus ccessiility is decidle for rtionl grphs with n incresing trnsducer.
9 260 Christophe Morvn We now give technicl Lemm tht llows the construction of grph tht is not structurlly rtionl. Lemm Let G e rtionl grph of finite out-degree. There exists two integers p nd q such tht for every (s,, t) G we hve t 6 p. s + q Exmple Consider n infinite tree in X A X such tht every vertex of depth n hs 2 22n sons. This tree is not strucurlly rtionl, in other words whtever nme re given to its vertices this grph is never rtionl grph. This is direct consequence of previous lemm: sy n is the length of the root, there re t most X (npl +p l 1 q+ +q) vertices of depth l. Despite these results the trnsducers re not le to cpture the structure of rtionl grphs. For exmple, this trnsducer: A/A B/B p ε/ab q genertes this grph: ε A AB A 2 B 2 A 3 B 3 A 2 B A 3 B 2 A 4 B 3 B AB 2 A 2 B 3 A 3 B 4 The connected component of the empty word, ε, is stright-line. It is up to isomorphism oviously rtionl, ut s su-grph of this grph, it is not rtionl (its vertices form context-free lnguge). Therefore we need n externl ( up to isomorphism ) chrcteriztion of these grphs. This is the suject of the next section. 3 An Externl Chrcteriztion In this section, we will chrcterize rtionl grphs using inverse liner sustitutions. Lelled trnsducers re n internl representtion of rtionl grphs, it clerly depends on the nme of the vertices. But often in grph theory, the nme of the vertices is not relevnt, it crries no informtion. An externl chrcteriztion, like the grph grmmrs for equtionl grphs, produces grphs without giving nmes for vertices. It only gives the structure of the grph. Inverse liner sustitution is n externl chrcteriztion of rtionl grphs. 3.1 Grph Isomorphism An externl chrcteriztion of rtionl grphs is given up to isomorphism. Two grphs G 1 nd G 2 in G A (X ) re isomorphic, if there is ijection ψ : d V (G 1 ) V (G 2 ) such tht: s 1 s 2 (i.e., (s 1,d,s 2 ) G 1 ) if nd only if d ψ(s 1 ) ψ(s 2 ). G2 G1
10 On Rtionl Grphs 261 Two isomorphic grphs hve the sme structure: they re the sme up to renming of the vertices. Now let us consider the equivlence ( ) generted y grph isomorphism: we sy tht G 1 is equivlent to G 2 (denoted G 1 G 2 )ifg 1 nd G 2 re isomorphic. This equivlence reltion provides us with prtition of G A (X ) denoted Grph A := G A (X )/. This llows the introduction of the set of structurl rtionl grphs: GRt A := {[G] Grph A G Rt(X A X )} This set is the set of grphs tht re isomorphic to some rtionl grph. Set Grph A (nd GRt A ) does not depend on the choice of set X, thereforewe cn choose X to e ny two letters lphet with no loss of generlity. Lemm 3.1. For ll suset X (with t lest two elements) of X nd ll clss [G] of Grph A (= G A (X )/ ) thereexistsg 0 in G A (X ) such tht G 0 [G]. We now hve to chrcterize the structure of GRt A. This is the gol of the next section. 3.2 Sustitution Recll the definition of the prefix-recognizle grphs (fmily REC Rt ). This fmily hs een defined s the set of grphs otined from the complete inry tree y inverse rtionl sustitution, followed y rtionl restriction. We will use the sme process (ctully liner context-free sustitution) to otin the fmily of rtionl grphs. A sustitution over free monoid X is morphism ϕ : A 2 X,which ssocites to ech letter in A lnguge in X. Our purpose is to study grphs, strting from the complete inry tree (Λ) lelled X = {A, B}. Tomovey inverse rcs, we use new lphet : X = {A, B} nd we sy tht x A y if y A x. Given lnguge L nd two vertices x nd y, recll tht x = L y u Λ L, x = u y. Now, given sustitution ϕ : A 2 (X X), we cn define the grph Λ ϕ 1 (Λ) in the following wy: ϕ 1 (Λ) ={x d y d A x = ϕ(d) y} Λ Given lnguge L, we define now L Λ = {s r = L s}. It llows us to consider Λ the grph ϕ 1 (Λ) LΛ : it is the imge of the complete inry tree y n inverse sustitution followed y restriction; if L is rtionl, we sy rtionl restriction. Exmple 3.2. Exmple 2.7 sttes tht the grid is rtionl grph. Following sustitution: h() ={B m AB m m 0}, h() ={B} over the complete inry tree on {A, B}, followed with the restriction to L = A B produces grph isomorphic to the grid:
11 262 Christophe Morvn A B Now, it is well know tht there is close reltionship etween liner lnguges nd rtionl reltions ( liner lnguge is context-free lnguge generted y grmmr with only, t most, one non-terminl on the right hnd side of ech rule). And indeed, if we denote the set of liner lnguges over the lphet X X y Lin(X X), we hve the following proposition. Proposition 3.3. The set GRt A is suset of the fmily of the grphs otined from the complete inry tree (Λ) y n inverse liner sustitution, followed y rtionl restriction: GRt A {[ϕ 1 (Λ) LΛ ] d A,ϕ(d) Lin(X X) L Rt(X)} Proof (Sketch). We first trnsform the trnsducer generting the grph (G) so tht ech vertex egins with the sme prefix. Then we produce liner lnguges (L d ) such tht (u, d, v) X A X is n rc of G if nd only if ũv L d.we then define ϕ(d) toel d. It only remins to define L (the rtionl restriction) to e L := Dom(G) Im(G) The converse of this result would help us to gr the structure of rtionl grphs. Unfortuntely it is not ovious. Actully the following exmple illustrte the difficulty of the nive converse of Proposition 3.3. Exmple 3.4. Consider ϕ() ={BBA n B n n N}, it is liner sustitution. Consider L = BA B nd the grph G = ϕ 1 (Λ) LΛ. Structurlly, grph G is rtionl (it is the str). But the grph nturlly ssocited to G (ccording to ϕ() ndl) isg = {(B,,BA n B n ) n N}, which is not rtionl. So there is deep isomorphism prolem to get the converse. Actully, we will try to inject rtionlity in the liner lnguge to chieve complete chrcteriztion of rtionl grphs. A nturl wy to introduce rtionlity into Lin(X X) would e to impose the projections over rred nd non-rred letters to e rtionl. The next exmple shows tht gin, things re not so nice. Exmple 3.5. Consider ϕ() ={A BBA n B m n m} {BBA n B m m>n} ϕ is liner sustitution. Moreover it hs rtionl projections over rred nd non-rred letters. Consider L = BA B nd the grph G = ϕ 1 (Λ) LΛ.
12 On Rtionl Grphs 263 Structurlly, grph G is rtionl (it is two strs). But the grph nturlly ssocited to G (ccording to ϕ() ndl) isg = {(BA,,BA n B m ) n m} {(B,,BA n B m ) m>n}, which is not rtionl (its intersection with the recognizle set {BA} {} BA B is {(BA,,BA n B m ) n m} which is not rtionl). Now consider the set Rtlin(X X) of liner lnguges (clled rtionlliner) over (X X) such tht the production of their grmmrs re of following form: p uqv (with u X nd v X )orp ε. Theorem 3.6. Set GRt A is precisely the set of grphs otined from the complete inry tree (Λ) y rtionl-liner sustitution, followed y rtionl restriction : GRt A = {[ϕ 1 (Λ) LΛ ] d A,ϕ(d) Rtlin(X X) L Rt(X)} Proof (Sketch). The first inclusion is treted in Proposition 3.3. For the reverse inclusion we first tke grph G imge of rtionl-liner sustitution, followed y rtionl restriction then we need to check tht it is possile to produce trnsducer from the grmmrs of ϕ(d) forechd. Then we show tht this grph contins G, finlly, using rtionl intersection we otin precisely G. Now tht n externl chrcteriztion of the rtionl grphs hs een given, the next section will consider the properties of the trces of rtionl grphs. 4 The Trces of Rtionl Grphs We hve lredy seen tht there is strong connection etween lnguge theory nd rtionl grphs. In this section we will see nother connection etween grphs nd lnguges, in terms of trces. We first recll tht the trce of grph G leding from vertex set I (of initil sttes) to vertex set F (of finl sttes) is the set of ll the pth lels in the grph, leding from vertex in the set of initil sttes to vertex in the set of finl sttes: L(G, I, F ):={u s I t F, s u = G t} In other words the trce of grph is the lnguge of its lels. For exmple the trces of the finite grphs re ll rtionl lnguges nd the trces of prefixrecognizle grphs re ll context-free lnguges. Notice y the wy tht the trces of rtionl grphs contin therefore every context free lnguge. Proposition 4.1. The trces of rtionl grph leding from rtionl vertex set to context free vertex set (or vice-vers) is recursive
13 264 Christophe Morvn Proof. In order to check whether word u is in the trce of grph G (from set I tosetf ), it is just to check if the set S = u( u ) ( u( u 1) ( u(1) (I) )) G G G intersects set F.IfsetI is rtionl (resp. context-free) its imge y rtionl trnsduction is rtionl (resp. context-free), hence y simple induction, set S is rtionl (resp. context-free). Therefore it is decidle whether S F is empty. Let us denote y TR the fmily of the trces of rtionl grphs leding from rtionl vertex set to rtionl vertex set: TR = {L(G, I, F ) G Rt(X A X ) I,F Rt(X )} (notice tht we could s well restrict ourselves to unique initil stte nd unique finl stte). Now we will show tht set TR form n Astrct Fmily of Lnguges (AFL), tht is, it stisfies following properties: closure for intersection with rtionl (regulr) lnguge, closure under non-ersing (monoid)morphism, nd inverse morphism, for ech L, L TR we hve L L,L L,L +,L TR. Proposition 4.2. The intersection of two elements of TR is n element of TR. Proof. Consider two elements L nd L of TR. SyL = L(G, I, F )ndl = L(G,I,F). The lnguge L L is ctully the trce of G ({$} A {$}) G (with $ new symol) etween I G {$} I G nd F G {$} F G. Hence L L in n element of TR. As rtionl lnguges re trces of rtionl grphs (finite grphs re rtionl grphs), fmily TR is closed under intersection with rtionl lnguges. Now let us recll tht finite (resp. rtionl) sustitution σ : A 2 A is morphism such tht for ech letter d in A σ(d) is finite (resp. rtionl) suset of A. A sustitution is non-ersing if ε σ(d) for ll d A. Proposition 4.3. Fmily TR is closed under non-ersing finite sustitution. Proof (Sketch). Consider σ non-ersing finite sustitution, nd L lnguge in TR. We tke grph G such tht L = L(G, I, F ), nd T trnsducer generting G. We, then, construct new trnsducer such tht ech production d in T is replced y pth u (in the corresponding grph), for ech u σ(d). The trce of the grph generted y this trnsducer is σ(l) Following corollry is direct consequence of this proposition. Corollry 4.4. Fmily TR is closed under non-ersing morphism. Notice tht the condition non-ersing is essentil for our proof. A interesting question is whether this condition is necessry. Proposition 4.5. Assume tht L is n element of TR nd tht σ is finite sustitution over A then σ 1 (L) is lnguge of TR.
14 On Rtionl Grphs 265 Proof (Sketch). This proposition is consequence of Elgot nd Mezei s theorem, which sttes tht the composition of two rtionl reltions is rtionl reltion (see for exmple [Be 79], Theorem 4.4 p 68). Using this we cn produce rtionl grph in which finite numer of finite pth re replced y rcs. Which proves the Proposition. Remrk: Note tht it is not s strightforwrd for inverse rtionl sustitution. Actully it seems tht it is not true for inverse rtionl sustitution: consider ny rtionl grph with one lel () nd the inverse rtionl sustitution σ() =. The grph imge with the sme pproch would e the trnsitive closure of the originl grph, which is not effectively rtionl (nd might not even e structurlly rtionl) s stted in the remrk fter Proposition Following corollry is n ovious consequence of proposition 4.5. Corollry 4.6. Fmily TR is closed under inverse morphism. Proposition 4.7. Fmily TR is closed under conctention, Kleene plus nd str. Proof (Sketch). The rgument is more or less the sme s for finite utomt. We use opertion over rtionl reltions to get the results. As stted erlier, we only hve now to summry these results. Theorem 4.8. The trces of rtionl grphs, leding from rtionl vertex set to rtionl vertex set, form n AFL ( Astrct Fmily of Lnguges). Proof. This result is simply rief summry of corollries 4.4, 4.6 nd propositions 4.2 nd 4.7. Now we hve n strct fmily of lnguges tht contins the context free lnguges. This AFL is suset of the recursive lnguges. It seems tht this fmily is composed of the context sensitive lnguges. Conjecture 4.9. The trces of the rtionl grphs re precisely the context sensitives lnguges. Notice lso tht recently grphs of liner ounded mchines (which chrcterize context sensitive lnguges) hve een studied in [KP 99]. 5 Conclusion In this pper, generl fmily of grphs hs een introduced. Rtionl grphs re strict extension of previously studied fmilies. It is well grounded fmily, relted to well known structures of lnguge theory. We hve given oth n internl nd n externl chrcteriztion, s well s some sic properties. Unfortuntely, or fortuntely depending on the point of view, it is very expressive fmily. Therefore mny decision results re lost. An interesting question
15 266 Christophe Morvn is to study restrictions of this fmily tht will retin decision results from former fmilies. Trces of rtionl grphs re nother spect of this fmily. We hve shown tht it forms n strct fmily of recursive lnguges. An interesting question is to know if these trces re precisely the context sensitive lnguges. Rtionl trees lso seem to e n interesting field of reserch, ut this hs not een done yet. Acknowledgements The uthor would like to express his grtitude to Didier Cucl for his help long the preprtion of this pper. References [AN 88] A. Arnold nd M. Nivt, Comportements de processus, Colloque AFCET les mthémtiques de l informtique, pp , [Au 88] J.-M. Auteert nd L. Bosson, Trnsductions rtionelles, Ed.Msson, pp , [Be 79] J. Berstel Trnsductions nd context-free lnguges, Ed. Teuner, pp , [C 96] D. Cucl On trnsition grphs hving decidle mondic theory, LNCS 1099, pp , 1996, [Co 90] B. Courcelle Grph rewriting: n lgeric nd logic pproch, Hndook of TCS, Vol. B, Elsevier, pp , [GG 66] S. Ginsurg nd S. A. Greich Mppings which preserve context sensitive lnguges, Informtion nd Control 9, pp , [HU 79] J. E. Hopcroft nd J. D. Ullmn Introduction to utomt theory, lngges nd computtion, Ed. Addison-Wesley pp , [KP 99] T. Knpik nd E. Pyet Synchroniztion product of Liner Bounded Mchines, LNCS 1684, pp , [MS 85] D. Muller nd P. Schupp The theory of ends, pushdown utomt, nd second-order logic, TCS 37, pp , [Ni 68] M. Nivt Trnsduction des lngges de Chomsky, Ann. de l Inst. Fourier 18, pp , [Re 85] W. Reisig Petri nets. EATCS Monogrphs on Theoreticl Computer Science, Vol. 4, Springer Verlg, [Sc 76] M.P. Schützenerger Sur les reltions rtionnelles entre monoïdes lires, TCS 3, pp , 1976.
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 informationSpeech Recognition Lecture 2: Finite Automata and Finite-State Transducers. Mehryar Mohri Courant Institute and Google Research
Speech Recognition Lecture 2: Finite Automt nd Finite-Stte Trnsducers Mehryr Mohri Cournt Institute nd Google Reserch mohri@cims.nyu.com Preliminries Finite lphet Σ, empty string. Set of ll strings over
More informationContextual graph grammars characterising Rational Graphs
Contextul grph grmmrs chrcterising Rtionl Grphs Christophe Morvn To cite this version: Christophe Morvn. Contextul grph grmmrs chrcterising Rtionl Grphs. Henning Bordihn nd Rudolf Freund nd Mrkus Holzer
More informationSpeech Recognition Lecture 2: Finite Automata and Finite-State Transducers
Speech Recognition Lecture 2: Finite Automt nd Finite-Stte Trnsducers Eugene Weinstein Google, NYU Cournt Institute eugenew@cs.nyu.edu Slide Credit: Mehryr Mohri Preliminries Finite lphet, empty string.
More informationIntroduction to rational graphs
Introdction to rtionl grphs Christophe Morvn IRISA, Cmps de Belie, 35042 Rennes, Frnce cmorvn@iris.fr Astrct Using rtionlity, like in lngge theory, we define fmily of infinite grphs. This fmily is strict
More informationCONTEXT-SENSITIVE LANGUAGES, RATIONAL GRAPHS AND DETERMINISM
Logicl Methods in Computer Science Vol. 2 (2:6) 2006, pp. 1 24 www.lmcs-online.org Sumitted Jn. 31, 2005 Pulished Jul. 19, 2006 CONTEXT-SENSITIVE LANGUAGES, RATIONAL GRAPHS AND DETERMINISM ARNAUD CARAYOL
More informationLecture 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 informationFormal 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 informationMore general families of infinite graphs
More generl fmilies of infinite grphs Antoine Meyer Forml Methods Updte 2006 IIT Guwhti Prefix-recognizle grphs Theorem Let G e grph, the following sttements re equivlent: G is defined y reltions of the
More informationClosure 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 information1 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 informationFormal languages, automata, and theory of computation
Mälrdlen University TEN1 DVA337 2015 School of Innovtion, Design nd Engineering Forml lnguges, utomt, nd theory of computtion Thursdy, Novemer 5, 14:10-18:30 Techer: Dniel Hedin, phone 021-107052 The exm
More informationFirst Midterm Examination
Çnky University Deprtment of Computer Engineering 203-204 Fll Semester First Midterm Exmintion ) Design DFA for ll strings over the lphet Σ = {,, c} in which there is no, no nd no cc. 2) Wht lnguge does
More informationMinimal 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 informationp-adic Egyptian Fractions
p-adic Egyptin Frctions Contents 1 Introduction 1 2 Trditionl Egyptin Frctions nd Greedy Algorithm 2 3 Set-up 3 4 p-greedy Algorithm 5 5 p-egyptin Trditionl 10 6 Conclusion 1 Introduction An Egyptin frction
More informationAssignment 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 informationDesigning 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 informationLecture 3: Equivalence Relations
Mthcmp Crsh Course Instructor: Pdric Brtlett Lecture 3: Equivlence Reltions Week 1 Mthcmp 2014 In our lst three tlks of this clss, we shift the focus of our tlks from proof techniques to proof concepts
More informationThe Caucal Hierarchy of Infinite Graphs in Terms of Logic and Higher-order Pushdown Automata
The Cucl Hierrchy of Infinite Grphs in Terms of Logic nd Higher-order Pushdown Automt Arnud Cryol 1 nd Stefn Wöhrle 2 1 IRISA Rennes, Frnce rnud.cryol@iris.fr 2 Lehrstuhl für Informtik 7 RWTH Achen, Germny
More informationHarvard University Computer Science 121 Midterm October 23, 2012
Hrvrd University Computer Science 121 Midterm Octoer 23, 2012 This is closed-ook exmintion. You my use ny result from lecture, Sipser, prolem sets, or section, s long s you quote it clerly. The lphet is
More informationA negative answer to a question of Wilke on varieties of!-languages
A negtive nswer to question of Wilke on vrieties of!-lnguges Jen-Eric Pin () Astrct. In recent pper, Wilke sked whether the oolen comintions of!-lnguges of the form! L, for L in given +-vriety of lnguges,
More informationRegular 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 informationCS 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 informationCMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014
CMPSCI 250: Introduction to Computtion Lecture #31: Wht DFA s Cn nd Cn t Do Dvid Mix Brrington 9 April 2014 Wht DFA s Cn nd Cn t Do Deterministic Finite Automt Forml Definition of DFA s Exmples of DFA
More information1 From NFA to regular expression
Note 1: How to convert DFA/NFA to regulr expression Version: 1.0 S/EE 374, Fll 2017 Septemer 11, 2017 In this note, we show tht ny DFA cn e converted into regulr expression. Our construction would work
More informationAUTOMATA 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 informationConvert 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 information80 CHAPTER 2. DFA S, NFA S, REGULAR LANGUAGES. 2.6 Finite State Automata With Output: Transducers
80 CHAPTER 2. DFA S, NFA S, REGULAR LANGUAGES 2.6 Finite Stte Automt With Output: Trnsducers So fr, we hve only considered utomt tht recognize lnguges, i.e., utomt tht do not produce ny output on ny input
More informationParse 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 informationFinite 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ɛ-closure, Kleene s Theorem,
DEGefW5wiGH2XgYMEzUKjEmtCDUsRQ4d 1 A nice pper relevnt to this course is titled The Glory of the Pst 2 NICTA Resercher, Adjunct t the Austrlin Ntionl University nd Griffith University ɛ-closure, Kleene
More informationTalen en Automaten Test 1, Mon 7 th Dec, h45 17h30
Tlen en Automten Test 1, Mon 7 th Dec, 2015 15h45 17h30 This test consists of four exercises over 5 pges. Explin your pproch, nd write your nswer to ech exercise on seprte pge. You cn score mximum of 100
More informationThe University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER LANGUAGES AND COMPUTATION ANSWERS
The University of Nottinghm SCHOOL OF COMPUTER SCIENCE LEVEL 2 MODULE, SPRING SEMESTER 2016 2017 LNGUGES ND COMPUTTION NSWERS Time llowed TWO hours Cndidtes my complete the front cover of their nswer ook
More informationFinite Automata-cont d
Automt Theory nd Forml Lnguges Professor Leslie Lnder Lecture # 6 Finite Automt-cont d The Pumping Lemm WEB SITE: http://ingwe.inghmton.edu/ ~lnder/cs573.html Septemer 18, 2000 Exmple 1 Consider L = {ww
More informationCM10196 Topic 4: Functions and Relations
CM096 Topic 4: Functions nd Reltions Guy McCusker W. Functions nd reltions Perhps the most widely used notion in ll of mthemtics is tht of function. Informlly, function is n opertion which tkes n input
More informationTheory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38
Theory of Computtion Regulr Lnguges (NTU EE) Regulr Lnguges Fll 2017 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of Finite Automt A finite utomton hs finite set of control
More informationLecture 09: Myhill-Nerode Theorem
CS 373: Theory of Computtion Mdhusudn Prthsrthy Lecture 09: Myhill-Nerode Theorem 16 Ferury 2010 In this lecture, we will see tht every lnguge hs unique miniml DFA We will see this fct from two perspectives
More informationTheory of Computation Regular Languages
Theory of Computtion Regulr Lnguges Bow-Yw Wng Acdemi Sinic Spring 2012 Bow-Yw Wng (Acdemi Sinic) Regulr Lnguges Spring 2012 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of
More information1. 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 informationBACHELOR THESIS Star height
BACHELOR THESIS Tomáš Svood Str height Deprtment of Alger Supervisor of the chelor thesis: Study progrmme: Study rnch: doc. Štěpán Holu, Ph.D. Mthemtics Mthemticl Methods of Informtion Security Prgue 217
More informationFormal Languages and Automata Theory. D. Goswami and K. V. Krishna
Forml Lnguges nd Automt Theory D. Goswmi nd K. V. Krishn Novemer 5, 2010 Contents 1 Mthemticl Preliminries 3 2 Forml Lnguges 4 2.1 Strings............................... 5 2.2 Lnguges.............................
More information5. (±±) Λ = fw j w is string of even lengthg [ 00 = f11,00g 7. (11 [ 00)± Λ = fw j w egins with either 11 or 00g 8. (0 [ ffl)1 Λ = 01 Λ [ 1 Λ 9.
Regulr Expressions, Pumping Lemm, Right Liner Grmmrs Ling 106 Mrch 25, 2002 1 Regulr Expressions A regulr expression descries or genertes lnguge: it is kind of shorthnd for listing the memers of lnguge.
More informationTutorial Automata and formal Languages
Tutoril Automt nd forml Lnguges Notes for to the tutoril in the summer term 2017 Sestin Küpper, Christine Mik 8. August 2017 1 Introduction: Nottions nd sic Definitions At the eginning of the tutoril we
More informationGrammar. 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 informationCHAPTER 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 informationThoery 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 information1.3 Regular Expressions
56 1.3 Regulr xpressions These hve n importnt role in describing ptterns in serching for strings in mny pplictions (e.g. wk, grep, Perl,...) All regulr expressions of lphbet re 1.Ønd re regulr expressions,
More informationTable of contents: Lecture N Summary... 3 What does automata mean?... 3 Introduction to languages... 3 Alphabets... 3 Strings...
Tle of contents: Lecture N0.... 3 ummry... 3 Wht does utomt men?... 3 Introduction to lnguges... 3 Alphets... 3 trings... 3 Defining Lnguges... 4 Lecture N0. 2... 7 ummry... 7 Kleene tr Closure... 7 Recursive
More information3 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 informationCS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018
CS 301 Lecture 04 Regulr Expressions Stephen Checkowy Jnury 29, 2018 1 / 35 Review from lst time NFA N = (Q, Σ, δ, q 0, F ) where δ Q Σ P (Q) mps stte nd n lphet symol (or ) to set of sttes We run n NFA
More informationChapter 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 informationCompiler Design. Fall Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz
University of Southern Cliforni Computer Science Deprtment Compiler Design Fll Lexicl Anlysis Smple Exercises nd Solutions Prof. Pedro C. Diniz USC / Informtion Sciences Institute 4676 Admirlty Wy, Suite
More informationNondeterminism 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 informationAutomata Theory 101. Introduction. Outline. Introduction Finite Automata Regular Expressions ω-automata. Ralf Huuck.
Outline Automt Theory 101 Rlf Huuck Introduction Finite Automt Regulr Expressions ω-automt Session 1 2006 Rlf Huuck 1 Session 1 2006 Rlf Huuck 2 Acknowledgement Some slides re sed on Wolfgng Thoms excellent
More informationContext-Free Grammars and Languages
Context-Free Grmmrs nd Lnguges (Bsed on Hopcroft, Motwni nd Ullmn (2007) & Cohen (1997)) Introduction Consider n exmple sentence: A smll ct ets the fish English grmmr hs rules for constructing sentences;
More informationTypes 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 informationCSCI 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 informationDFA minimisation using the Myhill-Nerode theorem
DFA minimistion using the Myhill-Nerode theorem Johnn Högerg Lrs Lrsson Astrct The Myhill-Nerode theorem is n importnt chrcteristion of regulr lnguges, nd it lso hs mny prcticl implictions. In this chpter,
More informationHomework 3 Solutions
CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 3 Solutions 1. Give NFAs with the specified numer of sttes recognizing ech of the following lnguges. In ll cses, the lphet is Σ = {,1}.
More informationHierarchy of pushdown graphs
Hierrchy o pushdown grphs Didier Cucl CNRS / LIGM University Pris- Est Frnce The hierrchy o pushdown grphs recursive trnsition grphs Corresponding hierrchies o lnguges, terms, ordinls, ininite words higher
More informationCMSC 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 informationModel 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 informationFirst Midterm Examination
24-25 Fll Semester First Midterm Exmintion ) Give the stte digrm of DFA tht recognizes the lnguge A over lphet Σ = {, } where A = {w w contins or } 2) The following DFA recognizes the lnguge B over lphet
More informationIntermediate 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 informationPART 2. REGULAR LANGUAGES, GRAMMARS AND AUTOMATA
PART 2. REGULAR LANGUAGES, GRAMMARS AND AUTOMATA RIGHT LINEAR LANGUAGES. Right Liner Grmmr: Rules of the form: A α B, A α A,B V N, α V T + Left Liner Grmmr: Rules of the form: A Bα, A α A,B V N, α V T
More informationTypes 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 informationBases for Vector Spaces
Bses for Vector Spces 2-26-25 A set is independent if, roughly speking, there is no redundncy in the set: You cn t uild ny vector in the set s liner comintion of the others A set spns if you cn uild everything
More informationFinite 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 informationA tutorial on sequential functions
A tutoril on sequentil functions Jen-Éric Pin LIAFA, CNRS nd University Pris 7 30 Jnury 2006, CWI, Amsterdm Outline (1) Sequentil functions (2) A chrcteriztion of sequentil trnsducers (3) Miniml sequentil
More information2.4 Linear Inequalities and Interval Notation
.4 Liner Inequlities nd Intervl Nottion We wnt to solve equtions tht hve n inequlity symol insted of n equl sign. There re four inequlity symols tht we will look t: Less thn , Less thn or
More informationThe size of subsequence automaton
Theoreticl Computer Science 4 (005) 79 84 www.elsevier.com/locte/tcs Note The size of susequence utomton Zdeněk Troníček,, Ayumi Shinohr,c Deprtment of Computer Science nd Engineering, FEE CTU in Prgue,
More informationCS 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 informationHomework Solution - Set 5 Due: Friday 10/03/08
CE 96 Introduction to the Theory of Computtion ll 2008 Homework olution - et 5 Due: ridy 10/0/08 1. Textook, Pge 86, Exercise 1.21. () 1 2 Add new strt stte nd finl stte. Mke originl finl stte non-finl.
More informationFarey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University
U.U.D.M. Project Report 07:4 Frey Frctions Rickrd Fernström Exmensrete i mtemtik, 5 hp Hledre: Andres Strömergsson Exmintor: Jörgen Östensson Juni 07 Deprtment of Mthemtics Uppsl University Frey Frctions
More informationCDM Automata on Infinite Words
CDM Automt on Infinite Words 1 Infinite Words Klus Sutner Crnegie Mellon Universlity 60-omeg 2017/12/15 23:19 Deterministic Lnguges Muller nd Rin Automt Towrds Infinity 3 Infinite Words 4 As mtter of principle,
More informationRevision Sheet. (a) Give a regular expression for each of the following languages:
Theoreticl Computer Science (Bridging Course) Dr. G. D. Tipldi F. Bonirdi Winter Semester 2014/2015 Revision Sheet University of Freiurg Deprtment of Computer Science Question 1 (Finite Automt, 8 + 6 points)
More informationGNFA 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 informationChapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1
Chpter Five: Nondeterministic Finite Automt Forml Lnguge, chpter 5, slide 1 1 A DFA hs exctly one trnsition from every stte on every symol in the lphet. By relxing this requirement we get relted ut more
More informationCS375: Logic and Theory of Computing
CS375: Logic nd Theory of Computing Fuhu (Frnk) Cheng Deprtment of Computer Science University of Kentucky 1 Tle of Contents: Week 1: Preliminries (set lger, reltions, functions) (red Chpters 1-4) Weeks
More informationName Ima Sample ASU ID
Nme Im Smple ASU ID 2468024680 CSE 355 Test 1, Fll 2016 30 Septemer 2016, 8:35-9:25.m., LSA 191 Regrding of Midterms If you elieve tht your grde hs not een dded up correctly, return the entire pper to
More informationNFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun:
CMPU 240 Lnguge Theory nd Computtion Spring 2019 NFAs nd Regulr Expressions Lst clss: Introduced nondeterministic finite utomt with -trnsitions Tody: Prove n NFA- is no more powerful thn n NFA Introduce
More informationAnatomy of a Deterministic Finite Automaton. Deterministic Finite Automata. A machine so simple that you can understand it in less than one minute
Victor Admchik Dnny Sletor Gret Theoreticl Ides In Computer Science CS 5-25 Spring 2 Lecture 2 Mr 3, 2 Crnegie Mellon University Deterministic Finite Automt Finite Automt A mchine so simple tht you cn
More information1. 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 informationFABER Formal Languages, Automata and Models of Computation
DVA337 FABER Forml Lnguges, Automt nd Models of Computtion Lecture 5 chool of Innovtion, Design nd Engineering Mälrdlen University 2015 1 Recp of lecture 4 y definition suset construction DFA NFA stte
More informationTechnische 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 informationCS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata
CS103B ndout 18 Winter 2007 Ferury 28, 2007 Finite Automt Initil text y Mggie Johnson. Introduction Severl childrens gmes fit the following description: Pieces re set up on plying ord; dice re thrown or
More informationQuadratic Forms. Quadratic Forms
Qudrtic Forms Recll the Simon & Blume excerpt from n erlier lecture which sid tht the min tsk of clculus is to pproximte nonliner functions with liner functions. It s ctully more ccurte to sy tht we pproximte
More informationCS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions
CS 330 Forml Methods nd Models Dn Richrds, George Mson University, Spring 2016 Quiz Solutions Quiz 1, Propositionl Logic Dte: Ferury 9 1. (4pts) ((p q) (q r)) (p r), prove tutology using truth tles. p
More informationNormal Forms for Context-free Grammars
Norml Forms for Context-free Grmmrs 1 Linz 6th, Section 6.2 wo Importnt Norml Forms, pges 171--178 2 Chomsky Norml Form All productions hve form: A BC nd A vrile vrile terminl 3 Exmples: S AS S AS S S
More information1.4 Nonregular Languages
74 1.4 Nonregulr Lnguges The number of forml lnguges over ny lphbet (= decision/recognition problems) is uncountble On the other hnd, the number of regulr expressions (= strings) is countble Hence, ll
More informationCS 330 Formal Methods and Models
CS 330 Forml Methods nd Models Dn Richrds, section 003, George Mson University, Fll 2017 Quiz Solutions Quiz 1, Propositionl Logic Dte: Septemer 7 1. Prove (p q) (p q), () (5pts) using truth tles. p q
More informationWorked out examples Finite Automata
Worked out exmples Finite Automt Exmple Design Finite Stte Automton which reds inry string nd ccepts only those tht end with. Since we re in the topic of Non Deterministic Finite Automt (NFA), we will
More informationDomino Recognizability of Triangular Picture Languages
Interntionl Journl of Computer Applictions (0975 8887) Volume 57 No.5 Novemer 0 Domino Recognizility of ringulr icture Lnguges V. Devi Rjselvi Reserch Scholr Sthym University Chenni 600 9. Klyni Hed of
More informationFundamentals of Computer Science
Fundmentls of Computer Science Chpter 3: NFA nd DFA equivlence Regulr expressions Henrik Björklund Umeå University Jnury 23, 2014 NFA nd DFA equivlence As we shll see, it turns out tht NFA nd DFA re equivlent,
More informationNon-deterministic Finite Automata
Non-deterministic Finite Automt From Regulr Expressions to NFA- Eliminting non-determinism Rdoud University Nijmegen Non-deterministic Finite Automt H. Geuvers nd J. Rot Institute for Computing nd Informtion
More informationCS 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 informationThree termination problems. Patrick Dehornoy. Laboratoire de Mathématiques Nicolas Oresme, Université de Caen
Three termintion prolems Ptrick Dehornoy Lortoire de Mthémtiques Nicols Oresme, Université de Cen Three termintion prolems Ptrick Dehornoy Lortoire Preuves, Progrmmes, Systèmes Université Pris-Diderot
More informationNon-deterministic Finite Automata
Non-deterministic Finite Automt Eliminting non-determinism Rdoud University Nijmegen Non-deterministic Finite Automt H. Geuvers nd T. vn Lrhoven Institute for Computing nd Informtion Sciences Intelligent
More information12.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 informationCSE : Exam 3-ANSWERS, Spring 2011 Time: 50 minutes
CSE 260-002: Exm 3-ANSWERS, Spring 20 ime: 50 minutes Nme: his exm hs 4 pges nd 0 prolems totling 00 points. his exm is closed ook nd closed notes.. Wrshll s lgorithm for trnsitive closure computtion is
More information