A Brief History of Strahler Numbers

Size: px
Start display at page:

Download "A Brief History of Strahler Numbers"

Transcription

1 A Brief History of Strhler Numbers Jvier Esprz, Mihel Luttenberger, nd Mximilin Shlund Fkultät für Informtik, Tehnishe Universität Münhen, Germny Abstrt. The Strhler number or Horton-Strhler number of tree, originlly introdued in geophysis, hs surprisingly rih theory. We sketh some milestones in its history, nd its onnetion to rithmeti expressions, grph trversing, deision problems for ontext-free lnguges, Prikh s theorem, nd Newton s proedure for pproximting zeros of differentible funtions. The Strhler Number In 945, the geophysiist Robert Horton found it useful to ssoite strem order to system of rivers (geophysiists seem to prefer the term strem ) [0]. Unbrnhed fingertip tributries re lwys designted s of order, tributries or strems of the d order reeive brnhes or tributries of the st order, but these only; 3d order strem must reeive one or more tributries of the d order but my lso reeive st order tributries. A 4th order strem reeives brnhes of the 3d nd usully lso of lower orders, nd so on. Severl yers lter, Arthur N. Strhler repled this mbiguous definition by simpler one, very esy to ompute [6]: The smllest, or finger-tip, hnnels onstitute the first-order segments. [... ]. A seond-order segment is formed by the juntion of ny two first-order strems; third-order segment is formed by the joining of ny two seond order strems, et. Strems of lower order joining higher order strem do not hnge the order of the higher strem. Thus, if first-order strem joins seond-order strem, it remins seond-order strem. Figure shows the Strhler number for frgment of the ourse of the Elbe river with some of its tributries. The strem system is of order 4. From omputer siene point of view, strem systems re just trees. Definition. Let t be tree with root r. The Strhler number of t, denoted by S(t), is indutively defined s follows. If r hs no hildren (i.e., t hs only one node), then S(t) = 0.

2 4 3 3 Fig.. Strhler numbers for frgment of the Elbe river. If r hs hildren r,..., r n, then let t,..., t n be the subtrees of t rooted t r,..., r n, nd let k = mx{s(t ),..., S(t n )}: if extly one of t,..., t n hs Strhler number k, then S(t) = k; otherwise, S(t) = k +. Note tht in this forml definition the Strhler number of simple hin ( finger-tip ) is zero, nd not one. This llows nother hrteriztion of the Strhler number of tree t s the height of the lrgest minor of t tht is perfet binry tree (i.e., rooted tree where every inner node hs two hildren nd ll leves hve the sme distne to the root): Roughly speking, suh binry tree is obtined by, strting t the root, following pths long whih the Strhler number never dereses by more thn one unit t time, nd then ontrting ll nodes with only one hild. If t itself is binry tree, then this minor is unique. We leve the detils s smll exerise. Figure shows trees with Strhler number,, nd 3, respetively. Eh node is lbeled with the Strhler number of the subtree rooted t it. Together with other prmeters, like bifurtion rtio nd men strem length, Horton nd Strhler used strem orders to derive quntittive empiril lws for strem systems. Tody, geophysiists spek of the Strhler number (or Horton-Strhler number) of strem system. Aording to the exellent Wikipedi rtile on the Strhler number (minly due to Dvid Eppstein), the Amzon nd the Mississippi hve Strhler numbers of 0 nd, respetively.

3 Fig.. Trees of Strhler number,, nd 3. Strhler Numbers nd Tree Trversl The first pperne of the Strhler number in Computer Siene seems to be due to Ershov in 958 [8], who observed tht the number of registers needed to evlute n rithmeti expression is given by the Strhler number of its syntx tree. For instne, the syntx tree of (x + y z) t, shown on the left of Figure 3, hs Strhler number, nd indeed n be omputed with just two registers R, R by mens of the ode shown on the right. + x y z w R y R z R R R R x R R + R R w R R R Fig. 3. An rithmeti expression of Strhler number The strtegy for evluting expression e = e op e is esy: strt with the subexpression whose tree hs lowest Strhler number, sy e ; store the result in register, sy R ; reuse ll other registers to evlute e ; store the result in R ; store the result of R opr in R. Ershov s observtion is relled by Fljolet, Roult nd Vuillemin in [6], where they dd nother observtion of their own: the Strhler number of binry tree is the miniml stk size required to trverse it. Let us tth to eh node of the tree the Strhler number of the subtree rooted t it. The trversing proedure follows gin the lowest-number-first poliy (notie tht rithmeti expressions yield binry trees). If node with number k hs two hildren, then

4 4 the trversing proedure moves to the hild with lowest number, nd pushes the (memory ddress of the) other hild onto the stk. If the node is lef, then the proedure pops the top node of the stk nd jumps to it. To prove tht the stk size never exeeds the Strhler number, we observe tht, if node of number k hs two hildren, then t lest one of its hildren hs number smller thn k. So the proedure only pushes node onto the stk when it moves to node of stritly smller number, nd we re done. Notie, however, tht the lowest-number-first poliy requires to know the Strhler number of the nodes. If these re unknown, ll we n sy is tht nondeterministi trversing proedure lwys needs stk of size t lest equl to the Strhler number, nd tht it my sueed in trversing the tree with stk of extly tht size.. Distribution of Strhler Numbers The gol of Fljolet, Roult nd Vuillemin s pper is to study the distribution of Strhler numbers in the binry trees with fixed number n of leves. Let S n be the rndom vrible orresponding to the Strhler number of binry tree (every node hs either two or 0 hildren) with n internl nodes hosen uniformly t rndom. Sine the Strhler number of t is the height of the lrgest perfet binry tree embeddble in t, we immeditely hve S n log (n+). The pper shows tht Exp[S n ] log 4 n nd Vr[S n ] O(). In other words, when n grows the Strhler number of most trees beomes inresingly loser to log 4 n. Independently of Fljolet, Roult nd Vuillemin, lso Kemp derives in [] the sme symptoti behviour of the expeted Strhler number of rndom binry tree. Lter, Fljolet nd Prodinger extend the nlysis to trees with both binry nd unry inner nodes [7]. Finlly, Devroye nd Kruszewski show in [5] tht the probbility tht the Strhler number of rndom binry tree with n nodes devites by t lest k from the expeted Strhler number of log 4 n is bounded from bove by, tht is, the Strhler number is 4 k highly onentrted round its expeted vlue.. Strhler Numbers in Lnguge Theory: Derivtion indies, Cterpillrs, nd Dimensions Derivtion indies nd terpillrs. The Strhler number hs been redisovered (multiple times!) by the forml lnguge ommunity. In [9], Ginsburg nd Spnier introdue the index of derivtion S α α w of given grmmr s the mximl number of vribles ourring in ny of the sententil forms α i (see lso [7]). For instne, onsider the grmmr X XX b. The index of the derivtions X XX XXX bxx bbx bbb X XX bxx bxx bbx bbb

5 5 is 3 (beuse of XXX) nd, respetively. For ontext-free grmmrs, where we hve the notion of derivtion tree of word, we define the index of derivtion tree s the miniml index of its derivtions. If the grmmr is in Chomsky norml form, then derivtion tree hs index k if nd only if its Strhler number is (k ). A first use of the Strhler number of derivtion trees n be found in [4], where Chytil nd Monien, pprently unwre of the Strhler number, introdue k-terpillrs s follows: A terpillr is n ordered tree in whih ll verties of outdegree greter thn one our on single pth from the root to lef. A -terpillr is simply terpillr nd for k > k-terpillr is tree obtined from terpillr by repling eh hir by tree whih is t most (k )- terpillr. Clerly, tree is k-terpillr if nd only if its Strhler number is equl to k. Let L k (G) be the subset of words of L(G) hving derivtion tree of Strhler number t most k (or, equivlently, being k-terpillr). Chytil nd Monien prove tht there exists nondeterministi Turing mhine with lnguge L(G) tht reognizes L k (G) in spe O(k log G ). Assume for simpliity tht G is in Chomsky norml form. In order to nondeterministilly reognize w =... n L k (G), we guess on-the-fly (i.e., while trversing it) derivtion tree of w with Strhler number t most k, using stk of height t most k. The trversing proedure follows the smller-number-first poliy. More preisely, the nodes of the tree re triples (X, i, j) with intended mening X genertes tree with yield i... j. We strt t node (S,, n). At generi node (X, i, j), we proeed s follows. If i = j, then we hek tht X i is prodution, pop new node, nd jump to it. If i < j, then we guess prodution, sy X Y Z, nd n index i l j, guess whih of (Y,, i) nd (Z, l, j) genertes the subtree of lowest number, sy (Y, i, l), nd jump to it, pushing (Z, l, j) onto the stk. The trversing proedure n lso be used to hek emptiness of L k (G) in nondeterministi logrithmi spe (remember: k is not prt of the input) [3]. In this se we do not even need to guess indies: if the urrent node is lbeled by X, then we proeed s follows. If X hs no produtions, then we stop. If G hs prodution X for some terminl, we pop the next node from the stk nd jump to it. If G hs produtions for X, but only of the form X Y Z, then we guess one of them nd proeed s bove. Notie tht heking emptiness of L(G) is P -omplete problem, nd so unlikely to be solvble in logrithmi spe. Tree dimension. The uthors of this pper re lso guilty of redisovering the Strhler number. In [9] we defined the dimension of tree, whih is... nothing but its Strhler number. Severl ppers [9,, 8, 3] hve used tree dimension The nme dimension ws hosen to reflet tht trees with Strhler number re hin (with hirs), trees of dimension re hins of hins (with hirs), tht n be

6 6 (tht is, they hve used the Strhler number) to show tht L n+ (G), where n is the number of vribles of grmmr G in Chomsky norml form, hs interesting properties : () Every w L(G) is sttered subword of some w L n+ (G) [3]. () For every w L(G) there exists w L n+ (G) suh tht w nd w hve the sme Prikh imge, where the Prikh imge of word w is the funtion Σ N tht ssigns to every terminl the number of times it ours in w. Equivlently, w nd w hve the sme Prikh imge if w n be obtined from w by reordering its letters [9]. The first property hs lredy found t lest one interesting pplition in the theory of forml verifition (see [3]). The seond property hs been used in [] to provide simple onstrutive proof of Prikh s theorem. Prikh s theorem sttes tht for every ontext-free lnguge L there is regulr lnguge L suh tht L nd L hve the sme Prikh imge (i.e., the set of Prikh imges of the words of L nd L oinide). For instne, if L = { n b n n 0}, then we n tke L = (b). The proof desribes proedure to onstrut this utomton. By property (), it suffies to onstrut n utomton A suh tht L(A) nd L k+ (G) hve the sme Prikh imge. We onstrut A so tht its runs simulte the derivtions of G of index t most k +. Consider for instne the ontext-free grmmr with vribles A, A (nd so k = ), terminls, b,, xiom A, nd produtions A A A A ba A A Figure 4 shows on the left derivtion of index 3, nd on the right the run of A simulting it. The sttes store the urrent number of ourrenes of A nd A, nd the trnsitions keep trk of the terminls generted t eh derivtion step. The run of A genertes b, whih hs the sme Prikh imge s b. The omplete utomton is shown in Figure 5. 3 Strhler Numbers nd Newton s method Finlly, we present surprising onnetion between the Strhler number nd Newton s method to numerilly pproximte zero of funtion. The onnetion works for multivrite funtions, but in this note we just onsider the univrite se. Consider n eqution of the form X = f(x), where f(x) is polynomil with nonnegtive rel oeffiients. Sine the right-hnd-side is monotoni funtion, by Knster-Trski s or Kleene s theorem the eqution hs extly one smllest niely drwn in the plne, trees of dimension 3 re hins of hins of hins (with hirs), with n be niely displyed in 3-dimensionl spe, et. For n rbitrry grmmr G, the sme properties hold for L nm+(g), where m is the mximl number of vribles on the right-hnd-side of prodution, minus. If G is in Chomsky norml form, then m.

7 7 A (0, ) A A ɛ (, ) A ba A A ba A ba A ba ba b b (, ) (, ) (, ) (0, ) (, 0) (0, 0) Fig. 4. A derivtion nd its simultion. 0, 0, 0, 0 3, 0 ε ε 0,,, b ε b 0,, b 0, 3 Fig. 5. The Prikh utomton of A A A, A ba A A with xiom A. solution (possibly equl to ). We denote this solution by µf. It is perhps less known tht µf n be given lnguge-theoreti interprettion. We explin this by mens of n exmple (see [4] for more detils). Consider the eqution X = 4 X + 4 X + () It is equivlent to (X )(X ) = 0, nd so its lest solution is X =. We introdue identifiers, b, for the oeffiients, yielding the forml eqution X = f(x) := X + bx +. () We rewrite this eqution s ontext-free grmmr in Greibh norml form in the wy one would expet: G : X XX bx, (3)

8 8 Consider now the derivtion trees of this grmmr. It is onvenient to rewrite the derivtion trees s shown in Figure 6: We write terminl not t lef, but t its prent node, nd so we now write the derivtion tree on the left of the figure in the wy shown on the right. Notie tht, sine eh prodution genertes different terminl, both representtions ontin extly the sme informtion. 3 X X X b b X X X b b X Fig. 6. New onvention for writing derivtion trees We ssign to eh derivtion tree t its vlue V (t), defined s the produt of the oeffiients lbeling the nodes. So, for instne, for the tree of Figure 6 we get the vlue b 3 = (/4) 4 (/) 3 = /8. Further, we define the vlue V (T ) of set T of trees s t T V (t) (whih n be shown to be well defined, even if T is infinite). If we denote by T G the set of ll derivtion trees of G, then µf = V (T G ). (4) The erliest referene for the this theorem in ll its generlity we re wre of is Bozplidis [] (Theorem 6) to whom lso [6] gives redit. A well-known tehnique to pproximte µf is Kleene itertion, whih onsists of omputing the sequene {κ i } i N of Kleene pproximnts given by κ 0 = 0 κ i+ = f(κ i ) for every i 0 It is esy to show tht this orresponds to evluting the derivtion trees (with our new onvention) by height. More preisely, if H i is the set of derivtion trees of T G of height less thn i, we get κ i = V (H i ) (5) In other words, the Kleene pproximnts orrespond to evluting the derivtion trees of G by inresing height. 3 This little hnge is neessry, beuse the tree of the derivtion X hs Strhler number if trees re drwn in the stndrd wy, nd 0 ording to our new onvention.

9 9 It is well known tht onvergene of Kleene itertion n be slow: in the worst se, the number of orret digits grows only logrithmilly in the number of itertions. Newton itertion hs muh fster onvergene (f. [5, 0, 5]). Rell tht Newton itertion pproximtes zero of differentible funtion g(x). For this, given n pproximtion ν i of the zero, one geometrilly omputes the next pproximtion s follows: ompute the tngent to g(x) t the point (ν i, g(ν i )); tke for ν i+ the X-omponents of the intersetion point of the tngent nd the x-xis. For funtions of the form g(x) = f(x) X, n elementry lultion yields the sequene {ν i } i N of Newton pproximnts ν 0 = 0 ν i+ = ν i f(ν i) ν i f (ν i ) We remrk tht in generl hoosing ν 0 = 0 s the initil pproximtion my not led to onvergene only in the speil ses of the nonnegtive rels or, more generlly, ω-ontinuous semirings, onvergene is gurnteed for ν 0 = 0. A result of [] (lso derived independently in [3]) shows tht, if S i is the set of derivtion trees of T G of Strhler number less thn i (where trees re drwn ording to our new onvention), then ν i = V (S i ) (6) In other words, the Newton pproximnts orrespond to evluting the derivtion trees of G by inresing Strhler number! The onnetion between Newton pproximnts nd Strhler numbers hs severl interesting onsequenes. In prtiulr, one n use results on the onvergene speed of Newton itertion [3] to derive informtion on the distribution of the Strhler number in rndomly generted trees. Consider for instne rndom trees generted ording to the following rule. A node hs three hildren with probbility 0., two hildren with probbility 0., one hild with probbility 0., nd zero hildren with probbility 0.6. Let G the ontext-free grmmr X XXX bxx X d with vlution V () = 0., V (b) = 0., V () = 0., V (d) = 0.6. It is esy to see tht the probbility of generting tree t is equl to its vlue V (t). For instne, the tree t of Figure 7 stisfies Pr[t] = V (t) = b d 5. Therefore, the Newton pproximnts of the eqution X = 0.X X + 0.X + 0.6

10 0 b d d d b d d Fig. 7. A tree with probbility b d 5 give the distribution of the rndom vrible S tht ssigns to eh tree its Strhler number. Sine f(x) = 0.X 3 +0.X +0.X +0.6 nd f (X) = 0.3X + 0.4X + 0., we get ν 0 = 0.6 ν i+ = ν i ν3 i + ν i 9ν i + 6 3ν i + 4ν i 9 nd so for the first pproximnts we esily obtin ν 0 = Pr[S < 0] = 0 ν = Pr[S < ] = ν = Pr[S < ] ν 3 = Pr[S < 3] ν 4 = Pr[S < 4] As we n see, the probbility onverges very rpidly towrds. This is not oinidene. The funtion f(x) stisfies µf <, nd theorem of [3] shows tht for every f stisfying this property, there exist numbers > 0 nd 0 < d < suh tht Pr[S k] d k. 4 Strhler numbers nd... We hve exhusted neither the list of properties of the Strhler number, nor the works tht hve obtined them or used them. To prove the point, we mention some more ppers. In 978, Ehrenfeuht et l. introdued the sme onept for derivtion trees w.r.t. ET0L systems in [7] where it ws lled tree-rnk. Meggido et l. introdued in 98 the serh number of n undireted tree []: the miniml number of polie offiers required to pture fugitive when polie offiers my move long edges from one node to nother, nd the fugitive n move from n edge to n inident one s long s the ommon vertex is not bloked by polie offier; the fugitive is ptured when he nnot move nymore. For trees, the serh number oinides with the better known pthwidth (see e.g. []), defined for generl grphs. In order to relte the pthwidth

11 to the Strhler number, we need to extend the definition of the ltter to undireted trees: let the Strhler number S(t) of n undireted tree be the miniml Strhler number of ll the direted trees obtined by hoosing node s root, nd orienting ll edges wy from it. We n show tht for ny tree t: pthwidth(t) S(t) pthwidth(t) Currently, we re studying the Strhler number in the ontext of nturl lnguge proessing. Rell tht the Strhler number mesures the miniml height of stk required to trverse tree, or, more informlly, the miniml mount of memory required to proess it. We onjeture tht most sentenes of nturl lnguge should hve smll Strhler number simply not to overburden the reder or listener. Tble ontins the results of n exmintion of severl publily vilble tree bnks (bnks of sentenes tht hve been mnully prsed by humn linguists), whih seem to support this onjeture. For eh lnguge we hve omputed the verge nd mximum Strhler number of the prse trees in the orresponding tree bnk. We re urrently investigting whether this ft n be used to improve unlexilized prsing of nturl lnguges. Lnguge Soure Averge Mximum Bsque SPMRL. 3 English Penn.38 4 Frenh SPMRL.9 4 Germn SPMRL.94 4 Germn TueB-D/Z.3 4 Hebrew SPMRL.44 4 Hungrin SPMRL. 4 Koren SPMRL.8 4 Polish SPMRL.68 3 Swedish SPMRL.83 4 Tble. Averge nd mximum Strhler numbers for severl treebnks of nturl lnguges. : SPMRL shred tsk dtset, : 0% smple from the Penn treebnk shipped with python nltk, : TueB-D/Z treebnk. 5 Conlusions We hve skethed the history of the Strhler number, whih hs been redisovered surprising number of times, reeived surprising number of different nmes (strem order, strem rnk, index, tree rnk, tree dimension, k-terpillr... ), nd turns out to hve surprising number of pplitions nd onnetions (Prikh s theorem, Newton s method, pthwidth... ).

12 This pper is by no mens exhustive, nd we pologize in dvne to the mny uthors we hve surely forgotten. We intend to extend this pper with further referenes. If you know of further work onneted to the Strhler number, plese ontt us. 6 Aknowledgments We thnk Crlos Esprz for his help with some lultions. Referenes. D. Bienstok, N. Robertson, P. Seymour, nd R. Thoms. Quikly exluding forest. Journl of Combintoril Theory, Series B, 5():74 83, 99.. S. Bozplidis. Equtionl elements in dditive lgebrs. Theory Comput. Syst., 3(): 33, Tomás Brázdil, Jvier Esprz, Stefn Kiefer, nd Mihel Luttenberger. Speeffiient sheduling of stohstilly generted tsks. Inf. Comput., 0:87 0, Mihl Chytil nd Burkhrd Monien. Cterpillrs nd ontext-free lnguges. In Christin Choffrut nd Thoms Lenguer, editors, STACS, volume 45 of Leture Notes in Computer Siene, pges Springer, L. Devroye nd P. Kruszewski. A note on the Horton-Strhler number for rndom trees. Inf. Proess. Lett., 56():95 99, M. Droste, W. Kuih, nd H. Vogler. Hndbook of Weighted Automt. Springer, Andrzej Ehrenfeuht, Grzegorz Rozenberg, nd Dirk Vermeir. On et0l systems with finite tree-rnk. SIAM J. Comput., 0():40 58, A. P. Ershov. On progrmming of rithmeti opertions. Comm. ACM, (8):3 9, J. Esprz, S. Kiefer, nd M. Luttenberger. On fixed point equtions over ommuttive semirings. In STACS, volume 4393 of LNCS, pges Springer, J. Esprz, S. Kiefer, nd M. Luttenberger. Computing the lest fixed point of positive polynomil systems. SIAM J. Comput., 39(6):8 335, 00.. J. Esprz, S. Kiefer, nd M. Luttenberger. Newtonin progrm nlysis. J. ACM, 57(6):33, 00.. Jvier Esprz, Pierre Gnty, Stefn Kiefer, nd Mihel Luttenberger. Prikhs theorem: A simple nd diret utomton onstrution. Inf. Proess. Lett., ():64 69, Jvier Esprz, Pierre Gnty, nd Rupk Mjumdr. Prmeterized verifition of synhronous shred-memory systems. In Shrygin nd Veith [4], pges Jvier Esprz nd Mihel Luttenberger. Solving fixed-point equtions by derivtion tree nlysis. In Andre Corrdini, Brtek Klin, nd Corin Cîrste, editors, CALCO, volume 6859 of Leture Notes in Computer Siene, pges Springer, K. Etessmi nd M. Ynnkkis. Reursive mrkov hins, stohsti grmmrs, nd monotone systems of nonliner equtions. J. ACM, 56(), 009.

13 6. P. Fljolet, J.-C. Roult, nd J. Vuillemin. The number of registers required for evluting rithmeti expressions. Theor. Comput. Si., 9:99 5, Philippe Fljolet nd Helmut Prodinger. Register llotion for unry-binry trees. SIAM J. Comput., 5(3):69 640, Pierre Gnty, Rupk Mjumdr, nd Benjmin Monmege. Bounded underpproximtions. Forml Methods in System Design, 40():06 3, S. Ginsburg nd E. Spnier. Derivtion-bounded lnguges. Journl of Computer nd System Sienes, :8 50, R. E. Horton. Erosionl development of strems nd their dringe bsins: hydrophysil pproh to quntittive morphology. Geol. So. Am. Bull., 56(3):75 370, R. Kemp. The verge number of registers needed to evlute binry tree optimlly. At Informti, :363 37, N. Megiddo, S. Louis Hkimi, M. R. Grey, D. S. Johnson, nd C. H. Ppdimitriou. The omplexity of serhing grph (preliminry version). In FOCS, pges IEEE Computer Soiety, C. Pivoteu, B. Slvy, nd M. Sori. Algorithms for ombintoril strutures: Wellfounded systems nd newton itertions. J. Comb. Theory, Ser. A, 9(8):7 773, Ntsh Shrygin nd Helmut Veith, editors. Computer Aided Verifition - 5th Interntionl Conferene, CAV 03, Sint Petersburg, Russi, July 3-9, 03. Proeedings, volume 8044 of Leture Notes in Computer Siene. Springer, A. Stewrt, K. Etessmi, nd M. Ynnkkis. Upper Bounds for Newton s Method on Monotone Polynomil Systems, nd P-Time Model Cheking of Probbilisti One-Counter Automt. In Shrygin nd Veith [4], pges A. N. Strhler. Hypsometri (re-ltitude) nlysis of erosionl topology. Geol. So. Am. Bull., 63():7 4, M.K. Yntem. Inlusion reltions mong fmilies of ontext-free lnguges. Informtion nd Control, 0:57 597,

A Brief History of Strahler Numbers with a Preface

A Brief History of Strahler Numbers with a Preface A Brief History of Strhler Numbers with Prefe Jvier Esprz, Mihel Luttenberger, nd Mximilin Shlund Fkultät für Informtik, Tehnishe Universität Münhen, Germny Abstrt. The Strhler number or Horton-Strhler

More information

Solving Fixed-Point Equations by Derivation Tree Analysis

Solving Fixed-Point Equations by Derivation Tree Analysis Solving Fixed-Point Equtions by Derivtion Tree Anlysis Jvier Esprz nd Mihel Luttenberger Institut für Informtik, Tehnishe Universität Münhen, 85748 Grhing, Germny {esprz,luttenbe}@in.tum.de Abstrt. Systems

More information

Bisimulation, Games & Hennessy Milner logic

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

More information

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

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

More information

CS 573 Automata Theory and Formal Languages

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

More information

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

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

More information

Part 4. Integration (with Proofs)

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

More information

Math 32B Discussion Session Week 8 Notes February 28 and March 2, f(b) f(a) = f (t)dt (1)

Math 32B Discussion Session Week 8 Notes February 28 and March 2, f(b) f(a) = f (t)dt (1) Green s Theorem Mth 3B isussion Session Week 8 Notes Februry 8 nd Mrh, 7 Very shortly fter you lerned how to integrte single-vrible funtions, you lerned the Fundmentl Theorem of lulus the wy most integrtion

More information

, g. Exercise 1. Generator polynomials of a convolutional code, given in binary form, are g. Solution 1.

, g. Exercise 1. Generator polynomials of a convolutional code, given in binary form, are g. Solution 1. Exerise Genertor polynomils of onvolutionl ode, given in binry form, re g, g j g. ) Sketh the enoding iruit. b) Sketh the stte digrm. ) Find the trnsfer funtion T. d) Wht is the minimum free distne of

More information

Hyers-Ulam stability of Pielou logistic difference equation

Hyers-Ulam stability of Pielou logistic difference equation vilble online t wwwisr-publitionsom/jns J Nonliner Si ppl, 0 (207, 35 322 Reserh rtile Journl Homepge: wwwtjnsom - wwwisr-publitionsom/jns Hyers-Ulm stbility of Pielou logisti differene eqution Soon-Mo

More information

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

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

More information

INTEGRATION. 1 Integrals of Complex Valued functions of a REAL variable

INTEGRATION. 1 Integrals of Complex Valued functions of a REAL variable INTEGRATION NOTE: These notes re supposed to supplement Chpter 4 of the online textbook. 1 Integrls of Complex Vlued funtions of REAL vrible If I is n intervl in R (for exmple I = [, b] or I = (, b)) nd

More information

(a) A partition P of [a, b] is a finite subset of [a, b] containing a and b. If Q is another partition and P Q, then Q is a refinement of P.

(a) A partition P of [a, b] is a finite subset of [a, b] containing a and b. If Q is another partition and P Q, then Q is a refinement of P. Chpter 7: The Riemnn Integrl When the derivtive is introdued, it is not hrd to see tht the it of the differene quotient should be equl to the slope of the tngent line, or when the horizontl xis is time

More information

Line Integrals and Entire Functions

Line Integrals and Entire Functions Line Integrls nd Entire Funtions Defining n Integrl for omplex Vlued Funtions In the following setions, our min gol is to show tht every entire funtion n be represented s n everywhere onvergent power series

More information

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6

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

More information

Section 3.6. Definite Integrals

Section 3.6. Definite Integrals The Clulus of Funtions of Severl Vribles Setion.6 efinite Integrls We will first define the definite integrl for funtion f : R R nd lter indite how the definition my be extended to funtions of three or

More information

Chapter 3. Vector Spaces. 3.1 Images and Image Arithmetic

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

More information

Nondeterministic Automata vs Deterministic Automata

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

More information

Lecture 1 - Introduction and Basic Facts about PDEs

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

More information

Global alignment. Genome Rearrangements Finding preserved genes. Lecture 18

Global alignment. Genome Rearrangements Finding preserved genes. Lecture 18 Computt onl Biology Leture 18 Genome Rerrngements Finding preserved genes We hve seen before how to rerrnge genome to obtin nother one bsed on: Reversls Knowledge of preserved bloks (or genes) Now we re

More information

6.5 Improper integrals

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

More information

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

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

More information

T b a(f) [f ] +. P b a(f) = Conclude that if f is in AC then it is the difference of two monotone absolutely continuous functions.

T b a(f) [f ] +. P b a(f) = Conclude that if f is in AC then it is the difference of two monotone absolutely continuous functions. Rel Vribles, Fll 2014 Problem set 5 Solution suggestions Exerise 1. Let f be bsolutely ontinuous on [, b] Show tht nd T b (f) P b (f) f (x) dx [f ] +. Conlude tht if f is in AC then it is the differene

More information

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

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

More information

1.4 Nonregular Languages

1.4 Nonregular Languages 74 1.4 Nonregulr Lnguges The number of forml lnguges over ny lphbet (= decision/recognition problems) is uncountble On the other hnd, the number of regulr expressions (= strings) is countble Hence, ll

More information

Electromagnetism Notes, NYU Spring 2018

Electromagnetism Notes, NYU Spring 2018 Eletromgnetism Notes, NYU Spring 208 April 2, 208 Ation formultion of EM. Free field desription Let us first onsider the free EM field, i.e. in the bsene of ny hrges or urrents. To tret this s mehnil system

More information

Finite State Automata and Determinisation

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

More information

Project 6: Minigoals Towards Simplifying and Rewriting Expressions

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

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 Automt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Problem (II) Chpter II.5.: Properties of Context Free Grmmrs (14) Anton Setzer (Bsed on book drft by J. V. Tucker nd K. Stephenson)

More information

arxiv: v1 [math.ca] 21 Aug 2018

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

More information

SEMANTIC ANALYSIS PRINCIPLES OF PROGRAMMING LANGUAGES. Norbert Zeh Winter Dalhousie University 1/28

SEMANTIC ANALYSIS PRINCIPLES OF PROGRAMMING LANGUAGES. Norbert Zeh Winter Dalhousie University 1/28 SEMNTI NLYSIS PRINIPLES OF PROGRMMING LNGUGES Norbert Zeh Winter 2018 Dlhousie University 1/28 PROGRM TRNSLTION FLOW HRT Soure progrm (hrter strem) Snner (lexil nlysis) Front end Prse tree Prser (syntti

More information

CS 491G Combinatorial Optimization Lecture Notes

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

More information

Discrete Structures Lecture 11

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

More information

Closure Properties of Regular Languages

Closure Properties of Regular Languages Closure Properties of Regulr Lnguges Regulr lnguges re closed under mny set opertions. Let L 1 nd L 2 e regulr lnguges. (1) L 1 L 2 (the union) is regulr. (2) L 1 L 2 (the conctention) is regulr. (3) L

More information

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh Lnguges nd Automt Finite Automt Informtics 2A: Lecture 3 John Longley School of Informtics University of Edinburgh jrl@inf.ed.c.uk 22 September 2017 1 / 30 Lnguges nd Automt 1 Lnguges nd Automt Wht is

More information

f (x)dx = f(b) f(a). a b f (x)dx is the limit of sums

f (x)dx = f(b) f(a). a b f (x)dx is the limit of sums Green s Theorem If f is funtion of one vrible x with derivtive f x) or df dx to the Fundmentl Theorem of lulus, nd [, b] is given intervl then, ording This is not trivil result, onsidering tht b b f x)dx

More information

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

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

More information

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

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

More information

Tutorial Worksheet. 1. Find all solutions to the linear system by following the given steps. x + 2y + 3z = 2 2x + 3y + z = 4.

Tutorial Worksheet. 1. Find all solutions to the linear system by following the given steps. x + 2y + 3z = 2 2x + 3y + z = 4. Mth 5 Tutoril Week 1 - Jnury 1 1 Nme Setion Tutoril Worksheet 1. Find ll solutions to the liner system by following the given steps x + y + z = x + y + z = 4. y + z = Step 1. Write down the rgumented mtrix

More information

MATH Final Review

MATH Final Review MATH 1591 - Finl Review November 20, 2005 1 Evlution of Limits 1. the ε δ definition of limit. 2. properties of limits. 3. how to use the diret substitution to find limit. 4. how to use the dividing out

More information

Chapter 4 State-Space Planning

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

More information

Ling 3701H / Psych 3371H: Lecture Notes 9 Hierarchic Sequential Prediction

Ling 3701H / Psych 3371H: Lecture Notes 9 Hierarchic Sequential Prediction Ling 3701H / Psyh 3371H: Leture Notes 9 Hierrhi Sequentil Predition Contents 9.1 Complex events.................................... 1 9.2 Reognition of omplex events using event frgments................

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

Review of basic calculus

Review of basic calculus Review of bsic clculus This brief review reclls some of the most importnt concepts, definitions, nd theorems from bsic clculus. It is not intended to tech bsic clculus from scrtch. If ny of the items below

More information

18.06 Problem Set 4 Due Wednesday, Oct. 11, 2006 at 4:00 p.m. in 2-106

18.06 Problem Set 4 Due Wednesday, Oct. 11, 2006 at 4:00 p.m. in 2-106 8. Problem Set Due Wenesy, Ot., t : p.m. in - Problem Mony / Consier the eight vetors 5, 5, 5,..., () List ll of the one-element, linerly epenent sets forme from these. (b) Wht re the two-element, linerly

More information

2.4 Theoretical Foundations

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

More information

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

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

More information

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS.

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS. THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS RADON ROSBOROUGH https://intuitiveexplntionscom/picrd-lindelof-theorem/ This document is proof of the existence-uniqueness theorem

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 Automt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Problem (II) Chpter II.6.: Push Down Automt Remrk: This mteril is no longer tught nd not directly exm relevnt Anton Setzer (Bsed

More information

AP Calculus AB Unit 4 Assessment

AP Calculus AB Unit 4 Assessment Clss: Dte: 0-04 AP Clulus AB Unit 4 Assessment Multiple Choie Identify the hoie tht best ompletes the sttement or nswers the question. A lultor my NOT be used on this prt of the exm. (6 minutes). The slope

More information

Generalization of 2-Corner Frequency Source Models Used in SMSIM

Generalization of 2-Corner Frequency Source Models Used in SMSIM Generliztion o 2-Corner Frequeny Soure Models Used in SMSIM Dvid M. Boore 26 Mrh 213, orreted Figure 1 nd 2 legends on 5 April 213, dditionl smll orretions on 29 My 213 Mny o the soure spetr models ville

More information

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

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

More information

More Properties of the Riemann Integral

More Properties of the Riemann Integral More Properties of the Riemnn Integrl Jmes K. Peterson Deprtment of Biologil Sienes nd Deprtment of Mthemtil Sienes Clemson University Februry 15, 2018 Outline More Riemnn Integrl Properties The Fundmentl

More information

Probability. b a b. a b 32.

Probability. b a b. a b 32. Proility If n event n hppen in '' wys nd fil in '' wys, nd eh of these wys is eqully likely, then proility or the hne, or its hppening is, nd tht of its filing is eg, If in lottery there re prizes nd lnks,

More information

Section 1.3 Triangles

Section 1.3 Triangles Se 1.3 Tringles 21 Setion 1.3 Tringles LELING TRINGLE The line segments tht form tringle re lled the sides of the tringle. Eh pir of sides forms n ngle, lled n interior ngle, nd eh tringle hs three interior

More information

Lecture 6: Coding theory

Lecture 6: Coding theory Leture 6: Coing theory Biology 429 Crl Bergstrom Ferury 4, 2008 Soures: This leture loosely follows Cover n Thoms Chpter 5 n Yeung Chpter 3. As usul, some of the text n equtions re tken iretly from those

More information

NON-DETERMINISTIC FSA

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

More information

Génération aléatoire uniforme pour les réseaux d automates

Génération aléatoire uniforme pour les réseaux d automates Génértion létoire uniforme pour les réseux d utomtes Niols Bsset (Trvil ommun ve Mihèle Sori et Jen Miresse) Université lire de Bruxelles Journées Alé 2017 1/25 Motivtions (1/2) p q Automt re omni-present

More information

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

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

More information

7.2 The Definite Integral

7.2 The Definite Integral 7.2 The Definite Integrl the definite integrl In the previous section, it ws found tht if function f is continuous nd nonnegtive, then the re under the grph of f on [, b] is given by F (b) F (), where

More information

Lecture Summaries for Multivariable Integral Calculus M52B

Lecture Summaries for Multivariable Integral Calculus M52B These leture summries my lso be viewed online by liking the L ion t the top right of ny leture sreen. Leture Summries for Multivrible Integrl Clulus M52B Chpter nd setion numbers refer to the 6th edition.

More information

QUADRATIC EQUATION. Contents

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

More information

INTEGRATION. 1 Integrals of Complex Valued functions of a REAL variable

INTEGRATION. 1 Integrals of Complex Valued functions of a REAL variable INTEGRATION 1 Integrls of Complex Vlued funtions of REAL vrible If I is n intervl in R (for exmple I = [, b] or I = (, b)) nd h : I C writing h = u + iv where u, v : I C, we n extend ll lulus 1 onepts

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

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

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

More information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automt Theory nd Forml Lnguges TMV027/DIT321 LP4 2018 Lecture 10 An Bove April 23rd 2018 Recp: Regulr Lnguges We cn convert between FA nd RE; Hence both FA nd RE ccept/generte regulr lnguges; More

More information

22: Union Find. CS 473u - Algorithms - Spring April 14, We want to maintain a collection of sets, under the operations of:

22: Union Find. CS 473u - Algorithms - Spring April 14, We want to maintain a collection of sets, under the operations of: 22: Union Fin CS 473u - Algorithms - Spring 2005 April 14, 2005 1 Union-Fin We wnt to mintin olletion of sets, uner the opertions of: 1. MkeSet(x) - rete set tht ontins the single element x. 2. Fin(x)

More information

Introduction to Olympiad Inequalities

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

More information

COMPUTER SCIENCE TRIPOS

COMPUTER SCIENCE TRIPOS CST.2011.2.1 COMPUTER SCIENCE TRIPOS Prt IA Tuesdy 7 June 2011 1.30 to 4.30 COMPUTER SCIENCE Pper 2 Answer one question from ech of Sections A, B nd C, nd two questions from Section D. Submit the nswers

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

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

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

More information

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

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

More information

Comparing the Pre-image and Image of a Dilation

Comparing the Pre-image and Image of a Dilation hpter Summry Key Terms Postultes nd Theorems similr tringles (.1) inluded ngle (.2) inluded side (.2) geometri men (.) indiret mesurement (.6) ngle-ngle Similrity Theorem (.2) Side-Side-Side Similrity

More information

Lecture Notes No. 10

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

More information

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

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

More information

Nondeterministic Finite Automata

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

More information

Lecture 1. Functional series. Pointwise and uniform convergence.

Lecture 1. Functional series. Pointwise and uniform convergence. 1 Introduction. Lecture 1. Functionl series. Pointwise nd uniform convergence. In this course we study mongst other things Fourier series. The Fourier series for periodic function f(x) with period 2π is

More information

3.1 Review of Sine, Cosine and Tangent for Right Angles

3.1 Review of Sine, Cosine and Tangent for Right Angles Foundtions of Mth 11 Section 3.1 Review of Sine, osine nd Tngent for Right Tringles 125 3.1 Review of Sine, osine nd Tngent for Right ngles The word trigonometry is derived from the Greek words trigon,

More information

CS241 Week 6 Tutorial Solutions

CS241 Week 6 Tutorial Solutions 241 Week 6 Tutoril olutions Lnguges: nning & ontext-free Grmmrs Winter 2018 1 nning Exerises 1. 0x0x0xd HEXINT 0x0 I x0xd 2. 0xend--- HEXINT 0xe I nd ER -- MINU - 3. 1234-120x INT 1234 INT -120 I x 4.

More information

FABER Formal Languages, Automata and Models of Computation

FABER Formal Languages, Automata and Models of Computation DVA337 FABER Forml Lnguges, Automt nd Models of Computtion Lecture 5 chool of Innovtion, Design nd Engineering Mälrdlen University 2015 1 Recp of lecture 4 y definition suset construction DFA NFA stte

More information

Learning Partially Observable Markov Models from First Passage Times

Learning Partially Observable Markov Models from First Passage Times Lerning Prtilly Oservle Mrkov s from First Pssge s Jérôme Cllut nd Pierre Dupont Europen Conferene on Mhine Lerning (ECML) 8 Septemer 7 Outline. FPT in models nd sequenes. Prtilly Oservle Mrkov s (POMMs).

More information

Exercise sheet 6: Solutions

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

More information

New Expansion and Infinite Series

New Expansion and Infinite Series Interntionl Mthemticl Forum, Vol. 9, 204, no. 22, 06-073 HIKARI Ltd, www.m-hikri.com http://dx.doi.org/0.2988/imf.204.4502 New Expnsion nd Infinite Series Diyun Zhng College of Computer Nnjing University

More information

Lossless Compression Lossy Compression

Lossless Compression Lossy Compression Administrivi CSE 39 Introdution to Dt Compression Spring 23 Leture : Introdution to Dt Compression Entropy Prefix Codes Instrutor Prof. Alexnder Mohr mohr@s.sunys.edu offie hours: TBA We http://mnl.s.sunys.edu/lss/se39/24-fll/

More information

MA10207B: ANALYSIS SECOND SEMESTER OUTLINE NOTES

MA10207B: ANALYSIS SECOND SEMESTER OUTLINE NOTES MA10207B: ANALYSIS SECOND SEMESTER OUTLINE NOTES CHARLIE COLLIER UNIVERSITY OF BATH These notes hve been typeset by Chrlie Collier nd re bsed on the leture notes by Adrin Hill nd Thoms Cottrell. These

More information

Pre-Lie algebras, rooted trees and related algebraic structures

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

More information

Linear choosability of graphs

Linear choosability of graphs Liner hoosility of grphs Louis Esperet, Mikel Montssier, André Rspud To ite this version: Louis Esperet, Mikel Montssier, André Rspud. Liner hoosility of grphs. Stefn Felsner. 2005 Europen Conferene on

More information

5. Every rational number have either terminating or repeating (recurring) decimal representation.

5. Every rational number have either terminating or repeating (recurring) decimal representation. CHAPTER NUMBER SYSTEMS Points to Rememer :. Numer used for ounting,,,,... re known s Nturl numers.. All nturl numers together with zero i.e. 0,,,,,... re known s whole numers.. All nturl numers, zero nd

More information

The Riemann-Stieltjes Integral

The Riemann-Stieltjes Integral Chpter 6 The Riemnn-Stieltjes Integrl 6.1. Definition nd Eistene of the Integrl Definition 6.1. Let, b R nd < b. ( A prtition P of intervl [, b] is finite set of points P = { 0, 1,..., n } suh tht = 0

More information

Bayesian Networks: Approximate Inference

Bayesian Networks: Approximate Inference pproches to inference yesin Networks: pproximte Inference xct inference Vrillimintion Join tree lgorithm pproximte inference Simplify the structure of the network to mkxct inferencfficient (vritionl methods,

More information

CHAPTER V INTEGRATION, AVERAGE BEHAVIOR A = πr 2.

CHAPTER V INTEGRATION, AVERAGE BEHAVIOR A = πr 2. CHAPTER V INTEGRATION, AVERAGE BEHAVIOR A πr 2. In this hpter we will derive the formul A πr 2 for the re of irle of rdius r. As mtter of ft, we will first hve to settle on extly wht is the definition

More information

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014 S 224 DIGITAL LOGI & STATE MAHINE DESIGN SPRING 214 DUE : Mrh 27, 214 HOMEWORK III READ : Relte portions of hpters VII n VIII ASSIGNMENT : There re three questions. Solve ll homework n exm prolems s shown

More information

Semantic Analysis. CSCI 3136 Principles of Programming Languages. Faculty of Computer Science Dalhousie University. Winter Reading: Chapter 4

Semantic Analysis. CSCI 3136 Principles of Programming Languages. Faculty of Computer Science Dalhousie University. Winter Reading: Chapter 4 Semnti nlysis SI 16 Priniples of Progrmming Lnguges Fulty of omputer Siene Dlhousie University Winter 2012 Reding: hpter 4 Motivtion Soure progrm (hrter strem) Snner (lexil nlysis) Front end Prse tree

More information

University of Sioux Falls. MAT204/205 Calculus I/II

University of Sioux Falls. MAT204/205 Calculus I/II University of Sioux Flls MAT204/205 Clulus I/II Conepts ddressed: Clulus Textook: Thoms Clulus, 11 th ed., Weir, Hss, Giordno 1. Use stndrd differentition nd integrtion tehniques. Differentition tehniques

More information

Maintaining Mathematical Proficiency

Maintaining Mathematical Proficiency Nme Dte hpter 9 Mintining Mthemtil Profiieny Simplify the epression. 1. 500. 189 3. 5 4. 4 3 5. 11 5 6. 8 Solve the proportion. 9 3 14 7. = 8. = 9. 1 7 5 4 = 4 10. 0 6 = 11. 7 4 10 = 1. 5 9 15 3 = 5 +

More information

Automata and Languages

Automata and Languages Automt nd Lnguges Prof. Mohmed Hmd Softwre Engineering Lb. The University of Aizu Jpn Grmmr Regulr Grmmr Context-free Grmmr Context-sensitive Grmmr Regulr Lnguges Context Free Lnguges Context Sensitive

More information

Duality # Second iteration for HW problem. Recall our LP example problem we have been working on, in equality form, is given below.

Duality # Second iteration for HW problem. Recall our LP example problem we have been working on, in equality form, is given below. Dulity #. Second itertion for HW problem Recll our LP emple problem we hve been working on, in equlity form, is given below.,,,, 8 m F which, when written in slightly different form, is 8 F Recll tht we

More information

Compression of Palindromes and Regularity.

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

More information

Continuous Random Variables

Continuous Random Variables STAT/MATH 395 A - PROBABILITY II UW Winter Qurter 217 Néhémy Lim Continuous Rndom Vribles Nottion. The indictor function of set S is rel-vlued function defined by : { 1 if x S 1 S (x) if x S Suppose tht

More information

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals AP Clulus BC Chpter 8: Integrtion Tehniques, L Hopitl s Rule nd Improper Integrls 8. Bsi Integrtion Rules In this setion we will review vrious integrtion strtegies. Strtegies: I. Seprte the integrnd into

More information