BACHELOR THESIS Star height

Size: px
Start display at page:

Download "BACHELOR THESIS Star height"

Transcription

1 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

2 I declre tht I crried out this chelor thesis independently, nd only with the cited sources, literture nd other professionl sources. I understnd tht my work reltes to the rights nd oligtions under the Act No. 121/2 S., the Copyright Act, s mended, in prticulr the fct tht the Chrles University hs the right to conclude license greement on the use of this work s school work pursunt to Section 6 susection 1 of the Copyright Act. Prgue, 21 July, 217 Tomáš Svood i

3 Title: Str height Author: Tomáš Svood Deprtment: Deprtment of Alger Supervisor: doc. Štěpán Holu, Ph.D., Deprtment of Alger Astrct: We present certin fmily of lnguges nd show tht for those lnguges infinite hierrchy of str heights exists. The proof ws first devised y Dejen nd Schützenerger [1]. More recently it ws reformulted y Skrovitch [2], who left some of the prts of the proof the the reder for more creful considertion. This thesis expnds on those prts nd provides more detiled proofs. We minly focus on construction of rtionl expression with the str height of the given lnguge. We lso compre the str height nd generlised str height nd the difference in chieved results for those two similr concepts. Keywords: str height, infinite hierrchy, utomt, rtionl expressions ii

4 Contents Introduction 2 1 Bsic concepts Words nd lnguges Rtionl expressions Str height Automt Eggn s question Automton recognising W q Rtionl expression denoting W q Witness words Infinite hierrchy Generlistion Generlised str height Open questions Conclusion 24 Biliogrphy 25 1

5 Introduction Kleene [3], in result known s Kleene s Theorem, shows tht utomt nd expressions correspond to ech other nd chrcterise the sme clss of lnguges. Eggn [4] refines this result y defining mesure of complexity for oth of them: loop complexity for utomt nd str height for expressions, nd y showing they correspond to ech other y chrcterising the sme clsses of lnguges. In this thesis we limit ourselves to the presenttion of str height, nd to the proof, due to Dejen nd Schützenerger [1], which sttes tht the str height hierrchy is infinite. They show tht for ny integer k, there exists rtionl lnguge of str height k over two letter lphet. We end y touching on nother notion, the generlised str height, which my divide the fmily of rtionl lnguges into only two prts. The determintion of the str height of lnguge turns out to e one of the most difficult prolems in utomt theory. McNughton [5] presented first notle result, n lgorithm for finding the str height of certin fmily of lnguges, so clled pure-group lnguges. Hshiguchi first [6] provided n lgorithm for deciding whether or not n ritrry rtionl lnguge is of str height one nd then [7], fter six yers, n lgorithm to determine the str height of ny rtionl lnguge. The lgorithm for the generl cse ws not prcticl, eing of non-elementary complexity clss. Kirsten [8] devised more efficient lgorithm thn Hshiguchi s, decidle in 2 2O(n) spce. 2

6 1. Bsic concepts In this chpter we introduce some stndrd concepts such s words, lnguges, rtionl expressions, nd utomt, ut we lso mke few key modifictions. For exmple, insted of the clssicl letters of n lphet, we use rtionl expressions s the lels of trnsitions in utomt. 1.1 Words nd lnguges An lphet is non-empty, usully finite, set of symols. Let A e n lphet. The elements of A, the symols, re clled letters, nd finite sequences of letters re clled words. The set of words, sequences of letters of A, is written A for resons tht should lter ecome ovious. Word f cn therefore e written with i in A, 1 i n. Product f = ( 1, 2,..., n ), Product on the set of words is equivlent to the opertion of conctention: ( 1,..., n ) ( 1,..., m ) = ( 1,..., n, 1,..., m ). This opertion hs neutrl element: the empty sequence or empty word, which is written 1, or 1 A if there could e some miguity. Note, tht conctention is ssocitive, ut it is not commuttive. The definition of product implies tht ech word is product of its letters nd therefore cn e written f = ( 1, 2,..., n ) = ( 1 ) ( 2 ) ( n ). By identifying the sequence () with the letter nd omitting the explicit symol for product, we re le to write the word f s f = 1 2 n. Similrly for the product of two words f nd g we write fg. Length The length of word is the length of the sequence of letters the word contins. Let 1, 2,..., n e letters. Then the length of word f = 1 2 n is n. It is written f. For the numer of occurrences of the letter in f we write f. If f is word in A we then hve f = f. A 3

7 Fctors Let f, g, h nd u e words in A. Word g is left fctor or prefix of f if there exists h such tht f = gh nd g is proper left fctor or proper prefix if h is other thn the empty word. Word h is right fctor or suffix of f if there exists g such tht f = gh nd h is proper right fctor or proper suffix if g is other thn the empty word. Word u is fctor of f if there exist g nd h such tht f = guh nd u is proper fctor if g nd h re not oth equl to the empty word. Lnguges A lnguge over A, or lnguge of A, is ny set of words written in the lphet A. In other words, lnguge of A is suset of A, therefore n element of P(A ), the set of ll the susets of A. We cn thus nturlly define for lnguges ll the usul opertions on the susets of set: union, intersection, complement nd difference, with the usul nottion. Word f is fctor of lnguge L, if it is fctor of some word g in L. The product of words extends to product of lnguges, which is denoted, s in the cse of words, y dot, X Y, or y simple conctention, XY : X Y = {f g f X, g Y }. From this we otin, y induction on n, the definition of the nth power of X, for ll X in P(A ): X = {1 A }, X n+1 = X X n = X n X. Note tht even for P(A ) we get = {1 A }. The str of lnguge X is the union of ll the powers of X, nd is written s X : X = X n. n N Note tht the nottion X is somewht improper ecuse in this context X does not denote the set of ll words over X ut the set of products of elements of X. Nevertheless, if one tkes X = A, the impropriety vnishes: the set of products of elements of n lphet A is indeed equl to the set of ll words generted y A. 1.2 Rtionl expressions Let A e n lphet nd let {, 1, +,, } e five function symols. Definition. A rtionl expression over A is formul otined inductively from the letters of A nd the symols {, 1, +,, } y the following process: (i), 1, nd, for in A, re rtionl expressions, (ii) if E nd F re rtionl expressions, then (E+F), (E F), nd (E ) re rtionl expressions. 4

8 We write RtEA for the set of rtionl expressions over A. To e le to simplify the nottion, we cn think of the function symols s symols representing opertions nd we cn omit the prentheses in the rtionl expressions if we specify the order of precedence for +,, nd. We let tke precedence over, which in turn tkes precedence over +. As with letters in words, we omit the symol. With this convention we write, for exmple, + for (( ) + ( )), or ( + ( ) ) for (( + ( (((( ( )) ) ) ))) ). Definition. To ech rtionl expression E in RtEA we ssign lnguge of A, written L[E], nd defined inductively: L[] =, L[1] = {1 A }, nd L[] = {} for ll in A for the tomic rtionl expressions nd then for the composite rtionl expressions: L[E + F] = L[E] L[F], L[E F] = L[E] L[E], L[E ] = (L[E]). We sy tht E denotes the lnguge L[E]. Note tht the symol is used in two different contexts. Either s shorthnd for the infinite union of ll the powers of lnguge, or, here, s symol in formul of rtionl expression, in which it, however, directly represents the str of the lnguge the rtionl expression denotes. This direct trnsltion nd the fct tht it is stndrd nottion, we feel, justifies the impropriety of the somewht excessive usge of the symol. We sy tht lnguge of A is rtionl if nd only if it is denoted y rtionl expression over A. Two rtionl expressions re equivlent if they denote the sme lnguge. Tht mens E nd F re equivlent if L[E] = L[F] nd we write it s E F. Identities Let us stte few identities of rtionl expressions tht will e often used without explicit mention. Lemm 1. (E + F) + G E + (F + G), nd (E F) G E (F G), E + F F + E, E + + E E, E E, E 1 1 E E, E (F + G) E F + E G, nd (E + F) G E G + F G. 5

9 Proof. L[(E + F) + G] = L[E + F] L[G] = L[E] L[F] L[G] = L[E] L[F + G] = L[E + (F + G)], L[(E F) G] = L[E F] L[G] = L[E] L[F] L[G] = L[E] L[F G] = L[E (F G)], L[E + F] = L[E] L[F] = L[F] L[E] = L[F + E], L[E + ] = L[E] L[] = L[E] = L[] L[E] = L[ + E], L[E ] = L[E] L[] = L[] = L[] L[E] = L[ E], L[E 1] = L[E] L[1] = L[E] = L[1] L[E] = L[1 E], L[E (F + G)] = L[E] L[F + G] = L[E] (L[F] L[G]) = L[E] L[F] L[E] L[G] = L[E F] L[E G] = L[E F + E G], L[(E + F) G] = L[E + F] L[G] = (L[E] L[F]) L[G] = L[E] L[G] L[F] L[G] = L[E G] L[F G] = L[E G + F G]. since We lso hve 1, L[ ] = = {1} = L[1]. 1.3 Str height The symol defined for rtionl expressions is the only one tht tkes rtionl expression E denoting finite lnguge nd gives rtionl expression denoting n infinite lnguge, E. Hence the ide of mesuring the complexity of expressions y counting the numer of nested uses of this symol, numer which is clled the str height, which we will write h[e], for E RtEA, nd which is defined y induction: if E =, E = 1 or E =, for A, h[e] =, if E = F + G or E = F G, h[e] = mx (h[f], h[g]), if E = F, h[e] = 1 + h[f]. The str height of rtionl lnguge L over A, written h[l], is the minimum of the str heights of the rtionl expressions tht denote L: h[l] = min{h[e] E RtEA : L = L[E]}. 6

10 Lemm 2. Every lnguge L over A with str height h is denoted y finite sum of rtionl expressions: where ech E j is product of the form: L = L[E E n ], E j = u F 1u 1 u m 1 F mu m, where ech u k, k m, is word in A nd ech F k, 1 k m, is rtionl expression over A of str height less then or equl to h 1. Proof. By induction on h, follows from the fct tht product distriutes over union. 1.4 Automt An utomton is directed grph which is lelled with rtionl expressions over n lphet, nd in which two susets of vertices re distinguished. Definition. An utomton A is specified y giving the following elements: (i) non-empty set Q, clled the set of sttes of A, (ii) set A, lso non-empty, clled the (input) lphet of A, (iii) suset I of Q, clled the set of initil sttes, of A, (iv) suset T of Q, clled the set of finl sttes of A, (v) suset E of Q RtEA Q, clled the set of trnsitions of A. We write A = Q, A, E, I, T nd we sy tht A is n utomton over A. Let A e finite lphet. We cll n utomton over A finite if set its sttes is finite. If e = (p, E, q) is trnsition of A, tht is, if e is in E, we sy tht E is the lel of e nd we will write p E q, or p E A q where it might e miguous which utomton we re considering. We lso sy tht p is the source nd q the destintion of the trnsition e. Trnsition is loop, if its source nd destintion re the sme stte. When trnsition hs lel 1, it is clled spontneous. Note tht we cn lwys ssume tht there is, etween ech pir of sttes of n utomton, t most one trnsition. This is ecuse we chose rtionl expressions s the lels of trnsitions, rther thn the usul letters of A. We mke this generlistion to e le to represent ny utomton y single trnsition, s ws shown to y possile y Kleene [3]. Similr generlistion ws first introduced y Brzozowski nd McCluskey [9]. When pproprite, we cn even ssume tht there is, etween ech pir of sttes of n utomton, exctly one trnsition, since if for some pir of sttes, there is no trnsition in the utomton, we cn dd trnsition lelled with. 7

11 A computtion in A is sequence of trnsitions where the source of ech trnsition is the destintion of the previous one, which cn e written s: or E p 1 E 2 E p1 3 p2 p E 1 E 2 E n pn. E n 1 pn 1 E n pn, We sy tht computtion is in A if every trnsition of the computtion is in A. The stte p is the source of the computtion c, nd p n its destintion. The length of the computtion c is n, the numer of trnsitions which mke up c. The lel of c is the product of the lels of the trnsitions of c. In the ove cse, the lel of c is E 1 E 2 E n. A computtion in A is successful if its source is n initil stte nd its destintion is finl stte. A word in A is clled ccepted or recognised y A if it is in lnguge denoted y lel of successful computtion in A. Definition. The lnguge ccepted, or recognised y A, written L(A), is the set of words ccepted (or recognised) y A: L(A) = {f A i I, t T : i E A t f L[E]}. Two utomt re equivlent if they recognise the sme lnguge. If L is lnguge, nd finite utomton A exists such tht L = L(A), we cll L recognisle. Lemm 3. Let L e recognisle lnguge over A. There exists N N such tht for every word f in L nd every fctoristion of the form f = uv 1 v 2 v N w, where every v i is non-empty word, there is pir (j, k) of indices, j < k N, tht uv 1 v 2 v j (v j+1 v k ) v k+1 v N w L. Proof. Let A = Q, A, E, I, T e n utomton tht recognises L. Set N = Q, mening N is size of the set Q. A computtion tht ccepts f cn e written i E q F 1 q1 F 2 q2 F 3 F N 1 qn 1 F N qn G t, where u L[E], v i L[F i ], for 1 i N, nd w L[G]. The N + 1 sttes q i cnnot ll e distinct, nd t lest two, sy q j nd q k, re equl to the sme stte p. The computtion cn therefore e written i E q F 1 F 2 F j p F j+1 F k p F k+1 F N q N G t, where L[F j+1 F k ] contins the non-empty word v j+1 v k. Hence, for every non-negtive integer n, i E q F 1 F 2 F j p (F j+1 F k ) n p F k+1 F N q N G t, is successful computtion of A nd uv 1 v 2 v j (v j+1 v k ) n v k+1 v N w is ccepted y A. 8

12 Let Z n e finite cyclic group of order n. When using Z n s set of sttes of n utomton, we consider integers {, 1, 2,..., n 1} to e the underlying set of the group nd we utilise the group opertions modulo n when enumerting the sttes. Definition. Automton Z n, {, }, E, {}, {} is clled ring utomton R(n), if for ech stte z Z n there re exctly two trnsitions with z s source nd they re (z,, z + 1) nd (z,, z 1). Note tht if stte is memer of Z n we often denote it y some ddition. For exmple, let s, r y sttes of R(n). Then s E s+r denotes trnsition (s, E, s+r), nd s E s+r F s+2 denotes computtion consisting of trnsitions (s, E, s+r) nd (s + r, F, s + 2). Exmple. Figure 1.1 shows ring utomton R(8) Figure 1.1: Automton R(8) Lemm 4. Let R(n) e ring utomton. For ny m, r, nd t in Z n, if the computtion r H t is in R(n) then r + m H t + m is lso in R(n). Proof. By induction on m. Let m =. Since stte r + is the sme s r nd s + is the sme s s, the proposition holds. Given the induction hypothesis for some m 1, let the computtion r H t e written s sequence of trnsitions: X s 1 X 2 s1 X k 1 sk 1 X k s k, where s = r, s k = t, nd ech X i is either letter or. Then computtion s + m 1 X 1 s 1 + m 1 X 2 X k 1 sk 1 + m 1 X k s k + m 1 is in R(n). For ny stte p R(n), trnsitions (p,, p + 1) nd (p,, p 1) re in R(n), thus, if (s i + m 1, X i, s i + m 1) is in R(n), so is (s i + m, X i, s i + m), for i k. Therefore s + m X 1 s 1 + m X 2 X k 1 sk 1 + m X k s k + m, which is the computtion r + m H t + m, is lso in R(n). 9

13 Stte removl lgorithm Brzozowski nd McCluskey [9] used generlised forms of utomt to show tht there is simple lgorithm tht tkes finite utomton nd returns rtionl expression denoting the sme lnguge tht is ccepted y the utomton. This lgorithm is used in Lemm 8 to find rtionl expression denoting the lnguge recognised y ring utomton. Lemm 5. Let A = Q, A, E, I, T e n utomton with n sttes which hs t lest one stte tht is neither initil nor ccepting, tht mens Q \ (I T ). An utomton B with n 1 sttes exists such tht L(B) = L(A). Proof. Let q e stte in Q \ (I T ). Next, we consider the trnsitions (p 1, E 1, q),..., (p k, E k, q), (q, G 1, r 1 ),..., (q, G l, r l ), nd (q, F, q), where ech p h q, nd r j q. These re ll the different trnsitions of A with q s destintion, source, or oth respectively. Note tht F my e 1, since every stte hs t lest spontneous loop. To crete the utomton B, we remove ll the mentioned trnsitions nd the stte q, nd for ech pir of sttes (p h, r j ), 1 h k nd 1 j l, we replce the trnsition (p h, H, r j ) with (p h, H + E h F G j, r j ). Note tht H my e for some stte pirs. Now we verify tht L(B) = L(A). Let f e word ccepted y A. A computtion tht ccepts f cn e written s i A 1 A 2 A s1 3 s2 A N 1 sn 1 A N t. If some s M = q, there re non-negtive integers K nd L such tht s M K = s M K+1 = = s M 1 = s M = s M+1 = = s M+L 1 = s M+L = q, nd the computtion ccepting f is i A 1 A M K 1 ph E h q K+L times F F q G j rj A M+L+2 A N t, therefore fctoristion of f exists such tht f = u 1 u 2 v 1 v K+L w 1 w 2, where u 1 L[A 1 A M K 1 ], u 2 L[E h ], v 1,..., v K+L L[F], w 1 L[G j ], nd w 2 L[A M+L+2 A N ]. It follows tht, for every non-negtive integer J nd ny words g 1,..., g J L[F], the word u 1 u 2 g 1 g J w 1 w 2 is lso in L(A). Specificlly it is ccepted y computtions: i i i A 1 A 1 A 1 ut lso y i A M K 1 ph A M K 1 ph A M K 1 ph A 1 E h q E h q A M 1 ph J times F F q F q E h F G j rj G j rj G j rj A M+L+2 H+E h F G j rj 1 A M+L+2 A M+L+2 A N t, A M+L+2 A N t, A N t, A N t,

14 which is successful computtion is B nd therefore f is ccepted y B. Otherwise, if every stte s M q, ut there re some sttes s M = p h nd s M+1 = r j, then f is ccepted y successful computtion: i A 1 A M ph therefore f is lso ccepted y B, since i A 1 A M ph H r j A M+2 H+E h F G j rj A M+2 A N t, A N t is successful computtion in B. If neither of the ove cses re true, tht mens every s M s M = p h then s M+1 r j, the word f is lso ccepted y q nd if ny i A 1 A s 2 A 1 s 3 2 B B B A N 1 B s N 1 A N t, B which is successful computtion in B, therefore f L[B]. This shows tht every word ccepted y A is lso ccepted y B. The process of removing the stte descried in the Proof of Lemm 5 is clled stte removl lgorithm. By iterting on the sttes of utomton A = Q, A, E, I, T, pplying stte removl lgorithm ech step, we cn crete n utomton with only I T sttes tht ccepts L(A). It is importnt to note tht depending on the order of the sttes chosen to e removed, we my otin different utomt. 11

15 2. Eggn s question In this chpter we present n nswer to the question whether there re rtionl lnguges with ritrrily lrge str heights. The first exmple of such lnguges is given y Eggn [4]. Eggn s exmple uses n lphet of size 2 n 1 for the lnguge with str height n. He therefore sked whether there re some exmples of lnguges over inry lphets. Answer to tht question, which is ffirmtive, ws provided shortly fter y Dejen nd Schützenerger [1]. Their nswer is lso reformulted y Skrovitch [2], who phrsed the proof in the form we work with here. The fmily of lnguges provided y Dejen nd Schützenerger is the following: Definition. Let q e non-negtive integer, then W q is lnguge, such tht W q = {f {, } f f (mod 2 q )}. Theorem 6. The lnguge W q hs str height q. The proof hs three prts. First, we find n utomton tht recognises W q in Lemm 7. Second, we infer rtionl expression of str height q, denoting W q, in Lemm 8. And lstly, we show tht the str height of the lnguge hs to e t lest q. 2.1 Automton recognising W q Lemm 7. Lnguge W q is recognised y n utomton R(2 q ). Proof. We show tht ech word in W q is ccepted y successful computtion in R(2 q ). Let f e word in W q. Since f hs even length, let k e such tht 2k = f. Since f W q, f f = n2 q for some integer n. For n =, f = f. We use induction on k to show tht for every fctoristion f = uvw, if f is ccepted y R(2 q ), words uvw nd uvw re lso ccepted y R(2 q ). For k =, empty word is ccepted since the initil stte is lso finl nd oth computtions 1, nd 2 q 1 re successful in R(2 q ). Given the induction hypothesis for some k 1, every word f = uvw of length 2k 2 such tht f = f is ccepted y computtion E i F j G, where u L[E], v L[F], nd v L[G]. We need to show tht computtions E i E i i + 1 i 1 F j + 1 F j 1 G j, j G, nd re successful. For ny two sttes r nd t of R(2 q ), the computtion r H t cn e written s sequence of trnsitions: r X 1 X s 2 1 X m 1 sm 1 12 X m t,

16 where ech X l is either letter or. Due to Lemm 4, computtions r + 1 X 1 s X 2 r 1 X 1 s 1 1 X 2 X m 1 sm X m 1 sm 1 1 Xm t + 1, Xm t 1 nd re lso in R(2 q ), nd so re r r r + 1 X 1 s X 2 r 1 X 1 s 1 1 X 2 X m 1 sm X m 1 sm 1 1 Xm t + 1 Xm t 1 t, t. nd F If we tke computtion i j in plce of r H t, the ssertion is proved. For n, f f = n2 q. Let g e word such tht g = g, therefore g is ccepted y R(2 q ). Computtion ccepting g cn e written s X 1 X s 2 1 X m 1 sm 1 X m, where ech X l is either letter or. Let Y 1,..., Y m+1 e expressions such tht f is in L[Y 1 X 1 Y m X m Y m+1 ]. Let e h e in L[Y h ] for 1 h m + 1. n2 q = f f = g + m+1 h=1 e h g m+1 h=1 e h = m+1 By m + 1 itertions of Lemm 4, it follows tht computtion Y 1X 1 Y p1 + ( e 1 e 1 ) 2 X 2 p2 + m 1 Y m 1 X m 1 p m 1 + ( e h e h ) h=1 h=1 2 ( e h e h ) h=1 m+1 Y mx my m+1 is in R(2 q ). It is successful computtion in R(2 q ) ecuse n2 q = m+1 h=1 ( e h e h ) (mod 2 q ). ( e h e h ). Y 3 X 3 h=1 ( e h e h ). 2.2 Rtionl expression denoting W q We hve just proved tht lnguge W q is recognised y the ring utomton R(2 q ). We hve lso shown tht the stte removl lgorithm tkes n utomton nd finds nother one with one less stte, tht recognises the sme lnguge. We comine these results to find n utomton with only one stte, tht recognises W q. Lemm 8. Lnguge W q is denoted y rtionl expression of str height q. 13

17 Proof. Due to Lemm 7, lnguge W q is recognised y n utomton R(2 q ). By itertive ppliction of the stte removl lgorithm, we will otin n utomton with only one stte. First, we set X =, Y =, nd Z =, then, for every non-negtive integer n, X n+1 = X n Z nx n, Y n+1 = Y n Z ny n, nd Z n+1 = Z n + X n Z ny n + Y n Z nx n. Second, we define utomton A k s A k = Z 2 q k, A, E, {}, {} such tht ny stte p in A k is source of exctly three trnsitions in A k : p X k p + 1, p Y k p 1, nd p Z k p. By induction on k, we show tht W q, ccepted y R(2 q ), is lso ccepted y A k. Let k =. Note tht for ech stte p in A, trnsitions p X p + 1, p Y p 1, nd p Z p re in R(2 q ). Similrly, for ny stte r in R(2 q ), trnsitions r r + 1, r r 1 re in A. Therefore R(2 q ) is equivlent to A. Given the induction hypothesis for some k 1, W q is ccepted y A k 1. By 2 q k itertions of the stte removl lgorithm n utomton with 2 q k sttes is otined. The set of sttes of A k 1 is Z 2 q k+1. Consecutively, in the incresing order, we remove ll the odd sttes of A k 1, tht is, sttes 1, 3, 5,..., 2 q k+1 1. Let m e the removed odd stte. The process of removing the stte is techniclly the sme for ll the sttes, ut in the interest of clrity, we will differentite etween m eing equl to 1, eing etween 3 nd 2 q k+1 3, nd eing equl 2 q k+1 1. For m = 1, the trnsitions tht hve 1 s source, destintion, or oth re: 1 X k 1 2, 1 Y k 1, X k 1 1, 2 Y k 1 1, nd 1 Z k 1 1. Those trnsitions re removed, in ccordnce with the stte removl lgorithm. For ech pir of sttes, (, ), (, 2), (2, ), (2, 2), these trnsitions re replced: Z k 1 replced y Z k 1 + X k 1 Z k 1 Y k 1, E 2 replced y E + X k 1Z k 1 X k 1 2, 2 E replced y 2 E + Y k 1Z k 1 Y k 1, 2 Z k 1 2 replced y 2 Z k 1 + Y k 1 Z k 1 X k 1 2. For 3 m 2 q k+1 3, the sttes 1, 3,..., m 2 re lredy removed. The trnsitions tht hve m s source, destintion, or oth re: m X k 1 m + 1, m Y k 1 m 1, m 1 X k 1 m, m + 1 Y k 1 m, nd m Z k 1 m. 14

18 As in the cse m = 1, those trnsitions re removed. For ech pir of sttes, (m 1, m 1), (m 1, m + 1), (m + 1, m 1), (m + 1, m + 1), these trnsitions re replced: m 1 Z k 1 + Y k 1 Z k 1 X k 1 m 1 replced y m 1 Z k m 1, since Z k = (Z k 1 + Y k 1 Z k 1X k 1 ) + X k 1 Z k 1Y k 1, m 1 E m + 1 replced y m 1 E + X k 1Z k 1 X k 1 m + 1, m+1 E m 1 replced y m+1 E + Y k 1Z k 1 Y k 1 m 1, m+1 Z k 1 m + 1 replced y m+1 Z k 1 + Y k 1 Z k 1 X k 1 m+1. Lstly for m = 2 q k+1 1, the sttes 1, 3,..., 2 q k+1 3 re lredy removed. Since m = 2 q k+1 1, the stte m+1 is 2 q k+1 (mod 2 q k+1 ). The trnsitions tht hve m s source, destintion, or oth re: m X k 1, m Y k 1 m 1, m 1 X k 1 m, Y k 1 m, nd m Z k 1 m. As for every m 2 q k+1 3, these trnsitions re removed. For ech pir of sttes, (m 1, m 1), (m 1, ), (, m 1), (, ), these trnsitions re replced: m 1 m 1 Z k 1 + Y k 1 Z k 1 X k 1 m 1 replced y m 1 Z k m 1, E replced y m 1 E + X k 1Z k 1 X k 1, E m 1 replced y E + Y k 1Z k 1 Y k 1 m 1, Z k 1 + X k 1 Z k 1 Y k 1 replced y Z k. Thus, fter 2 q k odd sttes removed, we hve utomton with 2 q k sttes, ll non-negtive even numers 2 q k+1 2, tht ccepts W q. To complete the inductive step, crete utomton A k, we renme ech stte 2t s t, t {, 1, 2,..., 2 q k 1}, mening we replce ech stte 2t with t, ech trnsition F F 2t s with t s, nd s F 2t with s F t, for every stte s. For k = q 2, utomton A 2 hs two sttes. Note tht, to conform with the definition of A 2, it should hve six distinct trnsitions, X k 1, 1 Y k, Z k, 1 X k, Y k 1, 1 Z k 1. We cn see tht the pir of trnsitions, 1 nd 1, cn e replced y X k+y k X 1, nd the pir of trnsitions, 1 k nd 1 Y k cn e replced y 1 X k+y k. Automton A 2 is reduced into one stte utomton y ppliction of the stte removl lgorithm on the stte 1. Thus creting loop lelled with Z q 1 + (X q 1 + Y q 1 )Z q 1(X q 1 + Y q 1 ) on the stte. 15 X k Y k

19 Note the following equivlence: Therefore Z q 1 + (X q 1 + Y q 1 )Z q 1(X q 1 + Y q 1 ) X q + Y q + Z q. W q = L(A q ) = L[(Z q 1 + (X q 1 + Y q 1 )Z q 1(X q 1 + Y q 1 )) ] = L[(X q +Y q +Z q ) ]. By induction on i, we show, tht h[x i ] = h[z i ] = h[z i ] = i 1. Let i = 1. h[ 2 ] = h[ 2 ] = h[ + ] =. Given the induction hypothesis for some i 1, h[z i 1 ] = i 1. Therefore h[z i 1] = i = h[x i 1 Z i 1X i 1 ] = h[x i ] = h[y i 1 Z i 1Y i 1 ] = h[y i ] = h[z i 1 + X i 1 Z i 1Y i 1 + Y i 1 Z i 1X i 1 ] = h[z i ]. We conclude tht h[(x q + Y q + Z q ) ] = q, which proves the lemm. Exmple. Lnguge W 3 is recognised y R(8). In Figure 2.1, we show how the rtionl expression X 3 + Y 3 + Z 3 is derived. Then W 3 = L[(X 3 + Y 3 + Z 3 ) ]. 16

20 () Automton R(8) () Automton A (c) (d) (e) (f) Automton A ( + ) 2 Z Y 2 X 2 X 2 + Y 2 X 2 + Y ( + ) 2 (g) Z 2 (h) Automton A 2 Z 2 + (X 2 + Y 2 )Z 2(X 2 + Y 2 ) (i) Figure 2.1: Steps of the stte removl lgorithm on R(8) 17

21 2.3 Witness words We hve found rtionl expression of str height q denoting the lnguge W q, which mens tht the str height of the lnguge will not e higher then q. In the following sections we proceed to show tht it lso hs to e t lest q. First, to simplify the proof, we define specil words, show tht they re in every lnguge W q, nd show some properties of fctors of those words. Definition. For ny non-negtive integers k nd n, witness word w k,n is word defined recursively s: w,n =, w 1,n = 2 () n 2 () n,. w k,n = 2k (w k 1,n ) n 2k (w k 1,n ) n. Lemm 9. For ny non-negtive integers k nd n, w k,n = w k,n. Proof. By induction on k. For k =, = regrdless of n. Given the induction hypothesis for some k 1, w k 1,n w k 1,n =. The word w k,n consists wholly of fctors 2k, 2k, nd two (w k 1,n ) n. Thus: w k,n w k,n = 2k + 2 (w k 1,n ) n + 2k 2k 2 (w k 1,n ) n 2k = 2 k + 2 n w k 1,n 2 n w k 1,n 2 k = 2 n ( w k 1,n w k 1,n ) =. From Lemm 9 it follows tht ny witness word w k,n is in ny lnguge W q. Lemm 1. Any prefix u nd suffix v of (w k,n ) n stisfy the inequlities: u u 2 k+1 1, v v 2 k+1 1. Proof. First, we prove the inequlities of the prefix u. Let u = (w k,n ) i u such tht u is proper prefix of w k,n. Since u u = (w k,n ) i + u (w k,n ) i u = i ( w k,n w k,n ) + u u = u u, we only need to prove tht the inequlities hold for prefix of w k,n. This lets us ssume, without loss of generlity, tht u is proper prefix of w k,n. We proceed y induction on k. For k =, u is prefix of nd we cn see tht the ssertion is true. Given the induction hypothesis for some k 1, prefix of w k 1,n hs etween nd 2 k 1 more s thn s. There re four possiilities: (i) u is prefix of 2k, 18

22 (ii) 2k is prefix of u nd u is prefix of 2k (w k 1,n ) n, (iii) 2k (w k 1,n ) n is prefix of u nd u is prefix of 2k (w k 1,n ) n 2k, (iv) 2k (w k 1,n ) n 2k is prefix of u nd u is prefix of 2k (w k 1,n ) n 2k (w k 1,n ) n. For (i), let u = i, for i 2 k. Then u u = u 2 k < 2 k+1 1. For (ii), let u = 2k (w k 1,n ) i g, for i n, such tht word g is prefix of w k 1,n. Then < 2 k u u 2 k + 2 k 1 = 2 k+1 1. For (iii), let u = 2k (w k 1,n ) n i, for i 2 k. Then u u = 2k + (w k 1,n ) n + i 2k (w k 1,n ) n i = 2 k i. Therefore u u 2 k < 2 k+1 1. For (iv), let u = 2k (w k 1,n ) n 2k (w k 1,n ) i g, for i n, such tht word g is prefix of w k 1,n. Then u u = 2k + (w k 1,n ) n + 2k + (w k 1,n ) i + g 2k (w k 1,n ) n 2k (w k 1,n ) i g = 2 k + g + (n + i)( w k 1,n w k 1,n ) 2 k g = g g. Therefore u u 2 k 1 < 2 k+1 1. For the proof of inequlities of suffix v, we write w k,n s w k,n = gv. Since = w k,n w k,n = g + v g v, v v = g g. Word g is prefix of w k,n, therefore v v 2 k Infinite hierrchy We use the witness words from the previous section to define properties of lnguges. Ech of those properties specifies fmily of lnguges with common str height tht re ll susets of W q. We show tht for the lnguge W q, there re q different fmilies, ech with the common str height strictly higher then the previous one, proving tht W q itself hs to hve str height of t lest q. Definition. We sy tht lnguge L stisfies property P k if there exists n infinite numer of vlues of n such tht (w k,n ) n is fctor of t lest one word in L. Note tht if L stisfies P k, it lso stisfies P l for l < k since (w l,n ) n is fctor of (w k,n ) n. Proof of Theorem 6. Lemm 8 shows tht the str height of W q is t most q. Now we show tht it lso hs to e t lest q. By W k we denote fmily of lnguges L tht stisfy the following conditions: (i) L W q, 19

23 (ii) L stisfies P k, (iii) L hs minimum str height of ny lnguge stisfying the first two conditions. Let h k e the common vlue of the str height of the lnguges in W k. Lnguges in W re necessrily infinite, therefore < h. P k implies P k 1, which mens tht h k 1 h k. W q oviously stisfies (i). It lso stisfies P q 1 since (w q 1,n ) n = (w q 1,n ) n for every n. Becuse we hve found rtionl expression of str height q denoting W q, it follows tht h q 1 q. Therefore we hve < h h 1 h q 1 q. To prove the theorem it is enough to show tht h k 1 < h k for ech k, k = 1,..., q 1. Let L e in W k. Due to Lemm 2 L cn e written s finite union of lnguges E j, ech denoted y rtionl expression of the form E j = u (H 1 ) u 1 u m 1 (H m ) u m, where ech rtionl expression H i denotes lnguge H i with str height less then or equl to h k 1. Since L stisfies P k nd the union of the lnguges E j is finite, it follows tht t lest one of E j hs to stisfy P k. We cn therefore sfely ssume tht L itself is denoted y rtionl expression of the sme form s E j. For ech word g in H i, words u u 1 u m nd u u 1 u i 1 gu i u m re oth in lnguge L. Therefore, ecuse it hs to e true tht g g (mod 2 q ), H i W q. Since L is of miniml str height to stisfy P k, none of the H i stisfies P k. Now we need to show tht some H i stisfies P k 1. In fct, we will hve h k 1 h k 1. L stisfies P k, therefore words (w k,n ) n re fctors of L for ritrrily lrge n. Lemm 3 shows tht we cn find N lrge enough, such tht there is infinitely mny n N, tht (w k,n ) n is fctor of L, nd, for ech n, we hve infinitely mny l s, tht (w k,n ) l is fctor of L. Let Hi e the lnguge recognised y H i. Since m is finite nd fixed for L, there hs to e infinitely mny n s, tht (w k,n ) n is fctor of r n Hi for some i, 1 i m. This mens tht Hi stisfies P k. Next we show tht for these n s, (w k 1,n ) n is fctor of word in H i, mening H i stisfies P k 1. We write r n s fctoristion r n = g g 1 g l, where g j H i, for j l. If w k,n, from (w k,n ) n, is fctor of some g j, the condition is stisfied, since (w k 1,n ) n is fctor of w k,n. Otherwise, let us show how fctor (w k,n ) 2 is covered y the fctoristion of r n. Written explicitly, we hve (w k,n ) 2 = 2k (w k 1,n ) n 2k (w k 1,n ) n 2k (w k 1,n ) n 2k (w k 1,n ) n. Let us consider the g j tht covers, t lest prtilly, the fctor 2k. There re two possiilities: (i) 2k is fctor of g j, (ii) left fctor of 2k is right fctor of g j. 2

24 In cse (i), we hve g j = v 2k u. If v covers the fctor (w k 1,n ) n to the left of 2k, or u covers the fctor (w k 1,n ) n to the right of 2k, the condition is stisfied. If not, u is left fctor of (w k 1,n ) n nd v is right fctor. Set Hence x = g j g j, y = u u, nd z = v v. x = 2 k (y z). We see tht 1 2 k y z 2 k 1, from Lemm 1. Tht gives us < x < 2 k+1 2 q. which contrdicts the fct tht g j H i W q. In cse (ii), we hve g j = v r, < r < 2 k. If (w k 1,n ) n is fctor of v, the condition is stisfied. Otherwise v is right fctor of (w k 1,n ) n nd, similrly s ove, we set x = g j g j, nd z = v v. Hence Therefore, due to Lemm 1, x = r + z. r x r + 2 k 1 < 2 k+1 2 q. which produces the sme contrdiction s the cse (i). 21

25 3. Generlistion The definition of str height cn e expnded into generlised str height, concept tht is quite similr, yet current understnding of its properties is much more limited. 3.1 Generlised str height Definition. A generlised rtionl expression over A is formul otined inductively from the letters of A nd the symols {, 1, +,,,,, } y the following process: (i), 1, nd, for in A, re generlised rtionl expressions, (ii) if E nd F re generlised rtionl expressions, then (E + F), (E F), (E ), (E F), (E F), (E ) re generlised rtionl expressions. We write GRtEA for the set of generlised rtionl expressions over A. The lnguges denoted y generlised rtionl expressions re the sme s for the rtionl expressions plus, to ccommodte the dded symols, we let: L[E F] = L[E] \ L[F], L[E F] = L[E] L[E], L[E ] = A L[E]. Definition. Let E GRtEA. Generlised str height, written gsh[e], is defined y induction on the complexity of expressions: if E =, E = 1 or E =, for A, gsh[e] =, if E = F + G or E = F G, gsh[e] = mx (gsh[f], gsh[g]), if E = F, gsh[e] = 1 + gsh[f], if F = E, gsh[e] = gsh[f]. For E = F G, or E = F G, due to De Morgn s lws, identities exist: F G F G, nd F G (F + G ), thus gsh[e] = mx (gsh[f], gsh[g]). The generlised str height of rtionl lnguge L over A, written gsh[l], is the minimum of the generlised str heights of the generlised rtionl expressions tht denote L: gsh[l] = min{gsh[e] E GRtEA : L = L[E]}. 22

26 3.2 Open questions The determintion of the str height of rtionl lnguge, however difficult prolem, hs een solved. The determintion of the generlised str height still remins to e solved. Two open questions, tht re rised y the definition of generlised str height of rtionl lnguge, re nmely the existence of n infinite hierrchy nd the computtion of generlised str height. Not only do we not know whether there re rtionl lnguges with ritrrily lrge generlised str height, ut even lnguge with generlised str height greter thn 1 hs not yet een shown. On the other hnd, for lnguges whose generlised str height is equl to, or so clled str-free lnguges, Schützenerger [1] provided n lgeric chrcteristion. 23

27 Conclusion This thesis proves, in greter detil thn the originl works, tht there is n infinite hierrchy of str heights of lnguges over inry lphet. In the first chpter, we defined n unusul modifiction of clssicl utomt with trnsitions lelled with rtionl expressions. This let us throughout the thesis consider only utomt with t most one trnsition etween ech pir of sttes. We devised precise definition of ring utomton nd proved Lemm 4 out the existence of computtions in ring utomt. For the stte removl lgorithm we compred the successful computtions in n nd n 1 stte utomt to prove their equivlence. In the second chpter, the im of this thesis ws to tke the proof of existence of lnguges with ritrrily high str height, s formulted y Skrovitch [2], nd in detil prove the prts tht were only outlined. In the Section 2.1 we used our Lemm 4 to show tht lnguge W q is recognised y the ring utomton with 2 q sttes. In the Section 2.2 we showed tht, with prticulr order of sttes chosen for stte removl lgorithm, lnguge W q is denoted y rtionl expression of str height q. In the Section 2.3 witness words re defined. In Lemm 9 we hve shown tht ech of them hs the sme numer of oth letters of the inry lphet over which they re defined. This equlity is used to simplify the proof of Lemm 1, where we show how much more letters of one type cn e in either prefix, or suffix of the witness words. This inequlity is used in the proof of Theorem 6. 24

28 Biliogrphy [1] F. Dejen nd M.P. Schützenerger. On question of Eggn. Informtion nd Control, 9(1):23 25, [2] J. Skrovitch. Elements of Automt Theory. 1st Edition. Cmridge University Press, 29. [3] S. C. Kleene. Representtion of events in nerve nets nd finite utomt. Automt Studies, pges 3 41, [4] L. C. Eggn. Trnsition grphs nd the str-height of regulr events. Michign Mth. J., 1(4): , [5] R. McNughton. The Loop Complexity of Pure-Group Events. Informtion nd Control, 11(1): , [6] K. Hshiguchi. Regulr lnguges of str height one. Informtion nd Control, 53(3):199 21, [7] K. Hshiguchi. Algorithms for determining reltive str height nd str height. Informtion nd Computtion, 78(2): , [8] D. Kirsten. Distnce desert utomt nd the str height prolem. RAIRO - Theoreticl Informtics nd Applictions, 39(3):455 59, 25. [9] J. A. Brzozowski nd E. J. McCluskey. Signl Flow Grph Techniques for Sequentil Circuit Stte Digrms. IEEE Trnsctions on Electronic Computers, EC-12(2):67 76, April [1] M.P. Schützenerger. On finite monoids hving only trivil sugroups. Informtion nd Control, 8(2):19 194,

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

set is not closed under matrix [ multiplication, ] and does not form a group.

set is not closed under matrix [ multiplication, ] and does not form a group. Prolem 2.3: Which of the following collections of 2 2 mtrices with rel entries form groups under [ mtrix ] multipliction? i) Those of the form for which c d 2 Answer: The set of such mtrices is not closed

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

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

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

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

ɛ-closure, Kleene s Theorem,

ɛ-closure, Kleene s Theorem, DEGefW5wiGH2XgYMEzUKjEmtCDUsRQ4d 1 A nice pper relevnt to this course is titled The Glory of the Pst 2 NICTA Resercher, Adjunct t the Austrlin Ntionl University nd Griffith University ɛ-closure, Kleene

More information

Fundamentals of Computer Science

Fundamentals of Computer Science Fundmentls of Computer Science Chpter 3: NFA nd DFA equivlence Regulr expressions Henrik Björklund Umeå University Jnury 23, 2014 NFA nd DFA equivlence As we shll see, it turns out tht NFA nd DFA re equivlent,

More 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Linear Inequalities. Work Sheet 1

Linear Inequalities. Work Sheet 1 Work Sheet 1 Liner Inequlities Rent--Hep, cr rentl compny,chrges $ 15 per week plus $ 0.0 per mile to rent one of their crs. Suppose you re limited y how much money you cn spend for the week : You cn spend

More information

378 Relations Solutions for Chapter 16. Section 16.1 Exercises. 3. Let A = {0,1,2,3,4,5}. Write out the relation R that expresses on A.

378 Relations Solutions for Chapter 16. Section 16.1 Exercises. 3. Let A = {0,1,2,3,4,5}. Write out the relation R that expresses on A. 378 Reltions 16.7 Solutions for Chpter 16 Section 16.1 Exercises 1. Let A = {0,1,2,3,4,5}. Write out the reltion R tht expresses > on A. Then illustrte it with digrm. 2 1 R = { (5,4),(5,3),(5,2),(5,1),(5,0),(4,3),(4,2),(4,1),

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

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

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

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

Worked out examples Finite Automata

Worked out examples Finite Automata Worked out exmples Finite Automt Exmple Design Finite Stte Automton which reds inry string nd ccepts only those tht end with. Since we re in the topic of Non Deterministic Finite Automt (NFA), we will

More 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

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

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

Theoretical foundations of Gaussian quadrature

Theoretical foundations of Gaussian quadrature Theoreticl foundtions of Gussin qudrture 1 Inner product vector spce Definition 1. A vector spce (or liner spce) is set V = {u, v, w,...} in which the following two opertions re defined: (A) Addition of

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

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

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

Analytically, vectors will be represented by lowercase bold-face Latin letters, e.g. a, r, q.

Analytically, vectors will be represented by lowercase bold-face Latin letters, e.g. a, r, q. 1.1 Vector Alger 1.1.1 Sclrs A physicl quntity which is completely descried y single rel numer is clled sclr. Physiclly, it is something which hs mgnitude, nd is completely descried y this mgnitude. Exmples

More information

Improper Integrals. The First Fundamental Theorem of Calculus, as we ve discussed in class, goes as follows:

Improper Integrals. The First Fundamental Theorem of Calculus, as we ve discussed in class, goes as follows: Improper Integrls The First Fundmentl Theorem of Clculus, s we ve discussed in clss, goes s follows: If f is continuous on the intervl [, ] nd F is function for which F t = ft, then ftdt = F F. An integrl

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

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

NFAs continued, Closure Properties of Regular Languages

NFAs continued, Closure Properties of Regular Languages lgorithms & Models of omputtion S/EE 374, Spring 209 NFs continued, losure Properties of Regulr Lnguges Lecture 5 Tuesdy, Jnury 29, 209 Regulr Lnguges, DFs, NFs Lnguges ccepted y DFs, NFs, nd regulr expressions

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

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3 2 The Prllel Circuit Electric Circuits: Figure 2- elow show ttery nd multiple resistors rrnged in prllel. Ech resistor receives portion of the current from the ttery sed on its resistnce. The split is

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

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

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

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

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

Regular Languages and Applications

Regular Languages and Applications Regulr Lnguges nd Applictions Yo-Su Hn Deprtment of Computer Science Yonsei University 1-1 SNU 4/14 Regulr Lnguges An old nd well-known topic in CS Kleene Theorem in 1959 FA (finite-stte utomton) constructions:

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

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

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

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun:

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun: CMPU 240 Lnguge Theory nd Computtion Spring 2019 NFAs nd Regulr Expressions Lst clss: Introduced nondeterministic finite utomt with -trnsitions Tody: Prove n NFA- is no more powerful thn n NFA Introduce

More 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

The Regulated and Riemann Integrals

The Regulated and Riemann Integrals Chpter 1 The Regulted nd Riemnn Integrls 1.1 Introduction We will consider severl different pproches to defining the definite integrl f(x) dx of function f(x). These definitions will ll ssign the sme vlue

More information

MATH 573 FINAL EXAM. May 30, 2007

MATH 573 FINAL EXAM. May 30, 2007 MATH 573 FINAL EXAM My 30, 007 NAME: Solutions 1. This exm is due Wednesdy, June 6 efore the 1:30 pm. After 1:30 pm I will NOT ccept the exm.. This exm hs 1 pges including this cover. There re 10 prolems.

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

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

2.4 Linear Inequalities and Interval Notation

2.4 Linear Inequalities and Interval Notation .4 Liner Inequlities nd Intervl Nottion We wnt to solve equtions tht hve n inequlity symol insted of n equl sign. There re four inequlity symols tht we will look t: Less thn , Less thn or

More information

Matrix Algebra. Matrix Addition, Scalar Multiplication and Transposition. Linear Algebra I 24

Matrix Algebra. Matrix Addition, Scalar Multiplication and Transposition. Linear Algebra I 24 Mtrix lger Mtrix ddition, Sclr Multipliction nd rnsposition Mtrix lger Section.. Mtrix ddition, Sclr Multipliction nd rnsposition rectngulr rry of numers is clled mtrix ( the plurl is mtrices ) nd the

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

Lecture 3 ( ) (translated and slightly adapted from lecture notes by Martin Klazar)

Lecture 3 ( ) (translated and slightly adapted from lecture notes by Martin Klazar) Lecture 3 (5.3.2018) (trnslted nd slightly dpted from lecture notes by Mrtin Klzr) Riemnn integrl Now we define precisely the concept of the re, in prticulr, the re of figure U(, b, f) under the grph of

More information

Introduction to Group Theory

Introduction to Group Theory Introduction to Group Theory Let G be n rbitrry set of elements, typiclly denoted s, b, c,, tht is, let G = {, b, c, }. A binry opertion in G is rule tht ssocites with ech ordered pir (,b) of elements

More information