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

Size: px
Start display at page:

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

Transcription

1 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 woehrle@informtik.rwth-chen.de Astrct. In this pper we give two equivlent chrcteriztions of the Cucl hierrchy, hierrchy of infinite grphs with decidle mondic second-order (MSO) theory. It is otined y iterting the grph trnsformtions of unfolding nd inverse rtionl mpping. The first chrcteriztion sticks to this hierrchicl pproch, replcing the lngugetheoretic opertion of rtionl mpping y n MSO-trnsduction nd the unfolding y the treegrph opertion. The second chrcteriztion is non-itertive. We show tht the fmily of grphs of the Cucl hierrchy coincides with the fmily of grphs otined s the ε-closure of configurtion grphs of higher-order pushdown utomt. While the different chrcteriztions of the grph fmily show their roustness nd thus lso their importnce, the chrcteriztion in terms of higher-order pushdown utomt dditionlly yields tht the grph hierrchy is indeed strict. 1 Introduction Clsses of finitely generted infinite grphs enjoying decidle theory re strong suject of current reserch. Interest rises from pplictions in model checking of infinite structures (e.g. trnsition systems, unfoldings of Kripke structures) s well s from theoreticl point of view since the order to undecidility is very close nd even for very regulr structures mny properties ecome undecidle. We re interested in hierrchy of infinite grphs with decidle mondic second-order (MSO) theory which ws introduced y D. Cucl in [7]. Strting from the clss of finite grphs two opertions preserving the decidility of the MSO-theory re pplied, the unfolding [9] nd inverse rtionl mppings [6]. Iterting these opertions we otin the hierrchy (Grph(n)) n N where Grph(n) is the clss of ll grphs which cn e otined from some finite grph y n n-fold itertion of unfolding followed y n inverse rtionl mpping. This hierrchy of infinite grphs contins severl interesting fmilies of grphs (see [7, 17]) nd hs lredy een suject to further studies [2].

2 The first level contins exctly the prefix-recognizle grphs [6], which cn in turn e chrcterized s the grphs definle in 2 (the infinite inry tree) y n MSO-trnsduction [1], or s the ε-closure of configurtion grphs of pushdown utomt [16] (see [1] for n overview). We extend these chrcteriztions to higher levels. In Sect. 3 we show tht the itertion of the treegrph opertion, vrint of the tree-itertion [18], nd MSO-trnsductions genertes exctly the Cucl hierrchy. These two opertions re to our knowledge the strongest grph trnsformtions which preserve the decidility of the MSO-theory. In [17] the hierrchy ws defined strting from the infinite inry tree y iterting MSOinterprettions (prticulr MSO-trnsductions) nd unfolding. Since the unfolding is definle inside the grph otined y the treegrph opertion, it follows from our result these definitions re indeed equivlent. Pushdown utomt cn lso e seen s the first level of hierrchy of higherorder pushdown utomt, whose stck entries re not only single letters (s for level 1), ut words (level 2), words of words (level 3).... Similr hierrchies hve lredy een considered in [14, 11, 15]. In Sect. 4 we show tht grph is on level n of the Cucl hierrchy iff it is the ε-closure of configurtion grph of higher-order pushdown utomton of level n. This result is incorrectly ttriuted to [2, 7] in [17]. In [2], in the context of gme simultion, only the esier direction from higher-order pushdown grphs to grphs in the hierrchy is shown. All the proofs in Sections 3 nd 4 re effective. In Sect. 5 we use the chrcteriztion of the hierrchy in terms of higher-order pushdown utomt to show tht it is strict. Moreover we exhiit genertor for every level, i.e. every grph on this level cn e otined from the genertor y pplying rtionl mrking nd n inverse rtionl mpping, or n MSOinterprettion. Finlly we give n exmple of grph with decidle MSO-theory which is not in the hierrchy. 2 Preliminries 2.1 Opertions on Grphs nd the Cucl Hierrchy We fix countle set A, lso clled lphet. Let Σ A e finite suset of edge lels. A Σ-leled grph G is tuple (V G, (E G ) Σ ) where V G is set of vertices nd for Σ we denote y E G V G V G the set of -leled edges of G. We ssume tht V G is t most countle, nd tht there re no isolted vertices in G, i.e. for every v V G there exists n w V G such tht (v, w) E G or (w, v) E G for some Σ. If the grph G nd the set of edge lels Σ is cler from the context we drop the superscript G nd spek just of leled grph. A grph is clled deterministic if (v, w) E nd (v, w ) E implies w = w for ll v, w, w V nd Σ. A pth from vertex u to vertex v leled y w = 1... n 1 is sequence v n 1 v n V (ΣV ) such tht v 1 = u, v n = v nd (v i, v i+1 ) E i for every i {1,..., n 1}. In this cse we will lso write u w v. A tree T is

3 grph contining vertex r clled the root such tht for ny vertex v V T there exists unique pth from r to v. The unfolding Unf(G, r) of grph G = (V G, (E G ) Σ ) from node r V G is the tree T = (V T, (E T ) Σ ) where V T is the set of ll pths strting from r in G nd for ll Σ, (w, w ) E T iff w = w v for some v V G. The treegrph Treegrph(G, ) of grph G = (V, (E ) Σ ) y symol Σ is the grph G = (V +, (E ) Σ { } ) where V + designtes the set of ll finite non-empty sequences of elements of V, for ll Σ nd ll w V, (wu, wv) E iff (u, v) E, nd E = {(wu, wuu) w V, u V }. The tree-itertion s defined in [18] lso contins son-reltion given y {(w, wu) w V nd u V }. If G is connected then the son-reltion cn e defined in the treegrph. Let Σ e set of symols disjoint from ut in ijection with Σ. We extend every Σ-leled grph G to (Σ Σ)-leled grph Ḡ y dding reverse edges Eā := {(u, v) (v, u) E }. Let Γ A e set of edge lels. A rtionl mpping is mpping h : Γ P(Σ Σ) which ssocites to every symol from Γ regulr suset of (Σ Σ). If h() is finite for every Γ we lso spek of finite mpping. We pply rtionl mpping h to Σ-leled grph G y the inverse to otin Γ -leled grph h 1 (G) with (u, v) E iff there is pth from u to v in Ḡ leled y word in h(). The set of vertices of h 1 (G) is given implicitly y the edge reltions. We lso spek of h 1 (G) s the grph otined from G y the inverse rtionl mpping h 1. The mrking M (G, X) of grph G = (V, (E ) Σ ) on set of vertices X V y symol Σ is the grph G = (V, (E ) Σ { } ) where V = {(x, 0) x V } {(x, 1) x X}, E = {((x, 0), (y, 0)) (x, y) E } for Σ, nd E = {((x, 0), (x, 1)) x X}. A rtionl mrking of grph G = (V, (E ) Σ ) y symol Σ with rtionl suset R over Σ Σ from ( w vertex r V is the grph M G, {x V r Ḡ x, w R} ). An MSOmrking ( of grph G y symol with n MSO-formul ϕ(x) is the grph M G, {v V G G = ϕ(v)} ). Following [7], we define Grph(0) to e the clss contining for every finite suset Σ A ll finite Σ-leled grphs, nd for ll n 0 Tree(n + 1) := { Unf(G, r) G Grph(n), r V G}, Grph(n + 1) := { h 1 (T ) T Tree(n + 1), h 1 n inverse rtionl mpping }, where we do not distinguish etween isomorphic grphs. 2.2 Mondic Second-order Logic nd Trnsductions We define the mondic second-order logic over Σ-leled grphs s usul, (see e.g. [13]), i.e. we view grph s reltionl structure over the signture consisting of the inry reltion symols (E ) Σ. A formul ϕ(x 1,..., X k ) contining t most the free vriles X 1,..., X k is evluted in (G, V) where G = (V, (E ) Σ ) is Σ-leled grph nd V : V P({1,..., k}) is function which ssigns to every vertex v of G set V(v) such tht v X i iff i V(v). We write (G, V) = ϕ(x 1,..., X k ), or equivlently

4 G = ϕ[v 1,..., V k ] where V i := {v V i V(v)}, if ϕ holds in G under the given vlution V. An MSO-interprettion of Γ in Σ is fmily I = (ϕ (x, y)) Γ of MSOformuls over Σ. Applying n MSO-interprettion I = (ϕ (x, y)) Γ of Γ in Σ to Σ-leled grph G we otin Γ -leled grph I(G) where the edge reltion E I(G) is given y the pirs of vertices for which ϕ (x, y) is stisfied in G, nd V I(G) is given implicitly s the set of ll vertices occurring in the reltions E I(G). Note tht the ddition of n MSO-formul δ(x) to I defining the vertex set explicitly does not increse the power of n interprettion if we require tht there re no isolted vertices in the resulting grph. Interprettions cnnot increse the size of structure. To overcome this wekness the notion of trnsduction ws introduced, cf. [8]. Let G = (V, (E ) Σ ) e Σ-leled grph nd K e finite suset of A disjoint from Σ. A K-copying opertion for Σ ssocites to G (Σ K)-leled grph G = (V, (E ) Σ K ) where V = V (V K), E := E for Σ, nd E := {(v, (v, )) v V } for K. An MSO-trnsduction T = (K, I) from Σ to Γ is K-copying opertion for Σ followed y n MSO-interprettion I of Γ in Σ K. Note tht n inverse rtionl mpping is specil cse of n MSO-interprettion nd n MSO-mrking is specil cse of n MSO-trnsduction. 2.3 Higher-order Pushdown Automt We follow the definition of [15]. Let Γ e finite set of stck symols. A level 1 pushdown stck over Γ is word w Γ in reversed order, i.e. if w = 1... m the corresponding stck is denoted y [ m,..., 1 ]. For n 2 level n pushdown stck over Γ is inductively defined s sequence [s r,..., s 1 ] of level n 1 pushdown stcks s i for 1 i r. [ε] denotes the empty level 1 stck, the empty level n stck, denoted y [ε] n, is stck which contins for 1 i < n only single empty level i stck. The following instructions cn e executed on level 1 stck [ m,..., 1 ]: push 1([ m,..., 1 ]) := [, m,..., 1 ] for every Γ pop 1 ([ m, m 1..., 1 ]) := [ m 1,..., 1 ] Furthermore we define the following function which does not chnge the content of stck: top([ε]) := ε nd top([ m,..., 1 ]) := m for m 1. For stck [s r,..., s 1 ] of level n 2 we define the following instructions push 1([s r,..., s 1 ]) := [push 1(s r ), s r 1,... s 1 ] for every Γ push n ([s r,..., s 1 ]) := [s r, s r,..., s 1 ] push k ([s r,..., s 1 ]) := [push k (s r ), s r 1,..., s 1 ] for 2 k < n pop n ([s r,..., s 1 ]) := [s r 1,..., s 1 ] pop k ([s r,..., s 1 ]) := [pop k (s r ), s r 1,..., s 1 ] for 1 k < n

5 nd extend top to level n stck y setting top([s r,..., s 1 ]) := top(s r ). We denote y Instr n the set of instructions tht cn e pplied to level n stck (without the top function). For the ske of esiness we lso dd n identity function denoted y which does not chnge the stck t ll. The instruction push 1 dds the symol to the topmost level 1 stck, while push k duplictes the topmost level k 1 stck completely. Similrly pop 1 removes the top symol of the topmost level 1 stck, while pop k for 1 < k n removes the corresponding level k 1 stck completely. Note tht the instruction pop k for 2 k n cn only e pplied if the resulting stck is gin level n stck, i.e. it does not remove ottom level k 1 stck. A higher-order pushdown utomton of level n is tuple A = (Q, Σ, Γ, q 0, ) where Q is finite set of sttes, Σ is n input lphet, Γ is stck lphet, q 0 Q is n initil stte, nd Q (Σ {ε}) (Γ {ε}) Q Instr n is trnsition reltion. A configurtion of A is pir (q, [s r,..., s 1 ]) where q is stte of A nd [s r,..., s 1 ] is stck of level n. The initil configurtion (q 0, [ε] n ) consists of the initil stte q 0 nd the empty level n stck [ε] n. A cn rech configurtion (q, [s r,..., s 1]) from (q, [s r,..., s 1 ]) y reding Σ {ε} if there is trnsition (q,, top([s r,..., s 1 ]), q, i) such tht i([s r,..., s 1 ]) = [s r,..., s 1]. The utomton A ccepts word w Σ if A reches from the initil configurtion the empty level n stck fter reding w. We denote y HOPDA(n) the clss of ll higher-order pushdown utomt of level n. 3 Closure Properties In this prt, we prove tht the hierrchy is closed under MSO-trnsductions nd the treegrph opertion. We first consider the cse of deterministic trees. 3.1 The Deterministic Cse We consider su-hierrchy otined y unfolding only deterministic grphs. Grph d (0) is equl to Grph(0). Tree d (n + 1) contins the unfoldings of every deterministic grph G Grph d (n) from vertex in V G. Grph d (n) is defined in the sme wy s Grph(n). Note tht Grph d (n) lso contins non-deterministic grphs. Closure under MSO-trnsductions Using results from [3], we prove tht for ll n N, Grph d (n) is closed under MSO-trnsductions. This result ws otined for the first level y A. Blumensth in [1]. Oviously, Tree d (n) is not closed under MSO-trnsductions ut if we consider only MSO-mrkings, we otin lso closure property for Tree d (n). Proposition 1. For ll n 0, ll tree T Grph d (n), we hve tht: Tree d (n) nd ll grph G 1. M(T ) lso elongs to Tree d (n), for ny MSO-mrking M,

6 2. T (G) lso elongs to Grph d (n), for ny MSO-trnsduction T. Proof (sketch): These results re proved y induction on the level using prtil commuttion results of MSO-trnsductions nd unfolding otined in [3]. 1. For every deterministic grph G nd every MSO-mrking M, there exists n MSO-trnsduction T nd vertex r such tht M(Unf(G, r)) Unf(T (G), r ). 2. For every deterministic grph G nd every MSO-trnsduction T, there exists n MSO-trnsduction T, rtionl mpping h nd vertex r such tht T (Unf(G, r)) h 1 (Unf(T (G), r )). Note tht in oth cses T preserves determinism. Closure Under the Treegrph Opertion The unfolding is prticulr cse of the treegrph opertion in the sense tht for ny grph G the unfolding from definle vertex r, Unf(G, r), cn e otined y n MSO-interprettion from Treegrph(G, ) (see [9]). In the cse of deterministic trees, we show converse result: how to otin treegrph using MSO-interprettions nd unfolding. This construction is due to T. Colcomet. Lemm 1. For ny finite set of lels Σ, there exist two finite mppings h 1,h 2 nd rtionl mrking M such tht for ny deterministic tree T with root r: Treegrph(T, ) h 1 ( ( ( 2 M Unf h 1 1 (T ), r))). Proof (sketch): The finite mpping h 1 dds ckwrd edges leled y elements of Σ nd loop leled y to every vertex. Thus, for ll Σ, h 1 is defined y h 1 () = {}, h 1 (ã) = {ā} nd h 1 ( ) = {ε}. Let H e the deterministic tree equl to Unf ( h 1 1 (T ), r), every node x of H is uniquely chrcterized y word in (Σ Σ { }). The rtionl mrking M $ mrks ll the vertices corresponding to word which does not contin x x or xx for x Σ. Finlly, h 2 is used to erse unmrked vertices nd to reverse the remining edges with lels in Σ. h 2 is given y h 2 ( ) = { } nd h 2 () = { $ $$ $, $ $ ã$ $ } for Σ. Figure 1 illustrtes the construction ove on the semi-infinite line. The filled dots represent the vertices mrked y M $. The closure of the deterministic hierrchy under the treegrph opertion is otined from Lem. 1 nd Prop. 1, using the fct tht for ll trees T nd ll rtionl mppings h which do not contin, Treegrph(h 1 (T ), ) = h 1 (Treegrph(T, )) where h designtes the rtionl mpping tht extends h with h ( ) = { }. Proposition 2. For ll n 0, if G Grph d (n) then Treegrph(G, ) Grph d (n + 1).

7 ã ã ã ã ã ã ã ã ã ã ã Fig. 1. The semi-infinite line fter pplying h 1 nd its unfolding 3.2 Deterministic Trees re Enough We now prove tht for ll n, Grph(n) is equl to Grph d (n). From the technicl point of view, this mens tht even if the hierrchy contins non-deterministic grphs nd even grphs of infinite out-degree, we cn lwys work with n underlying deterministic tree. Lemm 2. For ll n > 0, if G Grph(n), then there exists deterministic tree T Tree d (n) nd rtionl mpping h such tht G = h 1 (T ). Proof (sketch): The proof proceeds y induction on the level n. Let T Tree(n+ 1), we wnt to prove tht T elongs to Grph d (n + 1). By definition of Tree(n + 1) nd y induction hypothesis, we hve T Unf(h 1 (T d ), s) for some deterministic tree T d Tree d (n) nd some rtionl mpping h. Using the fct tht the unfolding cn e defined in the treegrph opertion (see [9]), we hve T T (Treegrph(h 1 (T d ), )) for some MSO-trnsduction T. If h denotes the rtionl mpping otined y extending h with h ( ) = { }, we hve T = T (h 1 (Treegrph(T d, )). Applying Lem. 1, we hve T = T (Unf(h 1 1 (T d), r)) T. It is esy to check tht Unf ( h 1 1 (T d), r ) elongs where T = M h 1 2 h 1 to Tree d (n + 1). Using Prop. 1, we prove tht T elongs to Grph d (n + 1). The cse of G Grph(n + 1) is esily derived from this. We cn now prove tht every grph of the hierrchy hs decidle MSOtheory. Note tht this does not follow directly from the definition ecuse unfolding from n ritrry (i.e. not necessrily MSO-definle) vertex does not preserve the decidility of MSO-logic. However, using Lem. 2 we cn lwys

8 come ck to the cse where we unfold from MSO-definle vertex (see [4] for more detils). Theorem 1. Ech grph of the hierrchy hs decidle MSO-theory nd this remins true if we dd to MSO-logic the predictes X <, X = k mod p for ll k nd p N which re interpreted s X is finite respectively X hs size equl to k modulo p for k, p N. Comining Prop. 1, Prop. 2 nd Lem. 2, we now hve two equivlent chrcteriztions of the hierrchy: one miniml in terms of unfolding nd inverse rtionl mppings nd one mximl in terms of the treegrph opertion nd MSO-trnsductions. The mximl chrcteriztion shows the roustness of the hierrchy nd its interest ecuse it comines the two, to our knowledge, most powerful MSO-preserving opertions. On the other side, the miniml chrcteriztion llows us to mke the link etween the hierrchy nd the grphs of higher-order pushdown utomt. Theorem 2. The Cucl hierrchy is equl to the hierrchy otined y iterting the treegrph opertion nd MSO-trnsductions. 4 Higher-order Pushdown Grphs vs. Cucl Grphs In this section we give n utomt-theoretic chrcteriztion of the clsses of the Cucl hierrchy. This chrcteriztion provides us with flt model for descriing grph of ny level, i.e. we do not hve to refer to sequence of opertions. Furthermore it extends the chrcteriztion of the first level of the hierrchy s the ε-closure of configurtion grphs of pushdown utomt given in [16] to ny level. We recll some definitions. The configurtion grph C(A) of A HOPDA(n) is the grph of ll configurtions of A rechle from the initil configurtion, with n edge leled y Σ {ε} from (q, s) to (q, s ) iff there is trnsition (q,, top(s), q, i) such tht i(s) = s. Let C(A) e the configurtion grph of A HOPDA(n). We will ssume for the reminder of the pper tht for every pir (q, α) of stte q nd top stck symol α only ε-trnsitions or only non-ε-trnsitions re possile. The ε-closure of C(A) is the grph G otined from C(A) y removing ll vertices with only outgoing ε-trnsitions nd dding n -leled edge etween v nd w if there is n -leled pth from v to w in C(A). A higher-order pushdown grph G of level n is the ε-closure of the configurtion grph of some A HOPDA(n). We cll G the higher-order pushdown grph generted y A nd denote y HOPDG(n) the clss of ll higher-order pushdown grphs of level n (up to isomorphism). This notion of ε-closure ws used in [16] to show tht the clss HOPDG(1) coincides with the clss of prefix recognizle grphs, i.e. with the the grphs on the first level of the hierrchy. We extend this result to every level of the hierrchy.

9 The esier prt of the equivlence is to show tht every HOPDG of level n is grph on the sme level of the hierrchy. The min ide is to find grph in Grph(n) such tht every node of this grph cn e identified with configurtion of higher-order pushdown utomton, nd to construct n inverse rtionl mpping which genertes the edges of the configurtion grph of the utomton. Such construction is lredy contined in [2] in slightly different setting. We propose here to use the fmily n m of grphs otined y n (n 1)-fold ppliction of the treegrph opertion to the infinite m-ry tree m. This hs the dvntge tht there is lmost one-to-one correspondence etween configurtions of the higher-order pushdown utomton nd the vertices of the grph. Using the fct tht n m Grph(n) we otin: Lemm 3. If G HOPDG(n) then G Grph(n). We now turn to the converse direction: every grph G on level n of the hierrchy is indeed the ε-closure of configurtion grph of higher-order pushdown utomton of level n. We show this using the following two Lemms. Lemm 4. If G HOPDG(n) nd r V G, then Unf(G, r) HOPDG(n + 1). Lemm 5. If G HOPDG(n), r V G h 1 (Unf(G, r)) HOPDG(n + 1). nd h is rtionl mpping, then While the proof of Lem. 4 consists of strightforwrd modifiction of the HOPDA for G, the proof of Lem. 5 requires some technicl preprtion. We need to show tht for n utomton s constructed in the proof of Lem. 4 there exists higher-order pushdown utomton which genertes exctly the grph Unf(G, r) extended y reverse edges, i.e. for ll v, w Unf(G, r), v w in Unf(G, r) iff w ā v in the extended grph. To show tht such n utomton exists we introduce the notion of wek popping higher-order pushdown utomton. A wek popping utomton is only llowed to execute pop instruction of level j 2 if the two top level j stcks coincide. We skip forml definition of wek popping higher-order pushdown utomton nd just mention tht even though this utomton model is equipped with uilt-in test on the equlity of two stcks of the sme level, it is equivlent to the usul model. All proofs re given in the full version of this rticle [4]. Theorem 3. For every n N, G HOPDG(n) iff G Grph(n). 5 More Properties of the Cucl Hierrchy We give genertor for ech level of the hierrchy. Then we use the trces of the grphs of the hierrchy to prove its strictness nd to exhiit grph hving decidle MSO-theory which is not in the hierrchy.

10 5.1 Genertors For the first level of the hierrchy, the infinite inry tree 2 is genertor for rtionl mrkings (without ckwrd edges) from the root nd inverse rtionl mppings. As hinted y the proof of Lem. 3, similr result cn e otined t ny level. Recll tht n 2 is the grph otined from 2 y n (n 1)-fold ppliction of the treegrph opertion. Proposition 3. Every grph G Grph(n) cn e otined from n 2 y pplying rtionl mrking (with ckwrd edges) from its source nd n inverse rtionl mpping. 5.2 On Trces The Strictness of the Hierrchy A direct consequence of Theo. 3 is tht the trces of the grphs of level n re recognized y higher-order pushdown utomton of level n. These fmilies of lnguges hve een studied y W. Dmm nd form the OI-hierrchy [11]. The equivlence etween the OI-hierrchy nd the trces of higher-order pushdown utomt is proved in [12]. In [10, 14], this hierrchy is proved to e strict t ech level. Theorem 4. For ll n 1, () for ll T Tree(n) the rnch lnguge of T (i.e. the set of ll words leling pth from the root to lef) is recognized y HOPDA of level n 1. () for ll G Grph(n) nd u, v V G, L(u, v, G) = {w Γ u w v} is recognized y HOPDA of level n. According to Theo. 4, the strictness level-y-level of the OI-hierrchy implies the strictness of the Cucl hierrchy. An ovious exmple of grph which is t level n ut not t level n 1 is the genertor n 2. To otin more nturl grphs tht seprte the hierrchy, we consider the trees ssocited to monotoniclly incresing mppings f : N N. The tree T f ssocited to f is defined y the following set of edges: E = {((i, 0), (i + 1, 0)) i N} nd E = {((i, j), (i, j + 1)) i N nd j + 1 f(i)}. The rnch lnguge of T f is { n f(n) n 0}. Using property of rtionl indexes of k-oi lnguges (see [10]), we otin the following proposition. Proposition 4. If { n f(n) n N} is recognized y higher-order pushdown utomton of level k then f O(2 k 1 (p(n))) for some polynomil p where 2 0 (n) = n nd 2 k+1 (n) = 2 2 k (n). Let us consider the mpping exp k (n) = 2 k (n). It hs een proved in [7] tht T expk elongs to Grph(k + 1). Note tht using Theo. 3 the construction given in [7] cn e voided y providing deterministic higher-order pushdown utomton of level k + 1 tht recognizes { n expk(n) n N}. It is nturl to consider the digonl mpping exp ω (n) = exp n (1). Figure 2 shows n initil segment of the tree ssocited to exp ω. By Prop. 4, the ssocited tree T expω is not in the hierrchy. However, using techniques from [5], we cn prove tht T expω hs decidle MSO-theory.

11 n exp ω (n) Fig. 2. The grph T expω of the function exp ω Proposition 5. There exists grph with decidle MSO-theory which is not in the Cucl hierrchy. 6 Conclusion We hve given two chrcteriztions of the Cucl hierrchy. We hve shown tht it coincides with the hierrchy otined y lternting the treegrph opertion nd MSO-trnsductions, nd thus hve prtly nswered question posed in [17]. It remins open whether one cn extend this result to structures other thn grphs, i.e. with symols of higher rity. We hve lso chrcterized the Cucl hierrchy s the ε-closure of configurtion grphs of higher-order pushdown utomt nd hve used this result to otin tht the hierrchy is indeed strict, ut does not contin ll grphs with decidle MSO-theory. Despite these chrcteriztion results we know surprisingly few out the grphs otined on level n 2. This deserves further study. Also thorough comprison with other methods to generte infinite grphs with decidle theory misses (see [17] for more precise ccount on this). Futhermore we like to mention tht neither the constructions used to uild the hierrchy nor Proposition 5 contrdicts Seese s conjecture tht every infinite grph (or every set of finite grphs) hving decidle MSO-theory is the imge of tree (or set of trees) under n MSO-trnsduction. Finlly, mny of the questions posed in [7] on the corresponding hierrchy of trees remined unsolved so fr. Acknowledgment We thnk D. Cucl nd W. Thoms for stimulting discussions while working on this pper nd for finncil support enling our visits in Achen respectively Rennes. We lso thnk T. Colcomet for pointing to solution for Lem. 1, T.

12 Ccht for reding first drft of Sect. 4, nd the nonymous referees for mny useful remrks. References 1. A. Blumensth. Prefix-recognisle grphs nd mondic second-order logic. Technicl Report AIB , RWTH Achen, T. Ccht. Higher order pushdown utomt, the Cucl hierrchy of grphs nd prity gmes. In Proceedings of the 30th Interntionl Colloquium on Automt, Lnguges, nd Progrmming, volume 2719 of LNCS, pges Springer, A. Cryol nd T. Colcomet. On equivlent representtions of infinite structures. In Proceedings of the 30th Interntionl Colloquium on Automt, Lnguges, nd Progrmming, volume 2719 of LNCS, pges Springer, A. Cryol nd S. Wöhrle. The Cucl hierrchy of infinite grphs in terms of logic nd higher-order pushdown utomt. Technicl report, RWTH Achen, O. Crton nd W. Thoms. The mondic theory of morphic infinite words nd generliztions. In Proceedings of the 25th Interntionl Symposium on Mthemticl Foundtions of Computer Science, volume 1893 of LNCS, pges Springer, D. Cucl. On infinite trnsition grphs hving decidle mondic theory. In Proceedings of the 23rd Interntionl Colloquium on Automt, Lnguges nd Progrmming, volume 1099 of LNCS, pges , D. Cucl. On infinite terms hving decidle mondic theory. In Proceedings of the 27th Interntionl Symnposium on Mthemticl Foundtions of Computer Science, volume 2420 of LNCS, pges Springer, B. Courcelle. Mondic second-order definle grph trnsductions: A survey. Theoreticl Computer Science, 126:53 75, B. Courcelle nd I. Wlukiewicz. Mondic second-order logic, grph coverings nd unfoldings of trnsition systems. Annls of Pure nd Applied Logic, 92:35 62, W. Dmm. An lgeric extension of the Chomsky-hierrchy. In Proceedings of the 8th Interntionl Symposium on Mthemticl Foundtions of Computer Science, volume 74 of LNCS, pges Springer, W. Dmm. The IO nd OI hierrchies. Theoreticl Computer Science, 20:95 208, W. Dmm nd A. Goerdt. An utomt-theoreticl chrcteriztion of the OIhierrchy. Informtion nd Control, 71:1 32, H.D. Einghus nd J. Flum. Finite Model Theory. Springer, J. Engelfriet. Iterted stck utomt nd complexity clsses. Informtion nd Computtion, 95:21 75, T. Knpik, D. Niwiński, nd P. Urzyczyn. Higher-order pusdown trees re esy. In Proceedings of the 5th Interntionl Conference on Foundtions of Softwre Science nd Computtion Structures, volume 2303 of LNCS, pges Springer, C. Stirling. Decidility of isimultion equivlence for pushdown processes. Sumitted. 17. W. Thoms. Constructing infinite grphs with decidle MSO-theory. In Proceedings of the 28th Interntionl Symposium on Mthemticl Foundtions of Computer Science, volume 2747 of LNCS. Springer, I. Wlukiewicz. Mondic second-order logic on tree-like structures. Theoreticl Computer Science, 275: , 2002.

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

Hierarchy of pushdown graphs

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

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

First Midterm Examination

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

More information

More general families of infinite graphs

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

1 Nondeterministic Finite Automata

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

More information

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

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

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

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

Formal languages, automata, and theory of computation

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

More information

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

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

More information

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton

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

More information

Converting Regular Expressions to Discrete Finite Automata: A Tutorial

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

More information

Chapter 2 Finite Automata

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

More information

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers. Mehryar Mohri Courant Institute and Google Research

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

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers

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

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

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

More information

CHAPTER 1 Regular Languages. Contents

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

More information

Tutorial Automata and formal Languages

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

More information

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

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

More information

Lecture 9: LTL and Büchi Automata

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

More information

Parse trees, ambiguity, and Chomsky normal form

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

More information

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

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

More information

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

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

More information

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

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

More information

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

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

More information

Lecture 09: Myhill-Nerode Theorem

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

More information

3 Regular expressions

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

More information

1 From NFA to regular expression

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

More information

Finite Automata-cont d

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

More information

CMSC 330: Organization of Programming Languages

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

More information

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

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

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

More information

Nondeterminism and Nodeterministic Automata

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

More information

CONTEXT-SENSITIVE LANGUAGES, RATIONAL GRAPHS AND DETERMINISM

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

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

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

More information

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

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

More information

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018

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

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

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

More information

First Midterm Examination

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

More information

DFA minimisation using the Myhill-Nerode theorem

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

More information

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

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

More information

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

Ehrenfeucht-Fraïssé Games: Applications and Complexity. Department of Mathematics and Computer Science University of Udine, Italy ESSLLI 2010 CPH Ehrenfeucht-Frïssé Gmes: Applictions nd Complexity Angelo Montnri Nicol Vitcolonn Deprtment of Mthemtics nd Computer Science University of Udine, Itly ESSLLI 2010 CPH Outline Introduction to EF-gmes Inexpressivity

More information

Context-Free Grammars and Languages

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

More information

CS 275 Automata and Formal Language Theory

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

More information

Random subgroups of a free group

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

More information

Java II Finite Automata I

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

More information

Lecture 3: Equivalence Relations

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

More information

Closure Properties of Regular Languages

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

More information

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

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

More information

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

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

More information

Homework 3 Solutions

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

More information

Model Reduction of Finite State Machines by Contraction

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

More information

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

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

More information

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

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

More information

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

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

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 Automt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Problem (II) Chpter II.6.: Push Down Automt Remrk: This mteril is no longer tught nd not directly exm relevnt Anton Setzer (Bsed

More information

Bases for Vector Spaces

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

More information

On Determinisation of History-Deterministic Automata.

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

More information

p-adic Egyptian Fractions

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

More information

Free groups, Lecture 2, part 1

Free groups, Lecture 2, part 1 Free groups, Lecture 2, prt 1 Olg Khrlmpovich NYC, Sep. 2 1 / 22 Theorem Every sugroup H F of free group F is free. Given finite numer of genertors of H we cn compute its sis. 2 / 22 Schreir s grph The

More information

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata

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

Talen en Automaten Test 1, Mon 7 th Dec, h45 17h30

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

Scanner. Specifying patterns. Specifying patterns. Operations on languages. A scanner must recognize the units of syntax Some parts are easy:

Scanner. Specifying patterns. Specifying patterns. Operations on languages. A scanner must recognize the units of syntax Some parts are easy: Scnner Specifying ptterns source code tokens scnner prser IR A scnner must recognize the units of syntx Some prts re esy: errors mps chrcters into tokens the sic unit of syntx x = x + y; ecomes

More information

Thoery of Automata CS402

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

More information

1.4 Nonregular Languages

1.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 information

Contextual graph grammars characterising Rational Graphs

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

Harvard University Computer Science 121 Midterm October 23, 2012

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

More information

Theory of Computation Regular Languages

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

More information

BACHELOR THESIS Star height

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

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

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

More information

Marking shortest paths on pushdown graphs does not preserve MSO decidability

Marking shortest paths on pushdown graphs does not preserve MSO decidability Mrking shortest pths on pushdown grphs does not preserve MSO decidility Arnud Cryol, Olivier Serre To cite this version: Arnud Cryol, Olivier Serre Mrking shortest pths on pushdown grphs does not preserve

More information

Model Checking and Functional Program Transformations

Model Checking and Functional Program Transformations Model Checking nd Functionl Progrm Trnsformtions Axel Hddd LIAFA (Université Pris Diderot / CNRS) LIGM (Université Pris Est / CNRS) Astrct We study model for recursive functionl progrms clled higher order

More information

SWEN 224 Formal Foundations of Programming WITH ANSWERS

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

More information

Regular Expressions (RE) Regular Expressions (RE) Regular Expressions (RE) Regular Expressions (RE) Kleene-*

Regular Expressions (RE) Regular Expressions (RE) Regular Expressions (RE) Regular Expressions (RE) Kleene-* Regulr Expressions (RE) Regulr Expressions (RE) Empty set F A RE denotes the empty set Opertion Nottion Lnguge UNIX Empty string A RE denotes the set {} Alterntion R +r L(r ) L(r ) r r Symol Alterntion

More information

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

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

More information

Table of contents: Lecture N Summary... 3 What does automata mean?... 3 Introduction to languages... 3 Alphabets... 3 Strings...

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

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

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

More information

Name Ima Sample ASU ID

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

Domino Recognizability of Triangular Picture Languages

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

CM10196 Topic 4: Functions and Relations

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

More information

The size of subsequence automaton

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

Some Theory of Computation Exercises Week 1

Some Theory of Computation Exercises Week 1 Some Theory of Computtion Exercises Week 1 Section 1 Deterministic Finite Automt Question 1.3 d d d d u q 1 q 2 q 3 q 4 q 5 d u u u u Question 1.4 Prt c - {w w hs even s nd one or two s} First we sk whether

More information

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

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

More information

Myhill-Nerode Theorem

Myhill-Nerode Theorem Overview Myhill-Nerode Theorem Correspondence etween DA s nd MN reltions Cnonicl DA for L Computing cnonicl DFA Myhill-Nerode Theorem Deepk D Souz Deprtment of Computer Science nd Automtion Indin Institute

More information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

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

More information

CS 330 Formal Methods and Models

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

More information

Finite-State Automata: Recap

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

More information

CS375: Logic and Theory of Computing

CS375: 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 information

NFAs continued, Closure Properties of Regular Languages

NFAs continued, Closure Properties of Regular Languages Algorithms & Models of Computtion CS/ECE 374, Fll 2017 NFAs continued, Closure Properties of Regulr Lnguges Lecture 5 Tuesdy, Septemer 12, 2017 Sriel Hr-Peled (UIUC) CS374 1 Fll 2017 1 / 31 Regulr Lnguges,

More information

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

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

Homework 4. 0 ε 0. (00) ε 0 ε 0 (00) (11) CS 341: Foundations of Computer Science II Prof. Marvin Nakayama

Homework 4. 0 ε 0. (00) ε 0 ε 0 (00) (11) CS 341: Foundations of Computer Science II Prof. Marvin Nakayama CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 4 1. UsetheproceduredescriedinLemm1.55toconverttheregulrexpression(((00) (11)) 01) into n NFA. Answer: 0 0 1 1 00 0 0 11 1 1 01 0 1 (00)

More information

On Rational Graphs. Christophe Morvan. IRISA, Campus de Beaulieu, Rennes, France

On Rational Graphs. Christophe Morvan. IRISA, Campus de Beaulieu, Rennes, France On Rtionl Grphs Christophe Morvn IRISA, Cmpus de Beulieu, 35042 Rennes, Frnce christophe.morvn@iris.fr Astrct. Using rtionlity, like in lnguge theory, we define fmily of infinite grphs. This fmily is strict

More information

MTH 505: Number Theory Spring 2017

MTH 505: Number Theory Spring 2017 MTH 505: Numer Theory Spring 207 Homework 2 Drew Armstrong The Froenius Coin Prolem. Consider the eqution x ` y c where,, c, x, y re nturl numers. We cn think of $ nd $ s two denomintions of coins nd $c

More information

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

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

More information

Let's start with an example:

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

More information