Minimum-Area Drawings of Plane 3-Trees

Size: px
Start display at page:

Download "Minimum-Area Drawings of Plane 3-Trees"

Transcription

1 Journl o Grh Algorithms nd Alitions htt://jg.ino/ vol. 15, no. 2, (2011) Minimum-Are Drwings o Plne -Trees Dejyoti Mondl Rhnum Islm Nisht Md. Sidur Rhmn Muhmmd Jwherul Alm Grh Drwing nd Inormtion Visuliztion Lortory, Dertment o Comuter Siene nd Engineering, Bngldesh University o Engineering nd Tehnology (BUET), Dhk , Bngldesh. Astrt A stright-line grid drwing o lne grh G is lnr drwing o G, where eh vertex is drwn t grid oint o n integer grid nd eh edge is drwn s stright-line segment. The height, width nd re o suh drwing re resetively the height, width nd re o the smllest xis-ligned retngle on the grid whih enloses the drwing. A minimum-re drwing o lne grh G is stright-line grid drwing o G where the re is the minimum. It is NP-omlete to determine whether lne grh G hs stright-line grid drwing with given re or not. In this er we give olynomil-time lgorithm or inding minimum-re drwing o lne -tree. Furthermore, we show 2n 1 2 n lower ound or the re o stright-line grid drwing o lne -tree with n 6 verties, whih imroves the reviously known lower ound 2(n 1) 2(n 1) or lne grhs. We lso exlore severl interesting roerties o lne -trees. Keywords. Grh drwing, Minimum re, Minimum lyer, Plne -tree, Lower ound. Sumitted: July 2010 Artile tye: Regulr Reviewed: Otoer 2010 Finl: Deemer 2010 Revised: Novemer 2010 Pulished: Ferury 2011 Aeted: Novemer 2010 Communited y: G. Liott E-mil ddresses: dejyoti mondl se@yhoo.om (Dejyoti Mondl) nisht.uet@gmil.om (Rhnum Islm Nisht) sidurrhmn@se.uet..d (Md. Sidur Rhmn) jwherul@gmil.om (Muhmmd Jwherul Alm)

2 178 Mondl et l. Minimum-Are Drwings o Plne -Trees 1 Introdution A lne grh is lnr grh with ixed lnr emedding. In stright-line grid drwing Γ o lne grh G, eh vertex o G is drwn t grid oint o n integer grid nd eh edge ogis drwn s stright-linesegment. The re o Γ is mesured y the size o the smllest retngle with sides rllel to the xes whih enloses Γ. The width W o Γ is the width o suh retngle nd the heighth oγis the height o suh retngle. The reis usully desried s W H. A minimum-re drwing o lne grh G is stright-line grid drwing o G where the re is the minimum. Figure 1() deits lne grh G nd Figure 1() deits minimum-re drwing o G. Wgner [28], Fry [18] nd Stein [26] indeendently roved tht every lnr grh G hs stright-line drwing. A nturl question rises: wht is the minimum size o grid required or stright-line grid drwing? For given lne grh G with n verties, de Frysseix et l. [12] nd Shnyder [25] indeendently showed tht G hs stright-line grid drwing on re (2n 4) (n 2) nd(n 2) (n 2), resetively. Reently, Brndenurg[7] hs imroved the uer ound o stright-line grid drwing to 4 n 2 n re. The rolem o inding minimum-re drwings or lne grhs hs een shown to e NP-hrd y Krug nd Wgner [22]. Furthermore, they resented n itertive roh to omtiy lnr stright-line grid drwings. Frti nd Ptrignni [20] roved tht 2n 2 /9+O(n) re is suiient nd n 2 /9+Ω(n) re is neessry or lnr stright-line grid drwings o nested tringles grhs. Reserhers hve lso onentrted their ttention on minimizing one dimension o the drwing where the other dimension o the drwing is unounded [1, 10, 15, 19, 27]. Suh drwings re known s lyered drwings. A lyered drwing o lne grh G is lnr drwing o G, where the verties re drwn on set o horizontl lines lled lyers nd the edges re drwn s stright line segments. A minimum-lyer drwing o lne grh G is lyered drwing o G where the numer o lyers is the minimum. Figure 1() deits lne grh G nd Figure 1() deits minimum-lyer drwing o G. Chrok nd Nkno [8] gve liner-time lgorithm to otin stright-line grid drwing o lne grh G with n verties where one dimension o the drwing is ounded y 2n 1. So, it is ovious tht ny lne grh G dmits lyered drwing on 2n 1 lyers. () () () Figure 1: () A lne grh G, () minimum-lyer drwing o G nd () minimum-re drwing o G.

3 JGAA, 15(2) (2011) 179 In this er, we onsider the rolem o inding minimum-re drwings o sulss o lnr grhs lled lne -trees. A lne -tree G n with n verties is lne grh or whih the ollowing () nd () hold: () G n is tringulted lne grh; () i n >, then G n hs vertex whose deletion gives lne -tree G n 1. Mny reserhers hve shown their interest on lne -trees or long time [2, 4, 14, 16]. In this er, we exlore some interesting roerties o lne -trees whih leds to olynomil-time lgorithm to otin their minimum-re drwings. We lso show tht, there exists lne -tree with n 6 verties or whih 2n 1 2 n re is neessry or ny lnr stright-line grid drwing. As side result, we give n O(nh 4 m) time lgorithm to omute minimum-lyer drwing o lne -tree G, where h m is the minimum numer o lyers required or ny lyered drwing o G. Note tht, Dujmović et l. gve (h) n time lgorithm tht n deide whether given grh G with n verties dmits lnr drwing in h lyers or not [15]. The running time o their lgorithm is dominted y the ost o inding th deomosition o G. To the est o our knowledge, the lgorithm urrently known to otin th deomosition o grh with treewidth l, tkes t lest Ω(n 4l+ ) time [5]. Clerly, one n otin minimum-lyer drwings or lne -trees using the tehnique resented in [15] ut it tkes t lest Ω(n 15 ) time, sine the treewidth o lne -trees is three. An outline o our lgorithm to omute minimum-lyer drwing o lne -tree is resented here. Let G n e lne -tree with n verties nd h e ositive integer. Sine ny lne grh dmits lyered drwing on 2n 1 lyers [8], we test whether G n n e drwn on h lyers or not, y iterting h rom 1 to 2n 1. For eh h rom 1 to 2n 1, we use dynmi rogrmming to test whether G n hs drwing on h lyers. We show tht ny lne -tree G n with n > verties hs n inner vertex whih is the ommon neighor o ll the three outer verties o G n. The vertex, long with the three outer verties o G n, divides the interior region o G n into three new regions. We rove tht the sugrhs enlosed y those three regions re lso lne -trees. For eh esile y-oordinte ssignment o the outer verties o G n, these sugrhs re the three surolems o our testing rolem. We deine the result o the testing rolem in terms o the test results o the surolems. Figure 2() deits lne -tree G where is the ommon neighor o the three outer verties,, o G. Figures 2() nd () show the surolems o the inut grh G or two dierent lements o. We divide nd test the surolems reursively nd store the test results o the surolems in tle to omute the minimum numer o lyers h m mong ll the ossile lyered drwings o G. Figure 2(d) illustrtes tht G does not dmit lyered drwing or the lyer ssignment o the vertex s in Figure 2(). Figure 2(e) is the drwing o G orresonding to the drwings o the surolems illustrted in Figure 2(). We n otin minimum-re drwing o G in similr method. The rest o the er is orgnized s ollows. Setion 2 desries some deinitions nd resents reliminry results. Setion introdues some interesting roerties o lne -trees. Setion 4 resents n O(nh 4 m ) time lgorithm to

4 180 Mondl et l. Minimum-Are Drwings o Plne -Trees G () Flse Flse () (d) () (e) Figure 2: Illustrtion o the lgorithm or minimum-lyer drwings. omute minimum-lyer drwing o lne -tree G n with n verties where h m is the minimum numer o lyers required or ny lyered drwing o G. Setion 5 illustrtes n O(n 9 logn) time lgorithm to otin minimum-re drwing o G n. Setion 6 gives lower ound on the re requirements or stright-line drwings o lne -trees. Finlly, Setion 7 onludes with disussions suggesting uture works. An erly version o this er hs een resented t [2]. 2 Preliminries In this setion we give some relevnt deinitions tht will e used throughout the er nd resent some reliminry results. Let G = (V,E) e onneted simle grh with vertex set V nd edge set E. The degree o vertex v is the numer o neighors o v in G. We denote y degree(v) the degree o the vertex v. A sugrh o grh G = (V,E) is grh G = (V,E ) suh tht V V nd E E. I G ontins ll the edges o G tht join verties in V, then G is lled the sugrh indued y V. A grh G is onneted i or ny two distint verties u nd v there is th etween u nd v in G. A grh whih is not onneted is lled disonneted grh. The onnetivity κ(g) o grh G is the minimum numer o verties whose removl results in disonneted grh or single-vertex grh. We sy tht G is k-onneted i κ(g) k. We ll set o verties in onneted grh G sertor or vertex-ut i the removl o the verties in the set results in disonneted or single-vertex grh. A tree is onneted grh without ny yle. A rooted tree T is tree in whih one o the verties is distinguished rom the others. The distinguished vertex is lled the root o the tree T nd every edge o T is direted wy rom

5 JGAA, 15(2) (2011) 181 the root. I v is vertex in T other thn the root, the rent o v is the vertex u suh tht there is direted edge rom u to v. When u is the rent o v, v is lled hild o u. A vertex in T, whih hs no hildren, is lled le. Any vertex whih is not le in T is n internl vertex. A desendnt o u is vertex v other thn u suh tht there is direted th rom u to v. Let i e ny vertex o T. Then we deine sutree T(i) rooted t i s sugrh o T indued y vertex i nd ll the desendnts o i. An ordered rooted tree is rooted tree where the hildren o ny vertex re ordered ounter-lokwise. A grh is lnr i it n e emedded in the lne without edge rossing exet t the verties where the edges re inident. A lne grh is lnr grh with ixed lnr emedding. A lne grh divides the lne into some onneted regions lled the es. The unounded region is lled the outer e nd ll the other es re lled the inner es. The verties on the outer e re lled the outer verties nd ll the other verties re lled the inner verties. I ll the es o lne grh G re tringles, then G is lled tringulted lne grh. For yle C in lne grh G, we denote y G(C) the lne sugrh o G inside C (inluding C). A lne grh G with n verties is lled lne -tree i the ollowing () nd () hold: () G is tringulted lne grh; () i n >, then G hs vertex x whose deletion gives lne -tree G o n 1 verties. Note tht, vertex x my e n inner vertex or n outer vertex o G. We denote lne -tree o n verties y G n. Exmles o lne -trees re shown in Figure ; G 6 is otined rom G 7 y removing the inner vertex o degree three. Then G 5 is otined rom G 6 y deleting the inner vertex o degree three. G 4 is otined rom G 5 y deleting the outer vertex g o degree three nd G is otined in similr wy. e e e e g g g d d d G 7 G 6 G 5 G 4 d G d Figure : Exmles o lne -trees. Proerties o Plne -Trees In this setion we introdue some roerties o lne -trees. The ollowing results re known on lne -trees.

6 182 Mondl et l. Minimum-Are Drwings o Plne -Trees Lemm 1[4] Let G n e lne -tree with n verties where n >. Then the ollowing () nd () hold. () G n hs n inner vertex x o degree three suh tht the removl o x gives the lne -tree G n 1. () G n hs extly one inner vertex y suh tht y is the neighor o ll the three outer verties o G n. By Lemm 1() or ny lne -tree G n, n >, there is extly one inner vertex y whih is the ommon neighor o ll the outer verties o G n. We ll vertex y the reresenttive vertex o G n. Aserting tringle otringultedlnegrhgistringlein Gwhose interior nd exterior ontin t lest one vertex eh. Let G n e lne -tree nd C e tringle in G n, then we rove tht G n (C) is lso lne -tree s in the ollowing lemm. Lemm 2 Let G n e lne -tree with n > verties nd C e ny tringle o G n. Then the sugrh G n (C) is lne -tree. We use the ollowing two ts to rove Lemm 2. Ft [17] Any tringulted grh with more thn three verties is trionneted grh. Ft 4 Let G n e tringulted lne grh nd C e serting tringle o G n where n >. Then eh o the three verties on C must hve degree t lest our in G n. Proo. Sine G n nd G n (C) re tringulted nd n >, they re trionneted y Ft. Thereore eh o the three verties on C hs degree t lest three in G n (C). Suose or ontrdition tht t lest one o the verties w on C hs degree extly three in G n s illustrted in Figure 4. Sine G n (C) is trionneted with more thn three verties, two o the neighors o w re on C nd the other neighor is inside C. Sine w hs no neighor outside C, we n disonnet the exterior verties o C rom the interior verties o C y deleting the other two verties on C exet w. This imlies tht G n hs vertex-ut o two verties, nd hene G n would not e trionneted, ontrdition. We re now redy to give roo o Lemm 2. w C G n Figure 4: Illustrtion or the roo o Ft 4. Proo o Lemm 2. The roo is trivil or the se when the tringle C is

7 JGAA, 15(2) (2011) 18 not serting tringle. I C is the outer e o G, then G n (C) is itsel lne -tree; otherwise C is tringle whose interior ontins no vertex nd G n (C) is lne -tree y deinition. We now onsider the se when C is serting tringle in G. Sine G n is tringulted, G n (C) is tringulted. Then, it is suiient to rove tht we n delete inner verties o degree three reursively rom G n (C) to otin the yle C. By Lemm 1, G n hs n inner vertex o degree three whose deletion gives lne -tree G n 1. We delete suh inner verties o G n reursively whih re outside o G n (C). Assume tht ter deleting k vertieswe hveno inner vertexodegreethree outside G n (C) nd let the resulting lne -tree e G n k. As we never deleted the outer verties o G n nd the inner verties o G n (C), C is lso serting tringle o G n k. There must e n inner vertex o degree three in G n k y Lemm 1. Tht vertex must e n inner vertex o G n k (C) sine eh o the three outer verties o G n k (C) hs degree t lest our in G n k y Ft 4. We now delete ll the inner verties o degree three o G n k (C) reursively in suh wy tht t eh deletion the resulting grh remins lne -tree. By deinition ter deleting m suh inner verties o G n k (C) reursively we get lne -tree G n k m. Suose or ontrdition tht there is no inner vertex o degree three in G n k m (C). We irst onsider the se when C hs no interior vertex whih imlies tht we hve reursivelydeleted the inner verties odegree three o G n (C) to get the tringle C nd G n (C) is ertinly lne -tree. We next onsider the se where C still ontinst lest one interiorvertex. Then G n k m (C) hs morethn three verties nd there is no inner vertex o degree three in G n k m. Hene G n k m would not e lne -tree y Lemm 1(), ontrdition. Let e the reresenttive vertex nd,, e the outer verties o G n. The vertex, long with the three outer verties, nd, orm three tringles {,,}, {,,} nd {,,} s illustrted in Figure 5. We ll those three tringles the nested tringles round. C C 1 C 2 Gn Figure 5: Nested tringles round. We now deine the reresenttive tree o G n s n ordered rooted tree T n stisying the ollowing two onditions () nd (). () i n =, T n onsists o single vertex. () i n >, then the root o T n is the reresenttive vertex o G n nd the sutrees rooted t the three ounter-lokwise ordered hildren q 1, q 2 nd q o in T n re the reresenttive trees o G n (C 1 ), G n (C 2 ) nd G n (C ), resetively, where C 1, C 2 nd C re the three nested tringles round in ounter-lokwise order.

8 184 Mondl et l. Minimum-Are Drwings o Plne -Trees Figure 6 illustrtes the reresenttive tree T n o the lne -tree G n. Note tht the 4-lok trees [21] nd the tree o the tree deomosition [5] re quite similr to the reresenttive trees or the lne -trees. d g e G n g d e T n Figure 6: Reresenttive tree T n o G n. We now rove tht T n is unique or G n in the ollowing lemm. Lemm 5 Let G n e ny lne -tree with n verties. Then G n hs unique reresenttive tree T n with extly n internl verties nd 2n 5 leves. Proo. The se n = is trivil sine the reresenttive tree o G is single vertex. We my thus ssume tht G hs our or more verties. By Lemm 1() G n hs extly one reresenttive vertex. Let e tht reresenttive vertex o G n nd C 1, C 2, C e the three nested tringles round. By Lemm 2, G n (C 1 ), G n (C 2 ) nd G n (C ) relne-trees. Let n 1, n 2 nd n e the numer o verties in G n (C 1 ), G n (C 2 ) nd G n (C ), resetively. Then y the indution hyothesis, T n1, T n2 nd T n re the unique reresenttive trees o G n (C 1 ), G n (C 2 ) nd G n (C ), resetively. We now ssign s the rent o q 1, q 2 nd q, where q 1, q 2 nd q re the roots o T n1, T n2 nd T n, resetively. Sine is the unique reresenttive vertex o G n, the hoie or the root o T n is unique. Sine G n hs n verties nd ny inner vertex o G n exet elongs to extly one o G n (C 1 ), G n (C 2 ) nd G n (C ), the totl numer o verties in T n1, T n2 nd T n is n 1 +n 2 +n = n 4. Thus the new tree T n with root hs n = n internl verties. Sine T n1, T n2 nd T n re ordered trees nd q 1, q 2 nd q re ordered ounter-lokwise round, T n is lso n ordered tree. Furthermore one n esily oserve tht, the leves reresent only the internl es o G n. Sine the numer o internl es o G n is 2n 5 y Euler s Theorem, T n hs 2n 5 leves. Now we hve the ollowing lemm whose roo is immedite rom the deinition o the reresenttive tree nd rom Lemm 5. Lemm 6 Let T n e the reresenttive tree o lne -tree G n with n verties nd let T(i) e sutree rooted t vertex i o T n. Then there exists unique tringle C in G n suh tht T(i) is the reresenttive tree o G n (C). By Lemm 6, or ny vertex o T n, there is unique tringle in G n whih we denote s C or the rest o this rtile. Furthermore, i is the root o T n,

9 JGAA, 15(2) (2011) 185 then C is the outer e o G n ; i is le o T n, then C is n inner e o G n nd i is n internl vertex in T n, then C is serting tringle in G n. Let L e the set o leves in T n nd let, nd e the outer verties o G n. Then T n L is snning tree o G n {,,} where eh vertex o T n L is med to the reresenttive vertex o G n (C ), s illustrted in Figure 6. Thus or the rest o this rtile, we shll oten use n internl vertex o T n nd the reresenttive vertex o G n (C ) interhngely. We shll lso denote y T() the reresenttive tree o G n (C ). Figures 7() nd () illustrte G n (C ) nd its reresenttive tree T(), resetively. q q 1 q q () 2 G n ( C ) q 1 C q 2 T() () Figure 7: () Illustrtion o G n (C ) nd () the reresenttive tree T(). We now hve the ollowing lemm. Lemm 7 For ny lne -tree G n with n verties, the reresenttive tree T n o G n n e ound in time O(n). Proo. To onstrut T n we irst ind the reresenttive vertex o G n. We kee list or eh inner vertex u o G n. For eh outer vertex v i o G n, i {1,2,}, we dd v i in the list o u i u is djent to v. One n esily oserve tht, only the list o the reresenttive vertex will ontin the three outer verties o G n. Thus we n ind in time O( i=1 degree(v i)). Let C q1, C q2, C q e the nested tringles round. We n ind the three hildren q 1, q 2 nd q o y udting the lists s ollows. Sine the lists re lredy udted or ll the outer verties o G n (C q1 ), G n (C q2 ) nd G n (C q ) exet, we only need to udte the lists y dding to the list o u i u is djent to. Thus the three hildren o n e ound in time O(degree()). We then ontinue udting the lists reursively to ind the other verties o T n. One the lists re udted y vertex, we do not onsider tht vertex lter to udte the lists. The roess o udting the lists or eh vertex v tkes O(degree(v)) time nd hene the totl time o onstruting the reresenttive tree is O( v V degree(v)) = O(n) sine G n is lnr.

10 186 Mondl et l. Minimum-Are Drwings o Plne -Trees The roo o Lemm 7 leds to liner-time lgorithm to onstrut the reresenttive tree o lne -tree. 4 Minimum-Lyer Drwings In this setion we onsider the rolem o inding minimum-lyer drwings o lne -trees. In lyered drwing o lne grh G, the verties re drwn on set o horizontl lines lled lyers nd the edges re drwn s stright line segments. We ssume tht the lyers re ligned rllel to the x-xes with dierent y- oordintes nd the y-oordintes o the lyers re deined s ollows. We denote y y(l) the y-oordinte o lyer l. Let {l 1,l 2,...,l n } e set o n lyers where y(l 1 ) < y(l 2 ) <... < y(l n ), then y(l i ) = i, 1 i n. Thus or the rest o this rtile, we denote lyer ssignment o vertex v y y-oordinte ssignment o v. Chrok et l. [8] showed tht the uer ound or one dimension o stright-line grid drwing o ny lne grh G with n verties is 2n 1. So, it is ovious tht ny lne -tree G dmits lyered drwing on 2n 1 lyers. Thereore we ssume tht, G dmits lyered drwing on h lyers nd iterte h rom 1 to 2n 1. For eh itertion, we hek whether G is drwle on h lyers or not. The irst h within whih G is drwle is the minimum numer o lyers h m required to drw G. A rute ore roh to solve this rolem is to ssign ll ossile omintions oy-oordintesto the verties ognd hekwhether there is ny edge rossing. However,ithe totlnumerovertiesisnndthenumerolyersis h, there re n h dierent ssignments ossile. This exonentil time mkes the roh imrtil or lrge n nd h. We now resent dynmi rogrmming roh to solve the rolem. We irst give n lgorithm Minimum-Lyer to generte ll the esile y-oordinte ssignments o the verties o G iterting h rom 1 to 2n 1. Then we give n lgorithm Fesiility-Cheking to hek whether G dmits lyered drwing on h lyers or rtiulr y- oordinte ssignment o its outer verties. For onveniene, we desrie Algorithm Fesiility-Cheking eore Algorithm Minimum-Lyer. At the end o this setion we give seudoodes or oth o the lgorithms. We now ormlly deine the inut nd the outut o the deision rolem Fesiility Cheking. Inut: A lne -tree G nd y-oordinte ssignments o the three outer verties, nd o G. Outut: I G dmits lyered drwing with the given y-oordintes o, nd, the outut is True, nd Flse otherwise. Let T e the reresenttive tree o lne -tree G nd v y e the y- oordinte o ny vertex v. For ny vertex o T, we denote y Γ lyered drwing o G(C ) nd y F ( y, y, y ) the Fesiility Cheking rolem o where y, y, y re the y-oordintes o the three outer verties,, o G(C ), resetively. We solve this Fesiility Cheking rolem using dynmi rogrmming y hrterizing the otiml sustruture nd overling

11 JGAA, 15(2) (2011) 187 surolems roerties o the rolem whih re the two key ingredients or the dynmi rogrmming to e lile [9]. Chrterizing otiml sustruture mens showing tht the otiml solution o the rolem onsists o the otiml solutions o the surolems. To show the otiml sustruture roerty o the Fesiility Cheking rolem, we need the ollowing two lemms. Lemm 8 Let G e lne -tree with reresenttive vertex. Let Γ e lyered drwing o G nd let Γ(C ) e the lyered drwing o C in Γ. Let Γ (C ) e nother lyered drwing o C where, nd hve the sme y- oordintes s in Γ(C ). Then G hs lyered drwing Γ hving Γ (C ) s the drwing o C. Proo. The se or n = is trivil sine or this se Γ oinides with Γ (C ). We my thus ssume tht n is greter thn three nd the lim holds or ny lne -tree o less thn n verties. Let l e the lyer tht ontins vertex nd let y e the y-oordinte o in Γ. The lyer l intersets Γ (C ) t two oints (x 1, y ) nd (x 2, y ), x 1 x 2. We le on l in etween x 1 nd x 2 to otin Γ (C q1 ), Γ (C q2 ) nd Γ (C q ) where C q1, C q2 nd C q re the nested tringles round. By indution hyothesis G(C q1 ), G(C q2 ) nd G(C q ) dmit lyered drwings Γ q 1, Γ q 2 nd Γ q whih ontin the drwings Γ (C q1 ), Γ (C q2 ) nd Γ (C q ), resetively. Clerly, one n otin Γ y thing Γ q 1, Γ q 2 nd Γ q inside Γ (C q1 ), Γ (C q2 ) nd Γ (C q ), resetively, s illustrted in Figure 8. (C q ) 1 (C q ) (C q ) 2 (C q ) 1 (C q ) (C q ) 2 () () Figure 8: Illustrtion or the roo o Lemm 8. () Lyered drwing Γ o G nd () lyered drwing Γ o G. Now we hve the ollowing lemm. Lemm 9 Let G e lne -tree with the reresenttive tree T. Let e ny internl vertex o T with the three hildren q 1, q 2, q in T nd let,, e the three outer verties o G(C ). Then G(C ) dmits lyered drwing Γ or the ssignment ( y, y, y ) i nd only i Γ q1, Γ q2 nd Γ q dmit lyered drwings or the ssignments ( y, y, y ), ( y, y, y ) nd ( y, y, y ), resetively, where min( y, y, y ) < y < mx( y, y, y ). Proo. The neessity is trivil, nd roo o the suiieny n e otined in similr tehnique s desried in the roo o Lemm 8.

12 188 Mondl et l. Minimum-Are Drwings o Plne -Trees We n redily ind the overling surolems roerty o the Fesiility Cheking rolem. Overling surolem ours when reursive lgorithm visits the sme rolem more thn one. Figure 9 illustrtes this roerty or the Fesiility Cheking rolem where the overling surolems re shown y dotted retngles nd old retngles. We now hve the ollowing theorem e g e g ( e, g 4 1, 4 ) ( e 4, 1, ) ( 1, g 4, ) ( g 4, e 4, ) ( e 4, 1, 2 ) ( 1, g 4, 2 ) ( g 4, e 4, 2 ) ( e 4, 1, ) ( 1,, ) (, e 4, ) ( e 4, 1, 2 ) ( 1, 2, 2 ) ( 2, e 4, 2 ) ( e 4, 1, 2 ) ( 1,, 2 ) (, e 4, 2 ) ( e 4, 1, ) ( 1, 2, ) ( 2, e 4, ) Figure 9: Overling Surolems. whih leds to reursive solution o the Fesiility Cheking rolem. Theorem 4.1 Let G e lne -tree nd let e ny vertex o the reresenttive tree T o G. Let,, e the three outer verties o G(C ) nd q 1, q 2, q e the three hildren o i is n internl vertex o T. Let F ( y, y, y ) denote the Fesiility Cheking rolem o where y, y, y re the y-oordintes o,,. Then F ( y, y, y ) hs the ollowing reursive ormul. F ( y, y, y ) = Flse i {mx{ y, y, y } min{ y, y, y } = 0}; True i {mx{ y, y, y } min{ y, y, y } 1} where is le; Flse i {mx{ y, y, y } min{ y, y, y } 1} where is n internl vertex; y {F q1 ( y, y, y ) F q2 ( y, y, y ) F q ( y, y, y )} where {min{ y, y, y } < y < mx{ y, y, y }}, otherwise. Proo. Considerthesewhenmx{ y, y, y } min{ y, y, y } = 0. Thenwe ssign F ( y, y, y ) = Flse sine tringle nnot e drwn on single lyer. The next se is mx{ y, y, y } min{ y, y, y } 1 when is le. Then

13 JGAA, 15(2) (2011) 189 we ssign F ( y, y, y ) = True sine two lyers re suiient to drw tringle. The next se is mx{ y, y, y } min{ y, y, y } 1 when is n internl vertex. Then we ssign F ( y, y, y ) = Flse or this se sine the outer e needs two lyers to e drwn nd the inner vertex nnot e led on ny o them. The remining se is mx{ y, y, y } min{ y, y, y } > 1 when is n internl vertex. Then we deine F ( y, y, y ) reursively y Lemm 9. We ssoite tle FC i [1: 2n+2,1: 2n+2,1: 2n+2 ] or eh vertex i o the reresenttive tree T o G, where the solution o F i ( y, y, y ) is stored in FC i [ y, y, y ]. To store the omuted y-oordintes o the verties o G, we mintin nother tle Y i [1: 2n+2,1: 2n+2, 1: 2n+2 ] or eh vertex i o T. Eh entry Y i [ y, y, y ] is omuted s ollows. Flse i FC i [ y, y, y ] = Flse; Y i [ y, y, y ] = True i i is le nd FC i [ y, y, y ] = True; i i is n internl vertex nd FC i [ y, y, y ] = True. i y Let G e lne -tree with the outer verties,, nd e the reresenttive vertex o G. I Y [ y, y, y ] is Flse, then G hs no lyered drwing or the given y-oordinte ssignment y, y, y. I the entry is True, then G hs no inner vertex nd G hs lyered drwing or the given y-oordinte ssignment y, y, y. Otherwise, G hs lyered drwing or the given y-oordinte ssignment y, y, y nd the entry Y [ y, y, y ] ontins the y-oordinte o the reresenttive vertex. To otin the y-oordinte ssignment o eh internl vertex o G, we hek the entryy [ y, y, y ]. Ithe entryontinsy-oordinteothe reresenttive vertex, we hek the entries Y q1 [ y, y, y ], Y q2 [ y, y, y ] nd Y q [ y, y, y ] to get the y-oordintes o the three hildren o. We ush Y q1 [ y, y, y ], Y q2 [ y, y, y ] nd Y q [ y, y, y ] on stk nd o one entry or urther exlortion reursively. This is similr to the trversl o the reresenttive tree T o G in reorder, tht is, irst trversing the root o T, then trversing the let, middle nd right sutrees one ter nother. When the stk is emty, y-oordintes or ll the verties o G re otined. Sine T hs n internl verties y Lemm 5, this roess tkes O(n) time. We now desrie Algorithm Minimum-Lyer whih omutes the minimum numer o lyers required to drw G using Algorithm Fesiility- Cheking. Let T e the reresenttive tree o the lne -tree G. We ssume tht G dmits lyered drwing on h lyers nd iterte h rom 1 to 2n 1. At eh itertion we trverse T in reorder nd or eh vertex i o T, Algorithm Minimum-Lyer genertes ll ossile y-oordinte ssignments or the outer verties, nd o G(C i ) within h lyers. For eh suh ssignment y, y nd y, Algorithm Fesiility-Cheking is lled to hek whether G(C i ) is drwle. The irst h within whih G is drwle is the minimum numer o lyers h m required to drw G. At the end o this setion, orml desritions o Algorithm Minimum-Lyer nd Algorithm Fesiility-Cheking re given in Algorithm 1 nd Algorithm 2, resetively.

14 190 Mondl et l. Minimum-Are Drwings o Plne -Trees Lemm 10 Let T e the reresenttive tree o lne -tree G nd i e ny internl vertex o T. Let, nd e the outer verties o G(C i ). Then Algorithm Minimum-Lyer genertes ll ossile y-oordinte ssignments or, nd within h lyers ter the hth itertion. Proo. We rove the orretnesso the lgorithm y indution. For h = 1, the ssignment is ovious rom Line. We my thus ssume tht h > 1 nd ll the y-oordinte ssignments within lyer 1 to h 1 hve een generted nd the results hve een lulted within h 1 itertions. Now we onsider the hth itertion. In Line 8, y is ssigned lyer h nd in Line 9 y nd y re ssigned ll ossile y-oordintes within h. Next, y is ssigned lyer h in Line 17 nd in Line 18, y nd y re ssigned ll ossile y-oordintes within h 1 nd h, resetively. Similrly, y is ssigned lyer h in Line 26 nd in Line 27, y nd y re ssigned ll ossile y-oordintes within h 1. Suose or ontrdition tht the y-oordinte ssignments y, y nd y hve not een generted ter the hth itertion. Clerly mx{ y, y, y } nnot e less thn h, sine ll the y-oordintessignments within lyer1to h 1 hve een generted y indution. We my thus ssume tht mx{ y, y, y } = h. One n oserve tht the hth itertion ensures the genertion o ll ossile y-oordinte ssignments suh tht mx{ y, y, y } = h, ontrdition. We now nlyze the omlexity o Algorithm Minimum-Lyer. Theorem 4.2 Given lne -tree G with n verties, Algorithm Minimum- Lyer omutes the minimum numer o lyers h m required to drw G on lyers in O(nh 4 m ) time. Proo. To rove the lim we irst lulte the numer o times Algorithm Fesiility-Cheking is lled. Sine we iterte the numer o lyers h rom 1 to 2n 1 +1 nd t eh itertion we trverse T in reorder, the numer o times ll the verties o T is onsidered is h m n. For eh internl vertex, Algorithm Fesiility-Cheking is lled or h h times in Line 11, h (h 1) times in Line 20 nd (h 1) (h 1) times in Line 29. For ll the n internl verties o T, in eh itertion the totl numer o lls to Algorithm Fesiility-Cheking y Algorithm Minimum-Lyer is h m n(h 2 +h(h 1)+(h 1) 2 ) = h m n(h 2 +h 2 h+h 2 2h+1) = h m n(h 2 h+1) = O(nh m ) We store the solutions o the surolems in the FC tles where eh entry o the tles initilly ontins null to denote tht the entry is yet to e illed in. When the surolem is irst enountered during the exeution o the reursive lgorithm Fesiility-Cheking, its solution is omuted nd stored in the tle. Eh susequent time the surolem is enountered, the vlue stored in the tle is looked u nd returned. The solutions o the surolems re omuted ottom u nd eh looku tkes O(1) time. Moreover, y n tke t most h m vlues in Line 5 o Algorithm Fesiility-Cheking. Thereore, eh

15 JGAA, 15(2) (2011) 191 ll to Algorithm Fesiility-Cheking tkes O(h m ) O(1) = O(h m ) time. Sine the totl numer o times Algorithm Fesiility-Cheking is lled, inluding the reursive lls, is O(nh m ) the totl running time o this lgorithm is O(nh m) O(h m ) = O(nh 4 m). We now rell tht the onstrution o the reresenttive tree tkes O(n) time y Lemm 7. Thus Algorithm Minimum-Lyer tkes O(n) + O(nh 4 m ) = O(nh4 m ) time in totl. Algorithm 1 Minimum-Lyer(G) 1: Construt the reresenttive tree T o G 2: or eh vertex i o T do : FC i [1,1,1] = Flse 4: end or 5: {The outer verties o G(C i ) re, nd } 6: or eh h rom 2 to 2n 1 +1 do 7: or eh internl vertex i o T in reorder do 8: y = h 9: or y rom 1 to h nd y rom 1 to h do 10: i FC i [ y, y, y ] = null then 11: Fesiility-Cheking (,,) 12: end i 1: i i = root && FC i [ y, y, y ] = true then 14: return 15: end i 16: end or 17: y = h 18: or y rom 1 to h 1 nd y rom 1 to h do 19: i FC i [ y, y, y ] = null then 20: Fesiility-Cheking (,,) 21: end i 22: i i = root && FC i [ y, y, y ] = true then 2: return 24: end i 25: end or 26: y = h 27: or y rom 1 to h 1 nd y rom 1 to h 1 do 28: i FC i [ y, y, y ] = null then 29: Fesiility-Cheking (,,) 0: end i 1: i i = root && FC i [ y, y, y ] = true then 2: return : end i 4: end or 5: end or 6: end or

16 192 Mondl et l. Minimum-Are Drwings o Plne -Trees Algorithm 2 Fesiility-Cheking(,,) 1: {The outer verties o G re, nd nd is its reresenttive vertex} 2: i FC [ y, y, y ] null then : return FC [ y, y, y ] 4: else i (mx{ y, y, y } min{ y, y, y } > 1) & ( is n internl vertex) then 5: or min{ y, y, y } < y < mx{ y, y, y } do 6: i (Fesiility-Cheking(,, ) & Fesiility-Cheking(,, ) & 7: Fesiility-Cheking(,, )) then 8: FC [ y, y, y ] = True, Y [ y, y, y ] = y, rek 9: end i 10: end or 11: else 12: Comute FC [ y, y, y ] nd Y [ y, y, y ] y Theorem 4.1 1: end i 5 Minimum-Are Drwings In this setion we extend the onet o the dynmi rogrmming tehnique o Setion 4 to give n lgorithm Minimum-Are to otin minimum-re drwing o lne -tree G. We now resent n outline o the lgorithm. Sine the uer ound o the re o stright-line grid drwings o lnr grhs is kn 2 with k 1, it is ovious tht the uer ound or the re o minimum-re drwing o lne -tree G is t most kn 2 with k 1. Sine the minimum numer o lyers required or ny stright-line grid drwing o G is h m, the uer ound or width is n 2 /h m. Thereore, we ssume height h nd width w nd iterte rom 1 to n nd 1 to min( n2 n2 h, h m ), resetively. At eh itertion o h nd w we hekwhethergisdrwleonw hgridornot. AlgorithmMinimum-Are genertes ll the ossile (x, y)-oordinte ssignments or the outer verties o G nd heks the drwility o G or eh suh ssignment using Algorithm Are-Cheking. For onveniene, we desrie Algorithm Are Cheking eore Algorithm Minimum-Are. At the end o this setion we give seudoodes or oth o the lgorithms. Here we ormlly deine the inut nd outut o the rolem Are Cheking. Inut: A lne -tree G nd (x, y)-oordinte ssignments o the three outer verties, nd o G. Outut: I G dmits drwing with the given (x,y)-oordintes o, nd, the outut is True nd otherwise it is Flse. Like the Fesiility Cheking rolem or minimum-lyer drwing, we n hrterize the otiml sustruture or the rolem Are Cheking. Let G e

17 JGAA, 15(2) (2011) 19 lne -treewith the reresenttivetreet. We denote the x-oordintend y- oordinte o vertex v y v x nd v y, resetively. We denote y A ( x y, x y, x y) the Are Cheking rolem o ny vertex o T where x y,x y,x y re the (x,y)- oordintes o the three outer verties, nd o G(C ). We denote y Γ minimum-re drwing o G(C ). We now rove tht the Are Cheking rolem hs the ollowing otiml sustruture roerty. Lemm 11 Let G e lne -tree with the reresenttive tree T. Let e ny internl vertex o T with the three hildren q 1, q 2, q in T nd,, e the outer verties o G(C ). Then the Are Cheking rolems o q 1, q 2 nd q re the three surolems o the Are Cheking rolem o. Proo. The vertex is n inner vertex o G nd thereore, must e led inside the outer e o G. Sine the (x,y)-oordintes o,, re ressigned nd x, y re the sme or the drwings Γ q 1, Γ q 2 nd Γ q, those three drwings neominedtogetthedrwingγ og(c )sillustrtedinfigure10. Thus the solution o the Are Cheking rolem o onsists o the solutions o the AreChekingrolemsoq 1, q 2 ndq ; nd henethe AreChekingrolems o q 1, q 2 nd q re the three surolems o the Are Cheking rolem o. G( C q ) 1 G( C q ) 2 G( C q ) G( C q ) G( C q ) 1 G( C q ) 2 () () Figure 10: Illustrtion or the roo o Lemm 11. One n esily oserve the overling surolem roerty or the Are Cheking rolem in similr wy tht we used to show the overling surolem roerty o the Fesiility Cheking rolem. By method similr to the roo o Lemm 10 one n see tht Algorithm Minimum-Are genertes ll ossile (x, y)-oordinte ssignments o the outer verties o G within w min( n2 n2 h, h m ) re. We now rove Theorem 5.1 whih sttes the reursive solution o Are Cheking rolem. Theorem 5.1 Let G e lne -tree with the reresenttive tree T nd e ny vertex o T. Let,, e the three outer verties o G(C ) nd q 1, q 2, q e the three hildren o when is n internl vertex o T. Let A ( x y, x y, x y) e the Are Cheking rolem o where, nd hve distint (x,y)-oordintes.

18 194 Mondl et l. Minimum-Are Drwings o Plne -Trees Then A ( x y,x y,x y ) hs the ollowing reursive ormul. Flse i {mx{ x, x, x } min{ x, x, x } = 0} {mx{ y, y, y } min{ y, y, y } = 0}; True i {{mx{ x, x, x } min{ x, x, x } 1} {mx{ y, y, y } min{ y, y, y } 1}} is le; A ( x y, x y, x y) = Flse i {{mx{ x, x, x } min{ x, x, x } 1} {mx{ y, y, y } min{ y, y, y } 1}} is n internl vertex; x, y {A q1 ( x y, x y, x y) A q2 ( x y, x y, x y) A q ( x y, x y, x y)} where ( x, y ) is inside the tringle with the verties,,, otherwise. Proo. First we onsider the se when mx{ x, x, x } min{ x, x, x } = 0 mx{ y, y, y } min{ y, y, y } = 0. Then we ssigna ( x y, x y, x y) = Flse eusegridotlestre1 1is neessrytodrwtringle. The next se is mx{ x, x, x } min{ x, x, x } 1 mx{ y, y, y } min{ y, y, y } 1 when is le. Then we ssign A ( x y,x y,x y ) = True sine re 1 1 is suiient to drw tringle. The next se is mx{ x, x, x } min{ x, x, x } 1 mx{ y, y, y } min{ y, y, y } 1 when is n internl vertex. We ssign A ( x y,x y,x y ) = Flse sine the width nd height o G(C ) is t most 1 nd nnot e led inside C. The remining se is mx{ x, x, x } min{ x, x, x } > 1 mx{ y, y, y } min{ y, y, y } > 1 when is n internl vertex. Then we deine A ( x y,x y,x y ) reursively ording to Lemm 11. We ssoite tle AC i [1: n2 h m, 1: n2 h m, 1: n2 h m, 1:n, 1:n, 1:n] or eh vertex i o the reresenttive tree T o G, where the solution o A i ( x y, x y, x y) is stored in AC i [ x y,x y,x y ]. To store the omuted (x,y)-oordintes o the verties o G, we mintin two tles X i [1: n2 h m, 1: n2 h m, 1: n2 h m, 1:n, 1:n, 1:n] nd Y i [1: n2 h m, 1: n2 h m, 1: n2 h m, 1:n, 1:n, 1:n] or eh vertex i o T. Eh entry o the two tle X i nd Y i is omuted s ollows. Flse i AC i [ x, x, x, y, y, y ] = Flse; True i i is le nd X i [ x, x, x, y, y, y ] = AC i [ x, x, x, y, y, y ] = True; i x i i is n internl vertex nd AC i [ x, x, x, y, y, y ] = True. Flse i AC i [ x, x, x, y, y, y ] = Flse; True i i is le nd Y i [ x, x, x, y, y, y ] = AC i [ x, x, x, y, y, y ] = True; i y i i is n internl vertex nd AC i [ x, x, x, y, y, y ] = True. Let,, e the outer verties nd e the reresenttive vertex o G. I X [ x, x, x, y, y, y ] or Y [ x, x, x, y, y, y ] is Flse, then G hs no

19 JGAA, 15(2) (2011) 195 stright-line grid drwing or the given (x,y)-oordinte ssignments x y, x y, x y. I the entries re True, then G hs stright-line grid drwing with the given (x,y)-oordinte ssignments x y, x y, x y. Otherwise, the two entries ontin x-oordinte nd y-oordinte o the reresenttive vertex, resetively. We now desrie Algorithm Minimum-Are whih gives drwing o G with the minimum re, using Algorithm Are-Cheking. Let T e the reresenttive tree o the lne -tree G. We ssume width w nd height h or G. We iterte h rom 1 to n nd oreh h, we iterte w rom1to min( n2 n2 h, h m ). At eh itertion we trverse T in reorder. For eh internl vertex i o T, Minimum-Are genertes ll ossile (x, y)-oordinte ssignments or the outer verties, nd o G(C i ) within re w h. For eh suh (x,y)- oordinte ssignment o, nd, Algorithm Are-Cheking is lled to hek whether G(C i ) is drwle. Eh time drwing o G with smller re is ound, the stored re is reled y the smller re nd t the end o the lgorithm, the stored re is the minimum. At the end o this setion, orml desritions o Algorithm Minimum-Are nd Algorithm Are-Cheking re given in Algorithm nd Algorithm 4, resetively. We now nlyze the omlexity o Algorithm Minimum-Are. Theorem 5.2 Given lne -tree G with n verties, Algorithm Minimum- Are gives minimum-re drwing o G in O(n 9 logn) time. Proo. We iterte height h rom 2 to n nd or eh h, width w is iterted rom 2 to min( n2 n2 h, h m ) where h m is the minimum numer o lyers required to drw G. So the totl numer o itertions in Line 7 is n h 2 m h m + n2 n2 h m n = n 2 (1+ 1 h m+1 n ) = n 2 (1+ n k=h m+1 1 k ) n 2 +n 2 log n h m = O(n 2 logn) The irst time esile drwing is ound, we store the re w h or tht drwing. Eh susequent time esile drwing is ound, we rele the stored re only i the re w h or the urrent vlues o w nd h is smller or equl to the stored re. Ater the lgorithm is terminted, the minimum re required to drw G is returned. Let the reresenttive tree o G e T. For eh itertion we trverse T in reorderin Line 8 nd oreh internlvertex ot, Algorithm Are-Cheking is lled w 2 h 2, w 2 h(h 1) nd w 2 (h 1) 2 times in Line 12, Line 2 nd Line 4, resetively. Sine there re n internl verties in T, the totl numer o lls to Algorithm Are-Cheking y Algorithm Minimum-Are in eh itertion is n(w 2 h 2 +w 2 h(h 1)+w 2 (h 1) 2 ) = nw 2 (h 2 h+1) = O(nw 2 h 2 ) We store the solutions o the surolems in the AC tles where eh entry o the tles initilly ontins null to denote tht the entry is yet to e illed

20 196 Mondl et l. Minimum-Are Drwings o Plne -Trees in. When the surolem is irst enountered during the exeution o the reursive lgorithm Are-Cheking, its solution is omuted nd stored in the tle. Eh susequent time the surolem is enountered, the vlue stored in the tle is looked u nd returned. The solutions o these surolems re omuted ottom u nd eh looku tkes O(1) time. Moreover, x y n tke t most w h vlues in Line 9 o Algorithm Are-Cheking. Thereore, eh ll to Algorithm Are-Cheking tkes O(1) O(wh) = O(wh) time. Hene or eh itertion, the numer o times Algorithm Are-Cheking is lled inluding ll the reursive lls is O(nw 2 h 2 ). Thereore, the totl running time oalgorithm Are-Cheking is O(nw 2 h 2 ) O(wh) = O(nw h ) = O(n 7 ) sine wh = O(n 2 ). Thus the totl time required or ll the O(n 2 logn) itertions is O(n 2 logn) O(n 7 ) = O(n 9 logn). We now rell tht the onstrution o the reresenttive tree tkes O(n) time y Lemm 7. Thus AlgorithmMinimum-Lyer tkeso(n) + O(n 9 logn) = O(n 9 logn) time in totl. 6 Lower Bound In this setion we imrove the lower ound on re or stright-line grid drwings o lne grhs. We show tht there exist lne -trees, or whih the imroved ound holds. One o the most mous nd long stnding onjetures sttes tht ny lne grh G with n verties n e drwn in 2n 1 2n 1 re [20]. Frti nd Ptrignni [20] showed tht this ound neglets t lest liner term. They showed tht there exists lne grh with n verties whih requires t lest ( 2n 1) (2n ) rewhere n is multile othree. This indites tht the known ( 2n 1) (2n 1) lower ound on re or the stright-line grid drwings o lne grhs n e imroved urther. The lower ound on re is known to e 2(n 1) 2(n 1) re [8] whih we imrove to 2n 1 2 n re or n 6. Beore showing the grhs or whih the imroved lower ound on re holds, we desrie the nested tringles grhs. Dolev et l. irst exhiited the nested tringles grhs in 1984, to otin lower ound on re ( 2n 1) ( 2n 1) or stright-line grid drwings o lne grhs where the outer e is ixed [1]. Let t 1, t 2 e two disjoint -yles in grh G nd Γ e lnr drwing o G. Then t 1 is nested in t 2 in Γ, i t 1 is drwn in the region enlosed y t 2. This reltionshi is shown y t 2 > t 1. We ll lnr grh G t with n verties nested tringles grh i the ollowing () nd () hold: () i n =, then G t is -yle; () i n >, then G t is tringulted lne grh with extly n/ nested tringles suh tht t n/ >... > t 2 > t 1.

21 JGAA, 15(2) (2011) 197 Algorithm Minimum-Are(G) 1: Construt the reresenttive tree T o G 2: or eh vertex i o T n in reorder do : AC i [1,1,1,1,1,1] = Flse 4: end or 5: {The outer verties o G(C i ) re, nd ; re stores the minimum re} 6: re=n 2 7: or eh h rom 2 to n nd eh w rom 2 to min( n2 h, n2 h m ) do 8: or eh vertex i o T n in reorder do 9: x = w, y = h 10: or 1 x w, 1 y h, 1 x w, 1 y h do 11: i AC i [ x, x, x, y, y, y ] = null then 12: Are-Cheking (,,) 1: end i 14: i i = root && AC i [ x, x, x, y, y, y ] = true then 15: i re w h then 16: re=wh 17: end i 18: end i 19: end or 20: x = w, y = h 21: or 1 x w, 1 y h 1, 1 x w, 1 y h do 22: i AC i [ x, x, x, y, y, y ] = null then 2: Are-Cheking (,,) 24: end i 25: i i = root && AC i [ x, x, x, y, y, y ] = true then 26: i re w h then 27: re=wh 28: end i 29: end i 0: end or 1: x = w, y = h 2: or 1 x w, 1 y h 1, 1 x w, 1 y h 1 do : i AC i [ x, x, x, y, y, y ] = null then 4: Are-Cheking (,,) 5: end i 6: i i = root && AC i [ x, x, x, y, y, y ] = true then 7: i re w h then 8: re=wh 9: end i 40: end i 41: end or 42: end or 4: end or

22 198 Mondl et l. Minimum-Are Drwings o Plne -Trees Algorithm 4 Are-Cheking(,,) 1: {,, re outer verties o G nd is the reresenttive vertex} 2: i (mx{ x, x, x } min{ x, x, x } = 0) (mx{ y, y, y } : min{ y, y, y } = 0) then 4: AC [ x, x, x, y, y, y ] = Flse 5: X [ x, x, x, y, y, y ] = Flse 6: Y [ x, x, x, y, y, y ] = Flse 7: else i (mx{ x, x, x } min{ x, x, x } > 1) & (mx{ y, y, y } 8: min{ y, y, y } > 1) & ( is n internl node) then 9: or ll integer oints ( x, y ) inside the tringle with verties,, do 10: i Are-Cheking(,,)& Are-Cheking(,,)& 11: Are-Cheking(,,) then 12: AC [ x, x, x, y, y, y ] = True 1: X [ x, x, x, y, y, y ] = x 14: Y [ x, x, x, y, y, y ] = y 15: rek 16: end i 17: end or 18: else 19: Comute AC [ x, x, x, y, y, y ], X [ x, x, x, y, y, y ] 20: nd Y [ x, x, x, y, y, y ] y Theorem : end i Lemm 12 Let G t e nested tringles grh with n verties nd t = (n/) nested tringles. Then there exists lne -tree G n with n verties suh tht G n ontins n/ nested tringles. Proo. The se t = 1 is trivil sine G 1 is tringle whih is the lne -tree G. So suose tht t > 1 nd the lemm holds or ll nested tringles grhs hving less thn t nested tringles. We delete the three outer verties o G t to get G t 1. By indution hyothesis, there exists lne -tree G n with (n/) 1 nested tringles. Let the outerverties o G n e d, e nd. We ut G n inside tringle {,,} nd dd the edges (,e), (,d), (,), (,), (,), (,e) s shown in Figure 11(). The resulting grh is the required G n i it is lne -tree nd ontins n/ nested tringles. Sine G n is lne -tree, we n delete its interior verties reursively in suh wy tht the resulting grh remins tringulted t eh ste. We n then delete the verties d, e nd one ter nother to otin the tringle {,,}. As illustrted in Figures 11() (d), the deletion o d, e, nd one ter nother kees the resulting grh tringulted t eh ste. Thus we n lwys delete ninnervertexog n insuhwytht tehstethe resultinggrhremins lne -tree; nd hene, G n is lne -tree. Moreover, sine the numer o nested tringles in G n is (n )/, the numer o nested tringles in G n is n/ in totl.

23 JGAA, 15(2) (2011) 199 d e G (n/ * ) 1 G n * () e () () (d) Figure 11: Illustrtion or the roo o Lemm 12. Ft 1 [20] Let Γ e ny lnr drwing o grh G, nd let t 2 nd t 1 e two disjoint -yles o G suh tht t 2 > t 1 in Γ. The height (width) o t 2 in Γ is t lest two units igger thn the height (width) o t 1. We denote y G 6, G 7 nd G 8 the three lne -trees deited y Figures 12(), () nd (), resetively. G 6 G 7 G 8 () () () Figure 12: Drwings o G 6, G 7 nd G 8. Ft 14 The minimum-re stright-line grid drwings or G 6 requires 2 6 or 4 re, G 7 requires 6 re nd G 8 requires 8 or 4 6 re. Proo. We n rove the t y se study or y Algorithm Minimum-Are resented in Setion 5. We now hve the ollowing theorem or the lower ound on re o lne grhs. The roo o the theorem uses G 6, G 7 nd G 8 s the uilding loks or the grhs ttining the lower ound with n 6 verties s illustrted in Figure 12. Note tht when n is multile o three, this ound is the sme s the one y Frti nd Ptrignni [20]. In t, the grh they used s the uilding lok is G 6. Theorem 6.1 For eh n 6, there is n-vertex lne grh G suh tht the re required tootin stright-line grid drwing o G is t lest 2n 1 2 n.

24 200 Mondl et l. Minimum-Are Drwings o Plne -Trees Proo. As n existentil roo, we onstrut lne -trees or whih the lower ound holds. We orm those grhs y enlosing G 6, G 7 nd G 8 with re 4, 6 nd 4 6 in the innermost tringle o G n 6, G n 7 nd G n 8 where n = m, m+1 nd m+2 or m 2, resetively. We enlose the drwings o Figure 12() nd () with re 4 nd 4 6 sine drwings enlosing the lterntive drwings o G 6 nd G 8 will tke the sme or more re. Thereore the new loweround or the rew H ollowsromft 1 14ndLemm 12. ( 2n 5 ) ( 2n+4 ) i n = m+1 nd m 2; W H = ( 2n 4 ) ( 2n+2 ) i n = m+2 nd m 2; ( 2n ) ( 2n ) i n = m nd m 2. It n e esily shown tht or ll n 6, the lower ound or the re o n-vertex lne grh is 2n 1 2 n. We onlude this setion with the onjeture tht or n > 6, the 2n 1 2 n lower ound on the re requirement o lne grhs lso hold or the lss o lne -trees shown in Figure Figure 1: A lss o lne -trees. 7 Conlusion We hve shown tht or ixed lnr emedding o lne -tree G, minimum-re drwing n e otined in olynomil time. Sine lne -tree G hs only liner numer o lnr emeddings, we n omute the re requirements o ll the emeddings o G nd determine the lnr emedding whih gives the est re ound; nd thus we n otin minimum-re drwing o G in olynomil time when the emedding o G is not ixed. Sine the re minimiztion rolem or lne -trees n e solved in olynomil time, it remins oen to investigte whether ny other omuttionlly hrd rolem in the re o grh drwing n e solved in olynomil time or lne -trees. Mny suh rolems yet to e nlyzed n e ound in [, 6, 24]. It is hllenge to ind simler lgorithm or otining minimum-re drwings o lne -trees nd to exlore urther roerties o this sulss o lnr grhs. It is lso let s uture work to ind other lsses o lnr grhs or whih the re minimiztion rolem n e solved in olynomil time. It iswellknowntht ideisionrolemongrhsosmll treewidth n e deined in mondi seond-order logi, there is liner-time lgorithm or testing the rolem [11]. Sine the treewidth o lne -trees is ounded y

25 JGAA, 15(2) (2011) 201 three, it would e interesting to study whether the re minimiztion rolem is deinle in mondi seond-order logi or not. Aknowledgement This work is done under the rojet Minimum-Are Drwings o Plne Grhs, suorted y CASR, BUET, in Grh Drwing & Inormtion Visuliztion Lortory o the Dertment o CSE, BUET estlished under the rojet Fility Ugrdtion or Sustinle Reserh on Grh Drwing & Inormtion Visuliztion suorted y the Ministry o Siene nd Inormtion & Communition Tehnology, Government o Bngldesh. We thnk the nonymous reerees or their useul omments nd suggestions.

26 202 Mondl et l. Minimum-Are Drwings o Plne -Trees Reerenes [1] M. J. Alm, M. A. H. Smee, M. M. Ri, nd M. S. Rhmn. Minimumlyer uwrd drwings o trees. Journl o Grh Algorithms nd Alitions, 14(2): , [2] S. Arnorg nd A. Proskurowski. Cnonil reresenttions o rtil 2- nd -trees. Behviour & Inormtion Tehnology, 2(2): , [] G. Di Bttist, P. Edes, R. Tmssi, nd I. G. Tollis. Grh Drwing: Algorithms or the Visuliztion o Grhs. Prentie Hll, [4] T. Biedl nd L. E. R. Velsquez. Drwing lnr -trees with given e-res. In the 17th Interntionl Symosium on Grh Drwing (GD 2009), volume 5849 o Leture Notes in Comuter Siene, ges Sringer, [5] H. L. Bodlender nd T. Kloks. Eiient nd onstrutive lgorithms or the thwidth nd treewidth o grhs. Journl o Algorithms, 21(2):58 402, [6] F. Brndenurg, D. Estein, M. T. Goodrih, S. Koourov, G. Liott, nd P. Mutzel. Seleted oen rolems in grh drwing. In the 11th Interntionl Symosium on Grh Drwing (GD 200), volume 2912 o Leture Notes in Comuter Siene, ges Sringer, [7] F. J. Brndenurg. Drwing lnr grhs on 8 9 n2 re. In the Interntionl Conerene on Toologil nd Geometri Grh Theory, volume 1 o Eletroni Notes in Disrete Mthemtis, ges Elsevier, [8] M. Chrok nd S. Nkno. Minimum width grid drwings o lne grhs. In the DIMACS Interntionl Worksho on Grh Drwing, volume 894 o Leture Notes in Comuter Siene, ges Sringer, [9] T. H. Cormen, C. E. Leiserson, R. L. Rivest, nd C. Stein. Introdution to Algorithms. The MIT Press, [10] S. Cornelsen, T. Shnk, nd D. Wgner. Drwing grhs on two nd three lines. In the 10th Interntionl Symosium on Grh Drwing(GD 2002), volume 2528 o Leture Notes In Comuter Siene, ges Sringer, [11] B. Courelle. The mondi seond-order logi o grhs. I. Reognizle sets o inite grhs. Inormtion nd Comuttion, 85(1):12 75, [12] H. de Frysseix, J. Ph, nd R. Pollk. How to drw lnr grh on grid. Comintori, 10:41 51, [1] D. Dolev, T. Leighton, nd H. Trikey. Plnr emedding o lnr grhs. Advnes in Comuting Reserh, 2: , 1984.

On a Class of Planar Graphs with Straight-Line Grid Drawings on Linear Area

On a Class of Planar Graphs with Straight-Line Grid Drawings on Linear Area Journl of Grph Algorithms n Applitions http://jg.info/ vol. 13, no. 2, pp. 153 177 (2009) On Clss of Plnr Grphs with Stright-Line Gri Drwings on Liner Are M. Rezul Krim 1,2 M. Siur Rhmn 1 1 Deprtment of

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

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

April 8, 2017 Math 9. Geometry. Solving vector problems. Problem. Prove that if vectors and satisfy, then.

April 8, 2017 Math 9. Geometry. Solving vector problems. Problem. Prove that if vectors and satisfy, then. pril 8, 2017 Mth 9 Geometry Solving vetor prolems Prolem Prove tht if vetors nd stisfy, then Solution 1 onsider the vetor ddition prllelogrm shown in the Figure Sine its digonls hve equl length,, the prllelogrm

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

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

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

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

Co-ordinated s-convex Function in the First Sense with Some Hadamard-Type Inequalities

Co-ordinated s-convex Function in the First Sense with Some Hadamard-Type Inequalities Int. J. Contemp. Mth. Sienes, Vol. 3, 008, no. 3, 557-567 Co-ordinted s-convex Funtion in the First Sense with Some Hdmrd-Type Inequlities Mohmmd Alomri nd Mslin Drus Shool o Mthemtil Sienes Fulty o Siene

More information

A Study on the Properties of Rational Triangles

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

More information

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

GM1 Consolidation Worksheet

GM1 Consolidation Worksheet Cmridge Essentils Mthemtis Core 8 GM1 Consolidtion Worksheet GM1 Consolidtion Worksheet 1 Clulte the size of eh ngle mrked y letter. Give resons for your nswers. or exmple, ngles on stright line dd up

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

Section 4.4. Green s Theorem

Section 4.4. Green s Theorem The Clulus of Funtions of Severl Vriles Setion 4.4 Green s Theorem Green s theorem is n exmple from fmily of theorems whih onnet line integrls (nd their higher-dimensionl nlogues) with the definite integrls

More information

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

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

More information

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

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

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

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

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

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

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

6.1 Definition of the Riemann Integral

6.1 Definition of the Riemann Integral 6 The Riemnn Integrl 6. Deinition o the Riemnn Integrl Deinition 6.. Given n intervl [, b] with < b, prtition P o [, b] is inite set o points {x, x,..., x n } [, b], lled grid points, suh tht x =, x n

More information

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

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

More information

Green s Theorem. (2x e y ) da. (2x e y ) dx dy. x 2 xe y. (1 e y ) dy. y=1. = y e y. y=0. = 2 e

Green s Theorem. (2x e y ) da. (2x e y ) dx dy. x 2 xe y. (1 e y ) dy. y=1. = y e y. y=0. = 2 e Green s Theorem. Let be the boundry of the unit squre, y, oriented ounterlokwise, nd let F be the vetor field F, y e y +, 2 y. Find F d r. Solution. Let s write P, y e y + nd Q, y 2 y, so tht F P, Q. Let

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

Activities. 4.1 Pythagoras' Theorem 4.2 Spirals 4.3 Clinometers 4.4 Radar 4.5 Posting Parcels 4.6 Interlocking Pipes 4.7 Sine Rule Notes and Solutions

Activities. 4.1 Pythagoras' Theorem 4.2 Spirals 4.3 Clinometers 4.4 Radar 4.5 Posting Parcels 4.6 Interlocking Pipes 4.7 Sine Rule Notes and Solutions MEP: Demonstrtion Projet UNIT 4: Trigonometry UNIT 4 Trigonometry tivities tivities 4. Pythgors' Theorem 4.2 Spirls 4.3 linometers 4.4 Rdr 4.5 Posting Prels 4.6 Interloking Pipes 4.7 Sine Rule Notes nd

More information

Arrow s Impossibility Theorem

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

More information

#A42 INTEGERS 11 (2011) ON THE CONDITIONED BINOMIAL COEFFICIENTS

#A42 INTEGERS 11 (2011) ON THE CONDITIONED BINOMIAL COEFFICIENTS #A42 INTEGERS 11 (2011 ON THE CONDITIONED BINOMIAL COEFFICIENTS Liqun To Shool of Mthemtil Sienes, Luoyng Norml University, Luoyng, Chin lqto@lynuedun Reeived: 12/24/10, Revised: 5/11/11, Aepted: 5/16/11,

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

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

Trigonometry Revision Sheet Q5 of Paper 2

Trigonometry Revision Sheet Q5 of Paper 2 Trigonometry Revision Sheet Q of Pper The Bsis - The Trigonometry setion is ll out tringles. We will normlly e given some of the sides or ngles of tringle nd we use formule nd rules to find the others.

More information

Proving the Pythagorean Theorem

Proving the Pythagorean Theorem Proving the Pythgoren Theorem W. Bline Dowler June 30, 2010 Astrt Most people re fmilir with the formul 2 + 2 = 2. However, in most ses, this ws presented in lssroom s n solute with no ttempt t proof or

More information

PAIR OF LINEAR EQUATIONS IN TWO VARIABLES

PAIR OF LINEAR EQUATIONS IN TWO VARIABLES PAIR OF LINEAR EQUATIONS IN TWO VARIABLES. Two liner equtions in the sme two vriles re lled pir of liner equtions in two vriles. The most generl form of pir of liner equtions is x + y + 0 x + y + 0 where,,,,,,

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

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

MAT 403 NOTES 4. f + f =

MAT 403 NOTES 4. f + f = MAT 403 NOTES 4 1. Fundmentl Theorem o Clulus We will proo more generl version o the FTC thn the textook. But just like the textook, we strt with the ollowing proposition. Let R[, ] e the set o Riemnn

More information

3 Angle Geometry. 3.1 Measuring Angles. 1. Using a protractor, measure the marked angles.

3 Angle Geometry. 3.1 Measuring Angles. 1. Using a protractor, measure the marked angles. 3 ngle Geometry MEP Prtie ook S3 3.1 Mesuring ngles 1. Using protrtor, mesure the mrked ngles. () () (d) (e) (f) 2. Drw ngles with the following sizes. () 22 () 75 120 (d) 90 (e) 153 (f) 45 (g) 180 (h)

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

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

Arrow s Impossibility Theorem

Arrow s Impossibility Theorem Rep Fun Gme Properties Arrow s Theorem Arrow s Impossiility Theorem Leture 12 Arrow s Impossiility Theorem Leture 12, Slide 1 Rep Fun Gme Properties Arrow s Theorem Leture Overview 1 Rep 2 Fun Gme 3 Properties

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

Lower Bounds on the Area Requirements of Series-Parallel Graphs

Lower Bounds on the Area Requirements of Series-Parallel Graphs Discrete Mthemtics nd Theoreticl Computer Science DMTCS vol. 12:5, 2010, 139 174 Lower Bounds on the Are Requirements of Series-Prllel Grphs Frizio Frti Università Rom Tre, Itly, nd École Polytechnique

More information

1 Find the volume of each solid, correct to one decimal place where necessary. 12 cm 14 m. 25 mm. p c 5 ffiffiffi

1 Find the volume of each solid, correct to one decimal place where necessary. 12 cm 14 m. 25 mm. p c 5 ffiffiffi 1 Find the volume of eh solid, orret to one deiml le where neessry. 8 m 6 m m 14 m 65 m 2 2 m d 7.6 mm 2 m 4 m 4 m 7 m 25 mm Stge 5.3 See Chter 1 See Chter 7 See Chter 9 See Chter 9 See Chter 13 2 Simlify

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

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

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

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

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

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

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

More information

Journal of Inequalities in Pure and Applied Mathematics

Journal of Inequalities in Pure and Applied Mathematics Journl o Inequlities in Pure nd Applied Mthemtics http://jipm.vu.edu.u/ Volume 6, Issue 4, Article 6, 2005 MROMORPHIC UNCTION THAT SHARS ON SMALL UNCTION WITH ITS DRIVATIV QINCAI ZHAN SCHOOL O INORMATION

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

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

The Riemann and the Generalised Riemann Integral

The Riemann and the Generalised Riemann Integral The Riemnn nd the Generlised Riemnn Integrl Clvin 17 July 14 Contents 1 The Riemnn Integrl 1.1 Riemnn Integrl............................................ 1. Properties o Riemnn Integrble Funtions.............................

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

Inequalities of Olympiad Caliber. RSME Olympiad Committee BARCELONA TECH

Inequalities of Olympiad Caliber. RSME Olympiad Committee BARCELONA TECH Ineulities of Olymid Clier José Luis Díz-Brrero RSME Olymid Committee BARCELONA TECH José Luis Díz-Brrero RSME Olymi Committee UPC BARCELONA TECH jose.luis.diz@u.edu Bsi fts to rove ineulities Herefter,

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

LESSON 11: TRIANGLE FORMULAE

LESSON 11: TRIANGLE FORMULAE . THE SEMIPERIMETER OF TRINGLE LESSON : TRINGLE FORMULE In wht follows, will hve sides, nd, nd these will e opposite ngles, nd respetively. y the tringle inequlity, nd..() So ll of, & re positive rel numers.

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

arxiv: v1 [math.gr] 11 Jan 2019

arxiv: v1 [math.gr] 11 Jan 2019 The Generlized Dehn Property does not imply liner isoperimetri inequlity Owen Bker nd Timothy Riley rxiv:1901.03767v1 [mth.gr] 11 Jn 2019 Jnury 15, 2019 Astrt The Dehn property for omplex is tht every

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

2. There are an infinite number of possible triangles, all similar, with three given angles whose sum is 180.

2. There are an infinite number of possible triangles, all similar, with three given angles whose sum is 180. SECTION 8-1 11 CHAPTER 8 Setion 8 1. There re n infinite numer of possile tringles, ll similr, with three given ngles whose sum is 180. 4. If two ngles α nd β of tringle re known, the third ngle n e found

More information

2.1 ANGLES AND THEIR MEASURE. y I

2.1 ANGLES AND THEIR MEASURE. y I .1 ANGLES AND THEIR MEASURE Given two interseting lines or line segments, the mount of rottion out the point of intersetion (the vertex) required to ring one into orrespondene with the other is lled the

More information

In right-angled triangles the square on the side subtending the right angle is equal to the squares on the sides containing the right angle.

In right-angled triangles the square on the side subtending the right angle is equal to the squares on the sides containing the right angle. Mth 3329-Uniform Geometries Leture 06 1. Review of trigonometry While we re looking t Eulid s Elements, I d like to look t some si trigonometry. Figure 1. The Pythgoren theorem sttes tht if = 90, then

More information

1.3 SCALARS AND VECTORS

1.3 SCALARS AND VECTORS Bridge Course Phy I PUC 24 1.3 SCLRS ND VECTORS Introdution: Physis is the study of nturl phenomen. The study of ny nturl phenomenon involves mesurements. For exmple, the distne etween the plnet erth nd

More information

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

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

More information

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

PYTHAGORAS THEOREM,TRIGONOMETRY,BEARINGS AND THREE DIMENSIONAL PROBLEMS

PYTHAGORAS THEOREM,TRIGONOMETRY,BEARINGS AND THREE DIMENSIONAL PROBLEMS PYTHGORS THEOREM,TRIGONOMETRY,ERINGS ND THREE DIMENSIONL PROLEMS 1.1 PYTHGORS THEOREM: 1. The Pythgors Theorem sttes tht the squre of the hypotenuse is equl to the sum of the squres of the other two sides

More information

Trigonometry and Constructive Geometry

Trigonometry and Constructive Geometry Trigonometry nd Construtive Geometry Trining prolems for M2 2018 term 1 Ted Szylowie tedszy@gmil.om 1 Leling geometril figures 1. Prtie writing Greek letters. αβγδɛθλµπψ 2. Lel the sides, ngles nd verties

More information

On the Co-Ordinated Convex Functions

On the Co-Ordinated Convex Functions Appl. Mth. In. Si. 8, No. 3, 085-0 0 085 Applied Mthemtis & Inormtion Sienes An Interntionl Journl http://.doi.org/0.785/mis/08038 On the Co-Ordinted Convex Funtions M. Emin Özdemir, Çetin Yıldız, nd Ahmet

More information

PYTHAGORAS THEOREM WHAT S IN CHAPTER 1? IN THIS CHAPTER YOU WILL:

PYTHAGORAS THEOREM WHAT S IN CHAPTER 1? IN THIS CHAPTER YOU WILL: PYTHAGORAS THEOREM 1 WHAT S IN CHAPTER 1? 1 01 Squres, squre roots nd surds 1 02 Pythgors theorem 1 03 Finding the hypotenuse 1 04 Finding shorter side 1 05 Mixed prolems 1 06 Testing for right-ngled tringles

More information

Data Structures LECTURE 10. Huffman coding. Example. Coding: problem definition

Data Structures LECTURE 10. Huffman coding. Example. Coding: problem definition Dt Strutures, Spring 24 L. Joskowiz Dt Strutures LEURE Humn oing Motivtion Uniquel eipherle oes Prei oes Humn oe onstrution Etensions n pplitions hpter 6.3 pp 385 392 in tetook Motivtion Suppose we wnt

More information

A CLASS OF GENERAL SUPERTREE METHODS FOR NESTED TAXA

A CLASS OF GENERAL SUPERTREE METHODS FOR NESTED TAXA A CLASS OF GENERAL SUPERTREE METHODS FOR NESTED TAXA PHILIP DANIEL AND CHARLES SEMPLE Astrt. Amlgmting smller evolutionry trees into single prent tree is n importnt tsk in evolutionry iology. Trditionlly,

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

Search: Cost & Heuristics

Search: Cost & Heuristics 9/9/ CSE 7: Artiiil Intelligene Autumn 0 Pizz? Announements Serh: Cost & Heuristis Dn Wel Projet : Serh online tomorrow ue Mony 0/ ue We / Strt! With slies rom Dn Klein, Sturt Russell, Anrew Moore, Luke

More information

CIT 596 Theory of Computation 1. Graphs and Digraphs

CIT 596 Theory of Computation 1. Graphs and Digraphs CIT 596 Theory of Computtion 1 A grph G = (V (G), E(G)) onsists of two finite sets: V (G), the vertex set of the grph, often enote y just V, whih is nonempty set of elements lle verties, n E(G), the ege

More information

Data Structures (INE2011)

Data Structures (INE2011) Dt Strutures (INE2011) Eletronis nd Communition Engineering Hnyng University Hewoon Nm Leture 7 INE2011 Dt Strutures 1 Binry Tree Trversl Mny inry tree opertions re done y perorming trversl o the inry

More information

m m m m m m m m P m P m ( ) m m P( ) ( ). The o-ordinte of the point P( ) dividing the line segment joining the two points ( ) nd ( ) eternll in the r

m m m m m m m m P m P m ( ) m m P( ) ( ). The o-ordinte of the point P( ) dividing the line segment joining the two points ( ) nd ( ) eternll in the r CO-ORDINTE GEOMETR II I Qudrnt Qudrnt (-.+) (++) X X - - - 0 - III IV Qudrnt - Qudrnt (--) - (+-) Region CRTESIN CO-ORDINTE SSTEM : Retngulr Co-ordinte Sstem : Let X' OX nd 'O e two mutull perpendiulr

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

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

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

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

More information

= state, a = reading and q j

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

More information

Fast index for approximate string matching

Fast index for approximate string matching Fst index for pproximte string mthing Dekel Tsur Astrt We present n index tht stores text of length n suh tht given pttern of length m, ll the sustrings of the text tht re within Hmming distne (or edit

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

Individual Group. Individual Events I1 If 4 a = 25 b 1 1. = 10, find the value of.

Individual Group. Individual Events I1 If 4 a = 25 b 1 1. = 10, find the value of. Answers: (000-0 HKMO Het Events) Creted y: Mr. Frnis Hung Lst udted: July 0 00-0 33 3 7 7 5 Individul 6 7 7 3.5 75 9 9 0 36 00-0 Grou 60 36 3 0 5 6 7 7 0 9 3 0 Individul Events I If = 5 = 0, find the vlue

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

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

Single-Player and Two-Player Buttons & Scissors Games (Extended Abstract)

Single-Player and Two-Player Buttons & Scissors Games (Extended Abstract) Single-Plyer nd Two-Plyer Buttons & Sissors Gmes (Extended Astrt) Kyle Burke 1, Erik D. Demine 2, Hrrison Gregg 3, Roert A. Hern 4, Adm Hestererg 2, Mihel Hoffmnn 5, Hiro Ito 6, Irin Kostitsyn 7, Jody

More information

THE PYTHAGOREAN THEOREM

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

More information

Graph width-parameters and algorithms

Graph width-parameters and algorithms Grph width-prmeters nd lgorithms Jisu Jeong (KAIST) joint work with Sigve Hortemo Sæther nd Jn Arne Telle (University of Bergen) 2015 KMS Annul Meeting 2015.10.24. YONSEI UNIVERSITY Grph width-prmeters

More information

Foundations of Computer Science Comp109

Foundations of Computer Science Comp109 Reding Foundtions o Computer Siene Comp09 University o Liverpool Boris Konev konev@liverpool..uk http://www.s.liv..uk/~konev/comp09 Prt. Funtion Comp09 Foundtions o Computer Siene Disrete Mthemtis nd Its

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

Electrical Circuits II (ECE233b)

Electrical Circuits II (ECE233b) Eletril Ciruits (ECE2) Polyhse Ciruits Anestis Dounis The Uniersity of Western Ontrio Fulty of Engineering Siene ThreePhse Ciruits Blned three hse iruit: ontins three oltge soures tht re equl in mgnitude

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

Computational Biology Lecture 18: Genome rearrangements, finding maximal matches Saad Mneimneh

Computational Biology Lecture 18: Genome rearrangements, finding maximal matches Saad Mneimneh Computtionl Biology Leture 8: Genome rerrngements, finding miml mthes Sd Mneimneh We hve seen how to rerrnge genome to otin nother one sed on reversls nd the knowledge of the preserved loks or genes. Now

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

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

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

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

Chapter Gauss Quadrature Rule of Integration

Chapter Gauss Quadrature Rule of Integration Chpter 7. Guss Qudrture Rule o Integrtion Ater reding this hpter, you should e le to:. derive the Guss qudrture method or integrtion nd e le to use it to solve prolems, nd. use Guss qudrture method to

More information