Typeness for ω-regular Automata

Size: px
Start display at page:

Download "Typeness for ω-regular Automata"

Transcription

1 Interntionl Journl of Foundtions of Computer Science c World Scientific Pulishing Compny Typeness for ω-regulr Automt Orn Kupfermn School of Engineering nd Computer Science Herew University, Jeruslem 91904, Isrel orn@cs.huji.c.il Gil Morgenstern School of Engineering nd Computer Science Herew University, Jeruslem 91904, Isrel gil@cs.huji.c.il Aniello Murno Diprtimento di Informtic ed Appliczioni Università degli Studi di Slerno, Bronissi, Itly murno@unis.it Received (received dte) Revised (revised dte) Communicted y Editor s nme ABSTRACT We introduce nd study three notions of typeness for utomt on infinite words. For n cceptnce-condition clss γ (tht is, γ is wek, Büchi, co-büchi, Rin, or Streett), deterministic γ-typeness sks for the existence of n equivlent γ-utomton on the sme deterministic structure, nondeterministic γ-typeness sks for the existence of n equivlent γ-utomton on the sme structure, nd γ-powerset-typeness sks for the existence of n equivlent γ-utomton on the (deterministic) powerset structure one otined y pplying the suset construction. The notions re helpful in studying the complexity nd compliction of trnsltions etween the vrious clsses of utomt. For exmple, we prove tht deterministic Büchi utomt re co-büchi type; it follows tht trnsltion from deterministic Büchi to deterministic co-büchi utomt, when exists, involves no low up. On the other hnd, we prove tht nondeterministic Büchi utomt re not co-büchi type; it follows tht trnsltion from nondeterministic Büchi to nondeterministic co-büchi utomt, when exists, should e more complicted thn just redefining the cceptnce condition. As third exmple, y proving tht nondeterministic co-büchi utomt re Büchi-powerset type, we show tht trnsltion of nondeterministic co-büchi to deterministic Büchi utomt, when exists, cn e done pplying the suset construction. We give complete picture of typeness for the wek, Büchi, co-büchi, Rin, nd Streett cceptnce conditions, nd discuss its usefulness. Keywords: Automt on Infinite Words, Acceptnce Conditions 1. Introduction A preliminry version of this pper ppers in the Proceedings of the 2nd Interntionl Symposium on Automted Technology for Verifiction nd Anlysis, This work ws done while the uthor ws visiting the Herew University. 1

2 Finite utomt on infinite ojects were first introduced in the 60 s. Motivted y decision prolems in mthemtics nd logic, Büchi, McNughton, nd Rin developed frmework for resoning out infinite word nd infinite trees [4, 14, 18]. The frmework hs proved to e very powerful. Automt, nd their tight reltion to second-order mondic logics, were the key to the solution of severl fundmentl decision prolems in mthemtics nd logic [22]. Tody, utomt on infinite ojects re used for specifiction nd verifiction of nonterminting systems. In the utomt-theoretic pproch to verifiction, we reduce questions out systems nd their specifictions to questions out utomt. More specificlly, questions such s stisfiility of specifictions nd correctness of systems with respect to their specifictions re reduced to questions such s nonemptiness nd lnguge continment [23, 10, 24]. The utomt-theoretic pproch seprtes the logicl nd the comintoril spects of resoning out systems. The trnsltion of specifictions to utomt hndles the logic nd shifts ll the comintoril difficulties to utomt-theoretic prolems. Recent industril-strength property-specifiction lnguges such s Sugr [2], ForSpec [1], nd the recent stndrd PSL 1.01 [ include regulr expressions nd/or utomt, mking the utomt-theoretic pproch even more essentil. Since run of n utomton on n infinite word does not hve finl stte, cceptnce is determined with respect to the set of sttes visited infinitely often during the run. There re mny wys to clssify n utomton on infinite words. One is the clss of its cceptnce condition. For exmple, in Büchi utomt, some of the sttes re designted s ccepting sttes, nd run is ccepting iff it visits sttes from the ccepting set infinitely often [4]. Dully, in co-büchi utomt, run is ccepting iff it visits sttes from the ccepting set only finitely often. More generl re Rin utomt. Here, the cceptnce condition is set α = { G 1,B 1,..., G k,b k } of pirs of sets of sttes, nd run is ccepting if there is pir G i,b i for which the set of sttes visited infinitely often intersects G i nd is disjoint to B i. The condition α cn lso e viewed s Streett condition, in which cse run is ccepting if for ll pirs G i,b i, if the set of sttes visited infinitely often intersects G i, then it lso intersects B i. The numer k of pirs in α is referred to s the index of the utomton. Another wy to clssify n utomton is y the type of its rnching mode. In deterministic utomton, the trnsition function δ mps pir of stte nd letter into single stte. The intuition is tht when the utomton is in stte q nd it reds letter σ, then the utomton moves to stte δ(q,σ), from which it should ccept the suffix of the word. When the rnching mode is nondeterministic, δ mps q nd σ into set of sttes, nd the utomton should ccept the suffix of the word from one of the sttes in the set. The pplictions of utomt theory in resoning out systems hve led to the development of new clsses of utomt. In [17], Muller et l. introduced wek utomt. Wek utomt cn e viewed s specil cse of Büchi or co-büchi utomt in which every strongly connected component in the grph induced y the structure of the utomton is either contined in the ccepting set or is disjoint from it. Since resoning out specifictions is often done y recursively resoning 2

3 out their su-specifictions, known trnsltions of temporl-logic specifictions to Büchi utomt ctully result in wek utomt [17, 9, 7]. The specil structure of wek utomt is reflected in their ttrctive computtionl properties nd mkes them very ppeling. Essentilly, while the formultion of cceptnce y Büchi or co-büchi utomton involves lterntion etween lest nd gretest fixed-points, no lterntion is required for specifying cceptnce y wek utomton [9]. Deterministic wek utomt hve recently eing used to represent rel numers. A rel numer x in se r is represented y word in the form w i w f where w i is the integer prt of x nd w f is the flot prt of x, nd oth re words over the lphet {0,1,...,r 1}. This wy for instnce, the rel numer in se r = 10 is represented y ω or y ω. In similr wy, vector v = x 1,x 2,...,x n of rel numers is represented y word of the form W i W f where W i is in ({0,1,...,r 1} n ) nd W f is in ({0,1,...,r 1} n ) ω. As rel numers my hve severl representtions, rel vectors my hve severl representtions too. A rel vector utomton is Büchi utomton tht either ccepts ll the representtions of some vector v IR n or none of them. It is proved in [3] tht n RVA is deterministic wek utomton. It turns out tht different clsses of utomt hve different expressive power. For exmple, unlike utomt on finite words, where deterministic nd nondeterministic utomt hve the sme expressive power, deterministic Büchi utomt re strictly less expressive thn nondeterministic Büchi utomt [11]. Tht is, there exists lnguge L over infinite words such tht L cn e recognized y nondeterministic Büchi utomton ut cnnot e recognized y deterministic Büchi utomton. It lso turns out tht some clsses of utomt my e more succinct thn other clsses. For exmple, trnslting nondeterministic co-büchi utomton into deterministic one is possile [16], ut involves n exponentil low up. As nother exmple, trnslting nondeterministic Rin utomton with n sttes nd index k, into n equivlent nondeterministic Büchi utomton my result in n utomton with O(k n) sttes, nd if we strt with Streett utomton, the Büchi utomton my hve n 2 O(k) sttes [21]. Note tht expressiveness nd succinctness depend in oth the rnching type of the utomton s well s the clss of its cceptnce condition. There hs een extensive reserch on expressiveness nd succinctness of utomt on infinite words [22]. In prticulr, since resoning out deterministic utomt is simpler thn resoning out nondeterministic ones, questions like deciding whether nondeterministic utomton hs n equivlent deterministic one, nd the low-up involved in determiniztion re of prticulr interest. These questions get further motivtion with the discovery tht mny nturl specifictions correspond to the deterministic frgments: it is shown in [8] tht n LTL formul ψ hs n equivlent lterntion-free µ-clculus formul iff ψ cn e recognized y deterministic Büchi utomton, nd, s mentioned ove, rel vector utomt re deterministic wek utomt. For deterministic utomt, where Büchi nd co-büchi utomt re less expressive thn Rin nd Streett utomt, reserchers hve come up with the notion 3

4 of deterministic utomton eing Büchi type, nmely it hs n equivlent Büchi utomton on the sme structure [6]. It is shown in [6] tht Rin utomt re Büchi type. Thus, if deterministic Rin utomton A recognizes lnguge tht cn e recognized y deterministic Büchi utomton, then A hs n equivlent deterministic Büchi utomton on the sme structure. On the other hnd, Streett utomt re not Büchi type: there is deterministic Streett utomton A tht recognizes lnguge tht cn e recognized y deterministic Büchi utomton, ut ll the possiilities of defining Büchi cceptnce condition on the structure of A result in n utomton recognizing different lnguge. As discussed in [6], Büchi-typeness is very useful notion. In prticulr, Büchi-type deterministic utomton cn e trnslted to n equivlent deterministic Büchi utomton with no low up. In this work, we study typeness in generl: we consider oth nondeterministic nd deterministic utomt, for the five clsses γ of cceptnce conditions descried ove (γ is either Büchi, co-büchi, Rin, Streett, or wek). We define nd exmine three notion of typeness: 1. Deterministic γ-typeness sks for which clsses of deterministic utomt, the existence of some equivlent deterministic γ utomton implies the existence of n equivlent deterministic γ utomton on the sme structure. For exmple, we show tht ll deterministic utomt re wek type. 2. Nondeterministic γ-typeness sks for which clsses of nondeterministic utomt, the existence of some equivlent nondeterministic γ utomton implies the existence of n equivlent nondeterministic γ utomton on the sme structure. For exmple, we show tht nondeterministic Büchi utomt re not co-büchi type. This nswers question on trnslting Büchi to co-büchi utomt tht ws left open in [8]. 3. γ-powerset-typeness sks for which clsses of nondeterministic utomt, the existence of some equivlent deterministic γ utomton implies the existence of n equivlent deterministic γ utomton on the structure otined y pplying the suset construction to the originl utomton. For exmple, while deterministic Rin utomt re Büchi-type, nondeterministic Rin utomt re not Büchi powerset-type. The notion of powerset-typeness is importnt for the study of the low-up involved in the trnsltion of utomt to equivlent deterministic ones. While for some clsses 2 O(n log n) lower ound is known, powerset-typeness implies 2 n upper ound for other clsses. We lso exmine finite-typeness for nondeterministic Büchi utomt cses where the limit lnguge of the utomton when viewed s n utomton on finite words is equivlent to tht of the Büchi utomton, nd we relte finite-typeness with powerset-typeness. Our results, long with previously known results, re descried in Figures 2, 3, nd 5. 4

5 2. Preliminries Given n lphet Σ, n infinite word over Σ is n infinite sequence w = σ 0 σ 1 σ 2 of letters in Σ. We denote the set of ll infinite words over Σ y Σ ω. A lnguge L is set of words from Σ ω. An utomton over infinite words is tuple A = Σ,Q,δ,Q 0,α, where Σ is the input lphet, Q is finite set of sttes, δ : Q Σ 2 Q is trnsition function, Q 0 Q is set of initil sttes, nd α is n cceptnce condition which is condition tht defines suset of Q ω. We define severl cceptnce conditions elow. Intuitively, δ(q, σ) is the set of sttes tht A my move into when it is in the stte q nd it reds the letter σ. The utomton A my hve severl initil sttes nd the trnsition function my specify mny possile trnsitions for ech stte nd letter, nd hence we sy tht A is nondeterministic. In the cse where Q 0 = 1 nd for every q Q nd σ Σ, we hve tht δ(q,σ) = 1, we sy tht A is deterministic. Given n input infinite word w = σ 0 σ 1 σ 2 Σ ω, run of A on w cn e viewed s function r : IN Q where r(0) Q 0, i.e., the run strts in one of the initil sttes, nd for every i 0, we hve tht r(i + 1) δ(r(i),σ i ), i.e., the run oeys the trnsition function. Note tht while deterministic utomton hs single run on n input word w, nondeterministic utomton my hve severl runs on w or none t ll. Ech run r induces set inf(r) of sttes tht r visits infinitely often. Formlly, inf(r) = {q Q : for infinitely mny i IN, we hve r(i) = q}. As Q is finite, it is gurnteed tht inf(r). The run r is ccepting iff the set inf(r) stisfies the cceptnce condition α. A run tht is not ccepting is rejecting. We consider the following cceptnce conditions. A set S stisfies Büchi cceptnce condition α Q if nd only if S α. A set S stisfies co-büchi cceptnce condition α Q if nd only if S α =. A set S stisfies Rin cceptnce condition α = { G 1,B 1,..., G k,b k } 2 Q 2 Q if nd only if there exists pir G i,b i α for which S G i nd S B i =. A set S stisfies Streett cceptnce condition α = { G 1,B 1,..., G k,b k } 2 Q 2 Q if nd only if for ll pirs G i,b i α we hve tht S G i = or S B i. Note tht the Büchi cceptnce condition is dul to the co-büchi cceptnce condition: set S stisfies Büchi cceptnce condition α iff S does not stisfy α s co-büchi cceptnce condition. Similrly, the Rin cceptnce condition is dul to the Streett cceptnce condition. The numer k ppering in the Rin nd Street conditions is clled the index of the utomton. An utomton A ccepts n input word w iff there exists n ccepting run of A on w. The lnguge of A, denoted L(A), is the set of ll infinite words tht A ccepts. The trnsition function δ induces reltion R δ Q Q, where R δ (q,q ) iff there is σ Σ with δ(q,σ) = q. Accordingly, the utomton A induces grph G A = Q,R δ. For two sttes, q nd q of A, we sy tht q is rechle from q if 5

6 there is (possily empty) pth in G A from q to q. A strongly connected component (SCC, for short) in G A is set C Q such tht for ll sttes q nd q in C, we hve tht q is rechle from q. The SCC C is non-trivil if the restriction of G A to C contins cycle; tht is, either C hs t lest two sttes, or C hs stte with self loop. A mximl strongly connected component (MSCC, for short ) is n SCC C tht is mximl in the sense tht we cnnot dd to C sttes nd sty with n SCC. Thus, for ll C Q \ C, the set C C is not n SCC. Note tht run of n utomton A eventully get trpped in n MSCC of G A. We sy tht Büchi utomton A is wek if for ech MSCC C of G A, either C α (in which cse we sy tht C is n ccepting component) or C α = (in which cse we sy tht C is rejecting component). Note tht wek utomton cn e viewed s oth Büchi nd co-büchi utomton. Indeed, run of A visits α infinitely often iff it gets trpped in n ccepting component, which hppens iff it visits sttes in Q \ α only finitely often. We denote the different types of utomt y three letters cronyms in {D,N} {F, B, C, R, S, W} {W,T}. The first letter stnds for the rnching mode of the utomton (deterministic or nondeterministic); the second letter stnds for the cceptnce-condition type (finite, Büchi, co-büchi, Rin, Streett, or wek). The third letter stnds for the ojects on which the utomt run (words or trees). For Rin nd Streett utomt, we sometimes lso indicte the index of the utomton. In this wy, for exmple, NBW re nondeterministic Büchi word utomt, nd DRW[1] re deterministic Rin utomt with index Expressiveness nd Typeness For two utomt A nd A, we sy tht A nd A re equivlent if L(A) = L(A ). For n utomton type β (e.g., DBW) nd n utomton A, we sy tht A is β-relizle if there is β-utomton equivlent to A. In Figure 1 elow we descrie the known expressiveness hierrchy for utomt on infinite words. As descried in the figure, DRW nd DSW re s expressive s NRW, NSW, nd NBW, which recognize ll ω-regulr lnguge [14]. On the other hnd, DBW re strictly less expressive thn NBW, nd so re DCW. In fct, since y dulizing Büchi utomton we get co-büchi utomton, the two internl ovls complement ech other. The intersection of DBW nd DCW is DWW (note tht while DWW is clerly oth DBW nd DCW, the other direction is not trivil, nd is proven in [3]). Finlly, NCW cn e determinized (when pplied to universl Büchi utomt, the trnsltion in [16], of lternting Büchi utomt into NBW, results in DBW. By dulizing it, one gets trnsltion of NCW to DCW). In ddition to the results descried in the figure, the index of DRW nd DSW lso induces hierrchy, thus DRW[k + 1] re strictly more expressive thn DRW[k], nd similrly for DSW [5]. Consider n utomton A = Σ,Q,δ,Q 0,α. We refer to Q,δ,Q 0 s the structure of the utomton. The powerset structure induced y A is P(A) = 2 Q,δ P, {Q 0 }, where for ll S 2 Q nd σ Σ, we hve tht δ P (S,σ) = s S δ(s,σ). The nottion SCC is sometimes used in the literture to denote mximl SCC. Here, we use oth MSCC (mximl SCC) nd SCC (not necessrily mximl SCC). 6

7 NBW, NRW, DRW, NSW, DSW NCW DCW NWW DWW DBW Figure 1: The expressiveness hierrchy for ω-regulr utomt. Thus, the powerset structure is otined y the usul suset construction [19]. For n cceptnce-condition clss γ (e.g., Büchi), we sy tht A is γ-type if A hs n equivlent γ utomton with the sme structure s A. Tht is, there is n utomton A = Σ,Q,δ,Q 0,α such tht α is n cceptnce condition of clss γ nd L(A ) = L(A). We sy tht A is γ-powerset-type if A hs n equivlent γ utomton with the sme structure s the powerset structure of A. Tht is, there is n utomton A P = Σ,2 Q,δ P, {Q 0 },α P such tht α P is n cceptnce condition of clss γ nd L(A P ) = L(A). Note tht the utomton A P is deterministic. 3. Typeness for Deterministic Automt In this section we consider the following prolem: given two cceptnce-condition types β nd γ, is it true tht every DβW tht is DγW-relizle, is lso γ-type? We then sy tht DβW re γ-type. In other words, DβW re γ-type if every deterministic β-utomton tht hs n equivlent deterministic γ-utomton, lso hs n equivlent deterministic γ-utomton on the sme structure. Our results re descried in Figure 2 elow. Some results re immedite. For exmple, since the Büchi nd the co-büchi cceptnce conditions re specil cses of Rin nd Streett conditions ( Büchi condition α is equivlent to the Rin condition { α, } nd to the Streett condition { Q, α }, nd dully for co-büchi), it is cler tht DBW nd DCW re Rin-type nd Streett-type. Similrly, since wek utomt cn e viewed s Büchi or co-büchi utomt, they cn lso e viewed s specil cse of Rin nd Streett utomt. Thus, DWW re γ-type for ll the types γ we consider. Such cses, where trnsltion of the cceptnce condition exists, nd is independent of the utomton, re indicted in the tle y. Some results re known, or otined esily y dulizing known results, nd the tle contins the pproprite reference. Below we prove the new results. Lemm 1 DβW re wek-type for ll cceptnce-condition types β. Proof. In [3], the uthors introduce the notion of deterministic utomton eing inherently wek (the definition in [3] is for DBW, nd is esily extended to DβW for ll cceptnce-condition types β). A DβW is inherently wek if none of its rechle MSCC contins oth ccepting nd rejecting non-trivil SCCs. It is esy to see tht n inherently wek utomton hs n equivlent DWW on the sme 7

8 DWW DBW DCW DRW DSW DWW YES YES YES YES Lemm 1 Lemm 1 Lemm 1 Lemm 1 DBW YES YES YES NO Lemm 2 [6] [6] DCW YES YES NO YES Lemm 2 dulizing [6] dulizing [6] DRW YES YES YES NO Lemm 3 DSW YES YES YES NO Lemm 3 DRW[k] re not Rin[k 1]-type, DSW[k] re not Streett[k 1]-type. Lemm 4 Figure 2: Typeness for deterministic utomt. structure. Indeed, y definition, ech of the MSCC of the utomton cn e mde ccepting or rejecting ccording to the clssifiction of ll its non-trivil SCCs. Let A e DWW-relizle DβW. Then, A is oth DBW-relizle nd DCWrelizle. Assume y the wy of contrdiction tht A is not wek type. Then, A is not inherently wek, so there exists rechle MSCC C of A such tht C contins oth n ccepting non-trivil SCC S nd rejecting non-trivil SCC R. Since A is DBW-relizle, then, y [11], every SCC S S is ccepting. In prticulr, C is ccepting. Dully, Since A is DCW-relizle, then every SCC R R is rejecting. In prticulr, C is rejecting. It follows tht C is oth ccepting nd rejecting, nd we rech contrdiction. We note tht [3] prove tht every DBW tht ccepts lnguge in F σ G δ is inherently wek. The proof there, however, does not mke direct use of [11], nd is therefore much more complicted. Lemm 2 DCW re Büchi-type, nd DBW re co-büchi-type. Proof. Since DCW cn e viewed s DRW, nd DRW re Büchi type [6], DCW re Büchi type too. Dully, DBW re co-büchi-type. Note tht if DCW A is DBW-relizle, then it is lso DWW-relizle. Indeed, y [3], DCW DBW = DWW. Hence, y Lemm 1, A hs n equivlent deterministic wek utomton on the sme structure. Thus, Lemm 2 cn e strengthened: DCW tht is DBW-relizle (dully, DBW tht is DCWrelizle) hs n equivlent deterministic wek utomton on the sme structure. Lemm 3 DRW re not Streett-type, nd DSW re not Rin-type. Proof. Since DSW cn recognize ll ω-regulr lnguges, DSW eing Rintype mens tht every DSW hs n equivlent DRW on the sme structure. In [12], Löding shows tht trnsltion of DSW to n equivlent DRW my involve n exponentil low up, thus typeness oviously cnnot hold. The rgument for DRW is dul. 8

9 In ddition to the results in the tle, we prove tht the expressiveness hierrchy known for the indices of DRW nd DSW induces typeness hierrchy: Lemm 4 For ll k 2, we hve tht DRW[k] re not Rin[k 1]-type, nd DSW[k] re not Streett[k 1]-type. Proof. Let Σ k = {1,2,...,k}. Consider the lnguges L k of exctly ll words contining infinitely mny i s, for ll 1 i k. Consider the DSW[k] A k = Σ k,σ k,δ, {1},α k, with δ(q,i) = i, for ll q,i Σ k, nd α k = { Σ k, {1}, Σ k, {2},..., Σ k, {k} }. Thus, whenever A k reds letter i, it moves to stte i, nd the cceptnce condition requires n ccepting run to visit ll sttes infinitely often. It is esy to see tht A k recognizes L k. Also, since L k cn e viewed s the intersection of k DBWs D i, ech for the lnguge infinitely mny i s, we know tht L k is DBW-recognizle, nd hence lso DSW[k 1]-relizle. On the other hnd, it is impossile to define Streett[k 1] cceptnce condition α k so tht A k with condition α k recognizes L k. To see this, note tht for ech letter i Σ k, the DSW A k ccepts (1 2 k) ω nd rejects (1 2 i 1 i + 1 k) ω. For tht, A k must contin, for ech i Σ k, pir G i,b i such tht G i Σ k nd B i = {i}. Thus, A k must contin t lest k pirs, nd we re done. It follows tht DSW[k] re not Streett[k 1]-type. The rgument for Rin utomt is dul, nd considers the complement of L n. 4. Typeness for Nondeterministic Automt In this section we consider the following prolem: given two cceptnce-condition types β nd γ, is it true tht every NβW tht is NγW-relizle, is lso γ-type? We then sy tht NβW re γ-type. In other words, NβW re γ-type if every nondeterministic β-utomton tht hs n equivlent nondeterministic γ-utomton, lso hs n equivlent nondeterministic γ-utomton on the sme structure. Our results re descried in Figure 3 elow. As in Section 3, some results follow immeditely from trnsltions of the cceptnce condition, nd re indicted in the tle y. The new results re proven in Lemms 5, 6, nd 7. When the results follow from pplying trnsltions to results proven in the Lemms, we indicte it with too. NWW NBW NCW NRW NSW NWW NO NO NO NO Lemm 5 Lemm 6 Lemms 5 nd 6 Lemms 5 nd 6 NBW YES NO NO NO Lemm 6 Lemm 6 Lemm 6 NCW YES NO NO NO Lemm 5 Lemm 5 Lemm 5 NRW YES YES YES NO Lemm 7 NSW YES YES YES NO Lemm 7 Figure 3: Typeness for nondeterministic utomt. 9

10 Lemm 5 NBW re neither co-büchi- nor wek-type. Proof. Consider the NBW A 1 descried in Figure 4. The NBW recognizes the lnguge ( + ) (t lest one ). This lnguge is in NWW nd NCW, yet it is esy to see tht there is no NCW (nd hence lso no NWW) recognizing L on the sme structure. A 1 : A 2 : q 0 q 1 q 3 q 1 q 2 q 3, q 2 q 0,, Figure 4: NBWs for ( + ). We note tht the utomton in Figure 4 is single-run utomton: every word ccepted y it hs single ccepting run. This is of prticulr interest in the context of specifiction nd verifiction, s the NBW descried in [24] for LTL formuls re single-run utomt. Our exmple shows tht even such utomt re neither co- Büchi- nor wek-type. It is shown in [8] tht n LTL formul ψ hs n equivlent lterntion-free µ-clculus formul ψ iff the lnguge of ψ cn e recognized y DBW A ψ. The construction of the formul ψ in [8] goes vi A ψ, nd therefore it involve douly-exponentil low-up. The construction of ψ my lso go vi n NCW Ãψ, for ψ. While ψ is of length liner in the size of à ψ, the est known trnsltion of LTL to NCW (when exists) ctully constructs DCW nd is douly-exponentil. It is conjectured in [8] tht single-run NBW cn e trnslted to NCW with only liner low up, leding to n exponentil trnsltion of LTL to lterntion-free µ-clculus. In prticulr, the question of otining the NCW y modifying the cceptnce condition of the NBW is left open in [8]. Our result here nswers the question negtively. We lso note tht NCW-typeness nd wek-typeness do not coincide. Figure 4 lso descries different NBW, A 2, for L. This NBW is NCW-type: n NCW with the sme structure ut with the cceptnce condition α = {q 0,q 1 } ccepts L. Yet, it is not wek-type. Lemm 6 NCW re neither Büchi- nor wek-type. Proof. Consider the two-stte DCW A for the lnguge L of ll words with finitely mny s. Since L is not DBW-relizle, nd A is deterministic, A is not Büchi-type. The lnguge L is NWW-relizle. But gin, since A is deterministic nd L is not DWW-relizle, it is not wek-type. Lemm 7 NRW re not Streett-type, nd NSW re not Rin-type. 10

11 Proof. By Lemm 3, DRW re not Streett-type. Hence, there re DRW tht re DSW-relizle ut do not hve n equivlent DSW on the sme structure. Since DRW re specil cse of NRW, it follows tht NRW re not Streett-type. The proof for NSW not eing Rin-type is similr. By Lemm 4, DRW[k] re not Rin[k 1]-type, nd DSW[k] re not Streett[k 1]-type, for ll k 2. Thus, following the sme considertions s in the proof of Lemm 7, we get tht NRW[k] re not Rin[k 1]-type, nd NSW[k] re not Streett[k 1]-type. 5. Powerset-Typeness for Nondeterministic Automt In this section we consider the following prolem: given two cceptnce-condition types β nd γ, is it true tht every NβW tht is DγW-relizle, is lso γ-powersettype? We then sy tht NβW re γ-powerset-type. In other words, NβW re γ- type if every nondeterministic β-utomton tht hs n equivlent deterministic γ-utomton, lso hs n equivlent deterministic γ-utomton on the powerset structure. Our results re descried in Figure 5 elow. Since A = P(A) for deterministic utomton A, we know tht NβW cnnot e γ-powerset-type if DβW re not γ- type. Thus, the negtive cses in Figure 2 immeditely induce negtive cses here. In prticulr, for ll k 2, we hve tht NRW[k] re not Rin[k 1]-powerset-type, nd NSW[k] re not Streett[k 1]-powerset-type. NWW NBW NCW NRW NSW DWW YES YES YES YES YES [13] [13] [13] [13] [13] DBW YES NO YES NO NO Lemm 8 Lemm 9 Lemm 8 Lemm 9 Lemm 9 DCW NO NO NO NO NO Lemm 10 Lemm 10 Lemm 10 Lemm 10 Lemm 10 DRW NO NO NO NO NO Lemm 10 Lemm 10 Lemm 10 Lemm 10 Lemm 10 DSW NO NO NO NO NO Lemm 10 Lemm 10 Lemm 10 Lemm 10 Lemm 10 Figure 5: Powerset-typeness for nondeterministic utomt. Lemm 8 NWW nd NCW re Büchi-powerset-type. Proof. Consider n NCW A. Recll tht A is DCW-relizle. Therefore, if A is DBW-relizle, then it is lso DWW-relizle. Hence, s NCW re wekpowerset-type, there is DWW, nd thus lso DBW, equivlent to A with structure P(A). Thus, NCW re Büchi-powerset-type. Since NWW re specil cse of NCW, the result for NWW follows. Lemm 9 NBW re not Büchi-powerset-type. Proof. The NBW A in Figure 6 recognizes the lnguge of ll words with infinitely mny occurrences of the suword. The lnguge cn e recognized y 11

12 DBW, yet no DBW for it cn e defined on top of P(A). A : P(A) :, q 1 q 2 {q 1 } {q 1, q 2 } Figure 6: An NBW for (( + ) ) ω tht is not Büchi-powerset-type. Lemm 10 NWW re neither co-büchi-, Rin-, nor Streett-powerset-type. Proof. The NWW A in Figure 7 recognizes the lnguge of ll words with n ( ) ω til. The lnguge cn e recognized y DCW, nd hence lso y DRW nd DSW. Yet, no DCW, DRW, or DSW for it cn e defined on top of P(A). A :, P(A) : q 1, q 2 q 3 {q1 }, {q 1, q 2 } {q 1, q 2, q 3 } Figure 7: An NBW for ( + ) ( ) ω tht is neither co-büchi-, Rin-, nor Streett-powerset-type. The definition of powerset-typeness requires the deterministic utomton to hve the powerset structure, ut it does not restrict the definition of the set of ccepting sttes. For n utomton A = Σ,Q,δ,Q 0,α, let S(A) = Σ,2 Q,δ P, {Q 0 },α P e the utomton otined from A y pplying to it the suset construction. Thus, the structure of S(A) is the powerset-structure of A, nd stte is in α P if its intersection with α is not empty. We refer to S(A) s the suset utomton of A. Clerly, for n NFW A, we hve tht A nd S(A) re equivlent [19]. We sy tht n NBW A is Büchi-suset-type if A nd S(A) re equivlent. Note tht if A is Büchi-suset-type, then it is lso Büchi-powerset-type. As we shll see elow, the other direction does not necessrily hold. Lemm 11 There is n NBW tht is Büchi-powerset-type ut not Büchi susettype. Proof. The NBW A in Figure 8 recognizes the lnguge of ll words with infinitely mny s ut no two successive s. The DBW otined y ugmenting the powerset structure of A, lso descried in the figure, with the cceptnce condition α P = {{q 1 }} is equivlent to A. Thus, A is powerset type. On the other hnd, S(A) hs α P = {{q 1,q 2 }} nd is not equivlent to A From NBW to NFW 12

13 A : P(A) : q 1 q 2 {q 1 } {q 1, q 2 } Figure 8: An NBW for ( + ) ω tht is Büchi-powerset-type ut not finite-type. Recll tht DBW re strictly less expressive thn NBW. A lnguge L Σ ω cn e recognized y DBW iff there is regulr lnguge R Σ such tht L = limr; tht is, w L iff w hs infinitely mny prefixes in R [11]. An open prolem is to construct, given n NBW A for L, such tht A is DBW-relizle, n NFW A for the corresponding R. An immedite 2 O(n log n) upper ound follows from the 2 O(n log n) determiniztion construction of [20] for A (since DRW re Büchi type, the DRW constructed in [20] cn e converted to DBW on the sme structure). While the 2 O(n log n) low up in determiniztion is tight [15, 12], no super-liner lower ound is known for the trnsltion of A to A. The chllenges in this prolem re similr to these in the prolem of trnslting n NBW tht is NCW-relizle to n equivlent NCW. While 2 O(n log n) upper ound is immedite, no super-liner lower ound is known. Consider n NBW A = Σ,Q,δ,Q 0,α. We sy tht A is finite-type if there is n NFW A = Σ,Q,δ,Q 0,α such tht L(A) = liml(a ). Thus, A is finite-type if there is n NFW with the sme structure s A (ut possily with different set of ccepting sttes) whose limit lnguge is the lnguge of A. Let A fin e A viewed s n NFW. We sy tht A is strong-finite-type if L(A) = liml(a fin ). Thus, in strong-finite-typeness, we require the NFW to hve oth the structure nd the cceptnce condition of A. Oviously, the trnsition from n NBW A tht is finite-type to n NFW whose limit is A is liner. The notion of suset-typeness turns out to e relted to finite-typeness: Lemm 12 An NBW is Büchi-suset-type iff it is strong-finite-type. Proof. Assume first tht A is not Büchi suset-type. Since S(A) is DBW, then L(S(A)) = liml(s(a) fin ). Since A fin is n NFW, then L(A fin ) = L(S(A) fin ). It follows tht L(S(A)) = liml(a fin ). Since A is not Büchi suset-type, L(A) L(S(A)). It follows tht L(A) liml(a fin ), thus A is not strong-finite-type. Assume now tht A is Büchi suset-type. For every NBW A, we hve tht L(A) liml(a fin ). Indeed, n ccepting run of A on word w points to infinitely mny prefixes of w tht re ccepted y A fin. It is left to prove tht liml(a fin ) L(A). Consider word w liml(a fin ). Thus, w hs infinitely mny prefixes in L(A fin ). Since A fin is n NFW, then L(A fin ) = L(S(A) fin ). It follows tht w hs infinitely mny prefixes in L(S(A) fin ), or equivlently, tht the run of S(A) on w visits the set of ccepting sttes infinitely often, implying tht w L(S(A)). Since A is Büchi-suset-type, w is lso ccepted y A, nd we re done. It is worth noting tht not ll NBW tht re DWW-relizle re strong-finitetype. Indeed, s proved in [13], n NBW tht is DWW-relizle is lso Büchi- 13

14 powerset-type. On the other hnd, there re DBW tht re DWW-relizle nd re not Büchi-suset-type, nd hence lso not strong-finite-type. To see this, tke the NBW A 1 descried in Figure 4, dd n ccepting stte q tht is rechle from q 2 with trnsition leled, nd lso dd self-loop leled from q to itself. The otined NBW still ccepts L(A 1 ), ut the suset construction results in n utomton tht ccepts Σ ω. Recll tht oth suset-typeness nd strong-finite-typeness restrict the set of ccepting sttes. We could hve then hoped tht the notions of powerset-typeness nd finite-typeness, which oth do not restrict the set of ccepting sttes, would lso e relted. As we now show, this is not the cse. Lemm 13 Büchi-powerset-type NBW re not finite-type. Proof. As discussed in the proof of Lemm 11, the NBW A in Figure 8 is powerset type. On the other hnd, there is no wy to ugment A fin with n cceptnce condition α tht results in n utomton A for which lim(l(a )) = L(A). To see this, note tht either α is empty, in which cse L(A ) is empty, or α is not empty, in which cse L(A ) contins +, thus lim(l(a )) contins ω, which is not in L(A). 6. Discussion We studied three notions of typeness for utomt on infinite words. The notions re helpful in studying the complexity nd compliction of trnsltions etween the vrious clsses of utomt. Of specil interest is the low-up involved in trnsltion of NBW to NCW, when exists. As discussed in Section 4, polynomil trnsltion will enle n exponentil trnsltion of LTL to lterntion-free µ-clculus (for formuls tht cn e expressed in the lterntion-free µ-clculus), improving the douly-exponentil known upper ound. Current trnsltions of NBW to NCW ctully construct DCW with 2 O(n log n) sttes (strting with n NBW with n sttes), wheres even no super-liner lower ound is known. A relted notion hs to do with the trnsltion of n NBW to n NFW whose limit lnguge is equivlent to tht of the NBW. We studied lso this notion, nd chrcterized NBW tht re finite-type, nd for which liner trnsltion exists. We hope to relte finite-typeness with co-büchi typeness, iming t developing more techniques nd understnding for pproching the NBW to NCW prolem. References 1. R. Armoni, L. Fix, A. Flisher, R. Gerth, B. Ginsurg, T. Knz, A. Lndver, S. Mdor-Him, E. Singermn, A. Tiemeyer, M.Y. Vrdi, nd Y. Zr. The For- Spec temporl logic: A new temporl property-specifiction logic. In Proc. 8th Interntionl Conference on Tools nd Algorithms for the Construction nd Anlysis of Systems, volume 2280 of Lecture Notes in Computer Science, pges , Grenole, Frnce, April Springer-Verlg. 2. I. Beer, S. Ben-Dvid, C. Eisner, D. Fismn, A. Gringuze, nd Y. Rodeh. The temporl logic sugr. In Proc. 13th Interntionl Conference on Computer Aided 14

15 Verifiction, volume 2102 of Lecture Notes in Computer Science, pges , Pris, Frnce, July Springer-Verlg. 3. B. Boigelot, S. Jodogne, nd P. Wolper. On the use of wek utomt for deciding liner rithmetic with integer nd rel vriles. In Proc. Interntionl Joint Conference on Automted Resoning (IJCAR), volume 2083 of Lecture Notes in Computer Science, pges , Sien, June Springer-Verlg. 4. J.R. Büchi. On decision method in restricted second order rithmetic. In Proc. Internt. Congr. Logic, Method. nd Philos. Sci. 1960, pges 1 12, Stnford, Stnford University Press. 5. M. Kminski. A clssifiction of ω-regulr lnguges. Theoreticl Computer Science, 36: , S.C. Krishnn, A. Puri, nd R.K. Bryton. Deterministic ω-utomt vis--vis deterministic Büchi utomt. In Algorithms nd Computtions, volume 834 of Lecture Notes in Computer Science, pges Springer-Verlg, O. Kupfermn nd M.Y. Vrdi. Relting liner nd rnching model checking. In IFIP Working Conference on Progrmming Concepts nd Methods, pges , New York, June Chpmn & Hll. 8. O. Kupfermn nd M.Y. Vrdi. From liner time to rnching time. ACM Trns. on Computtionl Logic, 6(2): , O. Kupfermn, M.Y. Vrdi, nd P. Wolper. An utomt-theoretic pproch to rnching-time model checking. Journl of the ACM, 47(2): , Mrch R.P. Kurshn. Computer Aided Verifiction of Coordinting Processes. Princeton Univ. Press, L.H. Lndweer. Decision prolems for ω utomt. Mthemticl Systems Theory, 3: , C. Löding. Optiml ounds for the trnsformtion of omeg-utomt. In Proc. 19th Conference on the Foundtions of Softwre Technology nd Theoreticl Computer Science, volume 1738 of Lecture Notes in Computer Science, pges , Decemer O. Mler nd L. Stiger. On syntctic congruences for ω-lnguges. Theoreticl Computer Science, 183(1):93 112, R. McNughton. Testing nd generting infinite sequences y finite utomton. Informtion nd Control, 9: , M. Michel. Complementtion is more difficult with utomt on infinite words. CNET, Pris, S. Miyno nd T. Hyshi. Alternting finite utomt on ω-words. Theoreticl Computer Science, 32: , D.E. Muller, A. Soudi, nd P.E. Schupp. Alternting utomt, the wek mondic theory of the tree nd its complexity. In Proc. 13th Interntionl Colloquium on Automt, Lnguges nd Progrmming, volume 226 of Lecture Notes in Computer Science. Springer-Verlg, M.O. Rin. Decidility of second order theories nd utomt on infinite trees. Trnsction of the AMS, 141:1 35, M.O. Rin nd D. Scott. Finite utomt nd their decision prolems. IBM Journl of Reserch nd Development, 3: , S. Sfr. On the complexity of ω-utomt. In Proc. 29th IEEE Symp. on Foundtions of Computer Science, pges , White Plins, Octoer

16 21. S. Sfr nd M.Y. Vrdi. On ω-utomt nd temporl logic. In Proc. 21st ACM Symp. on Theory of Computing, pges , Settle, My W. Thoms. Automt on infinite ojects. Hndook of Theoreticl Computer Science, pges , M.Y. Vrdi nd P. Wolper. An utomt-theoretic pproch to utomtic progrm verifiction. In Proc. 1st Symp. on Logic in Computer Science, pges , Cmridge, June M.Y. Vrdi nd P. Wolper. Resoning out infinite computtions. Informtion nd Computtion, 115(1):1 37, Novemer

On the Relative Succinctness of Nondeterministic Büchi and co-büchi Word Automata

On the Relative Succinctness of Nondeterministic Büchi and co-büchi Word Automata On the Reltive Succinctness of Nondeterministic Büchi nd co-büchi Word Automt Benjmin Aminof, Orn Kupfermn, nd Omer Lev Herew University, School of Engineering nd Computer Science, Jeruslem 91904, Isrel

More information

How Deterministic are Good-For-Games Automata?

How Deterministic are Good-For-Games Automata? How Deterministic re Good-For-Gmes Automt? Udi Boker 1, Orn Kupfermn 2, nd Mich l Skrzypczk 3 1 Interdisciplinry Center, Herzliy, Isrel 2 The Herew University, Isrel 3 University of Wrsw, Polnd Astrct

More information

How Deterministic are Good-For-Games Automata?

How Deterministic are Good-For-Games Automata? How Deterministic re Good-For-Gmes Automt? Udi Boker 1, Orn Kupfermn 2, nd Michł Skrzypczk 3 1 Interdisciplinry Center, Herzliy, Isrel 2 The Herew University, Jeruslem, Isrel 3 University of Wrsw, Polnd

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

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

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

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

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

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

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

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

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

4 Deterministic Büchi Automata

4 Deterministic Büchi Automata Bernd Finkeiner Dte: April 26, 2011 Automt, Gmes nd Verifiction: Lecture 3 4 Deterministic Büchi Automt Theorem 1 The lnguge ( + ) ω is not recognizle y deterministic Büchi utomton. Assume tht L is recognized

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

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

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

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

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

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

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

CS 267: Automated Verification. Lecture 8: Automata Theoretic Model Checking. Instructor: Tevfik Bultan

CS 267: Automated Verification. Lecture 8: Automata Theoretic Model Checking. Instructor: Tevfik Bultan CS 267: Automted Verifiction Lecture 8: Automt Theoretic Model Checking Instructor: Tevfik Bultn LTL Properties Büchi utomt [Vrdi nd Wolper LICS 86] Büchi utomt: Finite stte utomt tht ccept infinite strings

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

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

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

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

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

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

Revision Sheet. (a) Give a regular expression for each of the following languages:

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

Deterministic Finite Automata

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

More information

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

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

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

CDM Automata on Infinite Words

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

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

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

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

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

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

Software Engineering using Formal Methods

Software Engineering using Formal Methods Softwre Engineering using Forml Methods Propositionl nd (Liner) Temporl Logic Wolfgng Ahrendt 13th Septemer 2016 SEFM: Liner Temporl Logic /GU 160913 1 / 60 Recpitultion: FormlistionFormlistion: Syntx,

More information

Introduction to ω-autamata

Introduction to ω-autamata Fridy 25 th Jnury, 2013 Outline From finite word utomt ω-regulr lnguge ω-utomt Nondeterministic Models Deterministic Models Two Lower Bounds Conclusion Discussion Synthesis Preliminry From finite word

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

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

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

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

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

State Minimization for DFAs

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

More information

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

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

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

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

More information

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

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

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

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

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

Automata, Games, and Verification

Automata, Games, and Verification Automt, Gmes, nd Verifiction Prof. Bernd Finkbeiner, Ph.D. Srlnd University Summer Term 2015 Lecture Notes by Bernd Finkbeiner, Felix Klein, Tobis Slzmnn These lecture notes re working document nd my contin

More information

Topological, Automata-Theoretic and Logical Characterization of Finitary Languages

Topological, Automata-Theoretic and Logical Characterization of Finitary Languages Topologicl, Automt-Theoretic nd Logicl Chrcteriztion of Finitry Lnguges Krishnendu Chterjee nd Nthnël Fijlkow IST Austri (Institute of Science nd Technology Austri) Am Cmpus 1 A-3400 Klosterneuurg Technicl

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

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

CISC 4090 Theory of Computation

CISC 4090 Theory of Computation 9/6/28 Stereotypicl computer CISC 49 Theory of Computtion Finite stte mchines & Regulr lnguges Professor Dniel Leeds dleeds@fordhm.edu JMH 332 Centrl processing unit (CPU) performs ll the instructions

More information

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

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

A Complexity Measure on Büchi Automata

A Complexity Measure on Büchi Automata A Complexity Mesure on Büchi Automt Dn Fismn University of Pennsylvni fismn@ses.upenn.edu Abstrct. We define complexity mesure on non-deterministic Büchi utomt, bsed on the notion of the width of the skeleton

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

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

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

Anatomy of a Deterministic Finite Automaton. Deterministic Finite Automata. A machine so simple that you can understand it in less than one minute

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

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

Complementing Büchi Automata with a Subset-tuple Construction

Complementing Büchi Automata with a Subset-tuple Construction DEPARTEMENT D INFORMATIQUE DEPARTEMENT FÜR INFORMATIK Bd de Pérolles 90 CH-1700 Friourg www.unifr.ch/informtics WORKING PAPER Complementing Büchi Automt with Suset-tuple Construction J. Allred & U. Ultes-Nitsche

More information

From LTL to Symbolically Represented Deterministic Automata

From LTL to Symbolically Represented Deterministic Automata Motivtion nd Prolem Setting Determinizing Non-Confluent Automt Det. vi Automt Hierrchy From LTL to Symoliclly Represented Deterministic Automt Andres Morgenstern Klus Schneider Sven Lmerti Mnuel Gesell

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

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

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

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

Good-for-Games Automata versus Deterministic Automata.

Good-for-Games Automata versus Deterministic Automata. Good-for-Gmes Automt versus Deterministic Automt. Denis Kuperberg 1,2 Mich l Skrzypczk 1 1 University of Wrsw 2 IRIT/ONERA (Toulouse) Séminire MoVe 12/02/2015 LIF, Luminy Introduction Deterministic utomt

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

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

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

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

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

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

Rectangular group congruences on an epigroup

Rectangular group congruences on an epigroup cholrs Journl of Engineering nd Technology (JET) ch J Eng Tech, 015; 3(9):73-736 cholrs Acdemic nd cientific Pulisher (An Interntionl Pulisher for Acdemic nd cientific Resources) wwwsspulishercom IN 31-435X

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

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

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

LTL Translation Improvements in Spot

LTL Translation Improvements in Spot LTL Trnsltion Improvements in Spot Alexndre Duret-Lutz http://www.lrde.epit.fr/~dl/ VECoS'11 16 September 2011 Alexndre Duret-Lutz LTL Trnsltion Improvements 1 / 19 Context High-level

More information

Non Deterministic Automata. Linz: Nondeterministic Finite Accepters, page 51

Non Deterministic Automata. Linz: Nondeterministic Finite Accepters, page 51 Non Deterministic Automt Linz: Nondeterministic Finite Accepters, pge 51 1 Nondeterministic Finite Accepter (NFA) Alphbet ={} q 1 q2 q 0 q 3 2 Nondeterministic Finite Accepter (NFA) Alphbet ={} Two choices

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

NFA DFA Example 3 CMSC 330: Organization of Programming Languages. Equivalence of DFAs and NFAs. Equivalence of DFAs and NFAs (cont.

NFA DFA Example 3 CMSC 330: Organization of Programming Languages. Equivalence of DFAs and NFAs. Equivalence of DFAs and NFAs (cont. NFA DFA Exmple 3 CMSC 330: Orgniztion of Progrmming Lnguges NFA {B,D,E {A,E {C,D {E Finite Automt, con't. R = { {A,E, {B,D,E, {C,D, {E 2 Equivlence of DFAs nd NFAs Any string from {A to either {D or {CD

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

CHAPTER 1 Regular Languages. Contents. definitions, examples, designing, regular operations. Non-deterministic Finite Automata (NFA)

CHAPTER 1 Regular Languages. Contents. definitions, examples, designing, regular operations. Non-deterministic Finite Automata (NFA) Finite Automt (FA or DFA) CHAPTER Regulr Lnguges Contents definitions, exmples, designing, regulr opertions Non-deterministic Finite Automt (NFA) definitions, equivlence of NFAs DFAs, closure under regulr

More information

Lexical Analysis Finite Automate

Lexical Analysis Finite Automate Lexicl Anlysis Finite Automte CMPSC 470 Lecture 04 Topics: Deterministic Finite Automt (DFA) Nondeterministic Finite Automt (NFA) Regulr Expression NFA DFA A. Finite Automt (FA) FA re grph, like trnsition

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

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

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

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

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

1.3 Regular Expressions

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

Homework Solution - Set 5 Due: Friday 10/03/08

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