Discrete Applied Mathematics. Shortest paths in linear time on minor-closed graph classes, with an application to Steiner tree approximation

Size: px
Start display at page:

Download "Discrete Applied Mathematics. Shortest paths in linear time on minor-closed graph classes, with an application to Steiner tree approximation"

Transcription

1 Dscrete Appled Mathematcs 7 (9) Contents lsts avalable at ScenceDrect Dscrete Appled Mathematcs journal homepage: Shortest paths n lnear tme on mnor-closed graph classes, wth an applcaton to Stener tree approxmaton Samak Tazar a,, Matthas Müller-Hannemann b a Technsche Unverstät Darmstadt, Department of Computer Scence, Hochschulstraße, 6489 Darmstadt, Germany b Martn-Luther-Unverstät Halle-Wttenberg, Department of Computer Scence, Von-Seckendorff-Platz, 6 Halle (Saale), Germany a r t c l e n f o a b s t r a c t Artcle hstory: Receved October 6 Receved n revsed form Aprl 8 Accepted 7 August 8 Avalable onlne 7 September 8 Keywords: Shortest path Mnor-closed graph classes Planar graph Stener tree Mehlhorn s algorthm We generalze the lnear-tme shortest-paths algorthm for planar graphs wth nonnegatve edge-weghts of Henznger et al. (994) to work for any proper mnor-closed class of graphs. We argue that ther algorthm can not be adapted by standard methods to all proper mnor-closed classes. By usng recent deep results n graph mnor theory, we show how to construct an approprate recursve dvson n lnear tme for any graph excludng a fxed mnor and how to transform the graph and ts dvson afterwards, so that t has maxmum degree three. Based on such a dvson, the orgnal framework of Henznger et al. can be appled. Afterwards, we show that usng ths algorthm, one can mplement Mehlhorn s (988) -approxmaton algorthm for the Stener tree problem n lnear tme on these graph classes. 8 Elsever B.V. All rghts reserved.. Introducton The sngle-source shortest-paths problem wth nonnegatve edge-weghts s one of the most-studed problems n computer scence, because of both ts theoretcal and practcal mportance. Djkstra s classcal algorthm [] has ever snce ts dscovery been one of the best choces n practce. Also from a theoretcal pont of vew, untl very recently, t had the best runnng tme n the addton-comparson model of computaton, namely O(m + n log n) usng Fbonacc heaps [] (we use n to denote the number of vertces of a graph and m for ts number of edges). Pette and Ramachandran [] mproved the theoretcal runnng tme n undrected graphs for the case when the rato r between the largest and smallest edge-weght s not too large. They acheve a runnng tme of O(mα(m, n) + mn{n log n, n log log r}), where α(m, n) s the very slowly growng nverse-ackermann functon. Goldberg [4] proposed an algorthm that runs on average n lnear tme. For the case of nteger edge-weghts, Thorup [] presented a lnear-tme algorthm n the word RAM model of computaton, where the bt-manpulaton of words n the processor s allowed. Hagerup [6] extended and smplfed Thorup s deas to work for drected graphs n nearly lnear tme. But the queston whether the standard addton-comparson model allows shortestpaths computaton n worst-case lnear-tme s stll open. For a farly recent survey about shortest-paths algorthms, see Zwck [7]. For planar graphs, Henznger et al. [8] presented the frst lnear-tme algorthm to calculate shortest-paths wth nonnegatve edge-weghts. Ther algorthm works on drected graphs. It s based on Frederckson s [9,] work who gave an O(n log n)-tme algorthm for ths case and whose dea was n turn based on Lpton and Tarjan s planar separator [] to decompose the graph. Henznger et al. frst decompose the graph nto a recursve dvson and then use ths dvson to relax the edges n a certan order that guarantees lnear runnng tme. They clam that ther algorthm can be adapted to Correspondng author. Tel.: ; fax: E-mal addresses: tazar@algo.nformatk.tu-darmstadt.de (S. Tazar), muellerh@nformatk.un-halle.de (M. Müller-Hannemann). 66-8X/$ see front matter 8 Elsever B.V. All rghts reserved. do:.6/j.dam.8.8.

2 674 S. Tazar, M. Müller-Hannemann / Dscrete Appled Mathematcs 7 (9) work for any proper mnor-closed famly of graphs where small separators can be found n lnear tme. Recently, Reed and Wood [] mproved the quadratc-tme separator of Alon et al. [] and showed that all proper mnor-closed graph classes can be separated n lnear tme; so, we should be done. However, both Frederckson s algorthm and Henznger et al. s algorthm assume that the graph has maxmum degree ; whle ths property can be acheved easly for planar graphs, we argue that t can not be acheved by standard methods for arbtrary mnor-closed classes (n partcular, t can not be appled to apex graphs,.e. planar graphs augmented by a super-source ; these graphs have frequent applcaton n the lterature). We show how to buld an approprate recursve dvson of a graph from a proper mnor-closed famly n lnear tme by a nontrval extenson of the algorthm n [8]. Our algorthm works for graphs wth arbtrary degrees. But even after havng the recursve dvson, the shortest paths algorthm n [8] depends on the assumpton that the graph has bounded degree (and contans only a sngle source labeled ntally wth dstance zero, cf. apex graphs). Usng our recursve dvson, we show how to transform the graph and ts dvson to have maxmum degree, so that Henznger et al. s shortest-paths algorthm can be appled. Our modfcatons lead to the frst shortest-paths algorthm for all proper mnor-closed classes of graphs that runs n lnear tme n the addton-comparson model of computaton. We also consder the Stener tree problem, namely fndng the shortest tree that connects a gven set of termnals n an undrected graph. The Stener tree problem s also one of the most fundamental problems n computer scence and of the frst problems shown to be N P -complete by Karp [4]. Bern and Plassmann [] showed that t s even AP X-hard and the best-known nonapproxmablty result s due to Chlebík and Chlebíková [6] who showed a bound of 96/9.. Robns and Zelkovsky [7] presented an algorthm wth approxmaton guarantee + ln + ɛ. + ɛ whch s the best approxmaton algorthm for ths problem known so far. There s a well-known -approxmaton algorthm for ths problem [8,9] that s based on fndng the mnmum spannng tree of the complete dstance network of the set of termnals. Mehlhorn [] mproved the runnng tme of ths algorthm to O(m + n log n). The Stener tree problem n planar graphs s also N P -hard [] but very recently a polynomal tme approxmaton scheme (PTAS) has been found by Borradale et al. [,] for ths case. The runnng tme of the PTAS s O(n log n) wth a constant factor that s exponental n the nverse of the desred accuracy. As an applcaton of our shortest-paths algorthm, we show how to mplement Mehlhorn s [] -approxmaton algorthm n lnear tme on proper mnor-closed graph classes. No better tme bound than Mehlhorn s own mplementaton of O(m + n log n) has prevously been known even for planar graphs. An mportant observaton that we made s that Mehlhorn s dstance network s a mnor of the gven graph and thus, ts mnmum spannng tree can be calculated n lnear tme wth the algorthm of Mares [4] (or that of Cherton and Tarjan [] n the planar case). Our contrbuton and outlne The area of graph mnor theory has been constantly evolvng ever snce the graph mnor theorem of Robertson and Seymour [6] was announced n 988. Many mportant algorthms and meta-algorthms have been presented for large problem famles on mnor-closed graph classes and numerous theoretcal concepts have been developed to handle them. We present the frst lnear-tme algorthms for two fundamental graph-theoretc problems n these classes. Our contrbuton can be summarzed as follows: dentfyng that there s a gap n generalzng Henznger et al. s recursve dvson and shortest paths algorthms to all proper mnor-closed graph classes; argung that the gap can not be closed by standard methods; fllng n the gap usng deep results n graph mnor theory; (re)provng n detal the correctness of the modfed algorthm; showng how to modfy a graph and ts recursve dvson to obtan a bounded-degree graph and a recursve dvson wth the same propertes, resultng n the frst lnear-tme shortest-paths algorthm for proper mnor-closed graph classes; obtanng a useful applcaton, namely, the frst lnear tme Stener tree approxmaton, whch was prevously not even known for planar graphs. In Secton, we revew some needed concepts and prevous work; n Secton, we present our man result about shortest paths and n Secton 4, the applcaton to Stener tree approxmaton.. Prelmnares In ths secton, we revew some concepts and some prevous results that are needed n ths work. These nclude graph mnors, vertex parttonng, graph decomposton, and Henznger et al. s [8] sngle-source shortest-paths algorthm... Graph mnors A mnor of a graph G s a graph that s obtaned from a subgraph of G by contractng a number of edges. A class of graphs s mnor-closed f t s closed under buldng mnors. It s called a proper class f t s nether empty nor the class of all graphs. Examples of proper mnor-closed graph famles are planar graphs, bounded-genus graphs, and apex graphs. The semnal theorem of Robertson and Seymour [6] states that any proper mnor-closed class of graphs can be characterzed by a fnte

3 S. Tazar, M. Müller-Hannemann / Dscrete Appled Mathematcs 7 (9) set of excluded mnors. Note that for a proper mnor-closed class of graphs, we can always consder the number of vertces l of the smallest excluded mnor and conclude that the complete graph K l s a partcular excluded mnor of the class. Thus, the class of K l -mnor-free graphs ncludes the consdered mnor-closed class of graphs. In the rest of ths work, we work wth K l -mnor-free graphs, where l s a fxed constant. It follows from a theorem of Mader [7] that K l -mnor-free graphs have constant average degree, for some constant dependng on l. Ths, n turn, mples that these classes of graphs are sparse,.e. we have m = O(n)... Vertex parttonng In [9], Frederckson presented a smple algorthm called FndClusters, based on depth-frst search, that gven a parameter z and an undrected graph wth maxmum degree, parttons ts vertces nto connected components each havng at least z and at most z vertces. Note that snce the algorthm gves us connected components, we can contract each one of them and get a mnor of the nput graph wth at most n/z vertces. Frederckson used ths algorthm to derve fast algorthms for the mnmum spannng tree and shortest-paths [] problems. If a weghted graph does not have maxmum degree, one can apply the followng transformaton: replace a vertex v of degree d(v) wth a zero-weght path of length d(v), such that each edge ncdent to v s now ncdent to exactly one vertex of the path,.e. we can splt v usng zero-weght edges. A smlar transformaton can be appled to drected graphs, too, usng an addtonal zero-weght edge to complete a drected cycle. If the gven graph s embedded n a surface, one can order the edges around the path/cycle n the same way they were ordered around the correspondng vertex n the gven embeddng. Ths way, the transformed graph wll also be embedded n the same surface. However, for an arbtrary mnor-closed class of graphs (e.g. apex graphs), t mght not always be possble to reman n the class after transformng the graph ths way, see Secton. But Frederckson s FndClusters depends on the graph havng bounded degree. Any constant bound would suffce for our purposes but n general such a bound does not exst for arbtrary mnor-closed graph famles. Reed and Wood [] ntroduced an alternatve parttonng concept that can be appled to a graph G = (V, E) wth arbtrary degrees excludng a fxed mnor. Consder some parttonng P = {P,..., P t } of the vertex set V. Let H = (V H, E H ) be the graph obtaned by collapsng every part P of G nto a sngle vertex v V H ( t) and removng loops and parallel edges. Ths way, there s an edge between two vertces v and v j of H f and only f there s an edge between a vertex of P and a vertex of P j n G ( < j t). We say P s a connected H-partton of G f v v j E H f and only f there s an edge of G between every connected component of P and every connected component of P j. Reed and Wood proved the followng lemma : Lemma. ([]). There s a lnear-tme algorthm that gven a constant z and a graph G excludng a fxed K l -mnor, outputs a connected H-partton P = {P,..., P t } of G such that t n/z, and P < c z for all t, where c s a constant dependng only on l. Note that by contractng each connected component of each P n G to a sngle vertex, one gets a graph that contans an somorphc copy of H as a subgraph and so, H s a mnor of G and n partcular, s also K l -mnor-free. Hence, when dealng wth graphs wth no bounded degree, Lemma. can be used nstead of FndClusters to partton the graph and reduce ts sze whle keepng t free of some fxed mnor. Corollary.. Let G be a graph wth n vertces excludng a fxed K l -mnor, and let c = l +l be a fxed constant. There exsts a lnear-tme algorthm H-Partton(G, z, l) wth the followng propertes: t parttons the vertces of G nto at most n/z sets; each set has at most c z vertces; t collapses each set nto a sngle vertex, creatng a new graph G ; G s a mnor of G wth at most n/z vertces... Graph decomposton A balanced vertex-separaton of a graph G = (V, E) s gven by two sets A and B, such that A B = V, there s no edge between A \ B and B \ A, and each one of A and B contans at most an α-fracton of the vertces (for some / α < ). The sze of the separaton s A B. For a functon f, a subgraph-closed class of graphs s sad to be f -separable f every n-vertex graph n the class has an O(f (n))-sze separator. Reed and Wood [] showed that all K l -mnor-free graphs are f -separable n lnear tme for f (n) = O(n / ). For planar graphs, one can use the semnal planar separator theorem of Lpton and Tarjan [] that delvers an O( n)-separator n lnear tme. An (r, s)-dvson of an n-vertex graph s a partton of the edges of the graph nto O(n/r) regons, each contanng r O() vertces and each havng at most s boundary vertces (.e. vertces that occur n more than one regon). For a nondecreasng In ther lemma, we substtute c := l +l and z := k/c.

4 676 S. Tazar, M. Müller-Hannemann / Dscrete Appled Mathematcs 7 (9) postve nteger functon f and a postve nteger sequence r = (r, r,..., r k ), an (r, f )-recursve dvson of an n-vertex graph s defned as follows: t contans one regon R G consstng of all of G. If G has more than one edge and r s not empty, then the recursve dvson also contans an (r k, f (r k ))-dvson of G and an (r, f )-recursve dvson of each of ts regons, where r = (r, r,..., r k ). A recursve dvson can be represented compactly by a recursve dvson tree, a rooted tree whose root represents the whole graph and whose leaves represent the edges of the graph. Every nternal node represents a regon, namely, the regon nduced by all the leaves n ts subtree. The chldren of a node of the tree are ts mmedate subregons n the recursve dvson. Usng Frederckson s parttonng [9] and dvson [] methods, Henznger et al. [8] present a lnear-tme algorthm to fnd certan recursve dvsons n planar graphs: they determne a vector r and an (r, cf )-recursve dvson of the graph for some constant c, such that the nequalty ( ) r f (r ) + 8 f (r ) log r + log r j () j= s satsfed for all r s exceedng a constant. The obtaned recursve dvson tree has O(n) nodes and ts depth s roughly O(log n). The dea of the algorthm s as follows: frst, teratvely reduce the sze of the graph by parttonng the vertces of the graph (usng Frederckson s FndClusters) and buldng mnors; then, workng backwards, fnd (r, s)-dvsons of the smaller graphs (for approprate values of r and s), mposng dvsons on the larger graphs and at the same tme buldng the recursve dvson tree. Snce the tme-consumng calculaton of (r, s)-dvsons s done on the smaller graphs, they succeed to prove that the overall tme complexty s lnear..4. Sngle-source shortest-paths on planar graphs Henznger et al. prove the followng theorem: Theorem. ([8]). Let a graph G be gven wth maxmum n-/outdegree and assume that G s equpped wth an (r, cf )-recursve dvson tree, for some constant c, so that nequalty () s satsfed for all r s exceedng a constant. Then, the sngle-source shortestpaths problem wth nonnegatve edge-weghts can be solved on G n lnear tme. To prove ths theorem, they use a complcated chargng scheme that also depends on the graph havng a sngle source and bounded degree. Together wth the result from the prevous subsecton, t follows that sngle-source shortest-paths wth nonnegatve edge-weghts can be calculated n lnear-tme on planar graphs.. Sngle-source shortest paths on mnor-closed graph classes In ths secton, we prove our man theorem about shortest paths: Theorem.. In every proper mnor-closed class of graphs, sngle-source shortest-paths wth nonnegatve edge-weghts can be calculated n lnear tme. Frst, we argue that the degree requrement of Henznger et al. s algorthm can not be fulflled by standard methods for arbtrary mnor-closed classes of graphs. By standard methods we mean splttng a vertex usng zero-weght edges untl the desred degree bound s reached. In Secton. we dscussed a partcular way of splttng vertces that can be appled to embedded graphs. In ths secton, we show that there exst K l -mnor-free graphs, so that no matter how we splt the vertces, the resultng graph wll nclude a mnor whose sze can not be bounded by a functon n l. The key les n the observaton that splttng an apex mght ntroduce arbtrarly large mnors. Ths s a well-known fact n graph mnor theory [8]. For the sake of completeness, we nclude a short proof below. Apces are a fundamental part of mnor-closed graph classes as s demonstrated by the powerful graph-decomposton theorem of Robertson and Seymour [8]. Ths theorem shows, n a sense, that at most a bounded number of apces are allowed n these classes; and ntutvely, splttng an apex wth unbounded degree mght result n an unbounded number of apces and s thus not allowed n general. Proposton.. For every k N, there exsts a K 6 -mnor-free graph G k, so that, f the vertces of G k are splt n any way to acheve a maxmum degree of, the resultng graph G k ncludes a K k-mnor. Proof (Sketch). We defne G k to be a suffcently large planar grd-graph augmented by an apex as follows: consder a sequence S of numbers between and k, so that each possble par of these k numbers s at least once adjacent n S. Let t < k be the length of ths sequence. Choose a set W of t vertces n the grd that are suffcently far away from each other and add an apex v connected to these t vertces. Ths completes the defnton of G k, whch s clearly K 6 -mnor-free. Now, no matter how we splt the vertces of G k, the apex v wll become a path of t vertces, each one connected to exactly one vertex of W. Ths path mposes an order on the vertces n W. We label the vertces n W accordng to ths order usng the sequence S. Let W be the set of vertces n W labeled by ( k). For each, construct a tree T that connects the vertces

5 S. Tazar, M. Müller-Hannemann / Dscrete Appled Mathematcs 7 (9) Fg.. A smplfed example for the proof of Proposton.: the apex of the graph n (a) s splt, resultng n the graph (b); the vertces are labeled and connected accordng to the dsjont trees n (c); contractng the thck edges n (b) results n a K -mnor (d). of W n the planar grd. Note that f the grd s suffcently large and the vertces n W are suffcently far away from each other, t s easly possble to choose the trees T to be all dsjont. Let U be the set of edges connectng the vertces n W wth the path resulted from splttng v. Now, f we contract the trees T and the edges n U and delete redundant edges, what remans s a K k -mnor (see Fg. )... Our generalzed recursve dvson algorthm Our modfed algorthm s gven n Algorthm.. Our modfcatons are only n three places but as we already dscussed, they are essental to make the algorthm work for all proper mnor-closed graph classes. In ths subsecton, we dscuss the algorthm and our modfcatons thereof n detal and n the next subsecton, we present ts proof of correctness.

6 678 S. Tazar, M. Müller-Hannemann / Dscrete Appled Mathematcs 7 (9) Let the nput graph be G = (V, E). In the frst phase of the algorthm, the nput graph s reduced n sze by buldng mnors. Specfcally, startng wth G = G, a sequence of graphs G, G,..., G I+ s bult, so that for > j, G s a mnor of G j and G I+ s the frst graph n the sequence havng less than n/ log n vertces. To ths end, a sequence of parameters z s used to specfy the sze of the next graph n the sequence as follows: let n be the number of vertces of G. In the orgnal algorthm, the sequence s defned as z = and z + = 7 z/ and has the effect that G s parttoned nto at most n /z connected components, each one havng at most z vertces (usng Frederckson s FndClusters [9]). Each of these components s contracted to construct G +, a mnor of G wth n + n /z vertces. Our frst two changes occur n ths phase of the algorthm. Frst, nstead of usng Frederckson s FndClusters, we make use of the H-Partton procedure of Reed and Wood [], to acheve a smlar effect wthout dependng on the graph havng bounded degree (cf. Secton.). Secondly, we had to change the defnton of the z s to be z = and z + = 4 z/7. Ths s due the fact that n order to prove nequalty () n our case, we need the exponent of z to be nstead of ; but then, n 7 order to ensure that the z s stll grow (extremely fast) towards nfnty, the base of the exponentaton had to be changed from 7 to 4, too. Indeed, 4 s the smallest nteger that can be used, so that the z s grow towards nfnty. Now, usng the H-Partton procedure as n Corollary., we stll have that n + n /z but now, each vertex of G + represents at most c z vertces of G (nstead of the orgnal z ). In the second phase, the algorthm works backwards from G I+ towards G, buldng (r, s)-dvsons and a recursve dvson tree as follows: t starts wth the trval dvson D I+ of G I+ as a sngle regon and ntalzes the recursve dvson tree T wth a sngle node v G. Then, for each G, t consders each regon R of G + and bulds an (r, s)-dvson on t (wth approprate values of r and s defned below); each resultng regon R of R (of G + ) s turned nto a regon R of G by expandng every vertex nto the at most c z vertces t represents n G ; afterwards, a chld v R of v R s added to T. The dvson D s defned to be the decomposton of G by the regons R obtaned ths way. Note that a boundary vertex s expanded n multple regons, creatng multple copes of the edges t expands to; there should be only one copy of these edges and ths may be acheved by assgnng them to one of these regons arbtrarly. It remans to specfy how exactly and wth what parameters the (r, s)-dvson s bult n the teraton above. Ths s the thrd place where our algorthm dffers from the orgnal. The orgnal algorthm uses a modfed verson of Frederckson s (r, s)-dvson algorthm [], called Dvde, as follows: t takes three parameters G, S and r and dvdes the edges of an n- vertex graph G nto at most c ( S / r + n ) regons, each one havng at most r vertces and at most c r r boundary vertces, where c and c are constants; a vertex s consdered as a boundary vertex f () t belongs to more than one regon, or () t belongs to the set S. Internally, the lnear-tme planar O( n)-separator of Lpton and Tarjan [] s used to acheve the desred dvson. We make use of the lnear-tme O(n )-separator of Reed and Wood [] nstead; our Dvde procedure takes four parameters G, S, r, and l and has the propertes specfed n Lemma.4 below; as t can be seen n the lemma, a number of constants and exponents are changed. The parameter l s a constant taken to ndcate the fxed excluded K l - mnor. In the last phase of the algorthm, the edges of each regon R of D are added as chldren of the node v R to the recursve dvson tree T. Ths completes the descrpton of our generalzed algorthm... Correctness of our generalzed recursve dvson algorthm Theorem.. Algorthm. s a lnear-tme algorthm that gven a K l -mnor-free graph G, fnds an (r, f )-recursve dvson of G that satsfes nequalty () for all r exceedng a constant and whose recursve dvson tree has O(n) nodes. The proof of the correctness of the algorthm follows the proof of Henzger et al. [8] very closely. For the sake of completeness, and snce a number of subtle detals and calculatons have to be flled n and replaced at several places, we have ncluded the full proof n ths secton; only the proof of Lemma.4 s left for the Appendx. Ths lemma shows the correctness of the Dvde procedure and s based on the orgnal proof of Frederckson []; Lemmas..7 step-by-step complete the proof of Theorem.. Lemma.4. Replacng the planar separator n Frederckson s Dvde procedure [] wth the separator algorthm of Reed and Wood [] causes the Dvde (G, S, r, l) procedure to work as follows (where G s a graph wth n vertces and excludes K l as a mnor and c and c are constants dependng only on l): t dvdes G nto at most c ( S /r + n ) regons; r each regon has at most r vertces; each regon has at most c r boundary vertces, where the vertces n S also count as boundary; t takes tme O(n log n). Recall that we start wth the graph G = G and repeatedly apply the procedure H-Partton to each G to obtan G +. For each, let n denote the number of vertces of G. Afterwards we work our way back from G I+ to G and obtan a dvson D on each G. Let k denote the number of regons of D. Note that the recursve dvson tree T has depth I +.

7 S. Tazar, M. Müller-Hannemann / Dscrete Appled Mathematcs 7 (9) The followng proof has four parts. Frst, we show that each regon of the dvson D has at most O(z ) vertces and at most O(z ) boundary vertces. Second, we show that the number k of regons s O(n /z ). Thrd, we show that Algorthm. takes lnear tme and fnally, we show that the dvson fulflls nequalty (). For notatonal convenence, let z I+ = n I+, so the sngle regon of the dvson D I+ of G I+ has z I+ vertces. Consder teraton I n the second phase of the algorthm. By the correctness of Dvde, the decomposton D R of a regon of D + conssts of regons R of sze at most z. By the correctness of H-Partton, each vertex of G + expands to at most c z vertces of G. Hence, each regon R obtaned from R by expandng ts vertces has sze at most c z. Smlarly, each regon R has at most c z boundary vertces. boundary vertces by the correctness of Dvde, so the correspondng regon R has at most c c z Lemma.. The number k of regons n the dvson D s O(n /z ). Proof. We show by reverse nducton on that k c n /z for all, where and c are constants to be determned. For the base case, we have k I+ =. Consder teraton I n the second phase, and suppose. The regons of D are obtaned by subdvdng the k + regons comprsng the dvson of G +. Snce n + n /z and z + z, we have by the nducton hypothess that k + c n + /z + c n /z. () Each regon R of the dvson of G + has S R c c z+ boundary vertces. Summng over all regons R n D +, we obtan n R = (# of nonboundary vertces + # of boundary vertces) R R n + + R c c z+ n + + c c k + z. + () For each regon R, by correctness of Dvde, the number of subregons nto whch R s dvded s at most c ( S R /z + n R /z ), whch s n turn at most c (c c z+ /z + n R /z ). Summng over all such regons R and usng () and (), we nfer that the total number of subregons s at most R c (c c z+ /z + n R /z ) = c c c k + z c c c k + z+ /z ( ) c n + c c c + /z + c n R /z z + c c c c n + /(z c c c c n /(z z R + c (n + + c c k + z+ )/z ( + c n + /z + c c c z + /z z c n + z + + ) + c n + /z + c c c c n + /(z z ) ) + z+ /z ) + + c n /z + c c c c n /(z z ) + (4) where n the last lne we use the fact that n + n /z. We have obtaned an upper bound on the total number of subregons nto whch the regons of D + are dvded. Each subregon becomes a regon of D. Thus, we have n fact bounded k, the number of regons of D. To complete the nducton step, we show that each of the three terms n (4) s bounded by c n /z. The second term, c n /z, s bounded by c n /z f we choose c c. The thrd term s smaller than the frst term. As for the frst term, recall that z + = 4 z/7. For suffcently large choce of, we can ensure that mples z + c c c /z. Thus, the frst term s also bounded as desred. We conclude that k c n /z, completng the nducton step. We have shown ths nequalty holds for all. As for <, clearly k (z )n /z (z )n /z. Thus, by choosng c to exceed the constant z, we obtan the lemma for every. Lemma.6. The algorthm runs n lnear tme. Proof. The tme requred to form the graphs G, G,..., G I+ s O( n/z ), whch s O(n). For I, the tme to apply Dvde to a regon R of G + wth n R vertces s O(n R log n R ). Each such regon has O(z + ) vertces, so the tme s O(n R log z + ). Summed over all regons R, we get R O(n R log z + ) = O(n + log z + ). The tme to obtan the nduced dvson of G s O(n ).

8 68 S. Tazar, M. Müller-Hannemann / Dscrete Appled Mathematcs 7 (9) Thus, the tme to obtan dvsons of all the G s s O(n 7 + log z + ). Snce n + n /z n/z and log z + = O(z ), the sum s O(n). Lemma.7. The recursve dvson obtaned by Algorthm. satsfes nequalty (). Proof. Frst, note that combnng the nequaltes n + n /z, we obtan n n/ j< z j. () Note moreover that each vertex of G expands to at most j< c z j vertces of G. Consder the dvson D of G, and the dvson t nduces on G. The dvson D conssts of O(n /z ) regons, each havng O(z ) vertces and O(z ) boundary vertces. Ths nduces O(n /z ) regons n G, each consstng of O(z j< c z j ) vertces and O(z j< c z j ) boundary vertces. Let r = z j< z j and defne f (r ) = z c z j. j< Then, by (), the nduced dvson of G has O(n/r ) regons each wth O(r c ) vertces and O(f (r )) boundary vertces. Snce c = O( j z j), we get that the number of vertces per regon s O(r ). We have (6) r f (r ) = z z c = z c. (7) Usng the defnton of z, one can verfy that z = θ(log 7 z ) and j< z j = O(log 8 z ). Hence f (r ) = c We also have log r + = log z ( j< z + j z j = c O(log z log 8 log z ). (8) ) z j = O(log(z + log8 7 z + )) = O(log z + ) = O(z ) (9) + and consequently j= log r 7 j = O(z ). For a suffcently large constant, we have for all, ( ) + 8 f (r ) log r + log r j 8 c O(log z log z )O(z )O(z ) j= = 8 c 7 O(z log z ) z = r c f (r ), () snce the z s grow much faster than any exponental functon havng a constant n the base; specfcally, we can see below that z g log z for any constant g f s larger than a constant: log z log g + log log z 7 log 4z log g + log log 4 z 7 7 z g 7 + g log z + g, () 7 for some constants g, g, and g. And the last nequalty s true f s large enough, snce z nequalty () s fulflled for all r exceedng the constant r. grows much faster than. So,

9 S. Tazar, M. Müller-Hannemann / Dscrete Appled Mathematcs 7 (9) Fg.. (a) A gven graph wth regons ndcated by dfferent lne-styles and shaded boundary vertces; (b) the transformed graph, such that every vertex has degree at most ; the number of boundary vertces of each regon has exactly doubled... Establshng the degree requrement After havng computed a recursve dvson, we stll have to transform the graph to have maxmum degree ; otherwse, Theorem. can not be appled, see Secton.4. We can acheve ths, usng our recursve dvson, by the followng lemma. Note that accordng to Proposton.. the resultng graph mght not be K l -mnor-free but t wll stll serve our purpose of fndng shortest paths n lnear tme, snce t s now accompaned by a recursve dvson satsfyng nequalty (). Lemma.8. Let G be an edge-weghted drected graph excludng a fxed mnor and let T be a recursve dvson tree representng an (r, f )-recursve dvson of G. Then one can replace every vertex of G wth a zero-weght cycle to obtan a graph G and at the same tme modfy T nto a tree T, so that G has n-/outdegree at most and T represents an (r, f )-recursve dvson of G. Ths modfcaton takes lnear tme. Proof. Recall that the leaves of T represent the edges of G and that nternal nodes of T correspond to regons of G, namely, the regon nduced by all the leaves n the subtree of that node. We modfy G and T at the same tme. Frst, for every vertex v of G wth degree d(v) (the sum of the ndegree and outdegree), we add new vertces v,..., v d(v) to G. We do an n-order traversal of T and for every leaf of T representng an edge e = vw of G, we do the followng: let e be the th edge of v and the jth edge of w that we encounter. We change the endponts of e to be the vertces v and w j and add two new zero-weght edges v v + and w j w j+ as sblngs of e to T (f = d(v), we use v d(v) v nstead; same for w). Ths way, every vertex v of G s replaced by a zero-weght cycle (v,..., v d(v) ) (see Fg. ). The orgnal vertces of G wll become solated and can be removed. We call the resultng graph G and the modfed recursve dvson tree T. Note that snce T has sze O(n), ths procedure takes only lnear tme. Also note that we only added new leaves to T and thus, the nternal nodes of T and T correspond one-to-one to each other. Now consder an nternal node q of T. It represents a regon R of G and corresponds to a node q of T, representng a regon R of G. R has r O() vertces and O(f (r)) boundary-vertces. The number of edges of R s at most three tmes as large as n R and the number of vertces s proportonal to the number of edges of R. But R s a subgraph of G, excludes the same fxed mnor and thus, the number of ts edges s lnear n the number of ts vertces. Hence, R stll has r O() vertces and edges. Also, snce R s represented by the subtree rooted at q, ts edges were traversed n order whle buldng T and G. So, every vertex v n R s replaced by a path v, v +,..., v j wth j d(v) n R. Thus, f v s a boundary vertex of R, then nstead, we have v and v j as boundary vertces of R. So R has at most twce as many boundary vertces as R,.e. stll O(f (r)) (see Fg. ). So, T represents an (r, f )-recursve dvson of G. Proof of Theorem.. Note that up to the choce of the start- and endvertex nsde the zero-weght cycles of G, shortest paths n G and G correspond one-to-one to each other. G fulflls all the requrements of Theorem. and combnng ths wth Theorem., and Lemma.8, we obtan our man theorem, namely, Theorem.. 4. Stener tree approxmaton We show how to mplement Mehlhorn s -approxmaton algorthm for the Stener tree problem [] n lnear tme on proper mnor-closed graph classes usng the result above and the observaton that Mehlhorn s dstance network s a mnor of the nput graph. Frst, we brefly revew Mehlhorn s algorthm and then we present our mplementaton. 4.. Overvew of Mehlhorn s algorthm Gven an n-vertex graph G = (V, E) wth nonnegatve edge-weghts and a vertex-subset K of termnals, one can determne a Stener tree of K n G as follows: frst, buld Mehlhorn s dstance network N = (K, D E D ), a specal graph defned on the set of termnals, n whch every edge corresponds to a path n G. To calculate N D, we frst have to partton the graph nto Vorono regons wth respect to the set of termnals K. Every vertex of the graph belongs to the Vorono regon of ts closest termnal (f a vertex happens to have the same dstance to more than one termnal, t should belong to the Vorono regon of the termnal wth the smallest ndex). Vorono regons n graphs can be calculated easly usng a shortest-paths

10 68 S. Tazar, M. Müller-Hannemann / Dscrete Appled Mathematcs 7 (9) computaton: add a super-source s to the graph and connect t to every termnal wth a drected zero-weght edge; fnd the shortest paths from s to every vertex and then remove s from the resultng shortest-paths tree. The tree falls apart nto K connected components, each havng a termnal as ther root. These components correspond exactly to the Vorono regons of the termnals. Usng Djkstra s algorthm, one obtans a runnng tme of O(n log n + m) for general graphs. In the dstance network N D, there exsts an edge between two termnals u and v f and only f there exsts an edge between two vertces x and y n G, so that x belongs to the Vorono regon of u and y belongs to the Vorono regon of v. The weght of such an edge s the length of the shortest such paths connectng u and v. Once the Vorono regons of G wth respect to K are determned, N D can be constructed n lnear tme usng bucket sort. After the dstance network N D s determned, one can fnd ts mnmum spannng tree and replace every edge wth the correspondng path n G. Mehlhorn shows that the resultng graph s ndeed a tree and ts weght s at most ( K ) tmes the weght of the mnmum Stener tree of K n G. The mplementaton he offers runs n tme O(n log n + m) for general graphs. 4.. A lnear-tme mplementaton for proper mnor-closed classes Theorem 4.. There s a lnear-tme algorthm that calculates a -approxmaton for the Stener mnmum tree problem n any proper mnor-closed class of graphs. We frst show how to fnd the Vorono regons n lnear tme. In graphs excludng a fxed mnor K l, we observe that the graph wth an added super-source wll exclude K l+ ; so, Theorem. apples and shortest paths can be calculated n lnear tme. Alternatvely, usng a smlar method as n Secton., one can frst fnd a recursve dvson of G and then add the super-source and ts edges to G and to the recursve dvson. Ths could result n much better constants n the runnng tme of the algorthm, especally for planar graphs. We get Lemma 4.. For a graph G excludng a fxed mnor and havng nonnegatve edge-weghts and a gven set of termnals K n G, the Vorono regons of G wth respect to K can be determned n lnear tme. Corollary 4.. In a proper mnor-closed class of graphs, the dstance network N D can be calculated n lnear tme for any gven set of termnals n a gven graph from the class. The next step of Mehlhorn s algorthm s to calculate the mnmum spannng tree of N D. But notce that N D s obtaned by contractng the Vorono regons of the graph (whch are connected) and removng loops and parallel edges,.e. Observaton 4.4. For a gven graph G and a set of termnals, the dstance network N D s a mnor of G. Thus, N D belongs to the same proper class of mnor-closed graphs as G and one can apply the lnear-tme mnmum spannng tree algorthm of Mares [4]. When we are dealng wth planar graphs, the algorthm of Cherton and Tarjan can be used []. As mentoned before, the last step of Mehlhorn s algorthm s to replace the edges of N D wth the correspondng paths from G and ths can clearly be done n lnear tme. Hence, Theorem 4. s proven. Acknowledgement The frst author was supported by the Deutsche Forschungsgemenschaft (DFG), grant MU48/-. Appendx. Proof of Lemma.4 Lemma A.. Replacng the planar separator n Frederckson s Dvde procedure [] wth the separator algorthm of Reed and Wood [] causes the Dvde (G, S, r, l) procedure to work as follows (where G s a graph wth n vertces and excludes K l as a mnor and c and c are constants dependng only on l): t dvdes G nto at most c ( S /r + n ) regons; r each regon has at most r vertces; each regon has at most c r boundary vertces, where the vertces n S also count as boundary; t takes tme O(n log n). Proof. In the followng, when we refer to boundary vertces, we mean vertces that belong to more than one regon or vertces that belong to the set S. The Dvde procedure works as follows: assgn weght to each vertex of G and fnd a n O(n )-separator n G; recursvely apply the separaton algorthm to each regon wth more than r vertces. Now each regon has at most r vertces. Whle there s a regon wth more than c r boundary vertces, do the followng: f such a regon has n boundary vertces, assgn weght n to each of them, assgn weght zero to the other vertces of that regon and apply the

11 S. Tazar, M. Müller-Hannemann / Dscrete Appled Mathematcs 7 (9) separator theorem. In the end, all regons wll have the desred propertes and the algorthm takes tme O(n log n). It remans to show the bound on the number of the regons. Consder the dvson before the regons are further splt to enforce the requrement on the number of boundary vertces (.e. just when we have acheved that each regon has sze at most r). Let V B be the set of vertces that are ncluded n more than one regon. For a vertex v V B, let b(v) be one less than the number of regons that contan v n the dvson. Let B(n, r) be the total of b(v) over all vertces v V B. Thus, B(n, r) s the sum of the number of vertces v V B weghted by the count b(v). From the separaton theorem n [], we have the followng recurrence: B(n, r) d n + B(αn, r) + B(( α)n, r) for n > r, B(n, r) = for n r (A.) where d s a constant and α. We clam that B(n, r) d n r d n for n r, (A.) wth some constants d and d. The clam can be shown by nducton: As the base of the nducton, we consder the cases r n r. Note that snce after splttng a regon, each subregon stll has at least one-thrd of the total vertces, t s suffcent to only consder graphs wth at least r/ vertces. By choosng d d, we have d n r d n n = d n d n d n = B(n, r). (A.) For the nductve step,.e. for n > r, we have r B(n, r) d n αn + d d α n ( α)n + d d ( α) n = d n r d n r r r + n (d d α d ( α) ) d n f we choose d d α + d ( α) d. Ths can be acheved by settng d = d d. α +( α) In partcular, we have shown so far that B(n, r) = O(n/r ). The sum of the number of vertces n each regon s n + B(n, r) = n + O(n/r ) and each regon has Θ(r) vertces, so the number of regons we have so far s Θ(n/r). Let t be the number of regons wth boundary vertces (recall that n our defnton, the set of boundary vertces s V B S). We have t = v VB(b(v) + ) + S \ V B < B(n, r) + S = O(n/r + S ). (A.) Let s() be an upper bound on the number of splts that have to be appled to a graph wth at most r vertces and boundary vertces, untl each of ts regons has at most c r boundary vertces, for a constant c to be determned. We have that (A.4) s() s(α + d r ) + s(( α) + d r ) + for > c r s() = for c r (A.6) where α. We clam that s() d c r d d for c r c for some constant d. We prove our clam by nducton. Lke n the prevous nducton, for the base case we may assume c r c r. By choosng d = and c = 8d, we have d c r d d c 4d 8d = = s(). (A.8) (A.7)

12 684 S. Tazar, M. Müller-Hannemann / Dscrete Appled Mathematcs 7 (9) For the nductve step wth > c r, note that α+d r + d c ( + ) <. The same way, we have ( α)+d 8 r <. So, we may apply the nducton hypothess to (A.6) and a straghtforward calculaton wll prove our clam. We have shown that for a regon wth boundary vertces, where > c r, at most d c r splts need be done for some constants c and d. Ths wll result n at most d r new boundary vertces per splt and a total of at most d /(c r ) new regons. Thus, the total number of new boundary vertces s at most (d r )(d /(c r ))t d d t = O(n/r + S ). (A.9) c The number of new regons s at most (d /(c r ))t = d c r O(n/r + S ) = O(n/r + S /r ). (A.) References [] E. Djkstra, A note on two problems n connexon wth graphs, Numersche Mathematk (99) [] M.L. Fredman, R.E. Tarjan, Fbonacc heaps and ther uses n mproved network optmzaton algorthms, Journal of the ACM 4 () (987) [] S. Pette, V. Ramachandran, A shortest path algorthm for real-weghted undrected graphs, SIAM Journal on Computng 4 (6) () [4] A.V. Goldberg, A smple shortest path algorthm wth lnear average tme, n: ESA : Proceedngs of the 9th Annual European Symposum on Algorthms, n: Lecture Notes n Computer Scence, vol. 6, Sprnger-Verlag, London, UK,, pp. 4. [] M. Thorup, Undrected sngle-source shortest paths wth postve nteger weghts n lnear tme, Journal of the ACM 46 () (999) [6] T. Hagerup, Improved shortest paths on the word RAM, n: U. Montanar, J.D.P. Rolm, E. Welzl (Eds.), ICALP, n: Lecture Notes n Computer Scence, vol. 8, Sprnger,, pp [7] U. Zwck, Exact and approxmate dstances n graphs A survey, n: ESA : Proceedngs of the 9th Annual European Symposum on Algorthms, n: Lecture Notes n Computer Scence, vol. 6, Sprnger-Verlag, London, UK,, pp. 48. [8] M.R. Henznger, P.N. Klen, S. Rao, S. Subramanan, Faster shortest-path algorthms for planar graphs, Journal of Computer and System Scences () (997). Prevously appeared n the Proceedngs of the Twenty-Sxth Annual ACM Symposum on Theory of Computng, STOC 94, ACM Press, pp [9] G.N. Frederckson, Data structures for on-lne updatng of mnmum spannng trees, wth applcatons, SIAM Journal on Computng 4 (4) (98) [] G.N. Frederckson, Fast algorthms for shortest paths n planar graphs, wth applcatons, SIAM Journal on Computng 6 (6) (987) 4. [] R.J. Lpton, R.E. Tarjan, A separator theorem for planar graphs, SIAM Journal on Appled Mathematcs 6 () (979) [] B. Reed, D.R. Wood, Fast separaton n a graph wth an excluded mnor, n: S. Felsner (Ed.), European Conference on Combnatorcs, Graph Theory and Applcatons, EuroComb, n: DMTCS Proceedngs, Dscrete Mathematcs and Theoretcal Computer Scence, vol. AE,, pp. 4. [] N. Alon, P. Seymour, R. Thomas, A separator theorem for nonplanar graphs, Journal of the Amercan Mathematcal Socety (4) (99) [4] R.M. Karp, Reducblty among combnatoral problems, n: R.E. Mller, J.W. Thatcher (Eds.), Complexty of Computer Computatons, Plenum Press, 97, pp. 8. [] M. Bern, P. Plassmann, The Stener problem wth edge lengths and, Informaton Processng Letters (4) (989) [6] M. Chlebík, J. Chlebíková, Approxmaton hardness of the Stener tree problem on graphs, n: M. Penttonen, E.M. Schmdt (Eds.), SWAT, n: Lecture Notes n Computer Scence, vol. 68, Sprnger,, pp [7] G. Robns, A. Zelkovsky, Improved Stener tree approxmaton n graphs, n: Proceedngs of the th Annual ACM-SIAM Symposum on Dscrete Algorthms,, pp [8] E.-A. Choukhmane, Une heurstque pour le problème de l arbre de Stener, Recherche Opèratonelle. (978) 7. [9] J. Plesnk, A bound for the Stener problem n graphs, Mathematca Slovaca (98) 6. [] K. Mehlhorn, A faster approxmaton algorthm for the Stener problem n graphs, Informaton Processng Letters 7 (988) 8. [] M. Garey, D. Johnson, The rectlnear Stener tree problem s N P -complete, SIAM Journal on Appled Mathematcs (977) [] G. Borradale, C. Kenyon-Matheu, P.N. Klen, A polynomal-tme approxmaton scheme for Stener tree n planar graphs, n: Proceedngs of the 8th Annual ACM-SIAM Symposum on Dscrete Algorthms, 7, pp [] G. Borradale, C. Kenyon-Matheu, P.N. Klen, Stener tree n planar graphs: An O(n log n) approxmaton scheme wth sngly exponental dependence on epslon, n: Proceedngs of the th Workshop on Algorthms and Data Structures, n: Lecture Notes n Computer Scence, vol. 469, Sprnger, 7, pp [4] M. Mares, Two lnear tme algorthms for MST on mnor closed graph classes, Archvum Mathematcum 4 () (4). [] D.R. Cherton, R.E. Tarjan, Fndng mnmum spannng trees, SIAM Journal on Computng (4) (976) [6] N. Robertson, P.D. Seymour, Graph mnors. XX. Wagner s conjecture, Journal of Combnatoral Theory Seres B 9 () (4) 7. [7] W. Mader, Homomorpheegenschaften und mttlere Kantendchte von Graphen, Mathematsche Annalen 74 (967) [8] N. Robertson, P. Seymour, Graph mnors. XVI. Excludng a non-planar graph, Journal of Combnatoral Theory Seres B 89 () () 4 76.

6.854 Advanced Algorithms Petar Maymounkov Problem Set 11 (November 23, 2005) With: Benjamin Rossman, Oren Weimann, and Pouya Kheradpour

6.854 Advanced Algorithms Petar Maymounkov Problem Set 11 (November 23, 2005) With: Benjamin Rossman, Oren Weimann, and Pouya Kheradpour 6.854 Advanced Algorthms Petar Maymounkov Problem Set 11 (November 23, 2005) Wth: Benjamn Rossman, Oren Wemann, and Pouya Kheradpour Problem 1. We reduce vertex cover to MAX-SAT wth weghts, such that the

More information

The Greedy Method. Outline and Reading. Change Money Problem. Greedy Algorithms. Applications of the Greedy Strategy. The Greedy Method Technique

The Greedy Method. Outline and Reading. Change Money Problem. Greedy Algorithms. Applications of the Greedy Strategy. The Greedy Method Technique //00 :0 AM Outlne and Readng The Greedy Method The Greedy Method Technque (secton.) Fractonal Knapsack Problem (secton..) Task Schedulng (secton..) Mnmum Spannng Trees (secton.) Change Money Problem Greedy

More information

An Optimal Algorithm for Prufer Codes *

An Optimal Algorithm for Prufer Codes * J. Software Engneerng & Applcatons, 2009, 2: 111-115 do:10.4236/jsea.2009.22016 Publshed Onlne July 2009 (www.scrp.org/journal/jsea) An Optmal Algorthm for Prufer Codes * Xaodong Wang 1, 2, Le Wang 3,

More information

The Erdős Pósa property for vertex- and edge-disjoint odd cycles in graphs on orientable surfaces

The Erdős Pósa property for vertex- and edge-disjoint odd cycles in graphs on orientable surfaces Dscrete Mathematcs 307 (2007) 764 768 www.elsever.com/locate/dsc Note The Erdős Pósa property for vertex- and edge-dsjont odd cycles n graphs on orentable surfaces Ken-Ich Kawarabayash a, Atsuhro Nakamoto

More information

Course Introduction. Algorithm 8/31/2017. COSC 320 Advanced Data Structures and Algorithms. COSC 320 Advanced Data Structures and Algorithms

Course Introduction. Algorithm 8/31/2017. COSC 320 Advanced Data Structures and Algorithms. COSC 320 Advanced Data Structures and Algorithms Course Introducton Course Topcs Exams, abs, Proects A quc loo at a few algorthms 1 Advanced Data Structures and Algorthms Descrpton: We are gong to dscuss algorthm complexty analyss, algorthm desgn technques

More information

CHAPTER 2 DECOMPOSITION OF GRAPHS

CHAPTER 2 DECOMPOSITION OF GRAPHS CHAPTER DECOMPOSITION OF GRAPHS. INTRODUCTION A graph H s called a Supersubdvson of a graph G f H s obtaned from G by replacng every edge uv of G by a bpartte graph,m (m may vary for each edge by dentfyng

More information

Parallelism for Nested Loops with Non-uniform and Flow Dependences

Parallelism for Nested Loops with Non-uniform and Flow Dependences Parallelsm for Nested Loops wth Non-unform and Flow Dependences Sam-Jn Jeong Dept. of Informaton & Communcaton Engneerng, Cheonan Unversty, 5, Anseo-dong, Cheonan, Chungnam, 330-80, Korea. seong@cheonan.ac.kr

More information

Ramsey numbers of cubes versus cliques

Ramsey numbers of cubes versus cliques Ramsey numbers of cubes versus clques Davd Conlon Jacob Fox Choongbum Lee Benny Sudakov Abstract The cube graph Q n s the skeleton of the n-dmensonal cube. It s an n-regular graph on 2 n vertces. The Ramsey

More information

F Geometric Mean Graphs

F Geometric Mean Graphs Avalable at http://pvamu.edu/aam Appl. Appl. Math. ISSN: 1932-9466 Vol. 10, Issue 2 (December 2015), pp. 937-952 Applcatons and Appled Mathematcs: An Internatonal Journal (AAM) F Geometrc Mean Graphs A.

More information

CSE 326: Data Structures Quicksort Comparison Sorting Bound

CSE 326: Data Structures Quicksort Comparison Sorting Bound CSE 326: Data Structures Qucksort Comparson Sortng Bound Steve Setz Wnter 2009 Qucksort Qucksort uses a dvde and conquer strategy, but does not requre the O(N) extra space that MergeSort does. Here s the

More information

Problem Set 3 Solutions

Problem Set 3 Solutions Introducton to Algorthms October 4, 2002 Massachusetts Insttute of Technology 6046J/18410J Professors Erk Demane and Shaf Goldwasser Handout 14 Problem Set 3 Solutons (Exercses were not to be turned n,

More information

CSE 326: Data Structures Quicksort Comparison Sorting Bound

CSE 326: Data Structures Quicksort Comparison Sorting Bound CSE 326: Data Structures Qucksort Comparson Sortng Bound Bran Curless Sprng 2008 Announcements (5/14/08) Homework due at begnnng of class on Frday. Secton tomorrow: Graded homeworks returned More dscusson

More information

More on the Linear k-arboricity of Regular Graphs R. E. L. Aldred Department of Mathematics and Statistics University of Otago P.O. Box 56, Dunedin Ne

More on the Linear k-arboricity of Regular Graphs R. E. L. Aldred Department of Mathematics and Statistics University of Otago P.O. Box 56, Dunedin Ne More on the Lnear k-arborcty of Regular Graphs R E L Aldred Department of Mathematcs and Statstcs Unversty of Otago PO Box 56, Dunedn New Zealand Ncholas C Wormald Department of Mathematcs Unversty of

More information

Module Management Tool in Software Development Organizations

Module Management Tool in Software Development Organizations Journal of Computer Scence (5): 8-, 7 ISSN 59-66 7 Scence Publcatons Management Tool n Software Development Organzatons Ahmad A. Al-Rababah and Mohammad A. Al-Rababah Faculty of IT, Al-Ahlyyah Amman Unversty,

More information

Programming in Fortran 90 : 2017/2018

Programming in Fortran 90 : 2017/2018 Programmng n Fortran 90 : 2017/2018 Programmng n Fortran 90 : 2017/2018 Exercse 1 : Evaluaton of functon dependng on nput Wrte a program who evaluate the functon f (x,y) for any two user specfed values

More information

For instance, ; the five basic number-sets are increasingly more n A B & B A A = B (1)

For instance, ; the five basic number-sets are increasingly more n A B & B A A = B (1) Secton 1.2 Subsets and the Boolean operatons on sets If every element of the set A s an element of the set B, we say that A s a subset of B, or that A s contaned n B, or that B contans A, and we wrte A

More information

Design and Analysis of Algorithms

Design and Analysis of Algorithms Desgn and Analyss of Algorthms Heaps and Heapsort Reference: CLRS Chapter 6 Topcs: Heaps Heapsort Prorty queue Huo Hongwe Recap and overvew The story so far... Inserton sort runnng tme of Θ(n 2 ); sorts

More information

Hermite Splines in Lie Groups as Products of Geodesics

Hermite Splines in Lie Groups as Products of Geodesics Hermte Splnes n Le Groups as Products of Geodescs Ethan Eade Updated May 28, 2017 1 Introducton 1.1 Goal Ths document defnes a curve n the Le group G parametrzed by tme and by structural parameters n the

More information

5 The Primal-Dual Method

5 The Primal-Dual Method 5 The Prmal-Dual Method Orgnally desgned as a method for solvng lnear programs, where t reduces weghted optmzaton problems to smpler combnatoral ones, the prmal-dual method (PDM) has receved much attenton

More information

1 Introducton Gven a graph G = (V; E), a non-negatve cost on each edge n E, and a set of vertces Z V, the mnmum Stener problem s to nd a mnmum cost su

1 Introducton Gven a graph G = (V; E), a non-negatve cost on each edge n E, and a set of vertces Z V, the mnmum Stener problem s to nd a mnmum cost su Stener Problems on Drected Acyclc Graphs Tsan-sheng Hsu y, Kuo-Hu Tsa yz, Da-We Wang yz and D. T. Lee? September 1, 1995 Abstract In ths paper, we consder two varatons of the mnmum-cost Stener problem

More information

Assignment # 2. Farrukh Jabeen Algorithms 510 Assignment #2 Due Date: June 15, 2009.

Assignment # 2. Farrukh Jabeen Algorithms 510 Assignment #2 Due Date: June 15, 2009. Farrukh Jabeen Algorthms 51 Assgnment #2 Due Date: June 15, 29. Assgnment # 2 Chapter 3 Dscrete Fourer Transforms Implement the FFT for the DFT. Descrbed n sectons 3.1 and 3.2. Delverables: 1. Concse descrpton

More information

Sorting Review. Sorting. Comparison Sorting. CSE 680 Prof. Roger Crawfis. Assumptions

Sorting Review. Sorting. Comparison Sorting. CSE 680 Prof. Roger Crawfis. Assumptions Sortng Revew Introducton to Algorthms Qucksort CSE 680 Prof. Roger Crawfs Inserton Sort T(n) = Θ(n 2 ) In-place Merge Sort T(n) = Θ(n lg(n)) Not n-place Selecton Sort (from homework) T(n) = Θ(n 2 ) In-place

More information

All-Pairs Shortest Paths. Approximate All-Pairs shortest paths Approximate distance oracles Spanners and Emulators. Uri Zwick Tel Aviv University

All-Pairs Shortest Paths. Approximate All-Pairs shortest paths Approximate distance oracles Spanners and Emulators. Uri Zwick Tel Aviv University Approxmate All-Pars shortest paths Approxmate dstance oracles Spanners and Emulators Ur Zwck Tel Avv Unversty Summer School on Shortest Paths (PATH05 DIKU, Unversty of Copenhagen All-Pars Shortest Paths

More information

Non-Split Restrained Dominating Set of an Interval Graph Using an Algorithm

Non-Split Restrained Dominating Set of an Interval Graph Using an Algorithm Internatonal Journal of Advancements n Research & Technology, Volume, Issue, July- ISS - on-splt Restraned Domnatng Set of an Interval Graph Usng an Algorthm ABSTRACT Dr.A.Sudhakaraah *, E. Gnana Deepka,

More information

Machine Learning: Algorithms and Applications

Machine Learning: Algorithms and Applications 14/05/1 Machne Learnng: Algorthms and Applcatons Florano Zn Free Unversty of Bozen-Bolzano Faculty of Computer Scence Academc Year 011-01 Lecture 10: 14 May 01 Unsupervsed Learnng cont Sldes courtesy of

More information

1 Dynamic Connectivity

1 Dynamic Connectivity 15-850: Advanced Algorthms CMU, Sprng 2017 Lecture #3: Dynamc Graph Connectvty algorthms 01/30/17 Lecturer: Anupam Gupta Scrbe: Hu Han Chn, Jacob Imola Dynamc graph algorthms s the study of standard graph

More information

CE 221 Data Structures and Algorithms

CE 221 Data Structures and Algorithms CE 1 ata Structures and Algorthms Chapter 4: Trees BST Text: Read Wess, 4.3 Izmr Unversty of Economcs 1 The Search Tree AT Bnary Search Trees An mportant applcaton of bnary trees s n searchng. Let us assume

More information

the nber of vertces n the graph. spannng tree T beng part of a par of maxmally dstant trees s called extremal. Extremal trees are useful n the mxed an

the nber of vertces n the graph. spannng tree T beng part of a par of maxmally dstant trees s called extremal. Extremal trees are useful n the mxed an On Central Spannng Trees of a Graph S. Bezrukov Unverstat-GH Paderborn FB Mathematk/Informatk Furstenallee 11 D{33102 Paderborn F. Kaderal, W. Poguntke FernUnverstat Hagen LG Kommunkatonssysteme Bergscher

More information

R s s f. m y s. SPH3UW Unit 7.3 Spherical Concave Mirrors Page 1 of 12. Notes

R s s f. m y s. SPH3UW Unit 7.3 Spherical Concave Mirrors Page 1 of 12. Notes SPH3UW Unt 7.3 Sphercal Concave Mrrors Page 1 of 1 Notes Physcs Tool box Concave Mrror If the reflectng surface takes place on the nner surface of the sphercal shape so that the centre of the mrror bulges

More information

Sorting. Sorting. Why Sort? Consistent Ordering

Sorting. Sorting. Why Sort? Consistent Ordering Sortng CSE 6 Data Structures Unt 15 Readng: Sectons.1-. Bubble and Insert sort,.5 Heap sort, Secton..6 Radx sort, Secton.6 Mergesort, Secton. Qucksort, Secton.8 Lower bound Sortng Input an array A of data

More information

Faster Shortest Paths in Dense Distance Graphs, with Applications

Faster Shortest Paths in Dense Distance Graphs, with Applications Faster Shortest Paths n Dense Dstance Graphs, wth Applcatons Shay Mozes IDC Herzlya smozes@dc.ac.l Yahav Nussbaum Unversty of Hafa yahav.nussbaum@cs.tau.ac.l Oren Wemann Unversty of Hafa oren@cs.hafa.ac.l

More information

Mathematics 256 a course in differential equations for engineering students

Mathematics 256 a course in differential equations for engineering students Mathematcs 56 a course n dfferental equatons for engneerng students Chapter 5. More effcent methods of numercal soluton Euler s method s qute neffcent. Because the error s essentally proportonal to the

More information

The Shortest Path of Touring Lines given in the Plane

The Shortest Path of Touring Lines given in the Plane Send Orders for Reprnts to reprnts@benthamscence.ae 262 The Open Cybernetcs & Systemcs Journal, 2015, 9, 262-267 The Shortest Path of Tourng Lnes gven n the Plane Open Access Ljuan Wang 1,2, Dandan He

More information

Report on On-line Graph Coloring

Report on On-line Graph Coloring 2003 Fall Semester Comp 670K Onlne Algorthm Report on LO Yuet Me (00086365) cndylo@ust.hk Abstract Onlne algorthm deals wth data that has no future nformaton. Lots of examples demonstrate that onlne algorthm

More information

Compiler Design. Spring Register Allocation. Sample Exercises and Solutions. Prof. Pedro C. Diniz

Compiler Design. Spring Register Allocation. Sample Exercises and Solutions. Prof. Pedro C. Diniz Compler Desgn Sprng 2014 Regster Allocaton Sample Exercses and Solutons Prof. Pedro C. Dnz USC / Informaton Scences Insttute 4676 Admralty Way, Sute 1001 Marna del Rey, Calforna 90292 pedro@s.edu Regster

More information

Sum of Linear and Fractional Multiobjective Programming Problem under Fuzzy Rules Constraints

Sum of Linear and Fractional Multiobjective Programming Problem under Fuzzy Rules Constraints Australan Journal of Basc and Appled Scences, 2(4): 1204-1208, 2008 ISSN 1991-8178 Sum of Lnear and Fractonal Multobjectve Programmng Problem under Fuzzy Rules Constrants 1 2 Sanjay Jan and Kalash Lachhwan

More information

CSCI 104 Sorting Algorithms. Mark Redekopp David Kempe

CSCI 104 Sorting Algorithms. Mark Redekopp David Kempe CSCI 104 Sortng Algorthms Mark Redekopp Davd Kempe Algorthm Effcency SORTING 2 Sortng If we have an unordered lst, sequental search becomes our only choce If we wll perform a lot of searches t may be benefcal

More information

Math Homotopy Theory Additional notes

Math Homotopy Theory Additional notes Math 527 - Homotopy Theory Addtonal notes Martn Frankland February 4, 2013 The category Top s not Cartesan closed. problem. In these notes, we explan how to remedy that 1 Compactly generated spaces Ths

More information

Bridges and cut-vertices of Intuitionistic Fuzzy Graph Structure

Bridges and cut-vertices of Intuitionistic Fuzzy Graph Structure Internatonal Journal of Engneerng, Scence and Mathematcs (UGC Approved) Journal Homepage: http://www.jesm.co.n, Emal: jesmj@gmal.com Double-Blnd Peer Revewed Refereed Open Access Internatonal Journal -

More information

A Binarization Algorithm specialized on Document Images and Photos

A Binarization Algorithm specialized on Document Images and Photos A Bnarzaton Algorthm specalzed on Document mages and Photos Ergna Kavalleratou Dept. of nformaton and Communcaton Systems Engneerng Unversty of the Aegean kavalleratou@aegean.gr Abstract n ths paper, a

More information

Fast Computation of Shortest Path for Visiting Segments in the Plane

Fast Computation of Shortest Path for Visiting Segments in the Plane Send Orders for Reprnts to reprnts@benthamscence.ae 4 The Open Cybernetcs & Systemcs Journal, 04, 8, 4-9 Open Access Fast Computaton of Shortest Path for Vstng Segments n the Plane Ljuan Wang,, Bo Jang

More information

An Application of the Dulmage-Mendelsohn Decomposition to Sparse Null Space Bases of Full Row Rank Matrices

An Application of the Dulmage-Mendelsohn Decomposition to Sparse Null Space Bases of Full Row Rank Matrices Internatonal Mathematcal Forum, Vol 7, 2012, no 52, 2549-2554 An Applcaton of the Dulmage-Mendelsohn Decomposton to Sparse Null Space Bases of Full Row Rank Matrces Mostafa Khorramzadeh Department of Mathematcal

More information

Insertion Sort. Divide and Conquer Sorting. Divide and Conquer. Mergesort. Mergesort Example. Auxiliary Array

Insertion Sort. Divide and Conquer Sorting. Divide and Conquer. Mergesort. Mergesort Example. Auxiliary Array Inserton Sort Dvde and Conquer Sortng CSE 6 Data Structures Lecture 18 What f frst k elements of array are already sorted? 4, 7, 1, 5, 1, 16 We can shft the tal of the sorted elements lst down and then

More information

Array transposition in CUDA shared memory

Array transposition in CUDA shared memory Array transposton n CUDA shared memory Mke Gles February 19, 2014 Abstract Ths short note s nspred by some code wrtten by Jeremy Appleyard for the transposton of data through shared memory. I had some

More information

1 Introducton Effcent and speedy recovery of electrc power networks followng a major outage, caused by a dsaster such as extreme weather or equpment f

1 Introducton Effcent and speedy recovery of electrc power networks followng a major outage, caused by a dsaster such as extreme weather or equpment f Effcent Recovery from Power Outage (Extended Summary) Sudpto Guha Λ Anna Moss y Joseph (Seff) Naor z Baruch Scheber x Abstract We study problems that are motvated by the real-lfe problem of effcent recovery

More information

Related-Mode Attacks on CTR Encryption Mode

Related-Mode Attacks on CTR Encryption Mode Internatonal Journal of Network Securty, Vol.4, No.3, PP.282 287, May 2007 282 Related-Mode Attacks on CTR Encrypton Mode Dayn Wang, Dongda Ln, and Wenlng Wu (Correspondng author: Dayn Wang) Key Laboratory

More information

Capacitated Domination and Covering: A Parameterized Perspective

Capacitated Domination and Covering: A Parameterized Perspective Capactated Domnaton and Coverng: A Parameterzed Perspectve Mchael Dom Danel Lokshtanov Saket Saurabh Yngve Vllanger Abstract Capactated versons of Domnatng Set and Vertex Cover have been studed ntensvely

More information

O n processors in CRCW PRAM

O n processors in CRCW PRAM PARALLEL COMPLEXITY OF SINGLE SOURCE SHORTEST PATH ALGORITHMS Mshra, P. K. Department o Appled Mathematcs Brla Insttute o Technology, Mesra Ranch-8355 (Inda) & Dept. o Electroncs & Electrcal Communcaton

More information

Tree Spanners for Bipartite Graphs and Probe Interval Graphs 1

Tree Spanners for Bipartite Graphs and Probe Interval Graphs 1 Algorthmca (2007) 47: 27 51 DOI: 10.1007/s00453-006-1209-y Algorthmca 2006 Sprnger Scence+Busness Meda, Inc. Tree Spanners for Bpartte Graphs and Probe Interval Graphs 1 Andreas Brandstädt, 2 Feodor F.

More information

11. APPROXIMATION ALGORITHMS

11. APPROXIMATION ALGORITHMS Copng wth NP-completeness 11. APPROXIMATION ALGORITHMS load balancng center selecton prcng method: vertex cover LP roundng: vertex cover generalzed load balancng knapsack problem Q. Suppose I need to solve

More information

Solving two-person zero-sum game by Matlab

Solving two-person zero-sum game by Matlab Appled Mechancs and Materals Onlne: 2011-02-02 ISSN: 1662-7482, Vols. 50-51, pp 262-265 do:10.4028/www.scentfc.net/amm.50-51.262 2011 Trans Tech Publcatons, Swtzerland Solvng two-person zero-sum game by

More information

Parallel matrix-vector multiplication

Parallel matrix-vector multiplication Appendx A Parallel matrx-vector multplcaton The reduced transton matrx of the three-dmensonal cage model for gel electrophoress, descrbed n secton 3.2, becomes excessvely large for polymer lengths more

More information

Strong games played on random graphs

Strong games played on random graphs Strong games played on random graphs Asaf Ferber Department of Mathematcs Massachusetts Insttute of Technology Cambrdge, U.S.A. ferbera@mt.edu Pascal Pfster Insttute of Theoretcal Computer Scence ETH Zürch

More information

Theoretical Computer Science

Theoretical Computer Science Theoretcal Computer Scence 481 (2013) 74 84 Contents lsts avalable at ScVerse ScenceDrect Theoretcal Computer Scence journal homepage: www.elsever.com/locate/tcs Increasng the mnmum degree of a graph by

More information

Support Vector Machines

Support Vector Machines /9/207 MIST.6060 Busness Intellgence and Data Mnng What are Support Vector Machnes? Support Vector Machnes Support Vector Machnes (SVMs) are supervsed learnng technques that analyze data and recognze patterns.

More information

Learning the Kernel Parameters in Kernel Minimum Distance Classifier

Learning the Kernel Parameters in Kernel Minimum Distance Classifier Learnng the Kernel Parameters n Kernel Mnmum Dstance Classfer Daoqang Zhang 1,, Songcan Chen and Zh-Hua Zhou 1* 1 Natonal Laboratory for Novel Software Technology Nanjng Unversty, Nanjng 193, Chna Department

More information

On Embedding and NP-Complete Problems of Equitable Labelings

On Embedding and NP-Complete Problems of Equitable Labelings IOSR Journal o Mathematcs (IOSR-JM) e-issn: 78-578, p-issn: 39-765X Volume, Issue Ver III (Jan - Feb 5), PP 8-85 wwwosrjournalsorg Ombeddng and NP-Complete Problems o Equtable Labelngs S K Vadya, C M Barasara

More information

Greedy Technique - Definition

Greedy Technique - Definition Greedy Technque Greedy Technque - Defnton The greedy method s a general algorthm desgn paradgm, bult on the follong elements: confguratons: dfferent choces, collectons, or values to fnd objectve functon:

More information

Priority queues and heaps Professors Clark F. Olson and Carol Zander

Priority queues and heaps Professors Clark F. Olson and Carol Zander Prorty queues and eaps Professors Clark F. Olson and Carol Zander Prorty queues A common abstract data type (ADT) n computer scence s te prorty queue. As you mgt expect from te name, eac tem n te prorty

More information

Load Balancing for Hex-Cell Interconnection Network

Load Balancing for Hex-Cell Interconnection Network Int. J. Communcatons, Network and System Scences,,, - Publshed Onlne Aprl n ScRes. http://www.scrp.org/journal/jcns http://dx.do.org/./jcns.. Load Balancng for Hex-Cell Interconnecton Network Saher Manaseer,

More information

Chapter 6 Programmng the fnte element method Inow turn to the man subject of ths book: The mplementaton of the fnte element algorthm n computer programs. In order to make my dscusson as straghtforward

More information

Exercises (Part 4) Introduction to R UCLA/CCPR. John Fox, February 2005

Exercises (Part 4) Introduction to R UCLA/CCPR. John Fox, February 2005 Exercses (Part 4) Introducton to R UCLA/CCPR John Fox, February 2005 1. A challengng problem: Iterated weghted least squares (IWLS) s a standard method of fttng generalzed lnear models to data. As descrbed

More information

Intro. Iterators. 1. Access

Intro. Iterators. 1. Access Intro Ths mornng I d lke to talk a lttle bt about s and s. We wll start out wth smlartes and dfferences, then we wll see how to draw them n envronment dagrams, and we wll fnsh wth some examples. Happy

More information

such that is accepted of states in , where Finite Automata Lecture 2-1: Regular Languages be an FA. A string is the transition function,

such that is accepted of states in , where Finite Automata Lecture 2-1: Regular Languages be an FA. A string is the transition function, * Lecture - Regular Languages S Lecture - Fnte Automata where A fnte automaton s a -tuple s a fnte set called the states s a fnte set called the alphabet s the transton functon s the ntal state s the set

More information

Data Representation in Digital Design, a Single Conversion Equation and a Formal Languages Approach

Data Representation in Digital Design, a Single Conversion Equation and a Formal Languages Approach Data Representaton n Dgtal Desgn, a Sngle Converson Equaton and a Formal Languages Approach Hassan Farhat Unversty of Nebraska at Omaha Abstract- In the study of data representaton n dgtal desgn and computer

More information

Lecture 5: Multilayer Perceptrons

Lecture 5: Multilayer Perceptrons Lecture 5: Multlayer Perceptrons Roger Grosse 1 Introducton So far, we ve only talked about lnear models: lnear regresson and lnear bnary classfers. We noted that there are functons that can t be represented

More information

Computation of a Minimum Average Distance Tree on Permutation Graphs*

Computation of a Minimum Average Distance Tree on Permutation Graphs* Annals of Pure and Appled Mathematcs Vol, No, 0, 74-85 ISSN: 79-087X (P), 79-0888(onlne) Publshed on 8 December 0 wwwresearchmathscorg Annals of Computaton of a Mnmum Average Dstance Tree on Permutaton

More information

A NOTE ON FUZZY CLOSURE OF A FUZZY SET

A NOTE ON FUZZY CLOSURE OF A FUZZY SET (JPMNT) Journal of Process Management New Technologes, Internatonal A NOTE ON FUZZY CLOSURE OF A FUZZY SET Bhmraj Basumatary Department of Mathematcal Scences, Bodoland Unversty, Kokrajhar, Assam, Inda,

More information

CHAPTER 10: ALGORITHM DESIGN TECHNIQUES

CHAPTER 10: ALGORITHM DESIGN TECHNIQUES CHAPTER 10: ALGORITHM DESIGN TECHNIQUES So far, we have been concerned wth the effcent mplementaton of algorthms. We have seen that when an algorthm s gven, the actual data structures need not be specfed.

More information

Complex Numbers. Now we also saw that if a and b were both positive then ab = a b. For a second let s forget that restriction and do the following.

Complex Numbers. Now we also saw that if a and b were both positive then ab = a b. For a second let s forget that restriction and do the following. Complex Numbers The last topc n ths secton s not really related to most of what we ve done n ths chapter, although t s somewhat related to the radcals secton as we wll see. We also won t need the materal

More information

Sequential search. Building Java Programs Chapter 13. Sequential search. Sequential search

Sequential search. Building Java Programs Chapter 13. Sequential search. Sequential search Sequental search Buldng Java Programs Chapter 13 Searchng and Sortng sequental search: Locates a target value n an array/lst by examnng each element from start to fnsh. How many elements wll t need to

More information

Cordial and 3-Equitable Labeling for Some Star Related Graphs

Cordial and 3-Equitable Labeling for Some Star Related Graphs Internatonal Mathematcal Forum, 4, 009, no. 31, 1543-1553 Cordal and 3-Equtable Labelng for Some Star Related Graphs S. K. Vadya Department of Mathematcs, Saurashtra Unversty Rajkot - 360005, Gujarat,

More information

S1 Note. Basis functions.

S1 Note. Basis functions. S1 Note. Bass functons. Contents Types of bass functons...1 The Fourer bass...2 B-splne bass...3 Power and type I error rates wth dfferent numbers of bass functons...4 Table S1. Smulaton results of type

More information

CMPS 10 Introduction to Computer Science Lecture Notes

CMPS 10 Introduction to Computer Science Lecture Notes CPS 0 Introducton to Computer Scence Lecture Notes Chapter : Algorthm Desgn How should we present algorthms? Natural languages lke Englsh, Spansh, or French whch are rch n nterpretaton and meanng are not

More information

Algorithm To Convert A Decimal To A Fraction

Algorithm To Convert A Decimal To A Fraction Algorthm To Convert A ecmal To A Fracton by John Kennedy Mathematcs epartment Santa Monca College 1900 Pco Blvd. Santa Monca, CA 90405 jrkennedy6@gmal.com Except for ths comment explanng that t s blank

More information

Today s Outline. Sorting: The Big Picture. Why Sort? Selection Sort: Idea. Insertion Sort: Idea. Sorting Chapter 7 in Weiss.

Today s Outline. Sorting: The Big Picture. Why Sort? Selection Sort: Idea. Insertion Sort: Idea. Sorting Chapter 7 in Weiss. Today s Outlne Sortng Chapter 7 n Wess CSE 26 Data Structures Ruth Anderson Announcements Wrtten Homework #6 due Frday 2/26 at the begnnng of lecture Proect Code due Mon March 1 by 11pm Today s Topcs:

More information

Analysis of Continuous Beams in General

Analysis of Continuous Beams in General Analyss of Contnuous Beams n General Contnuous beams consdered here are prsmatc, rgdly connected to each beam segment and supported at varous ponts along the beam. onts are selected at ponts of support,

More information

Reducing Frame Rate for Object Tracking

Reducing Frame Rate for Object Tracking Reducng Frame Rate for Object Trackng Pavel Korshunov 1 and We Tsang Oo 2 1 Natonal Unversty of Sngapore, Sngapore 11977, pavelkor@comp.nus.edu.sg 2 Natonal Unversty of Sngapore, Sngapore 11977, oowt@comp.nus.edu.sg

More information

Cell Count Method on a Network with SANET

Cell Count Method on a Network with SANET CSIS Dscusson Paper No.59 Cell Count Method on a Network wth SANET Atsuyuk Okabe* and Shno Shode** Center for Spatal Informaton Scence, Unversty of Tokyo 7-3-1, Hongo, Bunkyo-ku, Tokyo 113-8656, Japan

More information

Hierarchical clustering for gene expression data analysis

Hierarchical clustering for gene expression data analysis Herarchcal clusterng for gene expresson data analyss Gorgo Valentn e-mal: valentn@ds.unm.t Clusterng of Mcroarray Data. Clusterng of gene expresson profles (rows) => dscovery of co-regulated and functonally

More information

CS221: Algorithms and Data Structures. Priority Queues and Heaps. Alan J. Hu (Borrowing slides from Steve Wolfman)

CS221: Algorithms and Data Structures. Priority Queues and Heaps. Alan J. Hu (Borrowing slides from Steve Wolfman) CS: Algorthms and Data Structures Prorty Queues and Heaps Alan J. Hu (Borrowng sldes from Steve Wolfman) Learnng Goals After ths unt, you should be able to: Provde examples of approprate applcatons for

More information

The Codesign Challenge

The Codesign Challenge ECE 4530 Codesgn Challenge Fall 2007 Hardware/Software Codesgn The Codesgn Challenge Objectves In the codesgn challenge, your task s to accelerate a gven software reference mplementaton as fast as possble.

More information

UNIT 2 : INEQUALITIES AND CONVEX SETS

UNIT 2 : INEQUALITIES AND CONVEX SETS UNT 2 : NEQUALTES AND CONVEX SETS ' Structure 2. ntroducton Objectves, nequaltes and ther Graphs Convex Sets and ther Geometry Noton of Convex Sets Extreme Ponts of Convex Set Hyper Planes and Half Spaces

More information

2x x l. Module 3: Element Properties Lecture 4: Lagrange and Serendipity Elements

2x x l. Module 3: Element Properties Lecture 4: Lagrange and Serendipity Elements Module 3: Element Propertes Lecture : Lagrange and Serendpty Elements 5 In last lecture note, the nterpolaton functons are derved on the bass of assumed polynomal from Pascal s trangle for the fled varable.

More information

Constructing Minimum Connected Dominating Set: Algorithmic approach

Constructing Minimum Connected Dominating Set: Algorithmic approach Constructng Mnmum Connected Domnatng Set: Algorthmc approach G.N. Puroht and Usha Sharma Centre for Mathematcal Scences, Banasthal Unversty, Rajasthan 304022 usha.sharma94@yahoo.com Abstract: Connected

More information

3D vector computer graphics

3D vector computer graphics 3D vector computer graphcs Paolo Varagnolo: freelance engneer Padova Aprl 2016 Prvate Practce ----------------------------------- 1. Introducton Vector 3D model representaton n computer graphcs requres

More information

LECTURE : MANIFOLD LEARNING

LECTURE : MANIFOLD LEARNING LECTURE : MANIFOLD LEARNING Rta Osadchy Some sldes are due to L.Saul, V. C. Raykar, N. Verma Topcs PCA MDS IsoMap LLE EgenMaps Done! Dmensonalty Reducton Data representaton Inputs are real-valued vectors

More information

Range images. Range image registration. Examples of sampling patterns. Range images and range surfaces

Range images. Range image registration. Examples of sampling patterns. Range images and range surfaces Range mages For many structured lght scanners, the range data forms a hghly regular pattern known as a range mage. he samplng pattern s determned by the specfc scanner. Range mage regstraton 1 Examples

More information

Distributed Degree Splitting, Edge Coloring, and Orientations

Distributed Degree Splitting, Edge Coloring, and Orientations Abstract Dstrbuted Degree Splttng, Edge Colorng, and Orentatons Mohsen Ghaffar MIT ghaffar@mt.edu We study a famly of closely-related dstrbuted graph problems, whch we call degree splttng, where roughly

More information

GSLM Operations Research II Fall 13/14

GSLM Operations Research II Fall 13/14 GSLM 58 Operatons Research II Fall /4 6. Separable Programmng Consder a general NLP mn f(x) s.t. g j (x) b j j =. m. Defnton 6.. The NLP s a separable program f ts objectve functon and all constrants are

More information

On Some Entertaining Applications of the Concept of Set in Computer Science Course

On Some Entertaining Applications of the Concept of Set in Computer Science Course On Some Entertanng Applcatons of the Concept of Set n Computer Scence Course Krasmr Yordzhev *, Hrstna Kostadnova ** * Assocate Professor Krasmr Yordzhev, Ph.D., Faculty of Mathematcs and Natural Scences,

More information

Subspace clustering. Clustering. Fundamental to all clustering techniques is the choice of distance measure between data points;

Subspace clustering. Clustering. Fundamental to all clustering techniques is the choice of distance measure between data points; Subspace clusterng Clusterng Fundamental to all clusterng technques s the choce of dstance measure between data ponts; D q ( ) ( ) 2 x x = x x, j k = 1 k jk Squared Eucldean dstance Assumpton: All features

More information

CS1100 Introduction to Programming

CS1100 Introduction to Programming Factoral (n) Recursve Program fact(n) = n*fact(n-) CS00 Introducton to Programmng Recurson and Sortng Madhu Mutyam Department of Computer Scence and Engneerng Indan Insttute of Technology Madras nt fact

More information

NOVEL CONSTRUCTION OF SHORT LENGTH LDPC CODES FOR SIMPLE DECODING

NOVEL CONSTRUCTION OF SHORT LENGTH LDPC CODES FOR SIMPLE DECODING Journal of Theoretcal and Appled Informaton Technology 27 JATIT. All rghts reserved. www.jatt.org NOVEL CONSTRUCTION OF SHORT LENGTH LDPC CODES FOR SIMPLE DECODING Fatma A. Newagy, Yasmne A. Fahmy, and

More information

Tsinghua University at TAC 2009: Summarizing Multi-documents by Information Distance

Tsinghua University at TAC 2009: Summarizing Multi-documents by Information Distance Tsnghua Unversty at TAC 2009: Summarzng Mult-documents by Informaton Dstance Chong Long, Mnle Huang, Xaoyan Zhu State Key Laboratory of Intellgent Technology and Systems, Tsnghua Natonal Laboratory for

More information

Sorting: The Big Picture. The steps of QuickSort. QuickSort Example. QuickSort Example. QuickSort Example. Recursive Quicksort

Sorting: The Big Picture. The steps of QuickSort. QuickSort Example. QuickSort Example. QuickSort Example. Recursive Quicksort Sortng: The Bg Pcture Gven n comparable elements n an array, sort them n an ncreasng (or decreasng) order. Smple algorthms: O(n ) Inserton sort Selecton sort Bubble sort Shell sort Fancer algorthms: O(n

More information

cos(a, b) = at b a b. To get a distance measure, subtract the cosine similarity from one. dist(a, b) =1 cos(a, b)

cos(a, b) = at b a b. To get a distance measure, subtract the cosine similarity from one. dist(a, b) =1 cos(a, b) 8 Clusterng 8.1 Some Clusterng Examples Clusterng comes up n many contexts. For example, one mght want to cluster journal artcles nto clusters of artcles on related topcs. In dong ths, one frst represents

More information

Graph-based Clustering

Graph-based Clustering Graphbased Clusterng Transform the data nto a graph representaton ertces are the data ponts to be clustered Edges are eghted based on smlarty beteen data ponts Graph parttonng Þ Each connected component

More information

ON SOME ENTERTAINING APPLICATIONS OF THE CONCEPT OF SET IN COMPUTER SCIENCE COURSE

ON SOME ENTERTAINING APPLICATIONS OF THE CONCEPT OF SET IN COMPUTER SCIENCE COURSE Yordzhev K., Kostadnova H. Інформаційні технології в освіті ON SOME ENTERTAINING APPLICATIONS OF THE CONCEPT OF SET IN COMPUTER SCIENCE COURSE Yordzhev K., Kostadnova H. Some aspects of programmng educaton

More information

An Efficient Label Setting/Correcting Shortest Path Algorithm

An Efficient Label Setting/Correcting Shortest Path Algorithm An Effcent Label Settng/Correctng Shortest Path Algorthm Antono Sedeño-Noda, Carlos González-Martín Departamento de Estadístca, Investgacón Operatva y Computacón (DEIOC) Unversdad de La Laguna,38205- La

More information