An algebraic characterization of strictly piecewise languages

Size: px
Start display at page:

Download "An algebraic characterization of strictly piecewise languages"

Transcription

1 An lgeri hrteriztion of stritly pieewise lnguges Jie Fu, Jeffrey Heinz, nd Herert G. Tnner University of Delwre Astrt. This pper provides n lgeri hrteriztion of the Stritly Pieewise lss of lnguges studied y Rogers et l These lnguge re nturl sulss of the Pieewise Testle lnguges (Simon 1975) nd re relevnt to nturl lnguge. The lgeri hrteriztion highlights similrity etween the Stritly Pieewise nd Stritly Lol lnguges, nd lso leds to proedure whih n deide whether regulr lnguge L is Stritly Pieewise in polynomil time in the size of the syntti monoid for L. 1 Introdution Rogers et l. [12] study the Stritly Pieewise (SP), whih re proper sulss of the Pieewise Testle (PT) lnguges of Simon [13]. The Stritly Pieewise lnguges re interesting for two resons. First, there re severl senses in whih the SP lss is nturl. For exmple, SP is extly the lss of those lnguges losed under susequene [12]. Also, they er the sme reltion to Pieewise Testle lnguges tht the Stritly Lol (SL) er to Lolly Testle (LT) lnguges [10, 12]. Seond, this lss expresses some of the kinds of long-distne dependenies found in nturl lnguge [6, 12]. While Rogers et l. provide severl hrteriztions of SP lnguges, they do not provide n lgeri one. Also, the proedure they give for deiding whether regulr lnguge L elongs to SP is exponentil in the size of the smllest deterministi eptor for L. This pper ddresses these issues. It provides n lgeri hrteriztion for the SP lss. This result not only revels n importnt similrity etween the SP nd SL lnguges, ut lso leds to proedure whih deides whether L elongs to SP in time qudrti in the size of syntti monoid for L. However, it remins n open question whether polynomil time deision proedure exists in the size of the smllest deterministi eptor. The rest of this pper is orgnized s follows. Setion 2 reviews foundtionl onepts nd nottion. Setion 3 defines the Pieewise Testle (PT), Stritly Pieewise (SP), nd Strily Lol (SL) lsses. Setion 4 presents our lgeri hrteriztion of the SP lss nd Setion 5 desries the polynomil-time deision proedure. Finlly, Setion 6 onludes. This reserh is supportedygrnt # from the Ntionl Siene Foundtion.

2 2 Preliminries A semigroup is set with n ssoitive opertion. A monoid is semigroup with n identity element (written 1). If S is semigroup, S 1 denotes the monoid equl to S if 1 S nd to S {1} otherwise. A zero is n element 0 suh tht, for every s S, s0 = 0s = 0. The free semigroup (monoid) of set S is the set of ll finite sequenes of one (zero) or more elements from S. If x is n element of set S nd π prtition of S, the lok of π ontining x is [x] π. The prtition of S indued y n equivlene reltion ρ is S/ρ. A right (left) ongruene is prtition suh tht if [x] π = [y] π then [xz] π = [yz] π ([zx] π = [zy] π ). A ongruene is oth left nd right ongruene. Following Clifford [2], left (right) idel of semigroup S is non-empty suset T of S suh tht ST T (TS T). The left (right) idel of S generted y T is T ST = S 1 T (T TS = TS 1 ). The prinipl left (right) idel of S generted y t T is PL(t) = S 1 t (PR(t) = ts 1 ). Let Σ denote finite set, lled the lphet. Sets Σ + nd Σ denote the free semigroup nd free monoid of Σ, respetively. We refer to the elements of Σ + nd Σ s strings nd words interhngely. The unique string of length zero is denoted λ. The set Σ k denotes the set of ll words of length t most k. The length of string u is denoted u, nd w σ denotes the numer of ourenes of σ in w. A string v is ftor of w iff there exist strings x,y Σ suh tht w = xvy. A string v is prefix (suffix) of w iff there exist x Σ suh tht w = vx (w = xv). A string v is susequene of string w iff v = σ 1 σ n nd w Σ σ 1 Σ Σ σ n Σ, nd we write v w. Lnguges re susets of Σ. The omplement of lnguge L is L = {w Σ : w L}. A semiutomton is tuple A = {Q,Σ,T}, where Q is non-empty finite set of sttes nd Σ is the lphet. The trnsition funtion is prtil funtion T : Q Σ Q. The domin of the trnsition funtion is expnded to Q Σ reursively s follows. For ll q Q, T(q,λ) = q nd for ll w Σ nd σ Σ, T(q,w) = T(T(q,w),). It follows tht T(q,xy) = T(T(q,x),y). By definition semi-utomt re deterministi. A finite-stte utomton (FSA) is tuple A = {Q,q 0,Q f,σ,t}, where {Q,Σ,T} is semi-utomton, q 0 Q is the initil stte, nd Q f Q is set of finl sttes. The lnguge reognized y A is {w Σ : T(q 0,w) Q f }. AlngugeL is regulr iff there existsfsa reognizingit. Foreveryregulr lnguge L there is unique (up to isomorphism) utomton with the fewest numer of sttes reognizing L lled the nonil FSA for L. Astte q of n utomtonis sink stte iff, for ll σ Σ, if T(q,σ) is defined then T(q,σ) = q. One n lwys mke the trnsition funtion totl y dding nonfinl sink stte nd direting ll the missing trnsitions for eh stte to this sink. When the sink stte is dded to nonil eptor, it is the only stte whih is oth sink nd nonfinl. The resulting utomton is omplete.

3 For ny utomton A nd stte q Q, let ρ q e tht reltion suh tht, for ll elements x nd y of Σ, xρ q y iff T(q,x) = T(q,y). More generlly, let f x = ( ) q1 q n. T(q 1,x) T(q n,x) For ll x,y Σ, let xρy iff f x = f y. The equivlene reltion ρ over Σ indues ongruene over Σ [15]. The index of ρ is finite euse Q is finite. Let F A = {f x : x Σ } denote the finite monoid of mppings nd Ī(A) = Σ /ρ. Then F A is isomorphi to Ī(A) under the orrespondene of f x of F A with [x] of Ī(A), where [x] is the ρ-ongruene oset ontining x of Σ. In this pper, when writing f x nd [x], we hoose x to e shortest-length element in the ongruene lss without ny miguity. For FSA A, where A is the ssoited semiutomton of A, F A is lled the trnsformtion semigroup nd Ī(A) is the hrteristi semigroup of A. Elements f x of F A n lso e written in mtrix form µ x, where the rows nd olumns indite sttes in Q = {q 1,...,q n } nd µ x [i,j] = 1 iff T(q i,x) = q j. The set of mtries is nother semigroup, the trnsition semigroup. The nme isderivedfromthe ft tht ehelementin this semigroupis trnsitionmtrix ssoited to wlk x in A. We write U A = {µ x : x Σ }. Clerly U A is isomorphi to Ī(A) under the orrespondne of µ x of U A with [x] of Ī(A). Definition 1 (Pin 1997). The syntti semigroup of regulr lnguge L is the trnsformtion semigroup given y its omplete nonil semiutomton. In the syntti semigroup of n utomton A, the set of genertors of F A is Gen(F A ) = {f σ : σ Σ}. The syntti monoid of regulr lnguge L is the syntti semigroup with identity, Gen(F 1 A ) = {f σ : σ Σ λ}. Pin [11] disusses the equivlene etween utomt nd semigroups. Note tht sine the trnsition semigroup U A of A is represented s semigroup of oolenmtriesoforder Q Q, wordw is reognizedy A iffµ x (q 0,q f ) = 1 for some finl stte q f Q f. It follows tht finite utomton reognizes regulr lnguge L iff its trnsition semigroup reognizes L. A monoid grph is useful method employed y ontemporry lgeri theorists to visulize monoids. The nodes of the grph re elements in the monoid, though n initil node leled λ is inluded y onvention. The lels on edges re the elements in the set of genertorsof the monoid. Given monoid M, x s y iff xs = y, where x,y M, nd s Gen(M). The monoid grph of F A is denoted s MG(F A ). We mrk elements x in the monoid grph s finl iff f x F A nd there exists finl stte q in the nonil eptor suh tht T(q 0,x) = q [11]. Exmples of monoid grphs re in Figures 1,2, nd 3. Definition 2. A unique nonfinl sink stte in n utomton A is lled zero. An element f x is zero element of the trnsformtion semigroup iff ( ) q1... q f x = n

4 We use the nottion f x = 0 for the trnsformtion semigroup, µ x = 0 for the trnsition semigroup, nd x = 0 for the free semigroup Σ. The orresponding zero in the hrteristi semigroup Ī(A) is denoted [0]. While every omplete nonil utomton (exept the one reognizing Σ ) hs unique nonfinl sink stte, not every trnsformtion semigroup hs zero. 3 Pieewise Testle nd Stritly Pieewise lnguges The onept of susequene is entrl to the notion of pieewise testility. Definition 3. The priniple shuffle idel of v is the lnguge of ll words for whih v is susequene. We write SI(v) = {w Σ v w}. The Pieewise Testle lnguges is the smllest lss of lnguges inluding SI(w) for ll w Σ nd losed under Boolen opertions [13]. Similrly, the lss of Pieewise k-testle (PT k ) lnguges is the smllest lss of lnguges inluding SI(w) for ll w Σ k nd losed under Boolen opertions. A well-known hrteriztion of the PT lnguges is stted in terms of the sets ofsusequenes within words.ifp k (w) def = {v : v w nd v k} then the following hrteriztion (sometimes tken s the definition of PT [3]) holds. Theorem 1. A lnguge L is Pieewise Testle iff there exists k suh tht, for ll words w 1,w 2 Σ, if P k (w 1 ) = P k (w 2 ) then w 1 L iff w 2 L. When k is known, L is sid to e Pieewise k-testle (L PT k ). Simon proved one of the first exmples of wht lter eme known s Eilenerg s orrespondene theorem [11]. One of the reltions tht Green [4] defines on semigroups is the J reltion, whih reltes two elements of semigroup S if they generte the sme two-sided prinipl idel of S: J iff S 1 S 1 = S 1 S 1. A semigroup S is J-trivil iff, for ll, S, if J then =. Simon proved the following lgeri hrteriztion of pieewise testle lnguges. Theorem 2 (Simon 1975). A lnguge is Pieewise Testle iff its syntti monoid is J-trivil. As n exmple, onsider the lnguge of ll words with extly one, L = {w : w = 1}. The nonil eptor for this lnguge is shown in Figure 1. There re three elements in the monoid F 1 A 1 = {,1,0}, (for simpliity of nottion, let x stnd for f x ). The J-trivility is estlished y lulting F 1 A 1 xf 1 A 1, for ll x F 1 A 1 : F 1 A 1 F 1 A 1 = {0,}, F 1 A 1 1F 1 A 1 = {0,,1}, nd F 1 A 1 0F 1 A 1 = {0}. The J-trivility is stisfied, whih mens this lngunge L is pieewise testle. Rogers et l. [12] study proper sulss of the Pieewise Testle lnguges, the Stritly Pieewise lss. This pper tkes s definition of Stritly Pieewise lnguges those lnguges whih re losed under susequene. (Unknown to Rogers et l., lnguges losed under susequene were studied forty yers erlier y Hines [5] (see lso Higmn [7]).)

5 ,, 1 2 λ,,, 0,, Fig.1. The nonil utomton nd the monoid grph for L = {w : w = 1}, whih is the lnguge of ll words with extly one. Definition 4. A lnguge is Pieewise Testle in the Strit Sense (L SP) iff, for ll w Σ, if w L nd v w then v L. Rogers et l. [12] estlish the following equivlenes (see lso [5]). Theorem 3. The following re equivlent: 1. L SP. 2. L = SI(X),X Σ. 3. L w S SI(w), for S finite. 4. there exists k suh tht if P k (w) P k (L) then w L. It follows from the third hrteriztion ove tht ny SP lnguge n e hrterized y finite set S. Elements of this set re the foridden susequenes, nd the lnguge is ll words whih do not ontin ny of these foridden susequenes. The longest word in S is the length k in the 4th hrteriztion ove, in whih se we sy L is Stritly k-pieewise (L SP k ). 1 By foridding susequenes, SP lnguges resemle the Strily Lol lnguges whih forid ftors [10]. Any SL lnguge L n e defined s the intersetion of the omplements of sets defined to e those words whih ontin foridden ftor. Formlly, let the ontiner of w Σ e C(w) = {u Σ : w is ftor of u } then lnguge L SL iff there exists finite set of foridden ftors S Σ suh tht L = w S C(w).2 Figure 2 shows the nonil eptor nd the monoid grph for the SL lnguge L = Σ Σ = C(), i.e. ll words exept those ontining the ftor. To illustrte SP lnguges, onsider the lnguge L = SI() SI(), whih is the lnguge of ll words exept those ontining either the susequenes or ; i.e., nd re the foridden susequenes. Thus this SP lnguge n e hrterized y the set {, } of foridden susequenes (or equivlently y the set Σ 2 /{,} of permissile susequenes [12]). Hene this lnguge elongs to SP 2. Figure 3 shows ths nonil utomt nd the monoid grph for L. The 0 element is not shown there, ut note tht ll missing edges go to 0. 1 While every SP lnguge is onvex [14], it is not the se tht ll onvex lnguges re SP sine, for exmple, there re nonempty suword-onvex lnguges tht do not ontin λ ut the only SP lnguge not ontining λ is the empty one. 2 The symols nd invoke left nd right word oundries nd re neessry euse SL lnguges mke distintions t word edges [10].

6 , 1 2 λ,,,,,, Fig.2. The nonil eptor nd the monoid for the lnguge L = C(), whih is ll words exept those ontining the ftor.,, λ Fig.3. The nonil utomt nd the monoid grph of the syntti monoid of L = SI() SI(), i.e. the lnguge where the susequenes nd re foridden. As with the other pieewise testle lnguges like the one in Figure 1, it is not diffiult to verify tht the syntti monoid of this lnguge is J- trivil. However, this lnguge, like every other SP lnguge, hs two dditionl properties. Furthermore, no non-sp lnguge hs oth of these properties. 4 Algeri Chrteriztion of SP There re two importnt onepts tht need to e introdued. Definition 5. Let L e regulr lnguge reognized y FSA, nd onsider its hrteristi semigroup. Lnguge L is wholly nonzero if nd only if L = [0]. In other words, lnguge is wholly nonzero if nd only if every word not in the lnguge is in the zero lok of the hrteristi semigroup. In terms of the trnsformtion semigroup, this mens tht every word x not in the lnguge is zero; i.e., f x = 0. Theorem 4. A lnguge L is wholly nonzero if nd only if L is losed under prefix nd losed under suffix. Proof. Clerly, [0] L. Now suppose L is losed under prefix nd suffix, nd onsider ny x L. For ontrdition, suppose f x 0. Then in the nonil eptor A for L there re sttes q,q in A suh tht x trnsforms q to q. Sine

7 A is nonil, there exist strings w,y suh tht w trnsforms q 0 to q nd y trnsforms q to finl stte. Thus wxy L. Sine L is losed under prefix wx elongs to L nd sine L is losed under suffix, x elongs to L, whih ontrdits the ssumption. Therefore f x = 0, whih ompletes one diretion of the proof. Now suppose L = [0] nd onsider ny w L nd ny prefix (suffix) v of w, whih mens there exists x suh tht w = vx (w = xv). If v L then y ssumption f v = 0. It follows tht f w = f vx = 0f x = 0 (f w = f xv = f x 0 = 0), whih ontrdits tht w L. Oserve tht L = Σ nd the empty lnguge re wholly nonzero vuously. The following two orollries re lmost immedite. Corollry 1. The Stritly Pieewise lnguges re wholly nonzero. Proof. The Stritly Pieewise re losed under susequene y definition nd re therefore losed under prefix nd suffix. Corollry 2. The Stritly Lol lnguges re wholly nonzero. Proof. Consider ny Stritly Lol lnguge L nd ny w L. Sine w L, there re no foridden ftors in w nd therefore there re none in ny prefix or suffix of w. Hene every prefix nd suffix of w elongs to L s well. Tht oth the Stritly Lol nd Stritly Pieewise re wholly nonzero is nontrivil property they hve in ommon. To illustrte, rell the SL lnguge L = C() (Figure 2). Every string not in this SL lnguge trnsforms ny stte in its monoid grph to 0. These re ll the strings with the 2-ftor. Similrly, onsider gin the lnguge L = SI() SI() (Figure 3). Every string not in thissplngugetrnsformsnystteinitsmonoidgrphto0.thesereextly those strings with either susequene or. The seond property is n lgeri hrteriztion of wht Rogers et l. desrie in utomt-theoreti terms s missing edges propgte down. This mens tht if some stte q in the nonil epter does not hve trnsition leled with symol σ then no stte rehle from q hs n outgoing trnsition leled with σ. To pture this, we need the following onept relting to zeroes. Definition 6. Let M e monoid. The set of right nnihiltors of n element x M, is RA(x) = { M : x = 0}. In other words, the elements of RA(x) nnihilte x from the right. The set of left nnihiltors n e defined similrly, ut it does not ply role here. We now define the following property whih ptures the notion of missing edges propgting down. Definition 7. A lnguge L is right nnihilting iff for ny element f x in the syntti monoid F A (L), nd for ll f w in the priniple right idel generted y f x, it is the se tht RA FA(L)(f x ) RA FA(L)(f w ). The min theorem of this pper n now e stted nd proved.

8 Theorem 5. A lnguge L is SP iff L is wholly nonzero nd right nnihilting. Proof. By Corollry 1, ny SP lnguge is wholly nonzero. Next onsider ny L SP nd ny element f x nd ny f t RA FA(L)(f x ). It follows tht f x f t = 0; hene, f xt = 0. Sine L SP, there must e some v xt suh tht v is foridden; i.e SI(v) L. For ny f w in the prinipl right idel of f x, it is the se tht there exists f suh tht f w = f x f. Thus f w f t = f x f f t = f xt. Sine v xt it follows tht v xt nd therefore f w f t = f xt = 0 nd so f t RA FA(L)(f w ). The generlity of f w nd f t ensures tht w PR(x),RA FA(L)(f x ) RA FA(L)(f w ). Now for the other diretion. The empty lnguge vuously stisfies the ove onditions nd elongs to SP so onsider ny nonempty regulr lnguge L, whih is wholly nonzero nd right nnihilting. We show tht L elongs to SP. By ontrdition, suppose L is wholly nonzero nd right nnihilting, ut not in SP. By definition of SP, L is not losed under susequene. So there is some w nd v suh tht w L nd v w ut v L. Sine v w, there exists u 0,u 1,,u n suh tht for v = σ 1 σ 2...σ n, w = u 0 σ 1 u 1 σ 2 u 2 σ n u n. Sine v L nd sine L is wholly nonzero, v [0]. It will e useful to refer to the suffixes of v s follows: v i = σ i σ n for 1 i n. For exmple, v = v 1 = σ 1 σ n nd v 2 = σ 2 σ n, nd v n = σ n. Now v 2 is right nnihiltor of u 0 σ 1 sine u 0 σ 1 v 2 = u 0 v = u 0 0 = 0. Also, sine L is right nnihilting, RA(u 0 σ 1 ) is suset of RA(u 0 σ 1 u 1 ), nd so v 2 right nnihiltes u 0 σ 1 u 1 s well. Next onsider tht v 3 is right nnihiltor of u 0 σ 1 u 1 σ 2 sine u 0 σ 1 u 1 σ 2 v 3 = u 0 σ 1 u 1 v 2 nd ove we showed tht v 2 right nnihiltes u 0 σ 1 u 1. Agin, sine L is right nnihilting, RA(u 0 σ 1 u 2 σ 2 ) is suset of RA(u 0 σ 1 u 1 σ 2 u 2 ), nd so v 3 right nnihiltes u 0 σ 1 u 1 σ 2 u 2 s well. Crrying this rgument through to its onlusion, we see tht v n = σ n is right nnihiltor of u 0 σ 1 u 1 σ 2 u 2 u n 1 σ n 1. Therefore σ n is right nnihiltor ofu 0 σ 1 u 1 σ 2 u 2 u n 2 σ n 1 u n swell.heneu 0 σ 1 u 1 σ 2 u 2 u n 2 σ n 1 u n σ n = 0. But this mens tht w = u 0 σ 1 u 1 σ 2 u 2 u n 2 σ n 1 u n σ n u n = 0u n = 0. Sine L is wholly nonzero, it follows tht w L, whih ontrdits the redutio ssumption. Therefore there is no v,w suh tht w L, v w, nd v L. It follows tht regulr lnguges tht re wholly nonzero nd right nnihilting re losed under susequene nd re therefore SP. We illustrte this property in the ontext of the deision proedure we present elow for deiding whether regulr lnguge is SP. 5 Algorithms for SP lnguges Theorem 3 provides polynomil-time deision proedure for deiding whether ny regulr lnguge L is SP, nd if it is, it finds the finite set of the shortest foridden susequenes neessry to define L.

9 5.1 Deiding SP The input to the lgorithms elow is tken to e the monoid grph of the syntti monoid for regulr lnguge L, with the initil stte eing the node leled λ nd the finl sttes eing mrked. Sine this grph is determinsti, it is possile to otin the nonil eptor in time O(nlogn) [9]. Given miniml DFA A, the syntti monoid F A n e otined through the set of genertors {f σ }, σ Σ. The reder is referred to [1] for the onstrution method of syntti monoid F A. Theorem 3 provides the sis for the deision proedure, whih we ll DSP. DSP simply heks whether the syntti monoid stisfies the wholly nonzero nd the right nnihiltion onditions. The wholly nonzero ondition n e heked in two steps, essentilly y heking losure under prefixes nd suffixes. To hek losure under prefixes, one simplyneedhekwhethereverysttein thenonilepteraisfinl.ifthey re not, then the syntti monoid of A is not wholly nonzero. To hek losure under suffixes, oth the omplete nonil eptor nd the trnsformtion semigroup F A re exmined. Let 0 e the non-finl sink stte in the omplete utomton. If there exists one nonzero element f x in F A nd one noninitil stte q in the nonil eptor suh tht T(q,x) 0 ut T(q 0,x) = 0, then the wholly nonzero ondition is violted. If no suh f x or q exist, however, we n onlude the lnguge is wholly nonzero. Whether the right nnihilting ondition is stisfied n e determined from the Cyleytle forf A. The olumnsnd rowsofcyleytlereleledwith the elements in the syntti monoid F A, nd the ell is the produt(x y) of the row-th(x) nd olumn-th(y) elements [2]. Then for eh f x F A, the prinipl right idel generted y x (PR(x)) n e found y the union of ll distint elements in the xth row of the tle nd the right nnhiltors of x (RA(x)) re given y those elements y suh tht the x th row nd y th olumn is 0. Then for eh z PR(x), it is suffiient to hek whether RA(x) RA(z). If for ny x F A nd ny z PR(x), it is the se tht RA(x) RA(z) then the lgorithm exits nd returns flse. Otherwise it returns true. We illustrte these proedures with three exmples. Consider first the SP lnguge L = SI() SI() in Figure 3. The elements of its trnsformtion semigroup F A (L) = {f x,x Σ } re: ( ) ( ) ( ) f = f = f = ( ) f = ( ) f = ( ) f = ( ) = f = ( ) Sine F A is isomorphi to the hrteristi semigroup Ī(A), it follows tht Ī(A) = {[0],[],[],[],[],[],[],[]}. The trnsition semigroup U(A) re the set of the djeny mtries given y eh string x in f x,f x F A.

10 λ λ λ Tle 1. Cyley tle for syntti monoid for L = SI() SI(). The monoid grph for this lnguge is in Figure 3. Rell tht lthough the 0 element is not shown, it is understood tht ll missing edges go to 0. The Cyley tle is given in Tle 1. With little use of nottion, in the followingontext, x is used to denote the element f x in syntti monoid F A. The wholly non-zero ondition n e heked y exmining the syntti monoid. It is notied tht in this nonil epter ll sttes re finls nd there is no suh f x F A nd q Q suh tht T(q,x) 0 ut T(q 0,x) = 0. The next step is to determine whether the right nnihiltion ondition is stisfied with the help of Cyley tle. For exmple in the Cyley tle, the -row is ll the elements tht re in the right idel generted y, F 1 A = {,,0}. The elements in those olumns orresponding to 0s form the set RA() = {,,,}. The right nnihilting ondition requires tht w xf A, RA(x) RA(w). From the tle it is esy to verify tht RA() = {,,,,,}, whih is superset of RA(). Sine RA(0) = F A, it likewise follows tht RA() RA(0). The right nnihiltion ondition for other elements n e verified in the sme mnner nd it n e shown this syntti monoid is right-nnhilting. Now onsider the lnguge L = {w : w = 1} (Figure 1). L is not SP euse it does not stisfy the wholly nonzero ondition. The element is not in the lnguge ut it is not zero in its syntti semigroup. ForthelngugeL = C()inFigure2,thoughitstisfiesthewhollynonzero ondition, the right nnihilting ondition is violted. Oserve tht = 0 nd PR(). If L were right nnihilting then RA() RA(). However, = 0 nd thus the right nnihilting ondition is not met. Therefore, L = C() is not SP. 5.2 Finding the shortest foridden susequenes The following proedure Find-ssq tkes the syntti monoid of SP lnguge s input nd finds the finite set of shortest foridden susequenes whih desrie the SP lnguge. In order to link the syntti monoid nd the length of foridden susequenes, the monoid grph is employed. In MG(F A ), the set of the shortest pths tht led to 0 of F A form the set P(F A ).

11 Find-ssq egins with the syntti monoid for some L SP nd k = Clulte the set of sets of k-susequenes: P k (P(F A )) def = { {P k (p)} : p P(F A ) }. 2. Find ll singleton sets in P k (P(F A )) nd onstrut the set FS k, whih is the set of hypothesized foridden susequenes of length k. This set is formed y tking the union of the singleton sets in P k (P(F A )). If there is no singleton set found, updte k y one nd return to step Verify whether eh set P P k ( P(FA ) ) hs nonempty intersetion with FS k. If every set P does then FS k is set of foridden sequenes whih n define L nd L is Stritly k-pieewise. Otherwise, updte k y one nd return to step 1. Theorem 6. Find-ssq termintes t the shortest k for L SP. Proof. Suppose this k is not the shortest one for the SP lnguge L, nd there exists k > k suh tht L SP k. This mens tht there exists t lest one pth p P(F A ), with p > k, suh tht P k (p ) P k (L) nd P k (p ) P k (L) =, for some k > k. The ft tht P k (p ) P k (L) implies tht v P k (p ), v L, whih is gurnteed y the syntti monoid of L eing wholly nonzero. However, if the lgorithm does not terminte t k ensures tht there exists t lest one element h P k (p ) with h FS k. Sine FS k is the set of ll pths of length k tht led to 0, h / L. This ontrdits the previous sttement tht v P k (p ), v L. Therefore, no suh p exists nd thus the lgorithm termintes t the shortest k for the stritly pieewise lnguge L. We illustrte this lgorithm with the utomton in Figure 3, ssuming it hs lredy een verified with DSP tht it desries n SP lnguge. We refer to the monoid in Figure 3 with F A. The set of the shortest pths whih led to 0 is P(F A ) = {,,,,,,,,,,,,,,}. 1. For k = 1, ll sets in P =1 (P(F A )) re not singleton. Therefore, inrese k y For k = 2, P =2 (P(F A )) = { {},{},{,,},{,,},{,,}, {,},{,,},{,,},{,},{,,,,,},{,,,, },{,,,,,},{,,,},{,,,} }. The singleton sets re {},{} nd thus FS 2 = {,}. It is esy to verify tht for ll P P =2 (P(F A )), P hs nonempty intersetion with FS 2. The lgorithm termintes nd outputs {, }}, whih re the foridden susequenes whih desrie this lnguge. In sum, this proedure tells us tht this lnguge is SP for k = 2. Together DSP nd Find-ssq provide mens to hek whether regulr lnguge is SP, nd if it is to find the finite set of the shortest foridden susequenes. Wht is the time omplexity for DSP nd Find-ssq? Letting n e the size of the syntti monoid, the wholly nonzero ondition n e heked with time

12 O(n) nd right nnihilting ondition runs in time O(n 2 ). Thus DSP runs in O(n 2 ). Find-ssq runs t time O ( p rd(σ) ), where p is the totl numer of pths tht leds to 0. Holzer studies the size of the syntti monoid s nturl mesure of desriptive omplexity for regulr lnguges [8]. 6 Conlusion Stritly Pieewise lnguges re wholly nonzero nd right nnihilting. The wholly nonzero property is shred y the Stritly Lol lnguges nd provides definition for the Strit spet, independent of the reltion to the Testle lsses. Also, the lgeri hrteriztion for SP provides polynomil-time deision proedure for regulr lnguge in the size of its syntti monoid. This pper lso leves open some interesting questions. In prtiulr, we would like to know whether every wholly nonzero, J-trivil lnguge is right nnihilting. Referenes 1. Anderson, J.A.: Automt Theory with Modern Applitions. Cmridge University Press (2006) 2. Clifford, A.: The Algeri Theory of Semigroups. Amerin Mthemtil Soiety, Providene (1967) 3. Grí, P., Ruiz, J.: Lerning k-testle nd k-pieewise testle lnguges from positive dt. Grmmrs 7, (2004) 4. Green, J.A.: On the struture of semigroups. The Annls of Mthemtis 54(1), pp (1951) 5. Hines, L.H.: On free moniods prtilly ordered y emedding. Journl of Comintoril Theory 6, (1969) 6. Heinz, J.: Lerning long-distne phonottis. Linguisti Inquiry 41(4), (2010) 7. Higmn, G.: Ordering y divisiility in strt lgers. Proeedings of the London Mthemtil Soiety 3(2), (1952) 8. Holzer, M., König, B.: Regulr lnguges, sizes of syntti monoids, grph olouring, stte omplexity results, nd how these topis re relted to eh other. EATCS Bulletin 83, (June 2004) 9. Hoproft, J.E.: An n log n lgorithm for minimizing sttes in finite utomton. Teh. rep., Stnford, CA, USA (1971) 10. MNughton, R., Ppert, S.: Counter-Free Automt. MIT Press (1971) 11. Pin, J.É., et A. Slom (éd.), G.R.: Syntti semigroups, vol. 1. Springer Verlg (1997) 12. Rogers, J., Heinz, J., Biley, G., Edlefsen, M., Vissher, M., Wellome, D., Wiel, S.: On lnguges pieewise testle in the strit sense. In: Eert, C., Jäger, G., Mihelis, J. (eds.) The Mthemtis of Lnguge. Leture Notes in Artifil Intelligene, vol. 6149, pp Springer (2010) 13. Simon, I.: Pieewise testle events. In: Automt Theory nd Forml Lnguges, pp (1975) 14. Thierrin, G.: Convex lnguges. In: ICALP 72. pp (1972) 15. Wtne, T., Nkmur, A.: On the trnsformtion semigroups of finite utomt. Journl of Computer nd System Sienes 26(1), (1983)

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6 CS311 Computtionl Strutures Regulr Lnguges nd Regulr Grmmrs Leture 6 1 Wht we know so fr: RLs re losed under produt, union nd * Every RL n e written s RE, nd every RE represents RL Every RL n e reognized

More information

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution Tehnishe Universität Münhen Winter term 29/ I7 Prof. J. Esprz / J. Křetínský / M. Luttenerger. Ferur 2 Solution Automt nd Forml Lnguges Homework 2 Due 5..29. Exerise 2. Let A e the following finite utomton:

More information

CS 573 Automata Theory and Formal Languages

CS 573 Automata Theory and Formal Languages Non-determinism Automt Theory nd Forml Lnguges Professor Leslie Lnder Leture # 3 Septemer 6, 2 To hieve our gol, we need the onept of Non-deterministi Finite Automton with -moves (NFA) An NFA is tuple

More information

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

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS The University of ottinghm SCHOOL OF COMPUTR SCIC A LVL 2 MODUL, SPRIG SMSTR 2015 2016 MACHIS AD THIR LAGUAGS ASWRS Time llowed TWO hours Cndidtes my omplete the front over of their nswer ook nd sign their

More information

Nondeterministic Finite Automata

Nondeterministic Finite Automata Nondeterministi Finite utomt The Power of Guessing Tuesdy, Otoer 4, 2 Reding: Sipser.2 (first prt); Stoughton 3.3 3.5 S235 Lnguges nd utomt eprtment of omputer Siene Wellesley ollege Finite utomton (F)

More information

Nondeterministic Automata vs Deterministic Automata

Nondeterministic Automata vs Deterministic Automata Nondeterministi Automt vs Deterministi Automt We lerned tht NFA is onvenient model for showing the reltionships mong regulr grmmrs, FA, nd regulr expressions, nd designing them. However, we know tht n

More information

= state, a = reading and q j

= state, a = reading and q j 4 Finite Automt CHAPTER 2 Finite Automt (FA) (i) Derterministi Finite Automt (DFA) A DFA, M Q, q,, F, Where, Q = set of sttes (finite) q Q = the strt/initil stte = input lphet (finite) (use only those

More information

NON-DETERMINISTIC FSA

NON-DETERMINISTIC FSA Tw o types of non-determinism: NON-DETERMINISTIC FS () Multiple strt-sttes; strt-sttes S Q. The lnguge L(M) ={x:x tkes M from some strt-stte to some finl-stte nd ll of x is proessed}. The string x = is

More information

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

The Word Problem in Quandles

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

More information

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

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

A Lower Bound for the Length of a Partial Transversal in a Latin Square, Revised Version

A Lower Bound for the Length of a Partial Transversal in a Latin Square, Revised Version A Lower Bound for the Length of Prtil Trnsversl in Ltin Squre, Revised Version Pooy Htmi nd Peter W. Shor Deprtment of Mthemtil Sienes, Shrif University of Tehnology, P.O.Bo 11365-9415, Tehrn, Irn Deprtment

More information

Descriptional Complexity of Non-Unary Self-Verifying Symmetric Difference Automata

Descriptional Complexity of Non-Unary Self-Verifying Symmetric Difference Automata Desriptionl Complexity of Non-Unry Self-Verifying Symmetri Differene Automt Lurette Mris 1,2 nd Lynette vn Zijl 1 1 Deprtment of Computer Siene, Stellenosh University, South Afri 2 Merk Institute, CSIR,

More information

Compression of Palindromes and Regularity.

Compression of Palindromes and Regularity. Compression of Plinromes n Regulrity. Kyoko Shikishim-Tsuji Center for Lierl Arts Eution n Reserh Tenri University 1 Introution In [1], property of likstrem t t view of tse is isusse n it is shown tht

More information

Hybrid Systems Modeling, Analysis and Control

Hybrid Systems Modeling, Analysis and Control Hyrid Systems Modeling, Anlysis nd Control Rdu Grosu Vienn University of Tehnology Leture 5 Finite Automt s Liner Systems Oservility, Rehility nd More Miniml DFA re Not Miniml NFA (Arnold, Diky nd Nivt

More information

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides. 1 PYTHAGORAS THEOREM 1 1 Pythgors Theorem In this setion we will present geometri proof of the fmous theorem of Pythgors. Given right ngled tringle, the squre of the hypotenuse is equl to the sum of the

More information

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

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

More information

On Implicative and Strong Implicative Filters of Lattice Wajsberg Algebras

On Implicative and Strong Implicative Filters of Lattice Wajsberg Algebras Glol Journl of Mthemtil Sienes: Theory nd Prtil. ISSN 974-32 Volume 9, Numer 3 (27), pp. 387-397 Interntionl Reserh Pulition House http://www.irphouse.om On Implitive nd Strong Implitive Filters of Lttie

More information

Finite State Automata and Determinisation

Finite State Automata and Determinisation Finite Stte Automt nd Deterministion Tim Dworn Jnury, 2016 Lnguges fs nf re df Deterministion 2 Outline 1 Lnguges 2 Finite Stte Automt (fs) 3 Non-deterministi Finite Stte Automt (nf) 4 Regulr Expressions

More information

Regular languages refresher

Regular languages refresher Regulr lnguges refresher 1 Regulr lnguges refresher Forml lnguges Alphet = finite set of letters Word = sequene of letter Lnguge = set of words Regulr lnguges defined equivlently y Regulr expressions Finite-stte

More information

Chapter 3. Vector Spaces. 3.1 Images and Image Arithmetic

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

More information

Matrices SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics (c) 1. Definition of a Matrix

Matrices SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics (c) 1. Definition of a Matrix tries Definition of tri mtri is regulr rry of numers enlosed inside rkets SCHOOL OF ENGINEERING & UIL ENVIRONEN Emple he following re ll mtries: ), ) 9, themtis ), d) tries Definition of tri Size of tri

More information

Prefix-Free Regular-Expression Matching

Prefix-Free Regular-Expression Matching Prefix-Free Regulr-Expression Mthing Yo-Su Hn, Yjun Wng nd Derik Wood Deprtment of Computer Siene HKUST Prefix-Free Regulr-Expression Mthing p.1/15 Pttern Mthing Given pttern P nd text T, find ll sustrings

More information

CS 491G Combinatorial Optimization Lecture Notes

CS 491G Combinatorial Optimization Lecture Notes CS 491G Comintoril Optimiztion Leture Notes Dvi Owen July 30, August 1 1 Mthings Figure 1: two possile mthings in simple grph. Definition 1 Given grph G = V, E, mthing is olletion of eges M suh tht e i,

More information

Bisimulation, Games & Hennessy Milner logic

Bisimulation, Games & Hennessy Milner logic Bisimultion, Gmes & Hennessy Milner logi Leture 1 of Modelli Mtemtii dei Proessi Conorrenti Pweł Soboiński Univeristy of Southmpton, UK Bisimultion, Gmes & Hennessy Milner logi p.1/32 Clssil lnguge theory

More information

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite!

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite! Solutions for HW9 Exerise 28. () Drw C 6, W 6 K 6, n K 5,3. C 6 : W 6 : K 6 : K 5,3 : () Whih of the following re iprtite? Justify your nswer. Biprtite: put the re verties in V 1 n the lk in V 2. Biprtite:

More information

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

Compiler Design. Spring Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz University of Southern Cliforni Computer Siene Deprtment Compiler Design Spring 7 Lexil Anlysis Smple Exerises nd Solutions Prof. Pedro C. Diniz USC / Informtion Sienes Institute 47 Admirlty Wy, Suite

More information

Part 4. Integration (with Proofs)

Part 4. Integration (with Proofs) Prt 4. Integrtion (with Proofs) 4.1 Definition Definition A prtition P of [, b] is finite set of points {x 0, x 1,..., x n } with = x 0 < x 1

More information

Introduction to Olympiad Inequalities

Introduction to Olympiad Inequalities Introdution to Olympid Inequlities Edutionl Studies Progrm HSSP Msshusetts Institute of Tehnology Snj Simonovikj Spring 207 Contents Wrm up nd Am-Gm inequlity 2. Elementry inequlities......................

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

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

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

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

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs Isomorphism of Grphs Definition The simple grphs G 1 = (V 1, E 1 ) n G = (V, E ) re isomorphi if there is ijetion (n oneto-one n onto funtion) f from V 1 to V with the property tht n re jent in G 1 if

More information

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

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

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

ON LEFT(RIGHT) SEMI-REGULAR AND g-reguar po-semigroups. Sang Keun Lee

ON LEFT(RIGHT) SEMI-REGULAR AND g-reguar po-semigroups. Sang Keun Lee Kngweon-Kyungki Mth. Jour. 10 (2002), No. 2, pp. 117 122 ON LEFT(RIGHT) SEMI-REGULAR AND g-reguar po-semigroups Sng Keun Lee Astrt. In this pper, we give some properties of left(right) semi-regulr nd g-regulr

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

Discrete Structures Lecture 11

Discrete Structures Lecture 11 Introdution Good morning. In this setion we study funtions. A funtion is mpping from one set to nother set or, perhps, from one set to itself. We study the properties of funtions. A mpping my not e funtion.

More information

Lecture Notes No. 10

Lecture Notes No. 10 2.6 System Identifition, Estimtion, nd Lerning Leture otes o. Mrh 3, 26 6 Model Struture of Liner ime Invrint Systems 6. Model Struture In representing dynmil system, the first step is to find n pproprite

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

Test Generation from Timed Input Output Automata

Test Generation from Timed Input Output Automata Chpter 8 Test Genertion from Timed Input Output Automt The purpose of this hpter is to introdue tehniques for the genertion of test dt from models of softwre sed on vrints of timed utomt. The tests generted

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

2.4 Theoretical Foundations

2.4 Theoretical Foundations 2 Progrmming Lnguge Syntx 2.4 Theoretil Fountions As note in the min text, snners n prsers re se on the finite utomt n pushown utomt tht form the ottom two levels of the Chomsky lnguge hierrhy. At eh level

More information

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

Myhill-Nerode Theorem

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

More information

Mid-Term Examination - Spring 2014 Mathematical Programming with Applications to Economics Total Score: 45; Time: 3 hours

Mid-Term Examination - Spring 2014 Mathematical Programming with Applications to Economics Total Score: 45; Time: 3 hours Mi-Term Exmintion - Spring 0 Mthemtil Progrmming with Applitions to Eonomis Totl Sore: 5; Time: hours. Let G = (N, E) e irete grph. Define the inegree of vertex i N s the numer of eges tht re oming into

More information

Project 6: Minigoals Towards Simplifying and Rewriting Expressions

Project 6: Minigoals Towards Simplifying and Rewriting Expressions MAT 51 Wldis Projet 6: Minigols Towrds Simplifying nd Rewriting Expressions The distriutive property nd like terms You hve proly lerned in previous lsses out dding like terms ut one prolem with the wy

More information

Linear Algebra Introduction

Linear Algebra Introduction Introdution Wht is Liner Alger out? Liner Alger is rnh of mthemtis whih emerged yers k nd ws one of the pioneer rnhes of mthemtis Though, initilly it strted with solving of the simple liner eqution x +

More information

Algorithms & Data Structures Homework 8 HS 18 Exercise Class (Room & TA): Submitted by: Peer Feedback by: Points:

Algorithms & Data Structures Homework 8 HS 18 Exercise Class (Room & TA): Submitted by: Peer Feedback by: Points: Eidgenössishe Tehnishe Hohshule Zürih Eole polytehnique fédérle de Zurih Politenio federle di Zurigo Federl Institute of Tehnology t Zurih Deprtement of Computer Siene. Novemer 0 Mrkus Püshel, Dvid Steurer

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

6.5 Improper integrals

6.5 Improper integrals Eerpt from "Clulus" 3 AoPS In. www.rtofprolemsolving.om 6.5. IMPROPER INTEGRALS 6.5 Improper integrls As we ve seen, we use the definite integrl R f to ompute the re of the region under the grph of y =

More information

Learning Subregular Classes of Languages with Factored Deterministic Automata

Learning Subregular Classes of Languages with Factored Deterministic Automata Lerning Suregulr Clsses of Lnguges with Ftored Deterministi Automt Jeffrey Heinz Dept. of Linguistis nd Cognitive Siene University of Delwre heinz@udel.edu Jmes Rogers Dept. of Computer Siene Erlhm College

More information

LIP. Laboratoire de l Informatique du Parallélisme. Ecole Normale Supérieure de Lyon

LIP. Laboratoire de l Informatique du Parallélisme. Ecole Normale Supérieure de Lyon LIP Lortoire de l Informtique du Prllélisme Eole Normle Supérieure de Lyon Institut IMAG Unité de reherhe ssoiée u CNRS n 1398 One-wy Cellulr Automt on Cyley Grphs Zsuzsnn Rok Mrs 1993 Reserh Report N

More information

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b CS 294-2 9/11/04 Quntum Ciruit Model, Solovy-Kitev Theorem, BQP Fll 2004 Leture 4 1 Quntum Ciruit Model 1.1 Clssil Ciruits - Universl Gte Sets A lssil iruit implements multi-output oolen funtion f : {0,1}

More information

THE PYTHAGOREAN THEOREM

THE PYTHAGOREAN THEOREM THE PYTHAGOREAN THEOREM The Pythgoren Theorem is one of the most well-known nd widely used theorems in mthemtis. We will first look t n informl investigtion of the Pythgoren Theorem, nd then pply this

More information

Lesson 2: The Pythagorean Theorem and Similar Triangles. A Brief Review of the Pythagorean Theorem.

Lesson 2: The Pythagorean Theorem and Similar Triangles. A Brief Review of the Pythagorean Theorem. 27 Lesson 2: The Pythgoren Theorem nd Similr Tringles A Brief Review of the Pythgoren Theorem. Rell tht n ngle whih mesures 90º is lled right ngle. If one of the ngles of tringle is right ngle, then we

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

Learning Subregular Classes of Languages with Factored Deterministic Automata

Learning Subregular Classes of Languages with Factored Deterministic Automata Lerning Suregulr Clsses of Lnguges with Ftored Deterministi Automt Astrt This pper shows how ftored finitestte representtions of suregulr lnguge lsses re identifile in the limit from positive dt y lerners

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

Intermediate Math Circles Wednesday 17 October 2012 Geometry II: Side Lengths

Intermediate Math Circles Wednesday 17 October 2012 Geometry II: Side Lengths Intermedite Mth Cirles Wednesdy 17 Otoer 01 Geometry II: Side Lengths Lst week we disussed vrious ngle properties. As we progressed through the evening, we proved mny results. This week, we will look t

More information

Chapter 4 State-Space Planning

Chapter 4 State-Space Planning Leture slides for Automted Plnning: Theory nd Prtie Chpter 4 Stte-Spe Plnning Dn S. Nu CMSC 722, AI Plnning University of Mrylnd, Spring 2008 1 Motivtion Nerly ll plnning proedures re serh proedures Different

More information

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

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

Let's start with an example:

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

More information

@#? Text Search ] { "!" Nondeterministic Finite Automata. Transformation NFA to DFA and Simulation of NFA. Text Search Using Automata

@#? Text Search ] { ! Nondeterministic Finite Automata. Transformation NFA to DFA and Simulation of NFA. Text Search Using Automata g Text Serh @#? ~ Mrko Berezovský Rdek Mřík PAL 0 Nondeterministi Finite Automt n Trnsformtion NFA to DFA nd Simultion of NFA f Text Serh Using Automt A B R Power of Nondeterministi Approh u j Regulr Expression

More information

A Study on the Properties of Rational Triangles

A Study on the Properties of Rational Triangles Interntionl Journl of Mthemtis Reserh. ISSN 0976-5840 Volume 6, Numer (04), pp. 8-9 Interntionl Reserh Pulition House http://www.irphouse.om Study on the Properties of Rtionl Tringles M. Q. lm, M.R. Hssn

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

ILLUSTRATING THE EXTENSION OF A SPECIAL PROPERTY OF CUBIC POLYNOMIALS TO NTH DEGREE POLYNOMIALS

ILLUSTRATING THE EXTENSION OF A SPECIAL PROPERTY OF CUBIC POLYNOMIALS TO NTH DEGREE POLYNOMIALS ILLUSTRATING THE EXTENSION OF A SPECIAL PROPERTY OF CUBIC POLYNOMIALS TO NTH DEGREE POLYNOMIALS Dvid Miller West Virgini University P.O. BOX 6310 30 Armstrong Hll Morgntown, WV 6506 millerd@mth.wvu.edu

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

arxiv: v1 [math.ca] 21 Aug 2018

arxiv: v1 [math.ca] 21 Aug 2018 rxiv:1808.07159v1 [mth.ca] 1 Aug 018 Clulus on Dul Rel Numbers Keqin Liu Deprtment of Mthemtis The University of British Columbi Vnouver, BC Cnd, V6T 1Z Augest, 018 Abstrt We present the bsi theory of

More information

Logic Synthesis and Verification

Logic Synthesis and Verification Logi Synthesis nd Verifition SOPs nd Inompletely Speified Funtions Jie-Hong Rolnd Jing 江介宏 Deprtment of Eletril Engineering Ntionl Tiwn University Fll 2010 Reding: Logi Synthesis in Nutshell Setion 2 most

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 1 - Introduction and Basic Facts about PDEs

Lecture 1 - Introduction and Basic Facts about PDEs * 18.15 - Introdution to PDEs, Fll 004 Prof. Gigliol Stffilni Leture 1 - Introdution nd Bsi Fts bout PDEs The Content of the Course Definition of Prtil Differentil Eqution (PDE) Liner PDEs VVVVVVVVVVVVVVVVVVVV

More information

System Validation (IN4387) November 2, 2012, 14:00-17:00

System Validation (IN4387) November 2, 2012, 14:00-17:00 System Vlidtion (IN4387) Novemer 2, 2012, 14:00-17:00 Importnt Notes. The exmintion omprises 5 question in 4 pges. Give omplete explntion nd do not onfine yourself to giving the finl nswer. Good luk! Exerise

More information

Petri Nets. Rebecca Albrecht. Seminar: Automata Theory Chair of Software Engeneering

Petri Nets. Rebecca Albrecht. Seminar: Automata Theory Chair of Software Engeneering Petri Nets Ree Alreht Seminr: Automt Theory Chir of Softwre Engeneering Overview 1. Motivtion: Why not just using finite utomt for everything? Wht re Petri Nets nd when do we use them? 2. Introdution:

More information

Arrow s Impossibility Theorem

Arrow s Impossibility Theorem Rep Voting Prdoxes Properties Arrow s Theorem Arrow s Impossiility Theorem Leture 12 Arrow s Impossiility Theorem Leture 12, Slide 1 Rep Voting Prdoxes Properties Arrow s Theorem Leture Overview 1 Rep

More information

QUADRATIC EQUATION. Contents

QUADRATIC EQUATION. Contents QUADRATIC EQUATION Contents Topi Pge No. Theory 0-04 Exerise - 05-09 Exerise - 09-3 Exerise - 3 4-5 Exerise - 4 6 Answer Key 7-8 Syllus Qudrti equtions with rel oeffiients, reltions etween roots nd oeffiients,

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

12.4 Similarity in Right Triangles

12.4 Similarity in Right Triangles Nme lss Dte 12.4 Similrit in Right Tringles Essentil Question: How does the ltitude to the hpotenuse of right tringle help ou use similr right tringles to solve prolems? Eplore Identifing Similrit in Right

More information

nd edges. Eh edge hs either one endpoint: end(e) = fxg in whih se e is termed loop t vertex x, or two endpoints: end(e) = fx; yg in whih se e is terme

nd edges. Eh edge hs either one endpoint: end(e) = fxg in whih se e is termed loop t vertex x, or two endpoints: end(e) = fx; yg in whih se e is terme Theory of Regions Eri Bdouel nd Philippe Drondeu Iris, Cmpus de Beulieu, F-35042 Rennes Cedex, Frne E-mil : feri.bdouel,philippe.drondeug@iris.fr Astrt. The synthesis prolem for nets onsists in deiding

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

Pre-Lie algebras, rooted trees and related algebraic structures

Pre-Lie algebras, rooted trees and related algebraic structures Pre-Lie lgers, rooted trees nd relted lgeri strutures Mrh 23, 2004 Definition 1 A pre-lie lger is vetor spe W with mp : W W W suh tht (x y) z x (y z) = (x z) y x (z y). (1) Exmple 2 All ssoitive lgers

More information

TOPIC: LINEAR ALGEBRA MATRICES

TOPIC: LINEAR ALGEBRA MATRICES Interntionl Blurete LECTUE NOTES for FUTHE MATHEMATICS Dr TOPIC: LINEA ALGEBA MATICES. DEFINITION OF A MATIX MATIX OPEATIONS.. THE DETEMINANT deta THE INVESE A -... SYSTEMS OF LINEA EQUATIONS. 8. THE AUGMENTED

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

Necessary and sucient conditions for some two. Abstract. Further we show that the necessary conditions for the existence of an OD(44 s 1 s 2 )

Necessary and sucient conditions for some two. Abstract. Further we show that the necessary conditions for the existence of an OD(44 s 1 s 2 ) Neessry n suient onitions for some two vrile orthogonl esigns in orer 44 C. Koukouvinos, M. Mitrouli y, n Jennifer Seerry z Deite to Professor Anne Penfol Street Astrt We give new lgorithm whih llows us

More information

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

Symmetrical Components 1

Symmetrical Components 1 Symmetril Components. Introdution These notes should e red together with Setion. of your text. When performing stedy-stte nlysis of high voltge trnsmission systems, we mke use of the per-phse equivlent

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

CS375: Logic and Theory of Computing

CS375: Logic and Theory of Computing CS375: Logic nd Theory of Computing Fuhu (Frnk) Cheng Deprtment of Computer Science University of Kentucky 1 Tle of Contents: Week 1: Preliminries (set lger, reltions, functions) (red Chpters 1-4) Weeks

More information

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

Exercise sheet 6: Solutions

Exercise sheet 6: Solutions Eerise sheet 6: Solutions Cvet emptor: These re merel etended hints, rther thn omplete solutions. 1. If grph G hs hromti numer k > 1, prove tht its verte set n e prtitioned into two nonempt sets V 1 nd

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

s the set of onsequenes. Skeptil onsequenes re more roust in the sense tht they hold in ll possile relities desried y defult theory. All its desirle p

s the set of onsequenes. Skeptil onsequenes re more roust in the sense tht they hold in ll possile relities desried y defult theory. All its desirle p Skeptil Rtionl Extensions Artur Mikitiuk nd Miros lw Truszzynski University of Kentuky, Deprtment of Computer Siene, Lexington, KY 40506{0046, frtur mirekg@s.engr.uky.edu Astrt. In this pper we propose

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

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS CS 310 (sec 20) - Winter 2003 - Finl Exm (solutions) SOLUTIONS 1. (Logic) Use truth tles to prove the following logicl equivlences: () p q (p p) (q q) () p q (p q) (p q) () p q p q p p q q (q q) (p p)

More information

Figure 1. The left-handed and right-handed trefoils

Figure 1. The left-handed and right-handed trefoils The Knot Group A knot is n emedding of the irle into R 3 (or S 3 ), k : S 1 R 3. We shll ssume our knots re tme, mening the emedding n e extended to solid torus, K : S 1 D 2 R 3. The imge is lled tuulr

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