The Maximum Number of Squares in a Tree

Size: px
Start display at page:

Download "The Maximum Number of Squares in a Tree"

Transcription

1 The Mximum Numer of Sures in Tree Mxime Crochemore 1,3, Costs S. Iliooulos 1,4, Tomsz Kociumk 2, Mrcin Kuic 2, Jku Rdoszewski 2, Wojciech Rytter 2,5, Wojciech Tyczy«ski 2, nd Tomsz Wle«2,6 1 Det. of Informtics, King's College London, London WC2R 2LS, UK [mxime.crochemore,csi]@dcs.kcl.c.uk 2 Fculty of Mthemtics, Informtics nd Mechnics, University of Wrsw, Wrsw, Polnd [kociumk,kuic,jrd,rytter,w.tyczynski,wlen]@mimuw.edu.l 3 Université Pris-Est, Frnce 4 Fculty of Engineering, Comuting nd Mthemtics, University of Western Austrli, Perth WA 6009, Austrli 5 Fculty of Mthemtics nd Comuter Science, Coernicus University, Toru«, Polnd 6 Lortory of Bioinformtics nd Protein Engineering, Interntionl Institute of Moleculr nd Cell Biology in Wrsw, Polnd Astrct. We show tht the mximum numer of dierent sure sustrings in unrooted lelled trees ehves much dierently thn in words. A sustring in tree corresonds (s its vlue) to simle th. Let s(n) e the mximum numer of dierent sure sustrings in tree of size n. We show tht symtoticlly s(n) is strictly etween liner nd udrtic orders, for some constnts c 1, c 2 > 0 we otin: c 1n 4/3 s(n) c 2n 4/3. 1 Introduction Reetitions re fundmentl notion in comintorics nd lgorithmics on words. The sic tye of reetition re sures: words of the tye zz, where z ε. (By ε we denote the emty word.) In this er we consider sure sustrings corresonding to simle ths in lelled trees. If tree is single th then it is rolem of clssicl reetitions in strings. Comintorics of sures in clssicl strings hs een investigted in [7,9,10] nd for rtil words in [3]. Sures were lso studied in the context of gmes, e.g. in [8]. Reetitions in trees nd grhs hve lredy een considered, for exmle in [4,1,2]. The numer of sure sustrings in generl grhs drmticlly increses it cn e exonentil, even in cse of inry lhet. Assume we hve tree T whose edges re lelled with symols from n lhet Σ. By T we denote the size of the tree, tht is the numer of nodes. If u nd v re two nodes of T, then y vl(u, v) we denote the seuence of lels of edges on the th from u to v. We cll vl(u, v) sustring of T. Figure 1 illustrtes sure sustring in smle tree. We consider only

2 c c c c Fig. 1: There re 4 sure sustrings in this tree. The longest is cc nd it corresonds to th mrked with solid line in the gure. simle ths: this mens tht vertices of th do not reet (though lels cn reet). For tree T, y s(t ) we denote the numer of dierent sure sustrings in T. Let s(n) e the mximum of s(t ) over ll trees of size n. We show tht s(n) = Θ(n 4/3 ). Thus s(n) hs dierent symtotics thn the mximum numer of dierent sure sustrings in stndrd word ( single th tree) of length n, which is known to e Θ(n) [7]. We introduce fmily of trees which we cll coms. The lower ound for s(n) turns out to e relized y trees from this fmily, nd such trees lso ly n imortnt role in the roof of the uer ound. Before we show the generl uer ound, we rovide some intuition ehind this roof y showing the sme uer ound for coms nd for secil sures of the form ( i j ) 2 in generl trees. 2 Bounds for Coms A com is lelled tree tht consists of th clled the sine, with t most one rnch ttched to ech node of the sine. All sine-edges re lelled with the letter. Ech rnch is th strting with the letter, followed y numer of -lelled edges, see Fig. 2. Fig. 2: A com contining 11 sure sustrings. As we show in the theorem elow, there exists fmily T m of coms for which s(t m ) = Ω( T m 4/3 ). From this one esily otins s(n) = Ω(n 4/3 ) for 2

3 ny n. In this section we lso rove n uer ound of O(n 4/3 ) for the numer of sures in com of size n. This roof is extensively used throughout the roof of the sme uer ound for generl trees, given in the following sections. Hence, our fmily of coms T m meets the symtotic uer ound for s(n) for generl trees. For m = k 2 we dene set Z m = {1,..., k} {i k : 1 i k}. Lemm 1. Assume m is sure of ositive integer. Then for ech 0 < j < m there exist u, v Z m such tht u v = j. Proof. Ech numer 0 < j < m cn e written s m, where 0 <, m. This formul corresonds to distnce etween oints nd m. For m = k 2 we dene com T m s follows: T m consists of sine of length m with vertices numered from 1 to m, nd rnches of the form m ttched to ech vertex j Z m of the sine, see Fig. 3. m m m m m Fig. 3: The structure of com T m. Theorem 1. [Lower Bound Theorem] For ech tree T m we hve s(t m ) = Ω( T m 4/3 ). Proof. From Lemm 1, for every 0 < j < m there re two nodes u, v of degree 3 on the sine with distnce(u, v) = j. Hence, T m contins ll sures of the form ( i j i ) 2 for 0 i j nd 0 < j < m. Altogether this gives Ω(m 2 ) dierent sures. Note tht T m = O(m m). Hence, the numer of sure sustrings in T m is Ω( T m 4/3 ). Lemm 2. The numer of sures in com of size n is O(n 4/3 ). Proof. Let T e com of size n. Note tht T contins only sure sustrings of the form ( i ) 2 or ( i j ) 2. The numer of sures of the former tye is 3

4 O(n). We need to ound the numer of sures of the ltter tye (secil sures). Any occurrence of secil sure strts nd ends within two dierent rnches of T. There re t most n 4/3 dierent secil sures for which i < n 2/3 nd j < n 2/3. Hence, it suces to rove tht there re O(n 4/3 ) secil sure sustrings of T for i n 2/3 or j n 2/3, we cll such secil sures long. A rnch of com is clled long if it contins t lest n 2/3 nodes. Note tht there re O(n 1/3 ) long rnches in T. Any occurrence of long secil sure hs t lest one endoint in long rnch. Consider node u locted in rnch B of T nd long rnch B. There is t most one occurrence of long secil sure tht strts in u nd ends within the rnch B. Indeed, if there re i -lelled edges on the th from u to the sine nd k edges on the th connecting the rnches B nd B then the considered sure ( i k i ) 2 uniuely determines its other endoint. Hence, the totl numer of long secil sures is ounded y the numer of nodes u multilied y the numer of long rnches B, tht is, y O(n 4/3 ). This comletes the roof. 3 Prelude to Uer Bound Proof In this section we show tight uer ound for tye of sures clled here secil sures. Along the wy we introduce some rt of the mchinery for the generl roof. Dene doule tree D = (T 1, T 2, R) s lelled tree consisting of two disjoint (excet one vertex) trees T 1, T 2 with common root R. The size of D is dened s D = T 1 + T 2 1. The sustrings of D re dened s vlues of ths which strt within T 1 nd end in T 2. An exmle of doule tree is shown in Fig. 4, T 1 lies elow R (lower tree) while T 2 ove R (uer tree). A directed rooted lelled tree is deterministic if the edges going down from the sme vertex hve dierent lels. Note tht tree is deterministic if nd only if it is trie (lso clled rex tree) of the vlues of the ths from R to the leves. A doule tree is deterministic if ech of the trees T 1, T 2 treted s directed tree with root R is deterministic. A doule deterministic tree is lso clled here D-tree. The doule tree in Fig. 4 is smle D-tree. Lemm 3. For ech doule (ossily nondeterministic) tree there exists D- tree with t most the sme numer of vertices nd the sme set of sustrings (going from T 1 to T 2 ). Proof. For moment let us direct ech tree T i down from R (treted s root). Assume we hve vertex v with edges (v, u), (v, w) going to its children nd lelled with the sme letter. Then we cn glue the vertices u, w. We cn erform such oertion going to-down from the root in BFS 4

5 trversl. Note tht the resulting trees T i re deterministic, their sizes could only decrese, nd the set of the sustrings of the D-tree remins unchnged. A th in tree T is sid to e nchored in node R T if R lies on this th. A sure is nchored in R if it is vlue of th nchored in R. A th from v to u in D-tree is clled D-sure if v T 1, u T 2, vl(v, u) is sure nd its midoint lies within T 1, nd mongst ll such ths of the sme vlue hs its strting node closest to R. Since the D-tree is deterministic, no two D-sures hve the sme vlue. Below we ind the numer of D-sures in D-trees with the numer of sures in ordinry trees. Recll tht centroid of tree T is node R such tht ech comonent of T \ {R} contins t most n/2 nodes. It is well-known fct tht ech tree hs centroid. Lemm 4. Assume tht the numer of D-sures in ny D-tree of size n is O(n 4/3 ). Then the numer of sures in ny tree is lso O(n 4/3 ). Proof. Let T e tree of size n nd let R e its centroid. Consider D-tree D = (T 1, T 2, R) comosed of two coies T 1 nd T 2 of T, determinised s in Lemm 3. Let xx e sure in T nchored in R. Either this sure or its reverse corresonds to D-sure in D. Oviously D = O(n), therefore, y the hyothesis of the lemm, there re O(n 4/3 ) D-sures in this D-tree. Hence, the numer of sures in T nchored in R is lso O(n 4/3 ). Now we need to count the sures in T tht re not nchored in R. After removing the node R, the tree is rtitioned into comonents T 1,..., T k, such tht i T i = n 1 nd T i n/2. Hence, the numer of sures in T cn e written s: s(t ) = O( T 4/3 ) + i s(t i). A solution to this recurrence yields the uer ound s(n) = O(n 4/3 ). T 2 R R T 1 Fig. 4: Illustrtion of Oservtion 1. 5

6 The roof of the ssumtion of the revious lemm is the core of this er. In full generlity it is rovided in the lst section. Here we limit ourselves to very secil tye of sures. There is useful connection etween D-trees nd coms, s exressed y the following oservtion, see Fig. 4. Oservtion 1 Assume we hve D-tree lelled with letters,. Let us tke only ths from vertex in T 1 to R or from R to vertex in T 2 which contin t most one, with other edges lelled with. Then the resulting lelled tree is com (with t most one dditionl rnch ttched to R). Corollry 1. Assume inry lhet {, }. The mximum numer of secil sures in ny tree is O(n 4/3 ). Proof. By Lemm 4, it suces to consider D-tree D = (T 1, T 2, R) nd only secil D-sures in D which hve one letter in T 1 nd one letter in T 2. The numer of other secil D-sures in D is liner. Now the conclusion follows from Lemm 2 nd Oservtion 1. 4 (, )-Reresenttions of Sustrings In this section w is word of length n. We strt y reclling few sic notions of word eriodicity, see e.g. [11]. A order of w is dened s rex of w which is lso sux of w. We sy tht ositive integer is eriod of w = w 1 w 2... w n if w i = w i+ holds for ll 1 i n. A non-emty word w is clled eriodic if it hs eriod such tht 2 w. The rimitive root of word w, denoted root(w), is the shortest word u such tht u k = w for some ositive integer k. We cll word w rimitive if root(w) = w, otherwise it is clled non-rimitive. Assume tht w is eriodic. There exists uniue reresenttion of w: w = () k such tht k 2, ε nd is rimitive. This reresenttion is clled cnonicl reresenttion of w. Here is the shortest eriod of w. We sy tht w is of eriodic tye (, ). The roof of the following Fct 1 cn e found in the endix. Exmle 1. The word hs cnonicl reresenttion () 2, with = nd =. On the other hnd, hs reresenttion () 3 with = ε nd =. Fct 1 Borders of w tht re eriodic elong to O(log n) eriodic tyes. Additionlly, w my hve O(log n) orders which re not eriodic. A eriodic order v of w is clled glol if its eriod is the eriod of the whole word w. In other words, v is glol if v, w re of the sme eriodic tye. If w is of eriodic tye (, ) nd its cnonicl reresenttion is w = () k, then ll its glol orders re () k for 2 k k. 6

7 Denition 1. Let, e such words tht ε nd is rimitive. The reresenttion w = () l y() r is clled the (, )-reresenttion of w if: () l, r 1; () y hs rex ut not () 2 ; (c) y hs sux ut not () 2, see Fig. 5 nd 6. w 1 : w 2 : Fig. 5: The (, )-reresenttions: w 1 = () 2 () 1 nd w 2 = () 2 () 1. In oth cses =, = nd y is mrked grey. y Fig. 6: A schemtic view of (, )-reresenttion. The -symols corresond to the rst mismtch for the continution of the eriod from the left side nd the eriod from the right side. Lemm 5. Assume w hs non-glol eriodic order of eriodic tye (, ). Then w hs (, )-reresenttion w = () l y() r. Moreover: () this (, )-reresenttion is uniue (i.e., l, r nd y re uniue); () y is not rex of () 2 ; (c) y is not sux of () 2 ; (d) ll orders of w of eriodic tye (, ) re: () k for 2 k min(l, r) + 1. A eriodic order is clled mximl if it is the longest order of its eriodic tye. By Fct 1, w hs O(log n) mximl orders. We cll order regulr if it is eriodic nd is neither glol nor mximl. 5 Generlized Coms nd Generl Uer Bound Due to Lemm 4 in this section we re only deling with D-sures in deterministic doule tree D = (T 1, T 2, R) of size n. For node v T 1 we dene the set SQ(v) of ll D-sures which strt in v. Ech D-sure in SQ(v) of vlue xx induces eriod x of vl(v, R), nd thus corresonds to order u of vl(v, R). This D-sure is clled regulr if u is regulr order of vl(v, R). The eriodic tye of D-sure is dened s the eriodic tye of the underlying order u. The following lemm lets us concentrte only on the regulr D-sures. Lemm 6. At most O(n log n) D-sures in D re not regulr. 7

8 Fig. 7: Corresondence etween sures in trees nd orders. We introduce n imortnt notion of generl com. Before we give forml denition, we rovide few sentences of intuition ehind it. Assume vl(v, u) is regulr D-sure of tye (, ). By Lemm 5 we hve the reresenttion vl(v, R) = () l y() r. All D-sures of tye (, ) strting in v corresond to the sme reresenttion. Those sures induce rticulr structure of ths lelled with, nd y in the uer rt of the D-tree D. A similr structure is lso resent in the lower rt. Denition 2. Let,, y stisfy the conditions of Lemm 5. A D-tree (T 1, T 2, R) is clled (,, y)-com if for ech lef v T 1, vl(v, R) = () m y() k for some integers k, m, for ech lef u T 2, vl(r, u) = () m y() k for some integers k, m. For D-tree D contining regulr D-sure of eriodic tye (, ), y Com(D,,, y) we denote the mximl sutree of D tht is (,, y)-com. From now on, wht we clled com will e referred to s stndrd com, while y com we men generl com. Note tht the conditions of Denition 1 nd Lemm 5 in rticulr imly tht neither y is rex of () 2 nor () 2 rex of y. Similrly neither y is sux of () 2 nor () 2 sux of y. Hence, ll coms hve regulr structure, see Fig. 8. Ech (,, y)-com consists of th lelled with () m (for n integer m) nd contining the root, which we cll the sine, nd the rnches which re ths ttched directly to the sine. Some nodes of the coms re rticulrly imortnt for the D-sures. These re nodes v of vlues vl(v, R) = () k y() m in the lower rt, nd nodes u of vlues vl(r, u) = () k y() m in the uer rt (k, m re ritrry nonnegtive integers in oth cses). Such nodes re clled min. For com C, y Min(C) we denote the set of min nodes in C, nd y C we denote Min(C). D-sures in C with oth endoints in min nodes re sid to e induced y the com. The following lemm conrms strong reltion etween coms nd regulr D-sures. 8

9 y y y R y y y Fig. 8: A smle (,, y)-com with the root R; the min nodes re shown s lrger circles; the ended edges re rtilly glued to the sine due to deterministion. All (,, y)-coms re sutrees of this innite D-tree. For = ε, = nd y = we otin stndrd com. Lemm 7. Ech regulr D-sure of tye (, ) in D is induced y the corresonding com Com(D,,, y). Proof. Let vl(v, u) e regulr D-sure in D of tye (, ). By Lemm 5, vl(v, R) hs following reresenttion vl(v, R) = () l y() r. The underlying order is regulr, tht is () k for some 2 k min(l, r), hence the vlue of the D-sure is (() l y() r k ) 2. Thus vl(r, u) = () l k y() r k. Now it is cler tht oth v nd u re min nodes of Com(D,,, y). The following result is simle extension of the uer ound for stndrd coms. Its full roof cn e found in the endix. Lemm 8. A com C induces O( C 4/3 ) D-sures. Finlly, we cn rove the min lemm. Lemm 9 (Key lemm). A D-tree of size n contins O(n 4/3 ) regulr D- sures. Proof. We show tht coms in D-tree re lmost disjoint with regrd to their min nodes. More recisely, due to comintoril roerties of words, ny two dierent such coms cn hve t most two common min nodes in uer rnches, nd sme for lower rnches. Clim 1 Let C = Com(D,,, y) nd C = Com(D,,, y ). Then either C = C or Min(C) Min(C ) 4. 9

10 Now let us divide coms into smll coms, for which C n 0.6, nd the remining ig coms. Due to the following clim, we cn restrict the further nlysis to ig coms. Clim 2 The numer of regulr D-sures in D induced y smll coms is o(n 4/3 ). Let C 1,..., C k denote ll ig coms of D. As conseuence of Clim 1, the totl size of ll these coms, mesured in the numer of min nodes, turns out to e liner in terms of n. Clim 3 For ny D-tree of n nodes, k C i = O(n). Let D e D-tree of size n. Due to Lemm 7, ech regulr D-sure in D is induced y com in D. By Clim 2, there re o(n 4/3 ) such D-sures induced y smll coms. Finlly, y Lemm 8 nd Clim 3, the numer of regulr D-sures induced y ig coms C 1,..., C k of D is ounded y: ( k ( k 4/3 O C i 4/3) = O C i ) = O(n 4/3 ). This comletes the roof of the key lemm. As corollry, y Lemm 4 nd 6 we otin the desired uer ound. Theorem 2. The numer of sures in tree with n nodes is O(n 4/3 ). References 1. Nog Alon nd Jroslw Grytczuk. Breking the rhythm on grhs. Discrete Mthemtics, 308(8): , Nog Alon, Jroslw Grytczuk, Mriusz Hluszczk, nd Oliver Riordn. Nonreetitive colorings of grhs. Rndom Struct. Algorithms, 21(3-4):336346, Frncine Blnchet-Sdri, Roert Mercs, nd Georey Scott. Counting distinct sures in rtil words. Act Cyern., 19(2):465477, Bostjn Bresr, Jroslw Grytczuk, Sndi Klvzr, Stszek Niwczyk, nd Iztok Peterin. Nonreetitive colorings of trees. Discrete Mthemtics, 307(2):163172, Mxime Crochemore, Christohe Hncrt, nd Thierry Lecro. Algorithms on Strings. Cmridge University Press, Mxime Crochemore nd Wojciech Rytter. Jewels of Stringology. World Scientic, A. S. Frenkel nd J. Simson. How mny sures cn string contin? J. of Comintoril Theory Series A, 82:112120, Jroslw Grytczuk, Jku Przyylo, nd Xuding Zhu. Nonreetitive list colourings of ths. Rndom Struct. Algorithms, 38(1-2):162173, Lucin Ilie. A simle roof tht word of length n hs t most 2n distinct sures. J. Com. Theory, Ser. A, 112(1):163164, Lucin Ilie. A note on the numer of sures in word. Theor. Comut. Sci., 380(3):373376, M. Lothire. Comintorics on Words. Addison-Wesley, Reding, MA., U.S.A.,

11 Aendix Simle Comintoril Tools Let us rst recll few well-known roerties of words relted to their eriodic structure, see lso the clssicl ooks [5,6,11]. Fct 2 w hs order of length if nd only if w hs eriod w. Lemm 10 (Periodicity Lemm). If word of length n hs two eriods nd, such tht + n + gcd(, ), then gcd(, ) is lso eriod of the word. Fct 3 (Synchronizing Proerties) () If uv = vu then oth words u, v re owers of the sme rimitive word. () Let ε e rimitive word. Then hs exctly two occurrences in. (c) Let ε, ε e such tht is rimitive. Then hs exctly one occurrence in. Proof of Fct 1 As for the rst rt of the lemm, let u, v e eriodic orders of w such tht u < v 1.5 u. We show tht u nd v re of the sme eriodic tye. Indeed, let v = () k, where d = is the shortest eriod of v, nd u = ( ) k e the cnonicl reresenttions of v nd u. The order u is lso order of v. Due to Fct 2, oth d nd v u re eriods of v. Moreover d < 1 2 v (since k 2) nd v u 1 3 v (since v 1.5 u ). Hence, y the Periodicity Lemm, v u is multile of d. The word u is rex of v, hence u = () l for some l < k. Now, let us show tht l 2. Assume to the contrry tht l 1. Then: (k + 1) + k = v 1.5 u This is clerly contrdiction, since > 0. Hence l 2. Now y the uniueness of cnonicl reresenttions we otin =, = nd k = l. This concludes tht the orders u nd v re of the sme eriodic tye. As for the second rt, let u, v e non-eriodic orders of w such tht u < v. We show tht v > 2 u. Assume to the contrry tht u < v 2 u. As in the revious rt of the roof, we see tht v u is eriod of v. However, 2( v u ) = v + v 2 u v + 2 u 2 u = v, therefore v is eriodic, contrdiction. 11

12 Proof of Lemm 5. Let u = () k e the longest order of w of tye (, ). Clerly is rex of w nd w > u > 2, so let us write w = z. Now, let () l+1 e the mximl ower of tht is rex of z. We hve for some z : w = () l z. Let () r+1 e the mximl ower of tht is sux of z. Now we cn write w = () l y() r. Let us rove tht this reresenttion stises the reuired conditions. We get the following esily: z hs rex nd sux. z hs rex ut not () 2, nd sux y hs rex ut not () 2, nd sux ut not () 2. Let us now show tht y is not rex of () 2. Assume to the contrry. Recll tht is sux of y. Thus we get n occurrence of in. If ε, from Fct 3, we get tht y =. But then, w would e of tye (, ). Therefore = ε. From Fct 3 we conclude tht y = nd w is ower of. This is, however, imossile since w hs non-glol eriodic order () k = k. This contrdiction imlies tht y is not rex of () 2. A symmetric rgument roves tht y is not sux of () 2. Since none of () 2 nd y is rex of the other, () l+2 is not rex of w. Similrly () r+2 is not sux of w. Thus u = () min(l,r)+1. In rticulr l, r 1. Clerly () k for 2 k min(l, r) + 1 re the only eriodic orders of w of the tye (, ). Now it remins to show the uniueness of the reresenttion. Assume there ws nother reresenttion w = () l y () r. Since y hs rex ut not () 2, l + 1 is the lrgest m such tht () m is rex of m, tht is l = l. Similrly r = r nd nlly y = y. Proof of Lemm 6. We show tht in SQ(v) t most O(log n) D-sures re not regulr. Ech D- sure in SQ(v) corresonds to dierent order of vl(v, R). The orders corresonding to non-regulr D-sures re non-eriodic, glol or mximl; we extend these terms to D-sures s in the cse of regulr D-sures nd orders. We hve the following clim. Clim. In SQ(v) t most one D-sure is glol. Proof. Let xx nd x x e vlues of two glol D-sures strting in v. Assume x < x. Let w = vl(v, R) = () k. The glol D-sures re of the form () k. Since glol order is eriodic of eriodic tye (, ), we hve 1 k k 2. Let x = () l nd x = () l, l < l. Let u e n ncestor of v the dened y vl(u, R) = () k 1. A th strting in u nd going to the uer end of x x hs the vlue () 2l 1, which 12

13 hs rex () 2l = xx. We hve l < k 1, so this occurrence hs centre in the lower rt of the D-tree. Hence, it is cndidte for D-sure of the vlue xx. This concludes tht the originl th of vlue xx strting in v could not e D-sure, which is contrdiction. As we noticed in Section 4, only O(log n) orders of vl(v, R) cn e noneriodic or mximl. Hence only O(log n) D-sures strting in v cn corresond to non-regulr order. Thus there cn e only O(n log n) D-sures which re not regulr. Proof of Lemm 8. Let C e (,, y)-com. We cn construct (ε,, )-com C of the sme structure of rnches nd min nodes s C. Clerly, C = C nd the numer of sures induced y oth coms is the sme. But now C is stndrd com. For the com C we hve n uer ound s(c ) = O( C 4/3 ) from Lemm 2. In order to otin n O( C 4/3 ) ound for the numer of sures induced y C, it suces to restrict the roof of tht lemm to secil sures ( i j ) for i 2 nd j 1. This wy we otin n uer ound of O( C 4/3 ) for the numer of D-sures induced y C, conseuently n O( C 4/3 ) uer ound for n ritrry com C. Proof of Clim 1. We strt y showing fct tht is conseuence of the synchronizing roerties of rimitive words. Fct 4 Let,,, e words such tht: ε nd ε, is rimitive, =, nd =. Then = nd =. Proof. First ssume = ε. Then = = =. From Fct 3, since ε, we get = ε. This nturlly imlies tht =. Now ssume tht ε. We hve = = nd from Fct 3c we know tht there is only one occurrence of in. Thus = nd =. Now we show the following uxiliry clim. Clim. If C = Com(D,,, y) nd C = Com(D,,, y ) re dierent coms stisfying =, then Min(C) Min(C ) =. Proof. Assume u is common min node of the two coms. It cn lie either in the uer rt or in the lower rt of D. First, let us consider the rst cse. Let w = vl(r, u). Since nd is rex of w nd nd is sux of w, we get tht = nd =. By Fct 4, = nd 13

14 =. We now know tht w = () l y() r = () l y () r. Assume l l, without the loss of generlity l < l. Since y hs rex, y() r hs rex () 2.i This is imossile y the denition of com. By similr rgument, r = r. Hence y = y, so C nd C cnnot e dierent coms. Now, consider common min node u in the lower rt. Let w = vl(u, R). As reviously we esily otin tht = nd =. This time we hve w = () l y() r = () l y () r. Exctly in the sme wy s efore, we get l = l, r = r nd conclude tht y = y. Now, it suces to show tht if C nd C hve t lest 5 common min nodes, then =. First we show tht no two common min nodes my lie on single rnch (in the uer or in the lower tree). Assume we hve such two nodes u nd u nd u is the lower mong them. Then vl(u, u ) is ower of oth nd. But nd re rimitive, so = root(vl(u, u )) =, which y clim concludes the roof of this cse. Now we show tht no three common min nodes my lie in the uer tree. Assume tht u, u, u re such nodes. Since no two of them cn lie on the sme rnch, they re ligned s in Fig. 9 (u to ermuttion of u, u, u ). u u u v v Fig. 9: Min nodes on three dierent rnches of D-tree. Note tht nodes v nd v need to e rnching nodes of oth coms. Oviously, = root(vl(v, v )) =. This gin concludes the roof of the current cse. Finlly, it remins to show tht no three common min nodes my lie in the lower tree. The roof is exctly the sme s in the revious cse. R Proof of Clim 2. Clim. Assume SQ(v) contins s > 0 regulr D-sures of tye (, ), nd vl(v, R) = w = () l y() r is corresonding reresenttion. Let C = Com(D,,, y). Then Min(C) = Ω(s 2 ). Proof. Let x 1 x 1,..., x s x s e those s regulr D-sures ordered y incresing lengths. As in the roof of Lemm 7 the vlues of these D-sures re of regulr form. Nmely, we hve x i = () l y() k i for some mx(0, r l) 14

15 k 1 <... < k s < r. Let u 1,..., u s e the other endoints of these D-sures. We hve vl(r, u i ) = () l r+k i y() k i. The nodes in the uer tree of C corresonding to ths of the form () l r+k i y() k for 0 k k i re ll distinct min nodes, hence Min(C) ((k 1 +1)+(k 2 +1)+...+(k s +1)) ( s) = Ω(s 2 ). As conseuence, we get tht O(n 0.3 ) D-sures from SQ(v) cn e induced y single smll com. Moreover, y Fct 1, regulr sures strting in v re induced y O(log n) coms. Conseuently, the numer of elements of SQ(v) tht re induced y smll coms is O(n 0.3 ) O(log n) = o(n 1/3 ). In totl, smll coms induce o(n 4/3 ) sures. Proof of Clim 3. We will show the following ineulity: k C i n + 2(k 1)(k 2). (1) From this ineulity, y C i n 0.6, we get k n 0.6 n + 2(k 1)(k 2). Comring symtotics of oth sides of the ineulity, we conclude tht for lmost ll vlues of n (tht is, ll vlues excluding only nite numer) k < n 0.5. For such vlues of k the right side of the ineulity (1) is O(n), which will conclude the roof of the clim rovided tht we show tht ineulity. As for the roof of (1), using Clim 1 we otin tht: k Min(C i ) = k Min(C i ) \ k = Min(C i) \ Conseuently: Min(C j ) Min(C j ) i 1 j=1 i 1 j=1 k ( C i 4 (i 1)) = k C i 2(k 1)(k 2) which is euivlent to the ineulity (1). k C i 2(k 1)(k 2). k Min(C i ) n 15

The Maximum Number of Squares in a Tree

The Maximum Number of Squares in a Tree The Mximum Numer of Sures in Tree Mxime Crochemore 1,3, Costs S. Iliooulos 1,4, Tomsz Kociumk 2, Mrcin Kuic 2, Jku Rdoszewski 2, Wojciech Rtter 2,5, Wojciech Tcz«ski 2, nd Tomsz Wle«2,6 1 Det. of Informtics,

More information

QUADRATIC RESIDUES MATH 372. FALL INSTRUCTOR: PROFESSOR AITKEN

QUADRATIC RESIDUES MATH 372. FALL INSTRUCTOR: PROFESSOR AITKEN QUADRATIC RESIDUES MATH 37 FALL 005 INSTRUCTOR: PROFESSOR AITKEN When is n integer sure modulo? When does udrtic eution hve roots modulo? These re the uestions tht will concern us in this hndout 1 The

More information

Tries and suffixes trees

Tries and suffixes trees Trie: A dt-structure for set of words Tries nd suffixes trees Alon Efrt Comuter Science Dertment University of Arizon All words over the lhet Σ={,,..z}. In the slides, let sy tht the lhet is only {,,c,d}

More information

p-adic Egyptian Fractions

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

More information

USA Mathematical Talent Search Round 1 Solutions Year 25 Academic Year

USA Mathematical Talent Search Round 1 Solutions Year 25 Academic Year 1/1/5. Alex is trying to oen lock whose code is sequence tht is three letters long, with ech of the letters being one of A, B or C, ossibly reeted. The lock hs three buttons, lbeled A, B nd C. When the

More information

Supplement 4 Permutations, Legendre symbol and quadratic reciprocity

Supplement 4 Permutations, Legendre symbol and quadratic reciprocity Sulement 4 Permuttions, Legendre symbol nd qudrtic recirocity 1. Permuttions. If S is nite set contining n elements then ermuttion of S is one to one ming of S onto S. Usully S is the set f1; ; :::; ng

More information

PRIMES AND QUADRATIC RECIPROCITY

PRIMES AND QUADRATIC RECIPROCITY PRIMES AND QUADRATIC RECIPROCITY ANGELICA WONG Abstrct We discuss number theory with the ultimte gol of understnding udrtic recirocity We begin by discussing Fermt s Little Theorem, the Chinese Reminder

More information

(9) P (x)u + Q(x)u + R(x)u =0

(9) P (x)u + Q(x)u + R(x)u =0 STURM-LIOUVILLE THEORY 7 2. Second order liner ordinry differentil equtions 2.1. Recll some sic results. A second order liner ordinry differentil eqution (ODE) hs the form (9) P (x)u + Q(x)u + R(x)u =0

More information

Quadratic reciprocity

Quadratic reciprocity Qudrtic recirocity Frncisc Bozgn Los Angeles Mth Circle Octoer 8, 01 1 Qudrtic Recirocity nd Legendre Symol In the eginning of this lecture, we recll some sic knowledge out modulr rithmetic: Definition

More information

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

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

More information

CS 275 Automata and Formal Language Theory

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

More information

Duke Math Meet

Duke Math Meet Duke Mth Meet 01-14 Power Round Qudrtic Residues nd Prime Numers For integers nd, we write to indicte tht evenly divides, nd to indicte tht does not divide For exmle, 4 nd 4 Let e rime numer An integer

More information

McGill University Math 354: Honors Analysis 3 Fall 2012 Solutions to selected Exercises. g(x) 2 dx 1 2 a

McGill University Math 354: Honors Analysis 3 Fall 2012 Solutions to selected Exercises. g(x) 2 dx 1 2 a McGill University Mth 354: Honors Anlysis 3 Fll 2012 Assignment 1 Solutions to selected Exercises Exercise 1. (i) Verify the identity for ny two sets of comlex numers { 1,..., n } nd { 1,..., n } ( n )

More information

Lecture 09: Myhill-Nerode Theorem

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

More information

Watson-Crick local languages and Watson-Crick two dimensional local languages

Watson-Crick local languages and Watson-Crick two dimensional local languages Interntionl Journl of Mthemtics nd Soft Comuting Vol.5 No.. (5) 65-7. ISSN Print : 49 338 ISSN Online: 39 55 Wtson-Crick locl lnguges nd Wtson-Crick two dimensionl locl lnguges Mry Jemim Smuel nd V.R.

More information

Finite state automata

Finite state automata Finite stte utomt Lecture 2 Model-Checking Finite-Stte Systems (untimed systems) Finite grhs with lels on edges/nodes set of nodes (sttes) set of edges (trnsitions) set of lels (lhet) Finite Automt, CTL,

More information

k and v = v 1 j + u 3 i + v 2

k and v = v 1 j + u 3 i + v 2 ORTHOGONAL FUNCTIONS AND FOURIER SERIES Orthogonl functions A function cn e considered to e generliztion of vector. Thus the vector concets like the inner roduct nd orthogonlity of vectors cn e extended

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

(e) if x = y + z and a divides any two of the integers x, y, or z, then a divides the remaining integer

(e) if x = y + z and a divides any two of the integers x, y, or z, then a divides the remaining integer Divisibility In this note we introduce the notion of divisibility for two integers nd b then we discuss the division lgorithm. First we give forml definition nd note some properties of the division opertion.

More information

W. We shall do so one by one, starting with I 1, and we shall do it greedily, trying

W. We shall do so one by one, starting with I 1, and we shall do it greedily, trying Vitli covers 1 Definition. A Vitli cover of set E R is set V of closed intervls with positive length so tht, for every δ > 0 nd every x E, there is some I V with λ(i ) < δ nd x I. 2 Lemm (Vitli covering)

More information

On Hermite-Hadamard type integral inequalities for functions whose second derivative are nonconvex

On Hermite-Hadamard type integral inequalities for functions whose second derivative are nonconvex Mly J Mt 34 93 3 On Hermite-Hdmrd tye integrl ineulities for functions whose second derivtive re nonconvex Mehmet Zeki SARIKAYA, Hkn Bozkurt nd Mehmet Eyü KİRİŞ b Dertment of Mthemtics, Fculty of Science

More information

Quadratic Residues. Chapter Quadratic residues

Quadratic Residues. Chapter Quadratic residues Chter 8 Qudrtic Residues 8. Qudrtic residues Let n>be given ositive integer, nd gcd, n. We sy tht Z n is qudrtic residue mod n if the congruence x mod n is solvble. Otherwise, is clled qudrtic nonresidue

More information

Families of Solutions to Bernoulli ODEs

Families of Solutions to Bernoulli ODEs In the fmily of solutions to the differentil eqution y ry dx + = it is shown tht vrition of the initil condition y( 0 = cuses horizontl shift in the solution curve y = f ( x, rther thn the verticl shift

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

Parse trees, ambiguity, and Chomsky normal form

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

More information

2.4 Linear Inequalities and Interval Notation

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

More information

LECTURE 10: JACOBI SYMBOL

LECTURE 10: JACOBI SYMBOL LECTURE 0: JACOBI SYMBOL The Jcobi symbol We wish to generlise the Legendre symbol to ccomodte comosite moduli Definition Let be n odd ositive integer, nd suose tht s, where the i re rime numbers not necessrily

More information

Completeness of an Euler Diagrammatic System with Constant and Existential Points

Completeness of an Euler Diagrammatic System with Constant and Existential Points omleteness of n uler igrmmtic System with onstnt nd xistentil Points Ryo Tkemur Nihon University, Jn. tkemur.ryo@nihon-u.c.j strct We extend uler digrmmtic system of Minshim, Okd, & Tkemur (2012) y distinguishing

More information

GENERALIZED OSTROWSKI TYPE INEQUALITIES FOR FUNCTIONS WHOSE LOCAL FRACTIONAL DERIVATIVES ARE GENERALIZED s-convex IN THE SECOND SENSE

GENERALIZED OSTROWSKI TYPE INEQUALITIES FOR FUNCTIONS WHOSE LOCAL FRACTIONAL DERIVATIVES ARE GENERALIZED s-convex IN THE SECOND SENSE Journl of Alied Mthemtics nd Comuttionl Mechnics 6, 5(4), - wwwmcmczl -ISSN 99-9965 DOI: 75/jmcm64 e-issn 353-588 GENERALIZED OSTROWSKI TYPE INEQUALITIES FOR FUNCTIONS WHOSE LOCAL FRACTIONAL DERIVATIVES

More information

INEQUALITIES OF HERMITE-HADAMARD S TYPE FOR FUNCTIONS WHOSE DERIVATIVES ABSOLUTE VALUES ARE QUASI-CONVEX

INEQUALITIES OF HERMITE-HADAMARD S TYPE FOR FUNCTIONS WHOSE DERIVATIVES ABSOLUTE VALUES ARE QUASI-CONVEX INEQUALITIES OF HERMITE-HADAMARD S TYPE FOR FUNCTIONS WHOSE DERIVATIVES ABSOLUTE VALUES ARE QUASI-CONVEX M. ALOMARI A, M. DARUS A, AND S.S. DRAGOMIR B Astrct. In this er, some ineulities of Hermite-Hdmrd

More information

Hermite-Hadamard and Simpson-like Type Inequalities for Differentiable p-quasi-convex Functions

Hermite-Hadamard and Simpson-like Type Inequalities for Differentiable p-quasi-convex Functions Filomt 3:9 7 5945 5953 htts://doi.org/.98/fil79945i Pulished y Fculty of Sciences nd Mthemtics University of Niš Seri Aville t: htt://www.mf.ni.c.rs/filomt Hermite-Hdmrd nd Simson-like Tye Ineulities for

More information

Mrgolius 2 In the rticulr cse of Ploue's constnt, we tke = 2= 5+i= 5, nd = ;1, then ; C = tn;1 1 2 = ln(2= 5+i= 5) ln(;1) More generlly, we would hve

Mrgolius 2 In the rticulr cse of Ploue's constnt, we tke = 2= 5+i= 5, nd = ;1, then ; C = tn;1 1 2 = ln(2= 5+i= 5) ln(;1) More generlly, we would hve Ploue's Constnt is Trnscendentl Brr H. Mrgolius Clevelnd Stte University Clevelnd, Ohio 44115.mrgolius@csuohio.edu Astrct Ploue's constnt tn;1 ( 1 2) is trnscendentl. We rove this nd more generl result

More information

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

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

More information

Designing finite automata II

Designing finite automata II Designing finite utomt II Prolem: Design DFA A such tht L(A) consists of ll strings of nd which re of length 3n, for n = 0, 1, 2, (1) Determine wht to rememer out the input string Assign stte to ech of

More information

Name Ima Sample ASU ID

Name Ima Sample ASU ID Nme Im Smple ASU ID 2468024680 CSE 355 Test 1, Fll 2016 30 Septemer 2016, 8:35-9:25.m., LSA 191 Regrding of Midterms If you elieve tht your grde hs not een dded up correctly, return the entire pper to

More information

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true. York University CSE 2 Unit 3. DFA Clsses Converting etween DFA, NFA, Regulr Expressions, nd Extended Regulr Expressions Instructor: Jeff Edmonds Don t chet y looking t these nswers premturely.. For ech

More information

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

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

CIRCULAR COLOURING THE PLANE

CIRCULAR COLOURING THE PLANE CIRCULAR COLOURING THE PLANE MATT DEVOS, JAVAD EBRAHIMI, MOHAMMAD GHEBLEH, LUIS GODDYN, BOJAN MOHAR, AND REZA NASERASR Astrct. The unit distnce grph R is the grph with vertex set R 2 in which two vertices

More information

Homework 1 Solutions. 1. (Theorem 6.12(c)) Let f R(α) on [a, b] and a < c < b. Show f R(α) on [a, c] and [c, b] and that

Homework 1 Solutions. 1. (Theorem 6.12(c)) Let f R(α) on [a, b] and a < c < b. Show f R(α) on [a, c] and [c, b] and that Homework Solutions. (Theorem 6.(c)) Let f R(α) on [, b] nd < c < b. Show f R(α) on [, c] nd [c, b] nd tht fdα = ˆ c fdα + c fdα Solution. Let ɛ > 0 nd let be rtition of [, b] such tht U(, f, α) L(, f,

More information

On Suffix Tree Breadth

On Suffix Tree Breadth On Suffix Tree Bredth Golnz Bdkoeh 1,, Juh Kärkkäinen 2, Simon J. Puglisi 2,, nd Bell Zhukov 2, 1 Deprtment of Computer Science University of Wrwick Conventry, United Kingdom g.dkoeh@wrwick.c.uk 2 Helsinki

More information

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

Homework Solution - Set 5 Due: Friday 10/03/08 CE 96 Introduction to the Theory of Computtion ll 2008 Homework olution - et 5 Due: ridy 10/0/08 1. Textook, Pge 86, Exercise 1.21. () 1 2 Add new strt stte nd finl stte. Mke originl finl stte non-finl.

More information

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

Surface maps into free groups

Surface maps into free groups Surfce mps into free groups lden Wlker Novemer 10, 2014 Free groups wedge X of two circles: Set F = π 1 (X ) =,. We write cpitl letters for inverse, so = 1. e.g. () 1 = Commuttors Let x nd y e loops. The

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

The size of subsequence automaton

The size of subsequence automaton Theoreticl Computer Science 4 (005) 79 84 www.elsevier.com/locte/tcs Note The size of susequence utomton Zdeněk Troníček,, Ayumi Shinohr,c Deprtment of Computer Science nd Engineering, FEE CTU in Prgue,

More information

Hamiltonian Cycle in Complete Multipartite Graphs

Hamiltonian Cycle in Complete Multipartite Graphs Annls of Pure nd Applied Mthemtics Vol 13, No 2, 2017, 223-228 ISSN: 2279-087X (P), 2279-0888(online) Pulished on 18 April 2017 wwwreserchmthsciorg DOI: http://dxdoiorg/1022457/pmv13n28 Annls of Hmiltonin

More information

The Regulated and Riemann Integrals

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

More information

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations.

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations. Lecture 3 3 Solving liner equtions In this lecture we will discuss lgorithms for solving systems of liner equtions Multiplictive identity Let us restrict ourselves to considering squre mtrices since one

More information

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

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

More information

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

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

More information

Theoretical foundations of Gaussian quadrature

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

More information

Exercises with (Some) Solutions

Exercises with (Some) Solutions Exercises with (Some) Solutions Techer: Luc Tesei Mster of Science in Computer Science - University of Cmerino Contents 1 Strong Bisimultion nd HML 2 2 Wek Bisimultion 31 3 Complete Lttices nd Fix Points

More information

20 MATHEMATICS POLYNOMIALS

20 MATHEMATICS POLYNOMIALS 0 MATHEMATICS POLYNOMIALS.1 Introduction In Clss IX, you hve studied polynomils in one vrible nd their degrees. Recll tht if p(x) is polynomil in x, the highest power of x in p(x) is clled the degree of

More information

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4 Intermedite Mth Circles Wednesdy, Novemer 14, 2018 Finite Automt II Nickols Rollick nrollick@uwterloo.c Regulr Lnguges Lst time, we were introduced to the ide of DFA (deterministic finite utomton), one

More information

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

Lecture 6: Isometry. Table of contents

Lecture 6: Isometry. Table of contents Mth 348 Fll 017 Lecture 6: Isometry Disclimer. As we hve textook, this lecture note is for guidnce nd sulement only. It should not e relied on when rering for exms. In this lecture we nish the reliminry

More information

1B40 Practical Skills

1B40 Practical Skills B40 Prcticl Skills Comining uncertinties from severl quntities error propgtion We usully encounter situtions where the result of n experiment is given in terms of two (or more) quntities. We then need

More information

Harvard University Computer Science 121 Midterm October 23, 2012

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

More information

Homework 3 Solutions

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

More information

Name of the Student:

Name of the Student: SUBJECT NAME : Discrete Mthemtics SUBJECT CODE : MA 2265 MATERIAL NAME : Formul Mteril MATERIAL CODE : JM08ADM009 Nme of the Student: Brnch: Unit I (Logic nd Proofs) 1) Truth Tble: Conjunction Disjunction

More information

arxiv: v6 [math.nt] 20 Jan 2016

arxiv: v6 [math.nt] 20 Jan 2016 EXPONENTIALLY S-NUMBERS rxiv:50.0594v6 [mth.nt] 20 Jn 206 VLADIMIR SHEVELEV Abstrct. Let S be the set of ll finite or infinite incresing sequences of ositive integers. For sequence S = {sn)},n, from S,

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

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

Lecture 3: Equivalence Relations

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

More information

Torsion in Groups of Integral Triangles

Torsion in Groups of Integral Triangles Advnces in Pure Mthemtics, 01,, 116-10 http://dxdoiorg/1046/pm011015 Pulished Online Jnury 01 (http://wwwscirporg/journl/pm) Torsion in Groups of Integrl Tringles Will Murry Deprtment of Mthemtics nd Sttistics,

More information

CM10196 Topic 4: Functions and Relations

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

More information

Lecture 2: January 27

Lecture 2: January 27 CS 684: Algorithmic Gme Theory Spring 217 Lecturer: Év Trdos Lecture 2: Jnury 27 Scrie: Alert Julius Liu 2.1 Logistics Scrie notes must e sumitted within 24 hours of the corresponding lecture for full

More information

The area under the graph of f and above the x-axis between a and b is denoted by. f(x) dx. π O

The area under the graph of f and above the x-axis between a and b is denoted by. f(x) dx. π O 1 Section 5. The Definite Integrl Suppose tht function f is continuous nd positive over n intervl [, ]. y = f(x) x The re under the grph of f nd ove the x-xis etween nd is denoted y f(x) dx nd clled the

More information

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

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

More information

MORE FUNCTION GRAPHING; OPTIMIZATION. (Last edited October 28, 2013 at 11:09pm.)

MORE FUNCTION GRAPHING; OPTIMIZATION. (Last edited October 28, 2013 at 11:09pm.) MORE FUNCTION GRAPHING; OPTIMIZATION FRI, OCT 25, 203 (Lst edited October 28, 203 t :09pm.) Exercise. Let n be n rbitrry positive integer. Give n exmple of function with exctly n verticl symptotes. Give

More information

Discrete Mathematics and Probability Theory Spring 2013 Anant Sahai Lecture 17

Discrete Mathematics and Probability Theory Spring 2013 Anant Sahai Lecture 17 EECS 70 Discrete Mthemtics nd Proility Theory Spring 2013 Annt Shi Lecture 17 I.I.D. Rndom Vriles Estimting the is of coin Question: We wnt to estimte the proportion p of Democrts in the US popultion,

More information

Quadratic Forms. Quadratic Forms

Quadratic Forms. Quadratic Forms Qudrtic Forms Recll the Simon & Blume excerpt from n erlier lecture which sid tht the min tsk of clculus is to pproximte nonliner functions with liner functions. It s ctully more ccurte to sy tht we pproximte

More information

Math 61CM - Solutions to homework 9

Math 61CM - Solutions to homework 9 Mth 61CM - Solutions to homework 9 Cédric De Groote November 30 th, 2018 Problem 1: Recll tht the left limit of function f t point c is defined s follows: lim f(x) = l x c if for ny > 0 there exists δ

More information

Hadamard-Type Inequalities for s Convex Functions I

Hadamard-Type Inequalities for s Convex Functions I Punjb University Journl of Mthemtics ISSN 6-56) Vol. ). 5-6 Hdmrd-Tye Ineulities for s Convex Functions I S. Hussin Dertment of Mthemtics Institute Of Sce Technology, Ner Rwt Toll Plz Islmbd Highwy, Islmbd

More information

Formal languages, automata, and theory of computation

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

More information

Properties of Lorenz Curves for Transformed Income Distributions

Properties of Lorenz Curves for Transformed Income Distributions Theoreticl Economics etters 22 2 487-493 htt://ddoiorg/4236/tel22259 Published Online December 22 (htt://wwwscirporg/journl/tel) Proerties of orenz Curves for Trnsformed Income Distributions John Fellmn

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

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

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

More information

Connected-components. Summary of lecture 9. Algorithms and Data Structures Disjoint sets. Example: connected components in graphs

Connected-components. Summary of lecture 9. Algorithms and Data Structures Disjoint sets. Example: connected components in graphs Prm University, Mth. Deprtment Summry of lecture 9 Algorithms nd Dt Structures Disjoint sets Summry of this lecture: (CLR.1-3) Dt Structures for Disjoint sets: Union opertion Find opertion Mrco Pellegrini

More information

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata CS103B ndout 18 Winter 2007 Ferury 28, 2007 Finite Automt Initil text y Mggie Johnson. Introduction Severl childrens gmes fit the following description: Pieces re set up on plying ord; dice re thrown or

More information

1 From NFA to regular expression

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

More information

SOME INTEGRAL INEQUALITIES OF GRÜSS TYPE

SOME INTEGRAL INEQUALITIES OF GRÜSS TYPE RGMIA Reserch Report Collection, Vol., No., 998 http://sci.vut.edu.u/ rgmi SOME INTEGRAL INEQUALITIES OF GRÜSS TYPE S.S. DRAGOMIR Astrct. Some clssicl nd new integrl inequlities of Grüss type re presented.

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

Beginning Darboux Integration, Math 317, Intro to Analysis II

Beginning Darboux Integration, Math 317, Intro to Analysis II Beginning Droux Integrtion, Mth 317, Intro to Anlysis II Lets strt y rememering how to integrte function over n intervl. (you lerned this in Clculus I, ut mye it didn t stick.) This set of lecture notes

More information

dx dt dy = G(t, x, y), dt where the functions are defined on I Ω, and are locally Lipschitz w.r.t. variable (x, y) Ω.

dx dt dy = G(t, x, y), dt where the functions are defined on I Ω, and are locally Lipschitz w.r.t. variable (x, y) Ω. Chpter 8 Stility theory We discuss properties of solutions of first order two dimensionl system, nd stility theory for specil clss of liner systems. We denote the independent vrile y t in plce of x, nd

More information

MATH 573 FINAL EXAM. May 30, 2007

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

More information

Section 3.2 Maximum Principle and Uniqueness

Section 3.2 Maximum Principle and Uniqueness Section 3. Mximum Principle nd Uniqueness Let u (x; y) e smooth solution in. Then the mximum vlue exists nd is nite. (x ; y ) ; i.e., M mx fu (x; y) j (x; y) in g Furthermore, this vlue cn e otined y point

More information

Optimal Network Design with End-to-End Service Requirements

Optimal Network Design with End-to-End Service Requirements ONLINE SUPPLEMENT for Optiml Networ Design with End-to-End Service Reuirements Anntrm Blrishnn University of Tes t Austin, Austin, TX Gng Li Bentley University, Wlthm, MA Prsh Mirchndni University of Pittsurgh,

More information

Discrete Mathematics and Probability Theory Summer 2014 James Cook Note 17

Discrete Mathematics and Probability Theory Summer 2014 James Cook Note 17 CS 70 Discrete Mthemtics nd Proility Theory Summer 2014 Jmes Cook Note 17 I.I.D. Rndom Vriles Estimting the is of coin Question: We wnt to estimte the proportion p of Democrts in the US popultion, y tking

More information

Section 4: Integration ECO4112F 2011

Section 4: Integration ECO4112F 2011 Reding: Ching Chpter Section : Integrtion ECOF Note: These notes do not fully cover the mteril in Ching, ut re ment to supplement your reding in Ching. Thus fr the optimistion you hve covered hs een sttic

More information

Advanced Calculus: MATH 410 Notes on Integrals and Integrability Professor David Levermore 17 October 2004

Advanced Calculus: MATH 410 Notes on Integrals and Integrability Professor David Levermore 17 October 2004 Advnced Clculus: MATH 410 Notes on Integrls nd Integrbility Professor Dvid Levermore 17 October 2004 1. Definite Integrls In this section we revisit the definite integrl tht you were introduced to when

More information

On some inequalities for s-convex functions and applications

On some inequalities for s-convex functions and applications Özdemir et l Journl of Ineulities nd Alictions 3, 3:333 htt://wwwjournlofineulitiesndlictionscom/content/3//333 R E S E A R C H Oen Access On some ineulities for s-convex functions nd lictions Muhmet Emin

More information

OPIAL S INEQUALITY AND OSCILLATION OF 2ND ORDER EQUATIONS. 1. Introduction We consider the second-order linear differential equation.

OPIAL S INEQUALITY AND OSCILLATION OF 2ND ORDER EQUATIONS. 1. Introduction We consider the second-order linear differential equation. PROCEEDINGS OF THE AMERICAN MATHEMATICAL SOCIETY Volume 5, Numer, Aril 997, Pges 3 9 S 000-993997)03907-5 OPIAL S INEQUALITY AND OSCILLATION OF ND ORDER EQUATIONS R C BROWN AND D B HINTON Communicted y

More information

, if x 1 and f(x) = x, if x 0.

, if x 1 and f(x) = x, if x 0. Indin Institute of Informtion Technology Design nd Mnufcturing, Kncheepurm Chenni 600 7, Indi An Autonomous Institute under MHRD, Govt of Indi An Institute of Ntionl Importnce wwwiiitdmcin COM05T Discrete

More information

Interpreting Integrals and the Fundamental Theorem

Interpreting Integrals and the Fundamental Theorem Interpreting Integrls nd the Fundmentl Theorem Tody, we go further in interpreting the mening of the definite integrl. Using Units to Aid Interprettion We lredy know tht if f(t) is the rte of chnge of

More information

The maximal number of runs in standard Sturmian words

The maximal number of runs in standard Sturmian words The miml numer of runs in stndrd Sturmin words Pwe l Bturo Mrcin Piątkowski Wojciech Rytter Fculty of Mthemtics nd Computer Science Nicolus Copernicus University Institute of Informtics Wrsw University

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

Bernoulli Numbers Jeff Morton

Bernoulli Numbers Jeff Morton Bernoulli Numbers Jeff Morton. We re interested in the opertor e t k d k t k, which is to sy k tk. Applying this to some function f E to get e t f d k k tk d k f f + d k k tk dk f, we note tht since f

More information

Review: set theoretic definition of the numbers. Natural numbers:

Review: set theoretic definition of the numbers. Natural numbers: Review: reltions A inry reltion on set A is suset R Ñ A ˆ A, where elements p, q re written s. Exmple: A Z nd R t pmod nqu. A inry reltion on set A is... (R) reflexive if for ll P A; (S) symmetric if implies

More information