Around Context-Free Grammars - a Normal Form, a Representation Theorem, and a Regular Approximation arxiv: v1 [cs.

Size: px
Start display at page:

Download "Around Context-Free Grammars - a Normal Form, a Representation Theorem, and a Regular Approximation arxiv: v1 [cs."

Transcription

1 Around Context-Free Grammars - a Norma Form, a Representaton Theorem, and a Reguar Approxmaton arxv: v1 [cs.fl] 31 Dec 2015 Lana Coocaru Schoo of Informaton Scences, Computer Scence Unversty of Tampere Lana.Coocaru@uta.f Abstract We ntroduce a norma form for context-free grammars, caed Dyck norma form. Ths s a syntactca restrcton of the Chomsky norma form, n whch the two nontermnas occurrng on the rght-hand sde of a rue are pared nontermnas. Ths parwse property aows to defne a homomorphsm from Dyck words to words generated by a grammar n Dyck norma form. We prove that for each context-free anguage L, there exst an nteger K and a homomorphsm ϕ such that L = ϕ(d K ), where D K D K, and D K s the one-sded Dyck anguage over K etters. Through a transton-ke dagram for a context-free grammar n Dyck norma form, we effectvey bud a reguar anguage R such that D K = R D K, whch eads to the Chomsky-Schützenberger theorem. Usng graphca approaches we refne R such that the Chomsky-Schützenberger theorem st hods. Based on ths readustment we sketch a transton dagram for a reguar grammar that generates a reguar superset approxmaton for the nta context-free anguage. Keywords: near anguages, context-free anguages, Dyck anguages, Chomsky norma form, Dyck norma form, Chomsky-Schützenberger theorem, reguar approxmaton Introducton A norma form for context-free grammars conssts of restrctons mposed on the structure of grammar s productons. These restrctons concern the number of termnas and nontermnas aowed on the rght-hand sdes of the rues, or on the manner n whch termnas and nontermnas are arranged nto the rues. Norma forms turned out to be usefu toos n studyng syntactca propertes of context-free grammars, n parsng theory, structura and descrptona compexty, nference and earnng theory. Varous norma forms for contextfree grammars have been study so far, but the most mportant reman the Chomsky norma form [17], Grebach norma form [12], and operator norma form [17]. For defntons, resuts, and surveys on norma forms the reader s referred to [5], [17], and [20]. A norma form s correct f t preserves the anguage generated by the orgna grammar. Ths condton s caed the weak equvaence,.e., a norma form preserves the anguage but may ose mportant syntactca or semantca propertes of the orgna grammar. The more syntactca, semantca, or ambguty propertes a norma form preserves, the stronger t s. It s we known that the Chomsky norma form s a strong norma form.

2 Ths paper s party devoted to a new norma form for context-free grammars, caed Dyck norma form. The Dyck norma form s a syntactca restrcton of the Chomsky norma form, n whch the two nontermnas occurrng on the rght-hand sde of a rue are pared nontermnas, n the sense that each eft (rght) nontermna of a par has a unque rght (eft) parwse. Ths parwse property mposed on the structure of the rght-hand sde of each rue nduces a nested structure on the dervaton tree of each word generated by a grammar n Dyck norma form. More precsey, each dervaton tree of a word generated by a grammar n Dyck norma form, that s read n the depth-frst search order s a Dyck word, hence the name of the norma form. Furthermore, there exsts aways a homomorphsm between the dervaton tree of a word generated by a grammar n Chomsky norma form and ts equvaent n Dyck norma form. In other words the Chomsky and Dyck norma forms are strongy equvaent. Ths property, aong wth severa other termna rewrtng condtons mposed to a grammar n Dyck norma form, enabe us to defne a homomorphsm from Dyck words to words generated by a grammar n Dyck norma form. We have been nspred to deveop ths norma form by the genera theory of Dyck words and Dyck anguages, that turned out to pay a cruca roe n the descrpton and characterzaton of context-free anguages [9], [10], and [19]. The defnton and severa propertes of grammars n Dyck norma form are presented n Secton 1. For each context-free grammar G n Dyck norma form we defne, n Secton 2, the trace anguage assocated wth dervatons n G, whch s the set of a dervaton trees of G read n the depth-frst search order, startng from the grammar axom. By expotng the Dyck norma form, and severa characterzatons of Dyck anguages presented n [19], we gve a new characterzaton of context-free anguages n terms of Dyck anguages. We prove (aso n Secton 2) that for each context-free anguage L, generated by a grammar G n Dyck norma form, there exst an nteger K and a homomorphsm ϕ such that L = ϕ(d K ), where D K (a subset of the Dyck anguage over K etters) equas, wth very tte exceptons, the trace anguage assocated wth G. In Secton 3 we show that the representaton theorem n Secton 2 emerges, through a transton-ke dagram for context-free grammars n Dyck norma form, to the Chomsky- Schützenberger theorem. By mprovng ths transton dagram, n Secton 4 we refne the reguar anguage provded by the Chomsky-Schützenberger theorem, whe n Secton 5 we show that the refned graphca representaton of dervatons n a context-free grammar n Dyck norma form, used n the prevous sectons, provdes a framework for a reguar grammar that generates a reguar superset approxmaton for the nta context-free anguage. The method used throughout ths paper s graph-constructve, n the sense that t suppes a graphca nterpretaton of the Chomsky-Schützenberger theorem, and consequenty t shows how to graphcay bud a reguar anguage (as mnma as possbe) that satsfes ths theorem. Even f we reach the same famous Chomsky-Schützenberger theorem, the method used to approach t s dfferent from the other methods known n the terature. In bref, the method n [17] s based on pushdown approaches, whe that n [11] uses some knd of magnary brackets that smuate the work of a pushdown store, when dervng a context-free anguage. The method presented n [1] uses equatons on anguages and agebraca approaches to derve severa types of Dyck anguage generators for context-free anguages. In a these works, the Dyck anguage s somehow hdden behnd the derva- 2

3 tve structure of the context-free anguage (suppementary brackets are needed to derve a Dyck anguage generator for a context-free anguage). The Dyck anguage provded n ths paper s merey found through a parwse-renamng procedure of the nontermnas n the orgna context-free grammar. Hence, t es nsde the context-free grammar t descrbes. Each method used n the terature to prove the Chomsky-Schützenberger theorem provdes ts own reguar anguage. Our am s to fnd a thner reguar anguage that satsfes the Chomsky-Schützenberger theorem (wth respect to the method hereby used) and approachng ths anguage to bud a reguar superset approxmaton for context-free anguages (key to be as thner as possbe). Note that the concept of a thner (mnma) reguar anguage, for the Chomsky-Schützenberger theorem and for the reguar superset approxmaton s reatve, n the sense that t depends on the structure of the grammar n Dyck norma form used to generate the orgna context-free anguage. In [2], [14], [15], and [16] t s proved that there s no agorthm that buds, for an arbtrary context-free anguage L, the mnma context-free grammar that generates L, where the mnmaty of a context-free grammar s consdered, n prncpa, wth respect to descrptona measures such as number of nontermnas, rues, and oops (.e., grammatca eves [14], encountered durng dervatons n a context-free grammar). Consequenty, there s no agorthm to bud a mnma reguar superset approxmaton for an arbtrary context-free anguage. Attempts to fnd optma reguar superset (subsets) approxmatons for context-free anguages can be found n [4], [6], [21], and [23]. In Sectons 3, 4, and 5 we aso ustrate, through severa exampes, the manner n whch the reguar anguages provded by the Chomsky-Schützenberger theorem and by the reguar approxmaton can be but, wth regards to the method proposed n ths paper. 1 Dyck Norma Form We assume the reader to be famar wth the basc notons of forma anguage theory [17]. For an aphabet X, X denotes the free monod generated by X. By x a we denote the number of occurrences of the etter a n the strng x X, whe x s the ength of x V. We denote by λ the empty strng. If X s a fnte set, then X s the cardnaty of X. Defnton 1.1. A context-free grammar 1 G = (N, T, P, S) s sad to be n Dyck norma form f t satsfes the foowng condtons: 1. G s n Chomsky norma form, 2. f A a P, A N, A S, a T, then no other rue n P rewrtes A, 3. for each A N such that X AB P (X BA P ) there s no other rue n P of the form X B A (X AB ), 4. for each rues X AB, X A B (X AB, X AB ), we have A = A (B = B ). 1 A context-free grammar s denoted by G = (N, T, P, S), where N and T are fnte sets of varabes and termnas, respectvey, N T =, S N T s the grammar axom, and P N (N T ) s the fnte set of productons. 3

4 Note that the reasons for whch we ntroduce the restrctons at tems 2 4, are the foowng. The condton at tem 2 aows to make a partton between those nontermnas rewrtten by nontermnas, and those nontermnas rewrtten by termnas (wth the excepton of the axom). Ths enabes, n Secton 2, to defne a homomorphsm from Dyck words to words generated by a grammar n Dyck norma form. Condtons at tems 3 and 4 aow to spt the set of nontermnas nto parwse nontermnas, and thus to ntroduce bracketed pars. The next theorem proves that the Dyck norma form s correct. Theorem 1.2. For each context-free grammar G = (N, T, P, S) there exsts a grammar G = (N, T, P, S) such that L(G) = L(G ) where G s n Dyck norma form. Proof. Suppose that G s a context-free grammar n Chomsky norma form. Otherwse, usng the agorthm descrbed n [20] we can convert G nto Chomsky norma form. To convert G from Chomsky norma form nto Dyck norma form we proceed as foows. Step 1 We check whether P contans two (or more) rues of the form A a, A b, a b. If t does, then for each rue A b, a b, a new varabe A b s ntroduced. We add the new rue A b b, and remove A b. For each rue X AB (X BA) we add the new rue X A b B (X BA b ), whe for a rue of the form X AA we add three new rues X A b A, X AA b, X A b A b, wthout removng the nta rues. We ca ths procedure an A b -termna substtuton of A. For each rue A a, a T, we check whether a rue of the form A B 1 B 2, B 1, B 2 N, exsts n P. If t does, then a new nontermna A a s ntroduced and an A a -termna substtuton of A for the rue A a s performed. Step 2 Suppose there exst two (or more) rues of the form X AB and X B A. If we have agreed on preservng ony the eft occurrences of A on the rght-hand sdes, then accordng to condton 3 of Defnton 1.1, we have to remove a rght occurrences of A. To do so we ntroduce a new nontermna Z A and a rght occurrences of A, preceded at the eft sde by Z, n the rght-hand sde of a rue, are substtuted by Z A. For each rue that rewrtes A, A Y, Y N 2 T, we add a new rue of the form Z A Y, preservng the rue A Y. We ca ths procedure an Z A-nontermna substtuton of A. Accordng to ths procedure, for the rue X B A, we ntroduce a new nontermna B A, we add the rue X B B A, and remove the rue X B A. For each rue that rewrtes A, of the form 2 A Y, Y N 2 T, we add a new rue of the form B A Y, preservng the rue A Y. Step 3 Fnay, for each two rues X AB, X A B (X BA, X BA ) wth A A, a new nontermna A B (B A ) s ntroduced to repace B from the second rue, and we perform an A B(B A )-nontermna substtuton of B,.e., we add X A A B, and remove X A B. For each rue that rewrtes B, of the form B Y, Y N 2 T, we add a new rue A B Y, preservng B Y. In the case that A occurs on the rght-hand sde of another rue, such that A matches at the rght sde wth another nontermna dfferent of A B, then the procedure descrbed above s repeated for A, too. Note that, f one of the condtons 2, 3, and 4 n Defnton 1.1, has been setted, we do not have to resove t once agan n further steps of the procedure. The new grammar G but as descrbed at steps 1, 2, and 3 has the set of nontermnas N and the set of productons P 2 Ths case deas wth the possbty of havng Y = B B A, too. 4

5 composed of a nontermnas from N and productons from P, pus/mnus a nontermnas and productons, respectvey ntroduced/removed accordng to the substtutons performed durng the above steps. Next we prove that grammars G = (N, T, P, S) n Chomsky norma form, and G = (N, T, P, S) n Dyck norma form, generate the same anguage. Consder the homomorphsm h d : N T N T defned by h d (x) = x, x T, h d (X) = X, for X N, and h d (X ) = X for X N N, X N such that X s a (transtve 3 ) X -substtuton of X, termna or not, n the above constructon of the grammar G. To prove that L(G ) L(G) we extend h d to a homomorphsm from (N T ) to (N T ) defned on the cassca concatenaton operaton. It s straghtforward to prove by nducton, that for each α G δ we have h d (α) G h d(δ). Ths mpes that for any dervaton of a word w L(G ),.e., S G w, we have h d (S) G h d(w),.e., S G w, or equvaenty, L(G ) L(G). To prove that L(G) L(G ) we make use of the CYK (Cocke-Younger-Kasam) agorthm as descrbed n [20]. Let w = a 1 a 2...a n be an arbtrary word n L(G), and V,,, {1,..., n}, be the tranguar matrx of sze n n but wth the CYK agorthm. Snce w L(G), we have S V 1n. We prove that w L(G ),.e., S V 1n, where V,,, {1,..., n} forms the tranguar matrx obtaned by appyng the CYK agorthm to w accordng to G productons. We consder two reatons ĥt (N T ) (N T ) and ĥ t N N. The frst reaton s defned by ĥt(x) = x, x T, ĥt(s) = S, f S t, t T, s a rue n G, and ĥt(x) = X, f X s a (transtve) X -termna substtuton 4 of X, and X t s a rue n G. Fnay, ĥt(x) = X f X t P, t T. The second reaton s defned as ĥ t(s) = S, ĥ t(x) = {X} {X X s a (transtve) X -nontermna substtuton of X} and ĥ t(x) = X, f there s no substtuton of X and no rue of the form X t, t T, n G. Note that ĥx(x 1 X 2 )= ĥx(x 1 ) ĥx(x 2 ), for X N, {1, 2}, x {t, t}. Usng ĥt, each rue X t n P has a correspondng set of rues {X t X ĥt(x), X t P } n P. Each rue A BC n P has a correspondng set of rues {A B C A ĥ t(a), B ĥ t(b) ĥ t (B), C ĥ t(c) ĥt(c), B and C are parwse nontermnas, A BC P } n P. Consder V = ĥt(v ) and V = ĥ t(v ), <,, {1,..., n}. We cam that V,, {1,..., n},, defnes the tranguar matrx obtaned by appyng CYK agorthm to rues that derve w n G. Frst, observe that for =, we have V = ĥt(v ) = {A A a P }, {1,..., n}, due to the defnton of ĥt. Now et us consder k =, k {1,..., n 1}. We want to compute V, <. By defnton, we have V = 1 = {A A BC, B V, C V +1 }, so that V = ĥ t (V )= ĥ t( 1 = {A A BC, B V, C V +1 })= 1 = ĥ t({a A BC, B V, C V +1 }) = 1 = {A A B C, A ĥ t(a), B ĥ t(b) ĥt(b), B V, C ĥ t(c) ĥ t (C), C V +1, B and C are parwse nontermnas, A BC P }. Let us expcty deveop the ast unon. 3 There exst X k N, such that X s an X -substtuton of X k, X k s an X k -substtuton of X k 1,..., and X 1 s an X 1-substtuton of X. A of them substtute X. 4 There may exst severa termna/nontermna substtutons for the same nontermna X. Ths makes ĥ t/ĥ t to be a reaton. 5

6 If k = 1, then {}. For each {1,..., n 1} we have V +1 = {A A B C, A ĥ t (A), B ĥ t(b) ĥt(b), B V, C ĥ t(c) ĥt(c), C V +1+1, B and C are parwse nontermnas, A BC P }. Due to the fact that B V and C V +1+1, B s a termna substtuton of B, whe C s a termna substtuton of C. Therefore, we have B / ĥ t(b), C / ĥ t(c), so that B ĥt(b), for a B V, and C ĥt(c), for a C V +1+1,.e., B ĥt(v ) = V and C ĥt(v +1+1 ) = V Therefore, V +1 = {A A B C, B V, C V +1+1 }. If k 2, then {, + 1,..., 1}, and V = 1 = {A A B C, A ĥ t(a), B ĥ t (B) ĥt(b), B V, C ĥ t(c) ĥt(c), C V +1, B and C are parwse nontermnas, A BC P }. We now compute the frst set of the above unon,.e., V = {A A B C, A ĥ t(a), B ĥ t(b) ĥt(b), B V, C ĥ t(c) ĥt(c), C V +1, B and C are parwse nontermnas, A BC P }. By the same reasonng as before, the condton B ĥ t(b) ĥt(b), B V, s equvaent wth B ĥt(v ) = V. Because + 1, C s a nontermna substtuton of C. Therefore, C / ĥt(c), and the condton C ĥ t(c) ĥt(c), C V +1 s equvaent wth C ĥ t(v +1 ) = V +1. So that V = {A A B C, B V, C V +1 }. Usng the same method for each { + 1,..., 1} we have V = {A A B C, A ĥ t(a), B ĥ t(b) ĥt(b), B V, C ĥ t(c) ĥ t (C), C V +1, B and C are parwse nontermnas, A BC P } = {A A B C, B V, C V +1 }. In concuson, V = 1 = {A A B C, B V, C V +1 }, for each, {1,..., n},.e., V,, contans the nontermnas of the n n tranguar matrx computed by appyng the CYK agorthm to rues that derve w n G. Because w L(G), we have S V 1n. That s equvaent wth S V 1n = ĥt(v 1n ), f n = 1, and S V 1n = ĥ t(v 1n ), f n > 1,.e., w L(G ). Coroary 1.3. Let G be a context-free grammar n Dyck norma form. dervaton n G producng a word of ength n, n 1, takes 2n 1 steps. Any termna Proof. If G s a context-free grammar n Dyck norma form, then t s aso n Chomsky norma form, and a propertes of the atter hod. Coroary 1.4. If G = (N, T, P, S) s a grammar n Chomsky norma form, and G = (N, T, P, S) ts equvaent n Dyck norma form, then there exsts a homomorphsm h d : N T N T, such that any dervaton tree of w L(G) s the homomorphc mage of a dervaton tree of the same word n G. Proof. Consder the homomorphsm h d : N T N T defned as h d (A t ) = h d ( Z A) = h d (A Z ) = A, for each A t -termna or Z A(A Z )-nontermna substtuton of A, and h d (t) = t, t T. The cam s a drect consequence of the way n whch the new nontermnas A t, Z A, and A Z have been chosen. Note that, due to the parwse-renamng procedure used to reach the Dyck norma form, t may appear that a context-free grammar n Dyck norma form s more ambguous than the orgna grammar n Chomsky norma form. However, ths s reatve. The dervaton trees of a certan word have the same structure n both grammars, n Chomsky norma form 6

7 and Dyck norma form (ony some abes of the nodes n these trees dffer). The apparent ambguty can be resoved through the homomorphsm h d consdered n Coroary 1.4. Let G be a grammar n Dyck norma form. To emphass the parwse brackets occurrng on the rght-hand sde of a rue, and aso to make the connecton wth the Dyck anguage, each par (A, B), such that there exsts a rue of the form X AB, s repaced by an ndexed par of brackets [, ]. In each rue that rewrtes A and B, we repace A by [, and B by ], respectvey. Next we present an exampe of the converson procedure descrbed n the proof of Theorem 1.2 aong wth the homomorphsm consdered n Coroary 1.4. Exampe 1.5. Consder the context-free grammar n Chomsky norma form G=({E 0, E, E 1, E 2, T, T 1, T 2, R}, {+,, a}, E 0, P ), where P = {E 0 a/t T 1 /EE 1, E a/t T 1 /EE 1, T a/t T 1, T 1 T 2 R, E 1 E 2 T, T 2, E 2 +, R a}. To convert G nto Dyck norma form, wth respect to Defnton 1.1, tem 2, we frst remove E a and T a. Then, accordng to tem 3, we remove the rght occurrence of T from the rue E 1 E 2 T, aong wth other transformatons that may be requred after competng these procedures. Let E 3 and T 3 be two new nontermnas. We remove E a and T a, and add the rues E 3 a, T 3 a, E 0 E 3 E 1, E 0 T 3 T 1, E E 3 E 1, E T 3 T 1, E 1 E 2 T 3, T T 3 T 1. Let T be the new nontermna that repaces the rght occurrence of T. We add the rues E 1 E 2 T, T T T 1, T T 3 T 1, and remove E 1 E 2 T. We repeat the procedure wth T 3 (added n the prevous step),.e., we ntroduce a new nontermna T 4, remove E 1 E 2 T 3, add E 1 E 2 T 4 and T 4 a. Due to the new nontermnas E 3, T 3, T 4, tem 4 does not hod. To have accompshed ths condton, we ntroduce three new nontermnas E 4 to repace E 2 n E 1 E 2 T 4, E 5 to repace E 1 n E 0 E 3 E 1 and E E 3 E 1, and T 5 to repace T 1 n E 0 T 3 T 1 and E T 3 T 1. We remove a the above rues and add the new rues E 1 E 4 T 4, E 4 +, E 0 E 3 E 5, E E 3 E 5, E 5 E 2 T, E 5 E 4 T 4, E 0 T 3 T 5, E T 3 T 5, and T 5 T 2 R. The Dyck norma form of G, n bracketed notaton, s G = ({E 0, [ 1, [ 2,..., [ 7, ] 1, ] 2,..., ] 7 }, {+,, a}, E 0, P ), P ={E 0 a/[ 1 ] 1 /[ 2 ] 2 /[ 3 ] 3 /[ 4 ] 4, [ 1 [ 1 ] 1 /[ 4 ] 4, [ 2 [ 1 ] 1 /[ 2 ] 2 /[ 3 ] 3 /[ 4 ] 4, ] 1 [ 7 ] 7, ] 2 [ 5 ] 5 /[ 6 ] 6, ] 3 [ 5 ] 5 /[ 6 ] 6, ] 4 [ 7 ] 7, ] 5 [ 1 ] 1 /[ 4 ] 4, [ 3 a, [ 4 a, [ 5 +, [ 6 +, ] 6 a, [ 7, ] 7 a}, where ([ T, ] T1 ) = ([ 1, ] 1 ), ([ E, ] E1 ) = ([ 2, ] 2 ), ([ E3, ] E5 ) = ([ 3, ] 3 ), ([ T3, ] T5 ) = ([ 4, ] 4 ), ([ E2, ] T ) = ([ 5, ] 5 ), ([ E4, ] T4 ) = ([ 6, ] 6 ), ([ T2, ] R ) = ([ 7, ] 7 ). The homomorphsm h d s defned as h d : N T N T, h d (E 0 ) = E 0, h d ([ 2 ) = h d ([ 3 ) = E, h d (] 2 ) = h d (] 3 ) = E 1, h d ([ 5 ) = h d ([ 6 ) = E 2, h d ([ 1 ) = h d (] 5 ) = h d ([ 4 ) = h d (] 6 ) = T, h d (] 1 ) = h d (] 4 ) = T 1, h d ([ 7 ) = T 2, h d (] 7 ) = R, h d (t) = t, for each t T. The strng w = a a a + a s a word n L(G ) = L(G) generated, for nstance, by a eftmost dervaton D n G as foows. D : E 0 [ 2 ] 2 [ 1 ] 1 ] 2 [ 4 ] 4 ] 1 ] 2 a ] 4 ] 1 ] 2 a [ 7 ] 7 ] 1 ] 2 a ] 7 ] 1 ] 2 a a ] 1 ] 2 a a [ 7 ] 7 ] 2 a a ] 7 ] 2 a a a ] 2 a a a [ 6 ] 6 a a a + ] 6 a a a + a. Appyng h d to D, n G, we obtan a dervaton of w n G. If we consder T the dervaton tree of w n G, and T the dervaton tree of w n G, then T s the homomorphc mage of T through h d. 7

8 2 Characterzatons of Context-Free Languages by Dyck Languages Defnton 2.1. Let G k = (N k, T, P k, S) be a context-free grammar n Dyck norma form wth N k {S} = 2k. Let D : S u 1 u 2... u 2n 1 = w, n 2, be a eftmost dervaton of w L(G). The trace-word of w assocated wth the dervaton D, denoted as t w,d, s defned as the concatenaton of nontermnas consecutvey rewrtten n D, excudng the axom. The trace-anguage assocated wth G k, denoted by L(G k ), s L(G k ) = {t w,d for any w L(G k ), and any eftmost dervaton D of w}. Note that t w,d, w L(G), can aso be read from the dervaton tree n the depthfrst search order startng wth the root, but gnorng the root and the eaves. The traceword assocated wth w and the eftmost dervaton D n Exampe 2.5 s t a a a+a,d = [ E [ T [ T3 ] T5 [ T2 ] R ] T1 [ T2 ] R ] E1 [ E4 ] T4. Defnton 2.2. A one-sded Dyck anguage over k etters, k 1, s a context-free anguage defned by the grammar Γ k = ({S}, T k, P, S), where T k = {[ 1, [ 2,..., [ k, ] 1, ] 2,..., ] k } and P = {S [ S ], S SS, S [ ] 1 k}. Let G k = (N k, T, P k, S) be a context-free grammar n Dyck norma form. To emphasze possbe reatons between the structure of trace-words n L(G k ) and the structure of words n the Dyck anguage, and aso to keep contro of each bracketed par occurrng on the rght-hand sde of each rue n G k, we fx N k = {S, [ 1, [ 2,..., [ k, ] 1, ] 2,..., ] k }, and P k to be composed of rues of the forms X [ ], 1 k, and Y t, X, Y N k, t T. From [19] we have adopted the next characterzatons of D k, k 1, (Defnton 2.3, and Lemmas 2.4 and 2.5). Defnton 2.3. For a strng w, et w : be ts substrng startng at the th poston and endng at the th poston. Let h be a homomorphsm defned as foows: h([ 1 ) = h([ 2 ) =... = h([ k ) = [ 1, h(] 1 ) = h(] 2 ) =... = h(] k ) =] 1. Let w D k, 1 w, where w s the ength of w. We say that (, ) s a matched par of w, f h(w : ) s baanced,.e., h(w : ) has an equa number of [ 1 s and ] 1 s and, n any prefx of h(w : ), the number of [ 1 s s greater than or equa to the number of ] 1 s. Lemma 2.4. A strng w {[ 1, ] 1 } s n D 1 f and ony f t s baanced. Consder the homomorphsms defned as foows (where λ s the empty strng) h 1 ([ 1 ) = [ 1, h 1 (] 1 ) =] 1, h 1 ([ 2 ) = h 1 (] 2 ) =... = h 1 ([ k ) = h 1 (] k ) = λ, h 2 ([ 2 ) = [ 1, h 2 (] 2 ) =] 1, h 2 ([ 1 ) = h 2 (] 1 ) =... = h 2 ([ k ) = h 2 (] k ) = λ,..... h k ([ k ) = [ 1, h k (] k ) =] 1, h k ([ 1 ) = h k (] 1 ) =... = h k ([ k 1 ) = h k (] k 1 ) = λ. Lemma 2.5. We have w D k, k 2, f and ony f the foowng condtons hod: ) (1, w ) s a matched par, and ) for a matched pars (, ), h k (w : ) are n D 1, where k 1. Defnton 2.6. Let w D k, (, ) s a nested par of w f (, ) s a matched par, and ether = + 1, or ( + 1, 1) s a matched par. 8

9 Defnton 2.7. Let w D k and (, ) be a matched par of w. We say that (, ) s reducbe f there exsts an nteger, < <, such that (, ) and ( + 1, ) are matched pars. Let w D k, f (, ) s a nested par of w then (, ) s an rreducbe par. If (, ) s a nested par of w then ( + 1, 1) may be a reducbe par. Theorem 2.8. The trace-anguage assocated wth a context-free grammar, G = (N k, T, P k, S) n Dyck norma form, wth N k = 2k + 1, s a subset of D k. Proof. Let N k = {S, [ 1,..., [ k, ] 1,..., ] k } be the set of nontermnas, w L(G), and D a eftmost dervaton of w. We show that any subtree of the dervaton tree, read n the depth-frst search order, by gnorng the root and the termna nodes, corresponds to a matched par n t w,d. In partcuar, (1, t w,d ) w be a matched par. Denote by t w,d: the substrng of t w,d startng at the th poston and endng at the th poston of t w,d. We show that for a matched pars (, ), h k (t w,d: ) beong to D 1, 1 k k. We prove these cams by nducton on the heght of subtrees. Bass. Certany, any subtree of heght n = 1, read n the depth-frst search order, ooks ke [ ], 1 k. Therefore, t satsfes the above condtons. Inducton step. Assume that the cam s true for a subtrees of heght, < n, and we prove t for = n. Each subtree of heght n can have one of the foowng structures. The eve 0 of the subtree s marked by a eft or rght bracket. Ths bracket w not be consdered when we read the subtree. Denote by [ m the eft son of the root. Then the rght son s abeed by ] m. They are the roots of a eft and rght subtree, for whch at east one has the heght n 1. Suppose that both subtrees have the heght 1 n 1. By the nducton hypothess, et us further suppose that the eft subtree corresponds to the matched par (, ), and the rght subtree corresponds to the matched par ( r, r ), r = +2, because the poston +1 s taken by ] m. As h s a homomorphsm, we have h(t w,d 1: r ) = h([ m t w,d : ] m t w,d +2: r ) = h([ m )h(t w,d : )h(] m )h(t w,d +2: r ). Therefore, h(t w,d 1: r ) satsfes a condtons n Defnton 2.3, and thus ( 1, r ) that corresponds to the consdered subtree of heght n, s a matched par. By the nducton hypothess, h k (t w,d : ) and h k (t w,dr:r ) are n D 1, 1 k k. Hence, h k (t w,d 1: r ) = h k ([ m )h k (t w,d : )h k (] m )h k (t w,d +2: r ) {h k (t w,d : )h k (t w,d +2: r ), [ 1 h k (t w,d : )] 1 h k (t w,d +2: r )} beong to D 1, 1 k k. Note that n ths case the matched par ( 1, r ) s reducbe nto ( 1, + 1) and ( + 2, r ), where ( 1, + 1) corresponds to the substrng t w,d 1: +1 = [ mt w,d : ] m. We refer to ths structure as the eft embedded subtree,.e., ( 1, + 1) s a nested par. A smar reasonng s apped for the case when one of the subtrees has the heght 0. Anaogousy, t can be shown that the nta tree corresponds to the matched par (1, t w,d ),.e., the frst condton of Lemma 2.5 hods. So far, we have proved that each subtree of the dervaton tree, and aso each eft embedded subtree, corresponds to a matched par (, ) and (, ), such that h k (t w,d: ) and h k ([ m t w,d : ] m ), 1 k k, are n D 1. Next we show that a matched pars from t w,d correspond ony to subtrees, or eft embedded subtrees, from the dervaton tree. To derve a contradcton, et us suppose that there exsts a matched par (, ) n t w,d, that does not correspond to any subtree, or eft 9

10 embedded subtree, of the dervaton tree read n the depth-frst search order. We show that ths eads to a contradcton. Snce (, ) does not correspond to any subtree, or eft embedded subtree, there exst two adacent subtrees θ 1 (a eft embedded subtree) and θ 2 (a rght subtree) such that (, ) s composed of two adacent subparts of θ 1 and θ 2. In terms of matched pars, f θ 1 corresponds to the matched par ( 1, 1 ) and θ 2 corresponds to the matched par ( 2, 2 ), such that 2 = 1 + 2, then there exsts a suffx s 1 1: 1 +1 of t w,d1 1: 1 +1, and a prefx p 2 : 2 of t w,d2 : 2, such that t w,d: = s 1 1: 1 +1p 2 : 2. Furthermore, wthout oss of generaty, we assume that ( 1, 1 ) and ( 2, 2 ) are nested pars. Otherwse, the matched par (, ) can be narrowed unt θ 1 and θ 2 are characterzed by two nested pars. If ( 1, 1 ) s a nested par, then so s ( 1 1, 1 + 1). As s 1 1: 1 +1 s a suffx of t w,d1 1: 1 +1 and ( 1 1, 1 + 1) s a matched par, wth respect to Defnton 2.3, the number of ] 1 s n h(s 1 1: 1 +1) s greater than or equa to the number of [ 1 s n h(s 1 1: 1 +1). On the other hand, s 1 1: 1 +1 s aso a prefx of t w,d:, because (, ) s a matched par, by the nducton hypothess. Therefore, the number of [ 1 s n h(s 1 1: 1 +1) s greater than or equa to the number of ] 1 s n h(s 1 1: 1 +1). Hence, the ony possbty for s 1 1: 1 +1 to be, n the same tme, a suffx for t w,d1 1: 1 +1 and a prefx for t w,d:, s the equaty between the number of [ 1 s and ] 1 s n h(s 1 1: 1 +1). Ths property hods f and ony f s 1 1: 1 +1 corresponds to a matched par n t w,d1 1: 1 +1,.e., f s and s are the start and the end postons of s 1 1: 1 +1 n t w,d1 1: 1 +1, then ( s, s ) s a matched par. Thus, ( 1 1, 1 + 1) s a reducbe par nto ( 1 1, s 1) and ( s, s ), where s = We have reached a contradcton,.e., ( 1 1, 1 + 1) s reducbe. Therefore, the matched pars n t w,d correspond to subtrees, or eft embedded subtrees, n the dervaton tree. For these matched pars we have aready proved that they satsfy Lemma 2.5. Accordngy, t w,d D k, and consequenty the trace-anguage assocated wth G s a subset of D k. Theorem 2.9. Gven a context-free grammar G there exst an nteger K, a homomorphsm ϕ, and a subset D K of the Dyck anguage D K, such that L(G) = ϕ(d K ). Proof. Let G be a context-free grammar and G k = (N k, T, P k, S) be the Dyck norma form of G, such that N k = {S, [ 1,..., [ k, ] 1,..., ] k }. Let L(G k ) be the trace-anguage assocated wth G k. Consder {t k+1,..., t k+p } the ordered subset of T, such that S t k+ P, 1 p. We defne N k+p = N k {[ tk+1,..., [ tk+p, ] tk+1,...] tk+p }, and P k+p = P k {S [ tk+ ] tk+, [ tk+ t k+, ] tk+ λ S t k+ P, 1 p}. The new grammar G k+p = (N k+p, T, P k+p, S) generates the same anguage as G k. Let ϕ: (N k+p {S}) T be the homomorphsm defned by ϕ(n) = λ, for each rue of the form N XY, N, X, Y N k {S}, and ϕ(n) = t, for each rue of the form N t, N N k {S}, and t T, ϕ([ k+ ) = t k+, and ϕ(] k+ ) = λ, for each 1 p. Obvousy, L = ϕ(d K ), where K = k + p, D K = L(G k) L p, and L p = {[ tk+1 ] tk+1,..., [ tk+p ] tk+p }. In the seque, grammar G k+p s caed the extended grammar of G k. G k has an extended grammar f and ony f G k (or G) has rues of the form S t, t T {λ}. If G k does not have an extended grammar then D K = D k = L(G k). 10

11 3 On the Chomsky-Schützenberger Theorem Let G k = (N k, T, P k, S) be an arbtrary context-free grammar n Dyck norma form, wth N k = {S, [ 1,..., [ k, ] 1,..., ] k }. and ϕ: (N k {S}) T the restrcton of the homomorphsm ϕ n the proof of Theorem 2.9. We dvde N k nto three man sets N (1), N (2), N (3) as foows: 1. [ and ] beong to N (1) f and ony f ϕ([ ) = t and ϕ(] ) = t, t, t T, 2. [ and ] beong to N (2) f and ony f ϕ([ ) = t and ϕ(] ) = λ, or vce versa ϕ([ ) = λ and ϕ(] ) = t, t T, 3. [, ] N (3) f and ony ϕ([ ) = λ and ϕ(] ) = λ. Certany, N k {S} = N (1) N (2) N (3) and N (1) N (2) N (3) =. N (2) s further dvded nto N (2) and N r (2), where N (2) contans those pars [, ] N (2) such that ϕ([ ) λ, whe N r (2) contans those pars [, ] N (2) such that ϕ(] ) λ. Defnton 3.1. A grammar G k s n near-dyck norma form f G k s n Dyck norma form and N (3) =. Theorem 3.2. For each near grammar G, there exts a grammar G k n near-dyck norma form such that L(G) = L(G k ), and vce versa. Proof. Each near grammar G, n standard form, s composed of rues of the forms X λ, X t, X t 1 Y, X Y t 2, X t 1 Y t 2, t, t 1, t 2 T, X, Y N. Transformng G nto Chomsky norma form, and then nto the Dyck norma form, we obtan a grammar G k n near-dyck norma form. Snce the standard form for near anguages, Chomsky norma form, and Dyck norma form are weaky equvaent we obtan L(G) = L(G k ). The converse statement s trva. Next we consder more cosey the structures of the dervaton trees assocated wth words generated by near and context-free grammars n near-dyck norma form and Dyck norma form, respectvey. We are nterested on the structure of the trace-words assocated wth words generated by these grammars. Let G k = (N k, T, P k, S) be an arbtrary (near) context-free grammar n (near-)dyck norma form, and L(G k ) the anguage generated by ths grammar. Let w L(G k ), D a eftmost dervaton of w, and t w,d the trace-word of w assocated wth D. From the structure of the dervaton tree, read n the depth-frst search order, t s easy to observe that each bracket [, such that [, ] N (1), s mmedatey foowed, n t w,d by ts parwse ]. The same property hods for those pars [, ] N (2). If [, ] N r (2) N (3) then the par [, ] shoud embed a eft subtree,.e., the case of the eft embedded subtree n the proof of Theorem 2.8. In ths case the bracket [ may have a eft, ong dstance, pacement from ts parwse ], n t w,d. Suppose that G k s a near grammar n near-dyck norma form,.e., N (3) =, such that N (2) and N r (2). Each word w = a 1 a 2...a n L(G k ), of an arbtrary ength n, has the property that there exsts an ndex n t, 1 n t n 1, and a unque par 5 5 To emphasze whch of the brackets n the par ([, ] ) produces a termna, we aso use the notaton [, ] t f and ony f [, ] N r (2),, ] f and ony f [, ] N (2), and, ] t f and ony f [, ] N (1). 11

12 [ t, ]t N (1), such that [ t a n t and ] t a n t+1. Usng the homomorphsm ϕ n Theorem 2.9, we have ϕ([ t ) = a n t and ϕ(] t ) = a n t+1. For the poston n t aready marked, there s no other poston n w wth the above property. We ca [ t ]t the core segment of the trace-word t w,d. Trace-words of words generated by context-free grammars n Dyck norma form have more than one core segment. Each core segment nduces n a trace-word (both for near and context-free anguages) a symmetrca dstrbuton of rght brackets n N r (2) N (3) (aways paced at the rght sde of the core segment) accordng to eft brackets n N r (2) N (3) (aways paced at the eft sde of the respectve core). The structure of the trace-word of a word w L(G k ), for a grammar G k n near-dyck norma form, s depcted n (1), where by vertca nes we emphasze the mage through the homomorphsm ϕ of each bracket occurrng n t w,d. [ 1... [ k1 [ 1 ] 1 [ k [ k2 [ 2 ] 2... [ nt ] 1 nt [ 1 knt [ 1 knt t w,d = λ... λ a 1 λ λ... λ a 2 λ... a nt 1 λ λ λ [ t nt ] t nt ] knt... ]... ] knt 1 k2... ] k1... ] (1) a nt a nt+1 a nt+2... a n knt 1... k a n k2 k a n k a n Next our am s to fnd a connecton between Theorem 2.9 and the Chomsky-Schützenberger theorem. More precsey we want to compute, from the structure of trace-words, the reguar and the Dyck anguages yeded by the Chomsky-Schützenberger theorem. Therefore, we bud a transton-ke dagram for context-free grammars n Dyck norma form. Frst we bud some drected graphs as foows. Constructon 3.3. Let G k = (N k, T, P k, S) be an arbtrary context-free grammar n Dyck norma form. A dependency graph of G k s a drected graph G X = (V X, E X ), X {] [, ] N (3) } {S}, n whch vertces are abeed wth varabes n Ñk {X}, Ñ k = {[ [, ] N (1) N r (2) N (3) } {] [, ] N (2) } and the set of edges s but as foows. For each rue X [ ] P k, [, ] N (2), G X contans a drected edge from X to ], for each rue X [ ] P k, [, ] N (1) N r (2) N (3), G X contans a drected edge from X to [. There exsts an edge n G X from a vertex abeed by [, [, ] N r (2) N (3), to a vertex abeed by ] /[ k, [, ] N (2), [ k, ] k N (1) N r (2) N (3), f there exsts a rue n P k of the form [ [ ] /[ [ k ] k. There exsts an edge n G X from a vertex abeed by ], [, ] N (2), to a vertex abeed by ] /[ k, [, ] N (2), [ k, ] k N (1) N r (2) N (3), f there exsts a rue n P k of the form ] [ ] /] [ k ] k. The vertex abeed by X s caed the nta vertex of G X. Any vertex abeed by a eft bracket n N (1) s a fna vertex. Let G X be a dependency graph of G k. Consder the set of a possbe paths n G X startng from the nta vertex to a fna vertex. Such a path s caed termna path. A oop or cyce n a graph s a path from v to v composed of dstnct vertces. If from v to v there s no other vertex, then the oop s a sef-oop. The cyce rank of a graph s a measure 12

13 of the oop compexty formay defned 6 and studed n [3] and [7]. In [7] t s proved that from each two vertces u and v beongng to a dgraph of cyce rank k, there exsts a reguar expresson of star-heght 7 at most k that descrbes the set of paths from u to v. On the other hand, the cyce rank of a dgraph wth n vertces s upper bounded by n og n [13]. Hence any reguar expresson obtaned from a dgraph wth n vertces has the star-heght at most n og n. Consequenty, the (nfnte) set of paths from an nta vertex to a fna vertex n G X, can be dvded nto a fnte number of casses of termna paths. Paths beongng to the same cass are characterzed by the same reguar expresson, n terms of and + Keene operatons, of star-heght at most V X og V X (whch s fnte reated to the engths of strngs n L(G k )). Denote by R X the set of a reguar expressons over [ t Ñk {X} that can be read n G X, startng from the nta vertex X and endng n the fna vertex. The cardnaty of RX s fnte. Defne the homomorphsm h G : Ñ k {X} {] [, ] N r (2) N (3) } {λ} such that h G ([ ) =] for any [, ] N r (2) N (3), h G (X) = h G ( ) = h G(] ) = λ, for any, ]t N (1) and [, ] N (2). For any eement r.e (,X) R X we bud a new reguar expresson 8 r.e (r,x) h r G (r.e(,x) ), where h r [ t G s the mrror mage of h G. Consder r.e X certan X and, denote by R.eX the set of a reguar expressons r.e X Furthermore, R.e X =,]t N (1) R.eX = r.e (,X) and R.e = R.e S ( [,] N (3) R.e] ). = r.e (r,x). For a obtaned as above. Constructon 3.4. Let G k = (N k, T, P k, S) be a context-free grammar n Dyck norma form and {G X X {] [, ] N (3) {S}}} the set of dependency graphs of G k. The extended dependency graph of G k, denoted by G e = (V e, E e ), s a drected graph for whch V e = Ñk {S} {] [, ] N r (2) N (3) }, S s the nta vertex of G e and E e s but as foows: 1. - S[ (S] ) - there exsts an edge n G e from the vertex abeed by S to a vertex abeed by [ (from S to ] ), [, ] N (1) N r (2) N (3) ([, ] N (2) ), f there exsts a reguar expresson n R.e S wth a prefx of the form S[ (S], respectvey) ] ] - there exsts an edge n G e from a vertex abeed by ] to a vertex abeed by ] [, ], [, ] N (2), f there exsts a reguar expresson n R.e havng a substrng of the form ] ] (f = then ] ] forms a sef-oop n G e ) ] [ (or [ ] ) - there exsts an edge n G e from a vertex abeed by ] to a vertex abeed by [ (or vce versa from [ to ] ) such that [, ] N (2) and [, ] N r (2) N (3), f there exsts a reguar expresson n R.e havng a substrng of the form ] [ ([ ], respectvey) [ [ - there exsts an edge n G e from a vertex abeed by [ to a vertex abeed by [, [, ], [, ] N r (2) N (3), f there exsts a reguar expresson n R.e havng a substrng of the 6 In bref, the rank of a cyce C s 1 f there exsts v C such that C v s not a cyce. Recursvey, the rank of a cyce C s k f there exsts v C such that C v contan a cyce of rank k 1 and a the other cyces n C v have the rank at most k 1. 7 Informay, ths s the (maxma) power of a nested -oop occurrng n the descrpton of a reguar expresson. For the forma defnton the reader s referred to [7] and [18] (see aso Defnton 4.1, Secton 4). 8 Snce reguar anguages are cosed under homomorphsm and reverse operaton, r.e (r,x) s a reguar expresson. 13

14 form [ [ (f = then [ [ forms a sef-oop n G e ) ] [ t (or [ [ t ) - there exsts an edge n G e from a vertex abeed by ] (or by [ ) to a vertex abeed by [ t, [, ] N (2) (or [, ] N r (2), respectvey), [ t, ]t N (1), f there exsts a reguar expresson n R.e wth a substrng of the form ] [ t ([ [ t, respectvey) ] - there exsts an edge n G e from a vertex abeed by ] to a vertex abeed by, [, ] N (3),, ]t N (1), f there exsts a reguar expresson n R.e ] of the form ] [ t ] [ (or ] ] ) - there exsts an edge n G e from a vertex abeed by ] to a vertex abeed by [, [, ] N (3), [, ] N r (2) ([, ] N (2), respectvey), f there exsts a reguar expresson n R.e ] wth a prefx of the form ] [ (] ], respectvey) ] ] - there exsts an edge n G e from a vertex ] to a vertex abeed by ], and not necessary dstnct, such that [, ] N r (2), [, ] N r (2) N (3), f ether.,., or. hods:. there exsts at east one reguar expresson n R.e havng a substrng of the form ] ] (f = then ] ] forms a sef-oop n G e ),. there exsts [ k, ] k N (3) such that there exst a reguar expresson n R.e wth a substrng of the form ] k ], and a reguar expresson n R.e ] k that ends n ] (f = then ] ] s a sef-oop).. there exst [ k, ] k, [ k1, ] k1,..., [ km, ] km N (3) such that there exst a reguar expresson n R.e wth a substrng of the form ] k ], a reguar expresson n R.e ] k that ends n ] k1, a reguar expresson n R.e ] k 1 that ends n ] k2, and so on, unt a reguar expresson n R.e ] k m 1 endng n ] km and a reguar expresson n R.e ] km endng n ] are reached ] - there exsts an edge n G e from a vertex abeed by, [t, ]t N (1), to a vertex abeed by ], [, ] N r (2) N (3) f ether.,., or. hods. there exsts a reguar expresson n R.e havng a substrng of the form ],. there exsts [ k, ] k N (3) such that there exst a reguar expresson n R.e havng a substrng of the form ] k ], and a reguar expresson n R.e ] k that ends n [ t.. there exst [ k, ] k, [ k1, ] k1,..., [ km, ] km N (3) such that there exst a reguar expresson n R.e wth a substrng of the form ] k ], a reguar expresson n R.e ] k that ends n ] k1, a reguar expresson n R.e ] k 1 that ends n ] k2, and so on, unt a reguar expresson n R.e ] k m 1 endng n ] km and a reguar expresson n R.e ] km endng n [ t are reached A vertex abeed by, [t, ]t N (1), s a fna vertex n G e f ether.,., or. hods:. there exsts a reguar expresson n R.e S that ends n,. there exsts [ k, ] k N (3), such that there exst a reguar expresson n R.e S that ends n ] k, and a reguar expresson n R.e ] k that ends n [ t.. there exsts [ k, ] k N (3) such that there exst a reguar expresson n R.e S that ends n ] k, and [ k1, ] k1,..., [ km, ] km N (3) such that there s a reguar expresson n R.e ] k that ends n ] k1, a reguar expresson n R.e ] k 1 that ends n ] k2, and so on, unt a reguar expresson n R.e ] k m 1 endng n ]km and a reguar expresson n R.e ] km endng n [ t are reached A vertex abeed by ], [, ] N r (2), s a fna vertex n G e f ether.,., or. hods:. there exsts a reguar expresson n R.e S that ends n ], 14

15 . there exsts [ k, ] k N (3), such that there exst a reguar expresson n R.e S that ends n ] k, and a reguar expresson n R.e ] k that ends n ].. there exsts [ k, ] k N (3) such that there exst a reguar expresson n R.e S that ends n ] k, and [ k1, ] k1,..., [ km, ] km N (3) such that there exst a reguar expresson n R.e ] k endng n ] k1, a reguar expresson n R.e ] k 1 endng n ] k2, and so on, unt a reguar expresson n R.e ] k m 1 endng n ]km and a reguar expresson n R.e ] km endng n ] are reached. Denote by R e the set of a reguar expressons obtaned by readng a paths n G e from the nta vertex S to a fna vertces (.e., a termna paths). We have Theorem 3.5. (Chomsky-Schützenberger theorem) For each context-free anguage L there exst an nteger K, a reguar set R, and a homomorphsm h, such that L = h(d K R). Furthermore, f G s the context-free grammar that generates L, G k the Dyck norma form of G, and G k has no extended grammar, then K = k and D K R = L(G k ). Otherwse, there exsts p > 0 such that K = k + p, and D K R = D K, where D K s the subset of D K computed as n Theorem 2.9. Proof. Let G k = (N k, T, P k, S) be the Dyck norma form of G such that L = L(G). Suppose that G k does not have an extended grammar. Let h k : Ñ k {] [, ] N r (2) N (3) } {S} {[, ] [, ] N r (2) N (3) } {[ ] [, ] N (2) N (1) } {λ} be the homomorphsm defned by h k (S) = λ, h k ([ ) = [, h k (] ) = ] for [, ] N r (2) N (3), h k (] ) = [ ] for [, ] N (2), and h k ( ) = [t ]t for, ]t N (1). Then R = h k (R e ) s a reguar anguage such that D k R = L(G k ). To prove the ast equaty, notce that each termna path n a dependency graph G X (Constructon 3.3) provdes a strng equa to a substrng (or a prefx f X = S) of a traceword n L(G k ) (n whch eft brackets n N (2) are omtted) generated (n the eftmost dervaton order) from the dervaton tme when X s rewrtten, up to the moment when the very frst eft bracket of a par n N (1) s rewrtten. Ths strng corresponds to a reguar expresson r.e (,X) R X, whch s extended wth another reguar expresson r.e (r,x) that s the mrror mage of eft brackets n N r (2) N (3) occurrng n r.e (,X). If eft brackets n N (2) r N (3) are enroed n a star-heght, then ther homomorphc mage (through h r G ) n s another star-heght. The mrror mage of consecutve eft brackets n N r (2) (wth r.e (r,x) respect to ther reatve core) s a segment composed of consecutve rght brackets n N r (2). The mrror mage of consecutve eft brackets n N (3) s broken by the nterpoaton of a reguar expresson r.e ] n R.e ], [, ] N (3). The number of r.e ] nsertons matches the number of eft brackets [ paced at the eft sde of the reatve core (ths s assured by the ntersecton wth D k ). In fact, the extended dependency graph of G k has been conceved such that t reproduces, on reguar expressons n R e, the structure of trace-words n L(G k ). The man probem s the star-heght synchronzatons for brackets n N r (2) N (3),.e., the number of eft-brackets occurrng n a oop paced at the eft-sde of a core segment ]t, to be equa to the number of ther parwse rght-brackets occurrng n the correspondng mrror oop paced at the rght-sde of ts reatve core, ]t, [t N (1). Ths s controed 15

16 by the ntersecton of h k (R e ) wth D k, eadng to L(G k ). In few words, the proof s by the constructon descrbed n Constructon 3.4. Another probem that occurs s that the constructon of G e aows to concatenate r.e (,X) R X to ts rght parwse r.e (r,x) as we as to another reguar expresson r.e (r,x ) (whch by constructon t s aso concatenated to ts eft parwse r.e (,X ) ) where X and X are not necessary dstnct. Ths does not change the ntersecton wth the Dyck anguage, but enarges the reguar anguage R = h k (R e ) wth useess 9 words. If G k has an extended grammar G k+p = (N k+p, T, P k+p, S), but as n the proof of Theorem 2.9, then R e s augmented wth e = {S[ tk+1,..., S[ tk+p } and h k s extended to h K : Ñ k {S} {] [, ] N r (2) N (3) } {[ tk+1,..., [ tk+p } {[, ] [, ] N r (2) N (3) } {[ ] [, ] N (2) N (1) } {[ tk+1 ] tk+1,..., [ tk+p ] tk+p } {λ}, where h K (x) = h k (x), x / {[ tk+1,..., [ tk+p }, h K ([ tk+ ) = [ tk+ ] tk+, 1 p, K = k + p. L(G k ) s augmented wth L p = {[ tk+1 ] tk+1,..., [ tk+p ] tk+p } and D K = h K(R e e ) D K = L(G k ) L p. The homomorphsm h s equa to ϕ n Theorem 2.9,.e., ϕ : (N k+p {S}) T, ϕ(n) = λ, for each rue of the form N XY, N, X, Y N k, and ϕ(n) = t, for each rue of the form N t, N N k {S}, t T, ϕ([ k+ ) = t k+, and ϕ(] k+ ) = λ, for each 1 p. Note that, for the case of near anguages there s ony one dependency graph G S. The reguar anguage n the Chomsky-Schützenberger theorem can be but wthout the use of the extended dependency graph. It suffces to consder ony the reguar expressons n R.e S =,]t N (1) R.eS. If G k has an extended grammar G K, then L(G k ) = ϕ(d K h K (R.e S e )), where K = k + p, G K, e, and ϕ are defned as n Theorems 2.9 and 3.5. If G k has no extended grammar then L(G k ) = ϕ(d k h k (R.e S )). However, a graphca representaton may be consdered an nterestng common framework for both, near and context-free anguages. Beow we ustrate the manner n whch the reguar anguage n the Chomsky-Schützenberger theorem can be computed for near (Exampes 3.6) and contextfree (Exampe 3.7) anguages. Exampe 3.6. Consder the near context-free grammar G = ({S, [ 1..., [ 7, ] 1..., ] 7 }, {a, b, c, d}, S, P ) n near-dyck norma form, wth P = {S [ t 1 ] 1, ] 1 [ 2 ] t 2, [ 2 [ 3 ] t 3, [ 3 [ 2 ] t 2 /[t 4 ] 4, ] 4 [ 5 ] t 5, [ 5 [ t 6 ] 6, ] 6 [ t 1 ] 1/[ t 7 ]t 7, [t 1 a, ]t 2 b, ]t 3 c, [t 4 b, ]t 5 d, [t 6 b, [t 7 a, ]t 7 a}. The dependency graph G S and extended dependency graph G e of G are depcted n Fgure 1.a and 1.b, respectvey. There exsts ony one reguar expresson readabe from G S,.e., r.e (,S) = S(] [ t 1 ([ 2 [ 3 ) + ] 4 [ 5 ] 6 ) + [ t 7. Hence, r.es = r.e (,S) r.e (r,s) = S(] 7 [ t 7 [ t 7 [ t 1 ([ 2 [ 3 ) + ] 4 [ 5 ] 6 ) + [ t 7 (] 5(] 3 ] 2 ) + ) +. 7 The reguar anguage provded by the Chomsky-Schützenberger theorem s R = ([ 1 ] 1 ([ 2 [ 3 ) + [ 4 ] 4 [ 5 [ 6 ] 6 ) + [ t 7 ]t 7 (] 5 (] 3 ] 2 ) + ) +. Therefore, D 7 = D 7 R = {([ 1 ] 1 ([ 2 [ 3 ) n [ 4 ] 4 [ 5 [ 6 ] 6 ) m [ t 7 ]t 7 (] 5 (] 3 ] 2 ) n ) m n, m 1} = L(G k ), and L(G) = ϕ(d 7 ) = {(abb)m aa(d(cb) n ) m n, m 1} (G contans no rue of the form S t, t T ). 9 In Secton 4 we show how these unnecessary concatenatons can be avoded, through a refnement procedure of the reguar anguage n the Chomsky-Schützenberger theorem. 16

17 Fgure 1: a. The dependency graph G S of grammar G n Exampe 1. b. The extended dependency graph of G. Edges coored n orange extend G to G e. c. The transton dagram A e (see Exampe 5.1 a.) but from G e. Each bracket [ (S, ] ) n A e corresponds to state s [ (s S, s ] ). In a graphs S s the nta vertex. In a. - b. the vertex coored n bue s the fna vertex. Exampe 3.7. Consder the context-free grammar G = ({S, [ 1..., [ 7, ] 1..., ] 7 }, {a, b, c}, S, P ) n Dyck norma form wth P = {S [ 1 ] 1, [ 1 [ 5 ] t 5 /[ 1] 1, ] 1 [ 6 ] 6, [ 2 [ 6 ] 6 /[ t 7 ] 7, [ 3 [ t 7 ] 7, [ 5 [ t 4 ]t 4, [ 6 [ 3 ] t 3, ] 6 [ 2 ] t 2, ] 7 [ 3 ] t 3 /[t 4 ]t 4, ]t 2 b, ]t 3 a, [t 4 c, ]t 4 c, ]t 5 b, [t 7 a} The sets of reguar expressons and extended reguar expressons obtaned by readng G S (Fgure 2.a) are R S = {S[ + [ t 1 [ 5[ t 4 } and R.eS = R.e S = {S[ + 4 [ t 1 [ 5[ t 4 ]t 5 ]+ 1 }, respectvey. 4 The reguar expressons and extended reguar expressons readabe from G ] 1 (Fgure 2.b) are R ] 1 = {] [ t 1 [ 6 ([ 3 ] 7 ) + [ t 4 } and R.e] 1 = {] 1 [ 6 ([ 3 ] 7 ) + [ t 4 (]t 3 )+ ] 6 }, respectvey. The reguar ex- 4 pressons and extended reguar expressons obtaned by readng G ] 6 (Fgure 2.c) are R ] 6 = [ t 4 {] 6 [ 2 [ 6 ([ 3 ] 7 ) + [ t 4, ] 6[ 2 (] 7 [ 3 ) ] 7 [ t 4 } and R.e] 6 = R.e ] 6 = {] [ t 6 [ 2 [ 6 ([ 3 ] 7 ) + [ t 4 (]t 3 )+ ] 6 ] t 2, ] 6[ 2 (] 7 [ 3 ) ] 7 [ t 4 (]t 3 ) ] t 2 }, 4 respectvey. The extended dependency graph of G s sketched n Fgure 2.d. Edges n back, are but from the reguar expressons n R X, X {S, ] [ t 1, ] 6 }. Orange edges emphasze symmetrca 4 structures, but wth respect to the structure of trace-words n L(G). Some of them (e.g., ] t 2 ] 1 and ] t 2 ]t 2 ) connect reguar expressons n R e between them wth respect to the structure of trace-words n L(G) (see Constructon 3.4, tem 8). The edge ] t 2 ] 1 s added because there exsts at east one reguar expresson n R e that contans ] 1 ] 1 (e.g. S[ + 1 [ 5[ t 4 ]t 5 ]+ 1 ), a reguar that ends n ] 6 (e.g. ] 1 [ 6 ([ 3 ] 7 ) + [ t 4 (]t 3 )+ ] 6 ) and a reguar expresson n expresson n R.e ] 1 [ t 4 R.e ] 6 that ends n ] t [ t 2 (see Constructon 3.4, tem 8..). The + sef-oop ]t 2 ]t 2 s due to the 4 exstence of a reguar expresson that contans ] 6 ] t 2 (e.g. ] 6[ 2 [ 6 ([ 3 ] 7 ) + [ t 4 (]t 3 )+ ] 6 ] t 2 ) and a reguar expresson n R.e ] 6 [ t 4 that ends n ] t 2 (e.g. ] 6[ 2 [ 6 ([ 3 ] 7 ) + [ t 4 (]t 3 )+ ] 6 ] t 2 or ] 6[ 2 (] 7 [ 3 ) ] 7 [ t 4 (]t 3 ) ] t 2 ). The reguar anguage provded by the Chomsky-Schützenberger theorem s the homomorphc mage, through h k (defned n Theorem 3.5), of a reguar expressons assocated wth a paths n the extended dependency graph n Fgure 2.d, reachabe from the nta vertex S to the fna vertex abeed by ] t 2,.e., termna paths. The nterpretaton that emerges from the graphca method descrbed n ths paper s that the reguar anguage n the Chomsky-Schützenberger theorem ntersected wth a (certan) Dyck anguage sts a dervaton trees (read n the depth-frst search order) assocated wth words n a context-free grammar, n Dyck norma form or n Chomsky norma form 17

ON AUTOMATIC CONTINUITY OF DERIVATIONS FOR BANACH ALGEBRAS WITH INVOLUTION

ON AUTOMATIC CONTINUITY OF DERIVATIONS FOR BANACH ALGEBRAS WITH INVOLUTION European Journa of Mathematcs and Computer Scence Vo. No. 1, 2017 ON AUTOMATC CONTNUTY OF DERVATONS FOR BANACH ALGEBRAS WTH NVOLUTON Mohamed BELAM & Youssef T DL MATC Laboratory Hassan Unversty MORO CCO

More information

NP-Completeness : Proofs

NP-Completeness : Proofs NP-Completeness : Proofs Proof Methods A method to show a decson problem Π NP-complete s as follows. (1) Show Π NP. (2) Choose an NP-complete problem Π. (3) Show Π Π. A method to show an optmzaton problem

More information

MARKOV CHAIN AND HIDDEN MARKOV MODEL

MARKOV CHAIN AND HIDDEN MARKOV MODEL MARKOV CHAIN AND HIDDEN MARKOV MODEL JIAN ZHANG JIANZHAN@STAT.PURDUE.EDU Markov chan and hdden Markov mode are probaby the smpest modes whch can be used to mode sequenta data,.e. data sampes whch are not

More information

Quantum Runge-Lenz Vector and the Hydrogen Atom, the hidden SO(4) symmetry

Quantum Runge-Lenz Vector and the Hydrogen Atom, the hidden SO(4) symmetry Quantum Runge-Lenz ector and the Hydrogen Atom, the hdden SO(4) symmetry Pasca Szrftgser and Edgardo S. Cheb-Terrab () Laboratore PhLAM, UMR CNRS 85, Unversté Le, F-59655, France () Mapesoft Let's consder

More information

L-Edge Chromatic Number Of A Graph

L-Edge Chromatic Number Of A Graph IJISET - Internatona Journa of Innovatve Scence Engneerng & Technoogy Vo. 3 Issue 3 March 06. ISSN 348 7968 L-Edge Chromatc Number Of A Graph Dr.R.B.Gnana Joth Assocate Professor of Mathematcs V.V.Vannaperuma

More information

Affine transformations and convexity

Affine transformations and convexity Affne transformatons and convexty The purpose of ths document s to prove some basc propertes of affne transformatons nvolvng convex sets. Here are a few onlne references for background nformaton: http://math.ucr.edu/

More information

corresponding to those of Heegaard diagrams by the band moves

corresponding to those of Heegaard diagrams by the band moves Agebra transformatons of the fundamenta groups correspondng to those of Heegaard dagrams by the band moves By Shun HORIGUCHI Abstract. Ths paper gves the basc resut of [1](1997),.e., a hande sdng and a

More information

Cyclic Codes BCH Codes

Cyclic Codes BCH Codes Cycc Codes BCH Codes Gaos Feds GF m A Gaos fed of m eements can be obtaned usng the symbos 0,, á, and the eements beng 0,, á, á, á 3 m,... so that fed F* s cosed under mutpcaton wth m eements. The operator

More information

FACTORIZATION IN KRULL MONOIDS WITH INFINITE CLASS GROUP

FACTORIZATION IN KRULL MONOIDS WITH INFINITE CLASS GROUP C O L L O Q U I U M M A T H E M A T I C U M VOL. 80 1999 NO. 1 FACTORIZATION IN KRULL MONOIDS WITH INFINITE CLASS GROUP BY FLORIAN K A I N R A T H (GRAZ) Abstract. Let H be a Krull monod wth nfnte class

More information

APPENDIX A Some Linear Algebra

APPENDIX A Some Linear Algebra APPENDIX A Some Lnear Algebra The collecton of m, n matrces A.1 Matrces a 1,1,..., a 1,n A = a m,1,..., a m,n wth real elements a,j s denoted by R m,n. If n = 1 then A s called a column vector. Smlarly,

More information

Lecture 12: Discrete Laplacian

Lecture 12: Discrete Laplacian Lecture 12: Dscrete Laplacan Scrbe: Tanye Lu Our goal s to come up wth a dscrete verson of Laplacan operator for trangulated surfaces, so that we can use t n practce to solve related problems We are mostly

More information

Edge Isoperimetric Inequalities

Edge Isoperimetric Inequalities November 7, 2005 Ross M. Rchardson Edge Isopermetrc Inequaltes 1 Four Questons Recall that n the last lecture we looked at the problem of sopermetrc nequaltes n the hypercube, Q n. Our noton of boundary

More information

Volume 18 Figure 1. Notation 1. Notation 2. Observation 1. Remark 1. Remark 2. Remark 3. Remark 4. Remark 5. Remark 6. Theorem A [2]. Theorem B [2].

Volume 18 Figure 1. Notation 1. Notation 2. Observation 1. Remark 1. Remark 2. Remark 3. Remark 4. Remark 5. Remark 6. Theorem A [2]. Theorem B [2]. Bulletn of Mathematcal Scences and Applcatons Submtted: 016-04-07 ISSN: 78-9634, Vol. 18, pp 1-10 Revsed: 016-09-08 do:10.1805/www.scpress.com/bmsa.18.1 Accepted: 016-10-13 017 ScPress Ltd., Swtzerland

More information

On the set of natural numbers

On the set of natural numbers On the set of natural numbers by Jalton C. Ferrera Copyrght 2001 Jalton da Costa Ferrera Introducton The natural numbers have been understood as fnte numbers, ths wor tres to show that the natural numbers

More information

Basic Regular Expressions. Introduction. Introduction to Computability. Theory. Motivation. Lecture4: Regular Expressions

Basic Regular Expressions. Introduction. Introduction to Computability. Theory. Motivation. Lecture4: Regular Expressions Introducton to Computablty Theory Lecture: egular Expressons Prof Amos Israel Motvaton If one wants to descrbe a regular language, La, she can use the a DFA, Dor an NFA N, such L ( D = La that that Ths

More information

Lower bounds for the Crossing Number of the Cartesian Product of a Vertex-transitive Graph with a Cycle

Lower bounds for the Crossing Number of the Cartesian Product of a Vertex-transitive Graph with a Cycle Lower bounds for the Crossng Number of the Cartesan Product of a Vertex-transtve Graph wth a Cyce Junho Won MIT-PRIMES December 4, 013 Abstract. The mnmum number of crossngs for a drawngs of a gven graph

More information

Compilers. Spring term. Alfonso Ortega: Enrique Alfonseca: Chapter 4: Syntactic analysis

Compilers. Spring term. Alfonso Ortega: Enrique Alfonseca: Chapter 4: Syntactic analysis Complers Sprng term Alfonso Ortega: alfonso.ortega@uam.es nrque Alfonseca: enrque.alfonseca@uam.es Chapter : Syntactc analyss. Introducton. Bottom-up Analyss Syntax Analyser Concepts It analyses the context-ndependent

More information

COMPLEX NUMBERS AND QUADRATIC EQUATIONS

COMPLEX NUMBERS AND QUADRATIC EQUATIONS COMPLEX NUMBERS AND QUADRATIC EQUATIONS INTRODUCTION We know that x 0 for all x R e the square of a real number (whether postve, negatve or ero) s non-negatve Hence the equatons x, x, x + 7 0 etc are not

More information

Image Classification Using EM And JE algorithms

Image Classification Using EM And JE algorithms Machne earnng project report Fa, 2 Xaojn Sh, jennfer@soe Image Cassfcaton Usng EM And JE agorthms Xaojn Sh Department of Computer Engneerng, Unversty of Caforna, Santa Cruz, CA, 9564 jennfer@soe.ucsc.edu

More information

More metrics on cartesian products

More metrics on cartesian products More metrcs on cartesan products If (X, d ) are metrc spaces for 1 n, then n Secton II4 of the lecture notes we defned three metrcs on X whose underlyng topologes are the product topology The purpose of

More information

Maximizing the number of nonnegative subsets

Maximizing the number of nonnegative subsets Maxmzng the number of nonnegatve subsets Noga Alon Hao Huang December 1, 213 Abstract Gven a set of n real numbers, f the sum of elements of every subset of sze larger than k s negatve, what s the maxmum

More information

A finite difference method for heat equation in the unbounded domain

A finite difference method for heat equation in the unbounded domain Internatona Conerence on Advanced ectronc Scence and Technoogy (AST 6) A nte derence method or heat equaton n the unbounded doman a Quan Zheng and Xn Zhao Coege o Scence North Chna nversty o Technoogy

More information

Subset Topological Spaces and Kakutani s Theorem

Subset Topological Spaces and Kakutani s Theorem MOD Natural Neutrosophc Subset Topologcal Spaces and Kakutan s Theorem W. B. Vasantha Kandasamy lanthenral K Florentn Smarandache 1 Copyrght 1 by EuropaNova ASBL and the Authors Ths book can be ordered

More information

2.3 Nilpotent endomorphisms

2.3 Nilpotent endomorphisms s a block dagonal matrx, wth A Mat dm U (C) In fact, we can assume that B = B 1 B k, wth B an ordered bass of U, and that A = [f U ] B, where f U : U U s the restrcton of f to U 40 23 Nlpotent endomorphsms

More information

arxiv: v1 [math.co] 1 Mar 2014

arxiv: v1 [math.co] 1 Mar 2014 Unon-ntersectng set systems Gyula O.H. Katona and Dánel T. Nagy March 4, 014 arxv:1403.0088v1 [math.co] 1 Mar 014 Abstract Three ntersecton theorems are proved. Frst, we determne the sze of the largest

More information

The Order Relation and Trace Inequalities for. Hermitian Operators

The Order Relation and Trace Inequalities for. Hermitian Operators Internatonal Mathematcal Forum, Vol 3, 08, no, 507-57 HIKARI Ltd, wwwm-hkarcom https://doorg/0988/mf088055 The Order Relaton and Trace Inequaltes for Hermtan Operators Y Huang School of Informaton Scence

More information

12 MATH 101A: ALGEBRA I, PART C: MULTILINEAR ALGEBRA. 4. Tensor product

12 MATH 101A: ALGEBRA I, PART C: MULTILINEAR ALGEBRA. 4. Tensor product 12 MATH 101A: ALGEBRA I, PART C: MULTILINEAR ALGEBRA Here s an outlne of what I dd: (1) categorcal defnton (2) constructon (3) lst of basc propertes (4) dstrbutve property (5) rght exactness (6) localzaton

More information

LECTURE 21 Mohr s Method for Calculation of General Displacements. 1 The Reciprocal Theorem

LECTURE 21 Mohr s Method for Calculation of General Displacements. 1 The Reciprocal Theorem V. DEMENKO MECHANICS OF MATERIALS 05 LECTURE Mohr s Method for Cacuaton of Genera Dspacements The Recproca Theorem The recproca theorem s one of the genera theorems of strength of materas. It foows drect

More information

Note 2. Ling fong Li. 1 Klein Gordon Equation Probablity interpretation Solutions to Klein-Gordon Equation... 2

Note 2. Ling fong Li. 1 Klein Gordon Equation Probablity interpretation Solutions to Klein-Gordon Equation... 2 Note 2 Lng fong L Contents Ken Gordon Equaton. Probabty nterpretaton......................................2 Soutons to Ken-Gordon Equaton............................... 2 2 Drac Equaton 3 2. Probabty nterpretaton.....................................

More information

Complete subgraphs in multipartite graphs

Complete subgraphs in multipartite graphs Complete subgraphs n multpartte graphs FLORIAN PFENDER Unverstät Rostock, Insttut für Mathematk D-18057 Rostock, Germany Floran.Pfender@un-rostock.de Abstract Turán s Theorem states that every graph G

More information

Difference Equations

Difference Equations Dfference Equatons c Jan Vrbk 1 Bascs Suppose a sequence of numbers, say a 0,a 1,a,a 3,... s defned by a certan general relatonshp between, say, three consecutve values of the sequence, e.g. a + +3a +1

More information

Associative Memories

Associative Memories Assocatve Memores We consder now modes for unsupervsed earnng probems, caed auto-assocaton probems. Assocaton s the task of mappng patterns to patterns. In an assocatve memory the stmuus of an ncompete

More information

A CLASS OF RECURSIVE SETS. Florentin Smarandache University of New Mexico 200 College Road Gallup, NM 87301, USA

A CLASS OF RECURSIVE SETS. Florentin Smarandache University of New Mexico 200 College Road Gallup, NM 87301, USA A CLASS OF RECURSIVE SETS Florentn Smarandache Unversty of New Mexco 200 College Road Gallup, NM 87301, USA E-mal: smarand@unmedu In ths artcle one bulds a class of recursve sets, one establshes propertes

More information

Graph Reconstruction by Permutations

Graph Reconstruction by Permutations Graph Reconstructon by Permutatons Perre Ille and Wllam Kocay* Insttut de Mathémathques de Lumny CNRS UMR 6206 163 avenue de Lumny, Case 907 13288 Marselle Cedex 9, France e-mal: lle@ml.unv-mrs.fr Computer

More information

Research on Complex Networks Control Based on Fuzzy Integral Sliding Theory

Research on Complex Networks Control Based on Fuzzy Integral Sliding Theory Advanced Scence and Technoogy Letters Vo.83 (ISA 205), pp.60-65 http://dx.do.org/0.4257/ast.205.83.2 Research on Compex etworks Contro Based on Fuzzy Integra Sdng Theory Dongsheng Yang, Bngqng L, 2, He

More information

Foundations of Arithmetic

Foundations of Arithmetic Foundatons of Arthmetc Notaton We shall denote the sum and product of numbers n the usual notaton as a 2 + a 2 + a 3 + + a = a, a 1 a 2 a 3 a = a The notaton a b means a dvdes b,.e. ac = b where c s an

More information

Amusing Properties of Odd Numbers Derived From Valuated Binary Tree

Amusing Properties of Odd Numbers Derived From Valuated Binary Tree IOSR Journal of Mathematcs (IOSR-JM) e-iss: 78-578, p-iss: 19-765X. Volume 1, Issue 6 Ver. V (ov. - Dec.016), PP 5-57 www.osrjournals.org Amusng Propertes of Odd umbers Derved From Valuated Bnary Tree

More information

Anti-van der Waerden numbers of 3-term arithmetic progressions.

Anti-van der Waerden numbers of 3-term arithmetic progressions. Ant-van der Waerden numbers of 3-term arthmetc progressons. Zhanar Berkkyzy, Alex Schulte, and Mchael Young Aprl 24, 2016 Abstract The ant-van der Waerden number, denoted by aw([n], k), s the smallest

More information

5 The Rational Canonical Form

5 The Rational Canonical Form 5 The Ratonal Canoncal Form Here p s a monc rreducble factor of the mnmum polynomal m T and s not necessarly of degree one Let F p denote the feld constructed earler n the course, consstng of all matrces

More information

Problem Do any of the following determine homomorphisms from GL n (C) to GL n (C)?

Problem Do any of the following determine homomorphisms from GL n (C) to GL n (C)? Homework 8 solutons. Problem 16.1. Whch of the followng defne homomomorphsms from C\{0} to C\{0}? Answer. a) f 1 : z z Yes, f 1 s a homomorphsm. We have that z s the complex conjugate of z. If z 1,z 2

More information

First day August 1, Problems and Solutions

First day August 1, Problems and Solutions FOURTH INTERNATIONAL COMPETITION FOR UNIVERSITY STUDENTS IN MATHEMATICS July 30 August 4, 997, Plovdv, BULGARIA Frst day August, 997 Problems and Solutons Problem. Let {ε n } n= be a sequence of postve

More information

Week 2. This week, we covered operations on sets and cardinality.

Week 2. This week, we covered operations on sets and cardinality. Week 2 Ths week, we covered operatons on sets and cardnalty. Defnton 0.1 (Correspondence). A correspondence between two sets A and B s a set S contaned n A B = {(a, b) a A, b B}. A correspondence from

More information

Multispectral Remote Sensing Image Classification Algorithm Based on Rough Set Theory

Multispectral Remote Sensing Image Classification Algorithm Based on Rough Set Theory Proceedngs of the 2009 IEEE Internatona Conference on Systems Man and Cybernetcs San Antono TX USA - October 2009 Mutspectra Remote Sensng Image Cassfcaton Agorthm Based on Rough Set Theory Yng Wang Xaoyun

More information

Random Walks on Digraphs

Random Walks on Digraphs Random Walks on Dgraphs J. J. P. Veerman October 23, 27 Introducton Let V = {, n} be a vertex set and S a non-negatve row-stochastc matrx (.e. rows sum to ). V and S defne a dgraph G = G(V, S) and a drected

More information

Linear, affine, and convex sets and hulls In the sequel, unless otherwise specified, X will denote a real vector space.

Linear, affine, and convex sets and hulls In the sequel, unless otherwise specified, X will denote a real vector space. Lnear, affne, and convex sets and hulls In the sequel, unless otherwse specfed, X wll denote a real vector space. Lnes and segments. Gven two ponts x, y X, we defne xy = {x + t(y x) : t R} = {(1 t)x +

More information

T-structures and torsion pairs in a 2 Calabi-Yau triangulated category 1

T-structures and torsion pairs in a 2 Calabi-Yau triangulated category 1 T-structures and torson pars n a 2 Caab-Yau tranguated category 1 Yu Zhou and Bn Zhu Department of Mathematca Scences Department of Mathematca Scences Tsnghua Unversty Tsnghua Unversty 100084 Bejng, P.

More information

A combinatorial proof of multiple angle formulas involving Fibonacci and Lucas numbers

A combinatorial proof of multiple angle formulas involving Fibonacci and Lucas numbers Notes on Number Theory and Dscrete Mathematcs ISSN 1310 5132 Vol. 20, 2014, No. 5, 35 39 A combnatoral proof of multple angle formulas nvolvng Fbonacc and Lucas numbers Fernando Córes 1 and Dego Marques

More information

THE METRIC DIMENSION OF AMALGAMATION OF CYCLES

THE METRIC DIMENSION OF AMALGAMATION OF CYCLES Far East Journa of Mathematca Scences (FJMS) Voume 4 Number 00 Pages 9- Ths paper s avaabe onne at http://pphm.com/ournas/fms.htm 00 Pushpa Pubshng House THE METRIC DIMENSION OF AMALGAMATION OF CYCLES

More information

Andre Schneider P622

Andre Schneider P622 Andre Schneder P6 Probem Set #0 March, 00 Srednc 7. Suppose that we have a theory wth Negectng the hgher order terms, show that Souton Knowng β(α and γ m (α we can wrte β(α =b α O(α 3 (. γ m (α =c α O(α

More information

HMMT February 2016 February 20, 2016

HMMT February 2016 February 20, 2016 HMMT February 016 February 0, 016 Combnatorcs 1. For postve ntegers n, let S n be the set of ntegers x such that n dstnct lnes, no three concurrent, can dvde a plane nto x regons (for example, S = {3,

More information

FINITELY-GENERATED MODULES OVER A PRINCIPAL IDEAL DOMAIN

FINITELY-GENERATED MODULES OVER A PRINCIPAL IDEAL DOMAIN FINITELY-GENERTED MODULES OVER PRINCIPL IDEL DOMIN EMMNUEL KOWLSKI Throughout ths note, s a prncpal deal doman. We recall the classfcaton theorem: Theorem 1. Let M be a fntely-generated -module. (1) There

More information

Chapter 6. Rotations and Tensors

Chapter 6. Rotations and Tensors Vector Spaces n Physcs 8/6/5 Chapter 6. Rotatons and ensors here s a speca knd of near transformaton whch s used to transforms coordnates from one set of axes to another set of axes (wth the same orgn).

More information

n α j x j = 0 j=1 has a nontrivial solution. Here A is the n k matrix whose jth column is the vector for all t j=0

n α j x j = 0 j=1 has a nontrivial solution. Here A is the n k matrix whose jth column is the vector for all t j=0 MODULE 2 Topcs: Lnear ndependence, bass and dmenson We have seen that f n a set of vectors one vector s a lnear combnaton of the remanng vectors n the set then the span of the set s unchanged f that vector

More information

Smarandache-Zero Divisors in Group Rings

Smarandache-Zero Divisors in Group Rings Smarandache-Zero Dvsors n Group Rngs W.B. Vasantha and Moon K. Chetry Department of Mathematcs I.I.T Madras, Chenna The study of zero-dvsors n group rngs had become nterestng problem snce 1940 wth the

More information

SL n (F ) Equals its Own Derived Group

SL n (F ) Equals its Own Derived Group Internatonal Journal of Algebra, Vol. 2, 2008, no. 12, 585-594 SL n (F ) Equals ts Own Derved Group Jorge Macel BMCC-The Cty Unversty of New York, CUNY 199 Chambers street, New York, NY 10007, USA macel@cms.nyu.edu

More information

General viscosity iterative method for a sequence of quasi-nonexpansive mappings

General viscosity iterative method for a sequence of quasi-nonexpansive mappings Avalable onlne at www.tjnsa.com J. Nonlnear Sc. Appl. 9 (2016), 5672 5682 Research Artcle General vscosty teratve method for a sequence of quas-nonexpansve mappngs Cuje Zhang, Ynan Wang College of Scence,

More information

College of Computer & Information Science Fall 2009 Northeastern University 20 October 2009

College of Computer & Information Science Fall 2009 Northeastern University 20 October 2009 College of Computer & Informaton Scence Fall 2009 Northeastern Unversty 20 October 2009 CS7880: Algorthmc Power Tools Scrbe: Jan Wen and Laura Poplawsk Lecture Outlne: Prmal-dual schema Network Desgn:

More information

Introductory Cardinality Theory Alan Kaylor Cline

Introductory Cardinality Theory Alan Kaylor Cline Introductory Cardnalty Theory lan Kaylor Clne lthough by name the theory of set cardnalty may seem to be an offshoot of combnatorcs, the central nterest s actually nfnte sets. Combnatorcs deals wth fnte

More information

Lectures - Week 4 Matrix norms, Conditioning, Vector Spaces, Linear Independence, Spanning sets and Basis, Null space and Range of a Matrix

Lectures - Week 4 Matrix norms, Conditioning, Vector Spaces, Linear Independence, Spanning sets and Basis, Null space and Range of a Matrix Lectures - Week 4 Matrx norms, Condtonng, Vector Spaces, Lnear Independence, Spannng sets and Bass, Null space and Range of a Matrx Matrx Norms Now we turn to assocatng a number to each matrx. We could

More information

Randić Energy and Randić Estrada Index of a Graph

Randić Energy and Randić Estrada Index of a Graph EUROPEAN JOURNAL OF PURE AND APPLIED MATHEMATICS Vol. 5, No., 202, 88-96 ISSN 307-5543 www.ejpam.com SPECIAL ISSUE FOR THE INTERNATIONAL CONFERENCE ON APPLIED ANALYSIS AND ALGEBRA 29 JUNE -02JULY 20, ISTANBUL

More information

QUARTERLY OF APPLIED MATHEMATICS

QUARTERLY OF APPLIED MATHEMATICS QUARTERLY OF APPLIED MATHEMATICS Voume XLI October 983 Number 3 DIAKOPTICS OR TEARING-A MATHEMATICAL APPROACH* By P. W. AITCHISON Unversty of Mantoba Abstract. The method of dakoptcs or tearng was ntroduced

More information

Learning Theory: Lecture Notes

Learning Theory: Lecture Notes Learnng Theory: Lecture Notes Lecturer: Kamalka Chaudhur Scrbe: Qush Wang October 27, 2012 1 The Agnostc PAC Model Recall that one of the constrants of the PAC model s that the data dstrbuton has to be

More information

Neural network-based athletics performance prediction optimization model applied research

Neural network-based athletics performance prediction optimization model applied research Avaabe onne www.jocpr.com Journa of Chemca and Pharmaceutca Research, 04, 6(6):8-5 Research Artce ISSN : 0975-784 CODEN(USA) : JCPRC5 Neura networ-based athetcs performance predcton optmzaton mode apped

More information

n-step cycle inequalities: facets for continuous n-mixing set and strong cuts for multi-module capacitated lot-sizing problem

n-step cycle inequalities: facets for continuous n-mixing set and strong cuts for multi-module capacitated lot-sizing problem n-step cyce nequates: facets for contnuous n-mxng set and strong cuts for mut-modue capactated ot-szng probem Mansh Bansa and Kavash Kanfar Department of Industra and Systems Engneerng, Texas A&M Unversty,

More information

Lecture Note 3. Eshelby s Inclusion II

Lecture Note 3. Eshelby s Inclusion II ME340B Elastcty of Mcroscopc Structures Stanford Unversty Wnter 004 Lecture Note 3. Eshelby s Incluson II Chrs Wenberger and We Ca c All rghts reserved January 6, 004 Contents 1 Incluson energy n an nfnte

More information

Problem Set 9 Solutions

Problem Set 9 Solutions Desgn and Analyss of Algorthms May 4, 2015 Massachusetts Insttute of Technology 6.046J/18.410J Profs. Erk Demane, Srn Devadas, and Nancy Lynch Problem Set 9 Solutons Problem Set 9 Solutons Ths problem

More information

3. Stress-strain relationships of a composite layer

3. Stress-strain relationships of a composite layer OM PO I O U P U N I V I Y O F W N ompostes ourse 8-9 Unversty of wente ng. &ech... tress-stran reatonshps of a composte ayer - Laurent Warnet & emo Aerman.. tress-stran reatonshps of a composte ayer Introducton

More information

Expected Value and Variance

Expected Value and Variance MATH 38 Expected Value and Varance Dr. Neal, WKU We now shall dscuss how to fnd the average and standard devaton of a random varable X. Expected Value Defnton. The expected value (or average value, or

More information

MODELING TRAFFIC LIGHTS IN INTERSECTION USING PETRI NETS

MODELING TRAFFIC LIGHTS IN INTERSECTION USING PETRI NETS The 3 rd Internatonal Conference on Mathematcs and Statstcs (ICoMS-3) Insttut Pertanan Bogor, Indonesa, 5-6 August 28 MODELING TRAFFIC LIGHTS IN INTERSECTION USING PETRI NETS 1 Deky Adzkya and 2 Subono

More information

On quasiperfect numbers

On quasiperfect numbers Notes on Number Theory and Dscrete Mathematcs Prnt ISSN 1310 5132, Onlne ISSN 2367 8275 Vol. 23, 2017, No. 3, 73 78 On quasperfect numbers V. Sva Rama Prasad 1 and C. Suntha 2 1 Nalla Malla Reddy Engneerng

More information

Crystal Interpretation of Kerov Kirillov Reshetikhin Bijection II

Crystal Interpretation of Kerov Kirillov Reshetikhin Bijection II arxv:math/6697v [math.qa] Jun 7 Crysta Interpretaton of Kerov Krov Reshethn Bjecton II Proof for sn Case Reho Saamoto Department of Physcs, Graduate Schoo of Scence, Unversty of Toyo, Hongo, Bunyo-u, Toyo,

More information

Inner Product. Euclidean Space. Orthonormal Basis. Orthogonal

Inner Product. Euclidean Space. Orthonormal Basis. Orthogonal Inner Product Defnton 1 () A Eucldean space s a fnte-dmensonal vector space over the reals R, wth an nner product,. Defnton 2 (Inner Product) An nner product, on a real vector space X s a symmetrc, blnear,

More information

where a is any ideal of R. Lemma 5.4. Let R be a ring. Then X = Spec R is a topological space Moreover the open sets

where a is any ideal of R. Lemma 5.4. Let R be a ring. Then X = Spec R is a topological space Moreover the open sets 5. Schemes To defne schemes, just as wth algebrac varetes, the dea s to frst defne what an affne scheme s, and then realse an arbtrary scheme, as somethng whch s locally an affne scheme. The defnton of

More information

Every planar graph is 4-colourable a proof without computer

Every planar graph is 4-colourable a proof without computer Peter Dörre Department of Informatcs and Natural Scences Fachhochschule Südwestfalen (Unversty of Appled Scences) Frauenstuhlweg 31, D-58644 Iserlohn, Germany Emal: doerre(at)fh-swf.de Mathematcs Subject

More information

Valuated Binary Tree: A New Approach in Study of Integers

Valuated Binary Tree: A New Approach in Study of Integers Internatonal Journal of Scentfc Innovatve Mathematcal Research (IJSIMR) Volume 4, Issue 3, March 6, PP 63-67 ISS 347-37X (Prnt) & ISS 347-34 (Onlne) wwwarcournalsorg Valuated Bnary Tree: A ew Approach

More information

Stanford University CS359G: Graph Partitioning and Expanders Handout 4 Luca Trevisan January 13, 2011

Stanford University CS359G: Graph Partitioning and Expanders Handout 4 Luca Trevisan January 13, 2011 Stanford Unversty CS359G: Graph Parttonng and Expanders Handout 4 Luca Trevsan January 3, 0 Lecture 4 In whch we prove the dffcult drecton of Cheeger s nequalty. As n the past lectures, consder an undrected

More information

THE CHINESE REMAINDER THEOREM. We should thank the Chinese for their wonderful remainder theorem. Glenn Stevens

THE CHINESE REMAINDER THEOREM. We should thank the Chinese for their wonderful remainder theorem. Glenn Stevens THE CHINESE REMAINDER THEOREM KEITH CONRAD We should thank the Chnese for ther wonderful remander theorem. Glenn Stevens 1. Introducton The Chnese remander theorem says we can unquely solve any par of

More information

arxiv: v2 [math.ac] 8 Oct 2013

arxiv: v2 [math.ac] 8 Oct 2013 AN INDISPENSABLE CLASSIFICATION OF MONOMIAL CURVES IN A 4 ( ) ANARGYROS KATSABEKIS AND IGNACIO OJEDA arxv:1103.4702v2 [math.ac] 8 Oct 2013 Abstract. In ths paper a new cassfcaton of monoma curves n A 4

More information

a b a In case b 0, a being divisible by b is the same as to say that

a b a In case b 0, a being divisible by b is the same as to say that Secton 6.2 Dvsblty among the ntegers An nteger a ε s dvsble by b ε f there s an nteger c ε such that a = bc. Note that s dvsble by any nteger b, snce = b. On the other hand, a s dvsble by only f a = :

More information

Discrete Mathematics

Discrete Mathematics Dscrete Mathematcs 30 (00) 48 488 Contents lsts avalable at ScenceDrect Dscrete Mathematcs journal homepage: www.elsever.com/locate/dsc The number of C 3 -free vertces on 3-partte tournaments Ana Paulna

More information

Random DFAs over a non-unary alphabet

Random DFAs over a non-unary alphabet Random DFAs over a non-unary alphabet Jean-Marc Champarnaud and Thomas Paranthoën Unversty of Rouen, LIFAR, F-76821 Mont-Sant-Agnan Cedex, France {Jean-Marc.Champarnaud, Thomas.Paranthoen} @unv-rouen.fr

More information

Appendix B. Criterion of Riemann-Stieltjes Integrability

Appendix B. Criterion of Riemann-Stieltjes Integrability Appendx B. Crteron of Remann-Steltes Integrablty Ths note s complementary to [R, Ch. 6] and [T, Sec. 3.5]. The man result of ths note s Theorem B.3, whch provdes the necessary and suffcent condtons for

More information

DIOPHANTINE EQUATIONS WITH BINOMIAL COEFFICIENTS AND PERTURBATIONS OF SYMMETRIC BOOLEAN FUNCTIONS

DIOPHANTINE EQUATIONS WITH BINOMIAL COEFFICIENTS AND PERTURBATIONS OF SYMMETRIC BOOLEAN FUNCTIONS DIOPHANTINE EQUATIONS WITH BINOMIAL COEFFICIENTS AND PERTURBATIONS OF SYMMETRIC BOOLEAN FUNCTIONS FRANCIS N CASTRO, OSCAR E GONZÁLEZ, AND LUIS A MEDINA Abstract Ths work presents a study of perturbatons

More information

The L(2, 1)-Labeling on -Product of Graphs

The L(2, 1)-Labeling on -Product of Graphs Annals of Pure and Appled Mathematcs Vol 0, No, 05, 9-39 ISSN: 79-087X (P, 79-0888(onlne Publshed on 7 Aprl 05 wwwresearchmathscorg Annals of The L(, -Labelng on -Product of Graphs P Pradhan and Kamesh

More information

[WAVES] 1. Waves and wave forces. Definition of waves

[WAVES] 1. Waves and wave forces. Definition of waves 1. Waves and forces Defnton of s In the smuatons on ong-crested s are consdered. The drecton of these s (μ) s defned as sketched beow n the goba co-ordnate sstem: North West East South The eevaton can

More information

The Pseudoblocks of Endomorphism Algebras

The Pseudoblocks of Endomorphism Algebras Internatonal Mathematcal Forum, 4, 009, no. 48, 363-368 The Pseudoblocks of Endomorphsm Algebras Ahmed A. Khammash Department of Mathematcal Scences, Umm Al-Qura Unversty P.O.Box 796, Makkah, Saud Araba

More information

Polynomials. 1 More properties of polynomials

Polynomials. 1 More properties of polynomials Polynomals 1 More propertes of polynomals Recall that, for R a commutatve rng wth unty (as wth all rngs n ths course unless otherwse noted), we defne R[x] to be the set of expressons n =0 a x, where a

More information

SUPER PRINCIPAL FIBER BUNDLE WITH SUPER ACTION

SUPER PRINCIPAL FIBER BUNDLE WITH SUPER ACTION talan journal of pure appled mathematcs n. 33 2014 (63 70) 63 SUPER PRINCIPAL FIBER BUNDLE WITH SUPER ACTION M.R. Farhangdoost Department of Mathematcs College of Scences Shraz Unversty Shraz, 71457-44776

More information

An algorithmic approach to construct crystallizations of 3-manifolds from presentations of fundamental groups

An algorithmic approach to construct crystallizations of 3-manifolds from presentations of fundamental groups Proc. Indan Acad. Sc. (Math. Sc.) Vo. 6, No., November 06, pp. 69 65. DOI 0.007/s0-06-00-7 An agorthmc approach to construct crystazatons of -manfods from presentatons of fundamenta groups BIPLAB BASAK

More information

Restricted Lie Algebras. Jared Warner

Restricted Lie Algebras. Jared Warner Restrcted Le Algebras Jared Warner 1. Defntons and Examples Defnton 1.1. Let k be a feld of characterstc p. A restrcted Le algebra (g, ( ) [p] ) s a Le algebra g over k and a map ( ) [p] : g g called

More information

Lecture 3: Probability Distributions

Lecture 3: Probability Distributions Lecture 3: Probablty Dstrbutons Random Varables Let us begn by defnng a sample space as a set of outcomes from an experment. We denote ths by S. A random varable s a functon whch maps outcomes nto the

More information

Supplementary Material: Learning Structured Weight Uncertainty in Bayesian Neural Networks

Supplementary Material: Learning Structured Weight Uncertainty in Bayesian Neural Networks Shengyang Sun, Changyou Chen, Lawrence Carn Suppementary Matera: Learnng Structured Weght Uncertanty n Bayesan Neura Networks Shengyang Sun Changyou Chen Lawrence Carn Tsnghua Unversty Duke Unversty Duke

More information

Min Cut, Fast Cut, Polynomial Identities

Min Cut, Fast Cut, Polynomial Identities Randomzed Algorthms, Summer 016 Mn Cut, Fast Cut, Polynomal Identtes Instructor: Thomas Kesselhem and Kurt Mehlhorn 1 Mn Cuts n Graphs Lecture (5 pages) Throughout ths secton, G = (V, E) s a mult-graph.

More information

MATH 5707 HOMEWORK 4 SOLUTIONS 2. 2 i 2p i E(X i ) + E(Xi 2 ) ä i=1. i=1

MATH 5707 HOMEWORK 4 SOLUTIONS 2. 2 i 2p i E(X i ) + E(Xi 2 ) ä i=1. i=1 MATH 5707 HOMEWORK 4 SOLUTIONS CİHAN BAHRAN 1. Let v 1,..., v n R m, all lengths v are not larger than 1. Let p 1,..., p n [0, 1] be arbtrary and set w = p 1 v 1 + + p n v n. Then there exst ε 1,..., ε

More information

Distribution of subgraphs of random regular graphs

Distribution of subgraphs of random regular graphs Dstrbuton of subgraphs of random regular graphs Zhcheng Gao Faculty of Busness Admnstraton Unversty of Macau Macau Chna zcgao@umac.mo N. C. Wormald Department of Combnatorcs and Optmzaton Unversty of Waterloo

More information

A New Refinement of Jacobi Method for Solution of Linear System Equations AX=b

A New Refinement of Jacobi Method for Solution of Linear System Equations AX=b Int J Contemp Math Scences, Vol 3, 28, no 17, 819-827 A New Refnement of Jacob Method for Soluton of Lnear System Equatons AX=b F Naem Dafchah Department of Mathematcs, Faculty of Scences Unversty of Gulan,

More information

= z 20 z n. (k 20) + 4 z k = 4

= z 20 z n. (k 20) + 4 z k = 4 Problem Set #7 solutons 7.2.. (a Fnd the coeffcent of z k n (z + z 5 + z 6 + z 7 + 5, k 20. We use the known seres expanson ( n+l ( z l l z n below: (z + z 5 + z 6 + z 7 + 5 (z 5 ( + z + z 2 + z + 5 5

More information

Formulas for the Determinant

Formulas for the Determinant page 224 224 CHAPTER 3 Determnants e t te t e 2t 38 A = e t 2te t e 2t e t te t 2e 2t 39 If 123 A = 345, 456 compute the matrx product A adj(a) What can you conclude about det(a)? For Problems 40 43, use

More information

= = = (a) Use the MATLAB command rref to solve the system. (b) Let A be the coefficient matrix and B be the right-hand side of the system.

= = = (a) Use the MATLAB command rref to solve the system. (b) Let A be the coefficient matrix and B be the right-hand side of the system. Chapter Matlab Exercses Chapter Matlab Exercses. Consder the lnear system of Example n Secton.. x x x y z y y z (a) Use the MATLAB command rref to solve the system. (b) Let A be the coeffcent matrx and

More information

Report on Image warping

Report on Image warping Report on Image warpng Xuan Ne, Dec. 20, 2004 Ths document summarzed the algorthms of our mage warpng soluton for further study, and there s a detaled descrpton about the mplementaton of these algorthms.

More information