Key words. Graphics processing unit, GPU, digital geometry, computational geometry, parallel computation, CUDA, OpenCL

Size: px
Start display at page:

Download "Key words. Graphics processing unit, GPU, digital geometry, computational geometry, parallel computation, CUDA, OpenCL"

Transcription

1 PROOF OF CORRECTNESS OF THE DIGITAL DELAUNAY TRIANGULATION ALGORITHM THANH-TUNG CAO, HERBERT EDELSBRUNNER, AND TIOW-SENG TAN Abstract. We prove that the dual of the dgtal Vorono dagram constructed by floodng the plane from the data ponts gves a geometrcally and topologcally correct dual trangulaton. Ths provdes the proof of correctness for recently developed GPU algorthms that outperform tradtonal CPU algorthms for constructng two-dmensonal Delaunay trangulatons. Key words. Graphcs processng unt, GPU, dgtal geometry, computatonal geometry, parallel computaton, CUDA, OpenCL AMS subject classfcatons. 68Q25, 68U05, 68W10, 68W40 1. Introducton. In recent years, the computatonal power of graphcs processng unts (GPUs) has surpassed that of central processng unts (CPUs). Contnung the trend, the gap between the two s expected to wden n the foreseeable future. Wth the ntroducton of programmng models, such as CUDA [9] and OpenCL [8], there are now more applcaton areas that beneft from the computatonal power of GPUs. These areas nclude scentfc computng, games, data mnng, and computatonal fnance [10]. In computatonal geometry, GPUs have been used to solve problems n dscrete as well as n contnuous space. An example s the dgtal Vorono dagram approxmatng the correspondng Eucldean structure, whch has a wde range of applcatons n mage processng, computer vson, and graphcs [3]. Another s the dgtal Delaunay trangulaton, whch has applcatons n mesh generaton and scentfc computng [6]. In Eucldean space, the Vorono dagram and the Delaunay trangulaton are but dfferent geometrc expressons of the same combnatoral structure. In dgtal geometry, the translaton from one to the other s made dffcult by the need to approxmate. Indeed, t s easy to construct a dgtal Vorono dagram, just by colorng the pxels or ther hgher-dmensonal analogues. Early work n ths drecton uses graphcs hardware [7] and the texture unt of the GPU [15]. More recent work takes the vector propagaton approach [4], whch leads to algorthms whose runnng tme depends solely on the mage resoluton and not on the number of data ponts [2, 11, 13]. In contrast, computng the Delaunay trangulaton wth GPUs has been more challengng. Whle Hoff et al. [7] menton the possblty to dualze the dgtal Vorono dagram, t was not untl recently that a complete GPU algorthm for the Delaunay trangulaton has been descrbed [12]. Wth the tremendous power of GPUs, ths algorthm outperforms all tradtonal CPU algorthms, ncludng the optmzed Trangle software of Shewchuk [14]. The reason for the dffculty s the approxmate character of dgtal Vorono dagrams, whch may lead to unwanted artfacts when dualzed, such as crossng edges and mssng trangles. However, there s expermental evdence suggestng that a careful mplementaton can avod such artfacts. In ths paper, we present a detaled proof that dualzng the dgtal Vorono dagram gves Research of the second author s partally supported by NSF under grant DBI and by DARPA under grants HR and HR Research of the thrd author s partally supported by NUS under grant R School of Computng, Natonal Unversty of Sngapore, Sngapore. (caothanh@comp.nus.edu.sg). IST Austra (Insttute of Scence and Technology Austra), Klosterneuburg, Austra, Departments of Computer Scence and of Mathematcs, Duke Unversty, Durham, North Carolna, and Geomagc, Research Trangle Park, North Carolna. (edels@cs.duke.edu). School of Computng, Natonal Unversty of Sngapore, Sngapore. (tants@comp.nus.edu.sg). 1

2 2 T. T. CAO, H. EDELSBRUNNER AND T. S. TAN a topologcally and geometrcally correct trangulaton. Leavng the correcton of unstable dagonals to a postprocessng step, we call the result of the dualzaton the dgtal Delaunay trangulaton. We base our proof on the recent mprovement of the GPU Delaunay trangulaton algorthm descrbed n [1]. Presentng a conceptual verson of ths algorthm n Secton 2, we prove ts correctness n Secton 3. Specfcally, we show that the dgtal Vorono dagram obtaned by floodng the pxel array can be dualzed to gve a topologcally as well as geometrcally vald trangulaton n the plane. Our proof takes three steps to establsh the valdty of the dgtal Delaunay trangulaton. The frst step ratonalzes the floodng algorthm by provng that the pxels are colored n the order of dstance from the data ponts. The second step explots ths orderng to prove a techncal topologcal result about loops. The thrd step uses ths result to establsh the desred propertes of the dgtal Delaunay trangulaton. We beleve that our approach to provng the correctness of dgtal geometry algorthms by progressve abstracton s of ndependent nterest. 2. The Algorthm. In ths secton, we formally state the problem and gve a conceptual but precse descrpton of the algorthmc soluton frst presented n [1]. Problem specfcaton. The settng s a rectangular array of pxels. To talk about t, we defne a pxel as the closed unt square centered at an nteger pont n the plane: A+[ 1 2, 1 2 ]2, wth A Z 2. It has four sdes: east, north, west, south, and four corners: north-east, north-west, south-east, south-west. The decomposton of the plane nto pxels s denoted by Z 2 + [ 1 2, 1 2 ]2. Snce computers are fnte, we consder only a fnte rectangular pece of the thus decomposed plane and call ths pece the texture wthn whch all computatons are performed. Now suppose we are gven a subset of the pxels n the texture. We call the center of each such pxel a seed pont and wrte S = {x 1, x 2,..., x n } for the set of seed ponts. We assume that the ponts do not all le on a sngle straght lne. Equvalently, at least three of the seed ponts span a proper trangle. The goal s to connect the seed ponts n S wth edges and trangles to form a smplcal complex. It wll be convenent to add a dummy seed pont, x 0, whch we magne at nfnty and use as an addtonal vertex when we form the smplcal complex. Wth ths modfcaton, we consder a smplcal complex a vald soluton to our problem f t satsfes the followng three condtons: I. The set of vertces s S {x 0 }. II. The smplcal complex trangulates the sphere. III. Removng x 0 gves a geometrc realzaton n the plane. Condton I prescrbes the relatonshp between nput and output. Condton II summarzes the requred topologcal propertes. It ncludes the local requrements of a 2-manfold, that every edge belongs to two trangles and every vertex belongs to a rng of trangles. It also prescrbes the global topology of the smplcal complex to that of the 2-dmensonal sphere. Condton III summarzes the requred geometrc propertes, namely that the edges do not ntersect other than at shared vertces, and the trangles do not ntersect other than along shared edges. Note that Condton III apples only to the fnte porton of the smplcal complex, obtaned by removng the star of x 0, that s, x 0 together wth all edges and trangles that connect to x 0. Snce removng a sngle vertex star from a trangulated sphere keeps the rest connected, the fnte porton of the smplcal complex s thus requred to be connected. Dgtal Vorono dagrams. Our approach to solvng the problem mmcs the computaton of the Eucldean case. Recall that the (Eucldean) Vorono regon of a pont x s the set of ponts for whch x s the closest seed ponts, that s, V = {x R 2 x x x x j, j}. It s easy to see that V s convex. The collecton of V s the (Eucldean) Vorono dagram of S. Fnally, the (Eucldean) Delaunay trangulaton s the dual of ths dagram. Workng wth

3 PROOF OF CORRECTNESS OF THE DIGITAL DELAUNAY TRIANGULATION ALGORITHM 3 nteger nstead of real coordnates, we can only approxmate ths Eucldean constructon. We do ths wth two types of dgtal Vorono dagrams. To construct the frst, we color each pxel wth the ndex of the closest seed pont: E = {A Z 2 A x A x j, j}. We assume a fxed te-breakng rule so that each pxel receves only one color. The bulk of E s the component B that contans the seed pont, x. All the other pxels of E are debrs. whch exsts only nsde a sharp corner of the Eucldean Vorono regon; see Fgure 2.1. The Fg. 2.1: A regon wth a sharp corner. Its correspondng dgtal regon consst of the bulk and one debrs pxel. debrs s a serous drawback as t makes t dffcult to turn the decomposton nto a vald soluton to our trangulaton problem. Ths dffculty s allevated by ntroducng a second knd of dgtal Vorono dagram. It s obtaned by growng the regons smultaneously untl they run nto each other. In other words, we run n versons of breadth-frst search n parallel, makng sure they do not nvade each other s terrtory. To make ths process precse, we say a pxel A s elgble to be colored f A = x or A has a neghborng pxel of color. Here and throughout the paper, we say two pxels are neghbors f they share a sde or a corner, wrtng N(A) for the set of pxels neghborng A. Intally, after s = 0 steps, all pxels are uncolored. Wrte F,s for the set of pxels colored after s steps, and Q s for the set of elgble pxel-color pars. We mplement Q s as a prorty queue and allow t to contan addtonal pars whose pxels are already colored. These pars do not nterfere wth the proper executon of the algorthm. Let mn(q s ) be the operaton that removes and returns the par wth mnmum dstance between the pxel center and the seed pont of the color. We now state the algorthm more formally, suppressng the counter for the number of steps, whch s mplct. We ntalze the regons to F = and the queue to the set of pars (x, ), for all. repeat (A, ) = mn(q); f A s not colored then F = F {A}; Q = Q {(B, ) B N(A)}; end f untl Q =. It s easy to see that ths algorthm succeeds n colorng all pxels. Wrtng F for the set of pxels colored after the last step of the algorthm, ths s equvalent to sayng that the unon of the F covers the entre texture. Indeed, n any other case there would be an uncolored pxel neghborng a colored pxel and the algorthm could contnue colorng. An mportant aspect of the algorthm s ts te-breakng mechansm. Any total order of the pxel pars consstent wth the Eucldean dstance between pxel centers wll do. For example,

4 4 T. T. CAO, H. EDELSBRUNNER AND T. S. TAN we may explot the total order of the ntegers as follows. A par of pxels s specfed by four coordnates, whch we sort nto a vector of length four and wrte (A, B) < lex (C, D) f the vector obtaned from A, B Z 2 s lexcographcally smaller than the vector obtaned from C, D Z 2. We say (A, B) has hgher prorty than (C, D), denoted as A B C D, f A B < C D or A B = C D and (A, B) < lex (C, D). Note that A B C D mples A B C D but not always A B < C D. Ths wll be mportant n our analyss of the algorthm. Dgtal Delaunay trangulaton. Smlar to the Eucldean case, we dualze the dgtal Vorono dagram, and n partcular the regons F. The key concept s that of a dgtal Vorono vertex. Ths s a corner shared by four pxels that have ether four dfferent colors or three dfferent colors n whch the two pxels sharng the color also share a sde. Equvalently, a dgtal Vorono vertex s a 2-by-2 array of the type whch s shaded n Fgure 2.2. We note j l k k l k l k k k k k Fg. 2.2: The seven types of colorngs of a 2-by-2 array of pxels. The frst two are dgtal Vorono vertces. that the thrd type of array, whch s not a dgtal Vorono vertex, s called a neck of the regon whose color s repeated. We wll see n Secton 3 that the fourth type, wth two crossng necks, does not arse. Ths s mportant when we dualze the colored regons as follows: For each dgtal Vorono vertex wth three dfferent colors,, j, k, we add the edges x x j, x j x k, x k x to E and the trangle x x j x k to T. For each dgtal Vorono vertex wth four dfferent colors,, j, k, l ordered ths way around the square, we add the edges x x j, x j x k, x k x and x x k, x k x l, x l x to E and the trangles x x j x k, x x k x l to T. Note that n the second case, we have a choce between the two dagonals, whch we make arbtrarly. Here, E and T are multsets. We wll prove that T s n fact a set and E contans each edge exactly twce. Identfyng the edges n pars thus gves a smplcal complex; see Fgure 2.3 for an example. We call ths the dgtal Delaunay trangulaton of S. Its fnte porton s obtaned by removng x 0 together wth all edges and trangles that share x 0. Fg. 2.3: The dgtal Delaunay trangulaton supermposed on the dgtal Vorono dagram obtaned by floodng.

5 PROOF OF CORRECTNESS OF THE DIGITAL DELAUNAY TRIANGULATION ALGORITHM 5 3. The Proof. In ths secton, we present the proof that the dgtal Delaunay trangulaton s a vald soluton to our trangulaton problem. It conssts of three consecutve steps, explaned n the followng three subsectons Floodng Sorts. In ths subsecton, we ratonalze floodng by provng some basc propertes. Recall our te-breakng mechansm and that A B C D mples A B C D. Order by dstance. The man techncal result n ths secton s a proof that floodng colors the pxels n the order of ther dstance from the seed ponts. Ths s plausble but dffcult to establsh. We consder two versons of ths clam, a weak verson that clams the orderng separately wthn each color, and a strong verson that clams one order for the entre collecton of pxels. The proof s nductve, movng from the weak verson after s steps to the strong verson after s steps to the weak verson after s + 1 steps. ORDERED COLORING LEMMA. For every s 0 and every two colors and j, we have A x Y x j for all A F,s and all uncolored pxels Y that are elgble to be colored j after s steps. Proof. Ths s the strong verson of the clam and we get the weak verson as a specal case, when = j. We begn by provng that the weak verson mples the strong verson. The only reason the latter s not trval s that an uncolored pxel can acqure new colored neghbors and thus mprove ts prorty n the queue. However, by the weak verson after s steps, Y cannot mprove ts prorty beyond the prorty of the newly acqured colored neghbor A. By the strong verson after s 1 steps, the prorty of A s the lowest we have seen so far for a colored pxel. Ths mples that even after the mprovement, the prorty of Y s stll lower than that of all colored pxels. Snce we use a prorty queue to select A, all other uncolored pxels have prortes lower than the prorty of A and therefore of all colored pxels. Ths mples the strong verson after s steps. We now prove that the strong verson after s steps mples the weak verson after s + 1 steps. To get a contradcton, we let Y 0 be the frst uncolored pxel that volates the clamed nequalty for the weak verson and we let s 0 be the number of steps after whch ths volaton arses. We defne a predecessor of a colored pxel as a neghborng pxel that receved the same color earler. By assumpton, after s < s 0 steps, all predecessors of a pxel colored are at least as close to x as ths pxel. After s 0 steps, Y 0 has a neghbor A wth color that satsfes Y 0 x A x. Note that A s the only neghbor wth color, else Y 0 would have contradcted the nequalty before the s 0 steps or t would have been colored before A. There are two cases to consder: when A and Y 0 share a sde and when they share only a corner. Both cases are further decomposed nto subcases, and for each subcase, we ether derve a contradcton drectly, or we reduce t to another subcase workng our way up a path of predecessors one pxel closer to x. Snce ths path s fnte, we get a contradcton eventually. To dscuss the two cases, we assume the postons of A and Y 0 are as depcted n Fgure 3.1. CASE 1. A s the neghbor to the west of Y 0. Wthout loss of generalty, assume that x les n the lower rght quadrant of Y 0. A has a predecessor at least as close to x but not neghborng Y 0. The only possblty s the south-west neghbor B. Ths further constrans the locaton of x to wthn a 45 wedge. The neghbor U to the south of A must have been colored before B, but wth a dfferent color k, else t would have volated the clamed nequalty before Y 0 dd. By nductve assumpton, U x k B x B x k. Smlarly, U x k A x A x k. We now have two constrants that express that A and B le on the same sde of the

6 6 T. T. CAO, H. EDELSBRUNNER AND T. S. TAN perpendcular bsector of x and x k, namely A x A x k, B x B x k. Snce U les nsde the trangle x AB but not on the edge AB, the two nequaltes mply U x < U x k and therefore U x U x k. But ths s only possble f U has no neghbor of color at the tme t s colored. We consder three subcases: CASE 1.1. The south-east neghbor W of B s a predecessor of B. Therefore, U must have been colored before W. By nductve assumpton, we have U x U x k W x. But ths contradcts the nequalty W x U x, whch we get from the restrcton of x to the 45 wedge. CASE 1.2. The neghbor V to the south of B s a predecessor of B, and W s not. Therefore, we get U x U x k V x as U must have been colored before V. Ths mples U x V x, whch further lmts x to wthn a narrow dagonal strp, as ndcated n Fgure 3.1 on the left. Let the color of W be l, and observe that W must have been colored before V, else t would have volated the clamed nequalty before Y 0 dd. Therefore, W x l V x V x l, and smlarly, W x l B x B x l, whch mples B x B x l, V x V x l. Recallng that x les nsde the dagonal strp, we observe that W les nsde the trangle x BV but not on the edge BV. Hence, the two nequaltes mply W x W x l. We now repeat the analyss of Case 1, substtutng V, W for B, U. CASE 1.3. The south-west neghbor C of B s a predecessor of B, and V and W are not. The neghbor V to the south of B must have been colored before C, else t would have contradcted the clamed nequalty before Y 0 dd. We repeat the analyss of Case 1, substtutng C, V, B for B, U, A. We wll shortly relax the condton on x by addng the column of pxels below A to the quadrant that contans x. Indeed, the only reason for not dong so rght from the start s the condton Y 0 x A x, whch s volated for pxels n that column. B C V A U W Y 0 B A T V U Y 0 Fg. 3.1: Illustraton of Case 1 on the left and Case 2 on the rght. In both cases, the shaded rght-angled wedge represents the possble locatons of x.

7 PROOF OF CORRECTNESS OF THE DIGITAL DELAUNAY TRIANGULATION ALGORITHM 7 CASE 2. A s the north-west neghbor of Y 0. Wthout loss of generalty assume that x les n the lower quadrant of Y 0 ; see Fgure 3.1 on the rght. Recall that A s the only neghbor of Y 0 colored. The neghbor U to the south of A must therefore have been colored before A, wth a color k dfferent from, else t would have volated the clamed nequalty before Y 0 dd. Usng the nductve assumpton, we therefore get U x k A x A x k. There are only two possble predecessors of A. CASE 2.1. The south-west neghbor V of A s a predecessor of A. We consder two subcases: CASE U x V x. Here, U must have been colored before V, else t would have volated the clamed nequalty before Y 0 dd. We therefore get U x k V x V x k. Snce x les n the lower rght quadrant of A, we can now apply the analyss of Case 1, substtutng V, U, A here for B, U, A there. Indeed, all steps of the analyss n Case 1 are vald for x n that quadrant, except for Y 0 x A x, whch now holds because Y 0 s the south-east rather than the east neghbor of A, as t was n the orgnal descrpton of Case 1. CASE V x U x. Notce A x Y 0 x k, else Y 0 would have been colored before A. Together wth Y 0 x A x and A x A x k, we have Y 0 x Y 0 x k, A x A x k. Snce U les nsde the trangle x AY 0 but not on the edge AY 0, the two nequaltes mply U x U x k. Hence, U must have been colored before V, else color would have taken precedence over color k. But ths mples U x k V x and therefore U x V x, a contradcton to the assumpton. CASE 2.2. The west neghbor B of A s a predecessor of A, and V s not. Ths constrans x to le wthn the same 45 wedge consdered n Case 2.1.2; see Fgure 3.1 on the rght. Here, U must have been colored before B, else t would have volated the clamed nequalty before Y 0 dd. We can now repeat the analyss of Case 2, substtutng B, V for A, U. An amendment to Case 2.1 s n order. The reason s that we may encounter Case 2.2 frst, one or more tmes, and then reach Case 2.1. If we do, Y 0 s no longer neghbor of the new A, whch s equal to the orgnal B or one of ts predecessors. The analyss n Case s unaffected by ths dfference, regardless of the actual poston of Y 0, as Case can reduce to Case 1 as long as x les n the lower rght quadrant of A. However, n Case 2.1.2, we need to fnd a new argument for U x U x k. To ths end, let T be the neghbor to the east of the new A. Notng that T les on a path of predecessors from the orgnal pxel A back to x, we get T x T x k, else color k would have taken precedence over color. Together wth A x A x k, ths gves T x T x k, A x A x k. Snce U les n the trangle x AT but not on AT, the above two nequaltes mply U x U x k, as desred.

8 8 T. T. CAO, H. EDELSBRUNNER AND T. S. TAN Let us reflect on the recursve structure of the nductve argument. Cases 1.2 and 1.3 reduce to Case 1, but one pxel closer to the end along the path back to x. Smlarly, Case 2.2 reduces to Case 2, also one pxel closer to x. In contrast, Case 2.1 reduces to Case 1, wthout gettng closer to x. But ths reducton can happen only once throughout the recursve argument. We thus see that there s no cycle and each sequence of recursve arguments must end wth a contradcton. Ths completes the case analyss and shows that the uncolored pxels have lower prorty than the colored pxels throughout the algorthm. The clam follows. Recall the weak verson of the clam, namely that floodng colors the pxels n a regon F n the order of ther dstance from x. Ths mples that we can fnd a monotonc path from x to each pxel n F. We requre that all pxels have color and that the dstance to x does not decrease along the path. We get such a path to A by tracng backward, from A to a predecessor to a predecessor of the predecessor and so on. We summarze: MONOTONIC PATH LEMMA. For each A F, there s a monotonc path from x to A wthn the regon F. Necks. A neck s a par of dagonally adjacent pxels of the same color whose two common neghbors both have colors that are dfferent from that of the par. We clam that the colors of the two common neghbors are also dfferent from each other. In other words, a square of four pxels cannot have two necks. Ths property s useful because t mples that curves drawn wthn dfferent color regons do not cross. Contradctng two necks s easy for Eucldean colorng snce the bsector of the two seed ponts cannot separate the four pxel centers accordng to ther color. For floodng, we need a proof, whch we now present. ONE NECK LEMMA. Floodng produces a colorng n whch every square of four pxels has at most one neck. Proof. Label the four pxels A, B, U, and V. Assumng two necks, we have the algorthm color the dagonally adjacent pxels A and B wth and the other two dagonally adjacent pxels U and V wth k. Wthout loss of generalty, we may assume that A gets colored frst and that U gets colored before V. Usng the Ordered Colorng Lemma, the frst assumpton mples U x k U x and V x k V x, else U and V would be colored. Together wth A x U x k and A x V x k, ths constrans x to le wthn the rght-angled wedge defned by the bsectors of A and U and of A and V that contans A. Furthermore, we have A x B x and, by the second assumpton U x k V x k. The assumptons leave three possble sequences, whch we dscuss n two cases. CASE 1. U has receved ts color before B dd. Therefore, B x B x k, else B would be colored k. It follows that the perpendcular bsector of x and x k separates B from U and V. Specfcally, x and B le on one sde of the bsector and x k, U, A, V le on the other sde. But ths contradcts that x les nsde the rght-angled wedge descrbed above. CASE 2. B receved ts color before U dd. By the Ordered Colorng Lemma, we have B x U x k V x k. Together wth U x k U x and smlarly for V, ths mples that x les wthn the rght-angled wedge defned by the bsectors of B and U and of B and V that contans B. The ntersecton of ths wedge wth the earler defned wedge for A contans no nteger pont, a contradcton to the exstence of x. Ths excludes the fourth type of colorng of a 2-by-2 array n Fgure 2.2 as a result of floodng. In other words, there s at most one neck n any 2-by-2 array. Bulk. When we remove a pont from S, the Eucldean Vorono regon of a remanng pont ether stays the same or t grows. The same s true for the regons E obtaned by Eucldean colorng. Smlarly, t s true for the bulk of E. However, t s not necessarly true

9 PROOF OF CORRECTNESS OF THE DIGITAL DELAUNAY TRIANGULATION ALGORITHM 9 for the regons obtaned by floodng. We prove a weaker statement for them, namely that they contan the bulks of Eucldean colorng. It follows that the deleton of a seed pont can shrnk a regon only by debrs pxels, of whch there are generally few. BULK LEMMA. Each regon F constructed by floodng contans the bulk of E. Proof. We prove that the prefxes of the bulk of E obtaned by addng the pxels n order from x are connected. It follows that the pxels of the bulk are colored n ths same order and wth the same color. Let B,s contan the s pxels of the bulk of E closest to the seed pont. Thus {x } = B,1 B,2... B,m = B. Suppose not all of the prefxes are connected and let B,s = B,s 1 {A} be the frst that s not connected. Draw the lne that passes through A and x, as n Fgure 3.2. There are A x Fg. 3.2: The bulk of E after colorng the frst s pxels by floodng. neghbors of A on both sdes of the lne whose dstance from x s less than A x. On the other hand, A belongs to the bulk of E, whch s connected, so we can fnd a path wthn the bulk that connects A wth x. Drawng t from pxel center to pxel center wth straght edges n between, the path belongs to the Eucldean Vorono regon, V, by convexty. Hence, the regon bordered by the path and the straght segment from A to x belongs to V. Ths regon ncludes at least one neghbor B of A wth B x A x. Ths neghbor precedes A n the orderng of the pxels n the bulk of E and thus belongs to B,s, a contradcton to A beng separated from B,s Lassos Go Empty. In ths subsecton, we prove two techncal result about monotonc paths whch are nstrumental n provng the lemmas needed for the valdty of the dgtal Delaunay trangulaton. Lassos. We begn by constructng a dgtal analog of a straght lne. Gven an orented lne, a pxels belongs to the correspondng starcase f ts nteror ntersects the lne or ts boundary ntersects the lne and ts center les to the rght of the lne. Note that the orentaton of the lne nduces an orderng of the pxels along the lne. Gven a seed pont x and a pxel A colored, a lasso conssts of a monotonc path from x to A and the starcase from A back to x. We call x and A the base ponts and the lne orented from A to x the base lne of the lasso. The sze of the lasso s the dstance between the two base ponts. When we compare the szes of two lassos, we use the same te-breakng mechansm as for the pars of pxels.

10 10 T. T. CAO, H. EDELSBRUNNER AND T. S. TAN The lasso decomposes the plane nto two components, an nsde and an outsde. The nsde ncludes all pxels of the lasso. Whle the pxels n the monotonc path all have color, by defnton, the pxels n the starcase are not necessarly all of the same color. LASSO LEMMA. There s no seed pont nsde a lasso. Proof. To get a contradcton, assume the opposte. Let L be the smallest lasso that encloses one or more seed ponts, and let x and A be ts base ponts. Let x j be the enclosed seed pont that s furthest from the base lne; see Fgure 3.3. Consder the starcase defned by B L x l x k x j U V A x L k L l Fg. 3.3: The frst lasso conssts of a monotonc path from x to A and the starcase back to x. Insde the frst lasso, we see another seed pont, x j. The second lasso defned by x k and B encloses A. The thrd lasso defned by x l and U also encloses A. the lne that passes through x j and s orthogonal to the base lne of L. Traversng t from x j and movng away from the base lne, we let B be the frst pxel not colored j. Because of the choce of B on the starcase orthogonal to the base lne of L, we have B x j B x. It follows that B does not have color ether. Let k {, j} be the color of B. By the Monotonc Path Lemma, there s a monotonc path from x k to B. We do a case analyss n whch every possblty leads to a contradcton. It wll follow that x j cannot exst. CASE 1. x k and B le on opposte sdes of the lne parallel to the base lne of L that passes through x j. Then we get B x j B x k, contradctng that B has color k. CASE 2. x k and B le on the same sde of that lne, as n Fgure 3.3. By extremalty of the choce of x j, the seed pont x k cannot le nsde the lasso L. Let L k be the lasso consstng of a monotonc path from x k to B and the starcase from B back to x k. By the One Neck Lemma, the monotonc path cannot cross the path from x to A and therefore must cross the base lne of L. Hence L k encloses ether x or A. But we have B x k B x j B x, and by drawng a lne from x through B, we get a pxel on the path from x to A that s even further from x than B. It follows that B x A x. Hence, the sze of L k s less than the sze of L, and by extremalty of the choce of L, L k cannot enclose x. The only remanng possblty s that L k encloses A, as n Fgure 3.3. The fnal contradcton wll rest on the propertes of two partcular pxels whch we now descrbe. Traverse the starcase of L from A to x and let U be the frst pxel whose color s not. Let V be the predecessor of U n the starcase. Such pxels U and V exst because the starcase crosses the monotonc path from x k to B, where t has pxels colored k. However, we may reach U before crossng the path. Let l be the color of U. We have U colored before V ; otherwse, the colorng of V would result n puttng (U, ) nto the prorty queue, a contradcton

11 PROOF OF CORRECTNESS OF THE DIGITAL DELAUNAY TRIANGULATION ALGORITHM 11 to the Ordered Colorng Lemma. So we have U x l V x. Ths mples U x l A x. Let L l be a lasso wth base ponts x l and U. Because of the extremal choce of the frst lasso, L l cannot enclose any seed ponts. There are three cases to consder. CASE 2.1. l = k. Then L l encloses V. We also have U x k V x k, else V would have been colored k. But then we can draw a half-lne from x k through V and get a pxel on the path from x k to U whose dstance from x k exceeds U x k. Ths contradcts the monotoncty of the path. CASE 2.2. l k and x l and B are on opposte sdes of the lne parallel to the base lne of L that passes through x j. The lasso L l thus ether encloses x k or B. If t encloses B, t also encloses x j because the two pxels are connected by a pece of a starcase of color j l. As mentoned earler, L l cannot enclose a seed pont so we have a contradcton n ether case. CASE 2.3. l k and x l and B are on the same sde of the lne passng through x j. Avodng to enclose x, the only possblty for the monotonc path from x l to U s as shown n Fgure 3.3. Here we use U x l V x V x l. But V s enclosed by L l, so we can draw a drected lne from x l through V, as n Case 2.1. Ths gves a pxel on the path from x l to U whose dstance from x l exceeds U x l, agan a contradcton. Ths mples that x j does not exst, whch proves the clam. Splced lassos. We extend the lasso to a slghtly more elaborate constructon. Let x and x l be two dfferent seed ponts and A F, D F l two pxels. For the constructon, we requre that A and D are neghbors sharng a common sde or at least a common corner, but n the latter case the remanng two pxels sharng the same corner must have colors that are dfferent from each other. Drawng a monotonc path of color from x to A, another monotonc path of color l from x l to D, and the starcase between A and D, we get what we call a splced lasso. We refer to x and x l as ts base ponts and the connectng lne as ts base lne. Smlar to the lasso, a splced lasso decomposes the plane nto an nsde and an outsde. Another monotonc path cannot cross the splced paths. Indeed, the only weak pont s the corner at whch the two paths are splced, but because the adjacent pxels have dfferent colors, we cannot cross there ether. The only possblty to go from outsde to nsde the splced lasso s therefore to cross the base lne. SPLICED LASSO LEMMA. There s no seed pont nsde a splced lasso. Proof. Assume to the contrary that we have a splced lasso wth base ponts x and x l that encloses other seed ponts. Let x j be the seed pont that maxmzes the dstance from the base lne. Startng at x j, construct a pece of a starcase orthogonal to and movng away from the base lne. Let B be the frst pxel not colored j. As before, we argue that the color of B s k {, j, l} and we construct a lasso L k connectng x k to B and back. If x k and B le on opposte sdes of the lne passng through x j and parallel to the base lne of the splced lasso, then we get B x j B x k, contradctng the Ordered Colorng Lemma. On the other hand, f x k and B le on the same sde of the lne then the extremal choce of x j prohbts that x k be nsde the splced lasso. Hence L k encloses ether x or x l, contradctng the Lasso Lemma The Trangulaton s Vald. In ths subsecton, we use the two lasso lemmas to show that the dgtal Delaunay trangulaton s a vald soluton to our trangulaton problem. No crossng edges. Recall that E s the multset of edges dentfed when we dualze the dgtal Vorono dagram obtaned by floodng. We say two edges cross each other f the endponts of each le on opposte sdes of the lne spanned by the other. Here we requre mplctly that no three of the four endponts le on a common lne. In partcular, two copes

12 12 T. T. CAO, H. EDELSBRUNNER AND T. S. TAN of the same edge are not consdered to cross each other. NO CROSSING LEMMA. No two edges n E cross each other. Proof. Assume the opposte and let x x j and x p x q be two edges that cross. The four seed ponts thus form a convex quadrlateral whose dagonals are the two edges; see Fgure 3.4 on the left. Let A, B and C, D be the correspondng pxels n the two dgtal Vorono vertces dentfyng the two edges. Connectng x to A and x j to B by monotonc paths, we get a frst splced lasso, whch we denote as L j. Smlarly, we construct a second splced lasso, L pq. By the Splced Lasso Lemma, the two cannot enclose any seed ponts. Ths mples that the splced paths of L j cross the edge x p x q an odd number of tmes, and the splced paths of L pq cross x x j an odd number of tmes. But then the two paths must cross, whch s prohbted by the One Neck Lemma. x x q x k x p x j x x j Fg. 3.4: Left: the two edges cross and so do the two splced paths. Rght: one of the three lassos encloses a seed pont. Consstent orentaton. Recall that T s the multset of trangles n the dgtal Delaunay trangulaton. As we wll see shortly, T s n fact a set. The sequence of the three vertces of a trangle mples an orentaton, whch s ether clockwse or counterclockwse. Assumng x x j x k s n T, t has a dual dgtal Vorono vertex that contans three pxels colored, j, and k. By defnton of dgtal Vorono vertex, the color of the fourth pxel s dfferent from the color of the dagonally opposte pxel n the 2-by-2 array; see Fgure 2.2. We say the orentaton of x x j x k s consstent wth the three correspondng pxels f both are clockwse or both are counterclockwse. CONSISTENT ORIENTATION LEMMA. The orentaton of each trangle n T s consstent wth the orentaton of the correspondng pxels n the dual dgtal Vorono vertex. Proof. Let x x j x k be a trangle n T wth correspondng pxels A, B, C n the dual dgtal vertex. We connect x wth a monotonc path to A, x j to B, and x k to C; see Fgure 3.4 on the rght. To get a contradcton, we suppose the orentaton of x x j x k s not consstent wth that of ABC. In other words, the order n whch the three paths connect to the dgtal vertex s dfferent from the orentaton of x x j x k. On the other hand, f we connect x, x j, and x k wth straght lne segments to the vertex, we get a consstent order. Ths mples that one of the monotonc paths reaches around another seed pont, that s, the lasso defned by ts monotonc path and the straght lne segment encloses that seed pont, a contradcton to the Lasso Lemma. No nestng trangles. Usng the consstent orentaton between the trangles and the pxels n the dual dgtal Vorono vertces, we now show that no two trangles n T are nested. Ths ncludes the case n whch the two trangles are the same. NO NESTING LEMMA. No two trangles n T are nested or the same. Proof. Let x x j x k and x p x q x r be two trangles wth dfferent dual dgtal Vorono vertces. We frst consder the case n whch the second trangle has at least one new seed pont,

13 PROOF OF CORRECTNESS OF THE DIGITAL DELAUNAY TRIANGULATION ALGORITHM 13 x r {x, x j, x k }. To show that the trangles are not nested, t suffces to prove that x r does not le nsde the trangle x x j x k. As usual, we draw the monotonc paths from the seed ponts to the dual vertex; see Fgure 3.5 on the left. Splcng the paths n pars, we get three splced lassos. To complete the proof, we thnk of the nsdes of the three splced lassos as the projecton of the three faces of a tetrahedron bult on top of the trangle. Observe that the projectons cover the trangle. If x r les nsde the trangle then t s enclosed by one of the splced lassos, a contradcton to the Splced Lasso Lemma. x k x k x x j x x j Fg. 3.5: Left: the nsdes of the three splced lassos cover the trangle. Rght: Planar drawng of a complete bpartte graph. We consder second the case n whch the two trangles are the same. Of course, the dual dgtal Vorono vertces are dfferent. Connectng the seed ponts wth the dual vertces, we get a complete bpartte graph wth fve vertces and sx edges; see Fgure 3.5 on the rght. We may assume that the drawng of the graph s plane, that s, the paths do not cross. Indeed, two paths can only cross f they have the same color, and n ths case we can cut and splce the peces to remove the crossng. Now observe how the three seed ponts connect to the two Vorono vertces. If x, x j, and x k connect n a clockwse order to one vertex then they connect n a counterclockwse order to the other vertex. It follows that one of the two trangles contradcts the Consstent Orentaton Lemma. We have now completed the proof that the dgtal Delaunay trangulaton satsfed Condton III. It remans to prove that t has the rght topology, that s, t satsfes Condton II. Connectvty. If an edge n E belongs to three or more trangles then there are two that are nested, the same, or have crossng edges. Ths would contradct the No Crossng Lemma or the No Nestng Lemma, mplyng that each edge n E belongs to ether one or to two trangles n T. In the latter case, the two trangles le on opposte sdes of the edge. We argue that each edge belongs to exactly two trangles. In other words, there are no holes n the trangulaton. We begn by provng that each regon F s smply connected. In the plane ths s equvalent to beng connected and havng no holes. SIMPLY CONNECTEDNESS LEMMA. All dgtal Vorono regons constructed by floodng are smply connected. Proof. Suppose there s a regon F that s not smply connected. By constructon, F s connected, so we can splce two monotonc paths to form a loop gong around one of the holes. If possble, we do the splcng along a shared sde of two pxels. If ths s not possble, we splce the two paths at a shared pxel corner and recall from the One Neck Lemma that the other two pxels sharng that corner have colors dfferent from each other. The two splced paths both orgnate at the seed pont, so we have a splced lasso, one n whch the starcase conssts of a sngle pxel. Drawng the pece of a starcase emanatng from a presumed seed pont, x j, nsde the lasso away from that pxel, the proof of the Splced Lasso Lemma stll apples. It follows that the hole contans no seed ponts. But then the hole must be empty,

14 14 T. T. CAO, H. EDELSBRUNNER AND T. S. TAN else we could construct a monotonc path connectng the hole to the outsde. Wrte F for the set of sdes and corners shared between pxels n F and pxels not n F. We can orent the sdes so that F les locally to the left and the resultng curve s connected and goes around the regon n a counterclockwse order. Ths constructon s unambguous except n one mportant specal case. If F has a neck, there s a corner shared by four sdes. In ths case, we duplcate the corner and we connect the sdes n pars so that the curve does not cross the neck. Ths gves a cyclc sequence n whch each corner appears only once. Replacng every corner by the four pxels around t, we get a cyclc sequence of 2-by-2 arrays. Each such array contans at least one and at most three pxels from F. Snce every sde s ether vertcal or horzontal, any two contguous arrays overlap n exactly two pxels, one colored and the other j. As we walk along the sequence, the color j can only change when we pass through a dgtal Vorono vertex. Indeed, the only other array wth at least three dfferent colors s the neck, but t shares the color j wth both ts predecessor and ts successor along the sequence. Ths observaton allows us to nterpret the nformaton as we read along the sequence of arrays. Specfcally, the dgtal Vorono vertces decompose the cycle nto segments wthn whch the color j of the shared pxels s constant. It follows that two contguous dgtal Vorono vertces share one par of colors. In other words, the segment gves rse to two trangles sharng a common edge. It follows that each edge n E belongs to at least two trangles n T. Because of the No Nestng Lemma, ths number s at most two and therefore exactly two. Because the regons are smply connected, we get exactly one cycle of arrays for each F, whch mples that the trangles ncdent to a vertex x form a rng around the seed pont. Hence, the trangulaton has the topology of a 2-manfold. To conclude the argument, we use the Nerve Theorem [5, Secton III.2], whch apples because each regon s smply connected and t ntersects each other regon n a pont or a connected segment, f at all. Ths theorem mples that the trangulaton has the same homotopy type as the unon of regons. The outsde regon, F 0, complements the texture to form a 2-dmensonal sphere, so the only remanng possblty s that we have a trangulaton of the 2-sphere. Ths completes the proof that the dgtal Delaunay trangulaton satsfes Condton II and s therefore a vald soluton to our trangulaton problem. 4. Dscusson. The man contrbuton of ths paper s a proof that the dgtal Delaunay trangulaton has the geometrc and topologcal propertes we usually expect from a trangulaton n the plane: ts edges do not cross and after connectng the boundary to a dummy vertex at nfnty, we get a trangulaton of the 2-dmensonal sphere. We get these propertes f we dualze the collecton of dgtal Vorono regons colored by floodng. In contrast to colorng by Eucldean dstance to the seed ponts, floodng forms regons that are connected. We can therefore thnk of floodng as a method to remove the topologcal nose caused by the dgtal approxmaton of the real plane. The most nterestng next queston s the extenson of our correctness proof to 3-dmensonal voxel arrays.

15 PROOF OF CORRECTNESS OF THE DIGITAL DELAUNAY TRIANGULATION ALGORITHM 15 REFERENCES [1] T.-T. CAO, T.-S. TAN, G. RONG AND STEPHANUS, Implementng a two-dmensonal Delaunay trangulaton algorthm n GPU, Manuscrpt n preparaton, tants/delaunay2ddownload.html. [2] T.-T. CAO, K. TANG, A. MOHAMED AND T.-S. TAN, Parallel bandng algorthm to compute exact dstance transform wth the GPU, In Proc. Sympos. Interact. 3D Graphcs Games, 2010, to appear. [3] O. CUISENAIRE, Dstance Transformatons: Fast Algorthms and Applcatons to Medcal Image Processng, PhD. thess, Unv. Catholque de Louvan, Louvan-la-Neuve, Belgum, [4] P.-E. DANIELSSON, Eucldean dstance mapper, Comput. Graphcs Image Process. 14 (1980), pp [5] H. EDELSBRUNNER AND J. L. HARER, Computatonal Topology. An Introducton, Amer. Math. Soc., Provdence, Rhode Island, [6] S. FORTUNE, Vorono dagrams and Delaunay trangulatons, In Computng n Eucldean Geometry, vol. 1, eds. F. K. Hwang and D.-Z. Du, Lecture Notes Seres n Computng, World Scentfc, pp , [7] K. E. HOFF III, J. KEYSER, M. LIN, D. MANOCHA AND T. CULVER, Fast computaton of generalzed Vorono dagrams usng graphcs hardware, In Proc. 26th Ann. Conf. Comput. Graphcs Interact. Techn., 1999, pp [8] KHRONOS, OpenCL the open standard for parallel programmng of heterogeneous systems, khronos.org/opencl/, [9] NVIDIA, CUDA programmng gude, develop.html, [10] J. D. OWENS, D. LUEBKE, N. GOVINDARAJU, M. HARRIS, J. KRUGER, A. E. LEFOHN AND T. J. PUR- CELL, A survey of general-purpose computaton on graphcs hardware, Comput. Graphcs Forum 26 (2007), pp [11] G. RONG AND T.-S. TAN, Jump floodng n GPU wth applcatons to Vorono dagram and dstance transform, In Proc. Sympos. Interact. 3D Graphcs Games, 2006, pp [12] G. RONG, T.-S. TAN, T.-T. CAO, AND STEPHANUS, Computng two-dmensonal Delaunay trangulatons usng graphcs hardware, In Proc. Sympos. Interact. 3D Graphcs and Games, 2008, pp [13] J. SCHNEIDER, M. KRAUS AND R. WESTERMANN, GPU-based real-tme dscrete Eucldean dstance transforms wth precse error bounds, In Intern. Conf. Comput. Vson Theory Appl., 2009, pp [14] J. R. SHEWCHUK, em Trangle: engneerng a 2D qualty mesh generator and Delaunay trangulator, Appled Computatonal Geometry: Toward Geometrc Engneerng, eds. M. C. Ln and D. Manocha, Sprnger- Verlag, Lecture Notes n Computer Scences 1148, pp , [15] A. SUD, N. GOVINDARAJU, R. GAYLE AND D. MANOCHA, Interactve 3D dstance feld computaton usng lnear factorzaton, In Proc. Sympos. Interact. 3D Graphcs and Games, 2006, pp

16 16 T. T. CAO, H. EDELSBRUNNER AND T. S. TAN Appendx A. Overvew of proof steps. The proof conssts of three major steps, each consstng of a small number of lemmas. In Fgure A.1, we show the steps as three dashed boxes wth mplcatons n sequences; they correspond to Sectons 3.1, 3.2, and 3.3. Each smaller, shaded box s a lemma. The most mportant are the Dstance Separaton Lemma, whch encapsulates most of the dgtal geometry reasonng, and the Lasso Lemma, whch forms the prmary topologcal tool used to prove the rest. Ordered Colorng Monotonc Paths One Neck Bulk Lasso Splced Lasso Consstent Orentaton No Crossng Smply Connected No Nestng III II Fg. A.1: Steps n the proof and ther dependences. Appendx B. Notaton. Table B.1 provdes a lst of notaton used n ths paper. S = {x 1,..., x n } data set, seed ponts x x j, x x j x k edges, trangles A, B, C, U, V, Y 0 pxels V, E, F Eucldean, dgtal Vorono regons B bulk F,s, B,s, Q s regon, bulk, queue after s steps L, L j lasso, splced lasso S, E, T Delaunay vertces, edges, trangles Table B.1: Notaton for geometrc concepts, sets, functons, vectors, varables.

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

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

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

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

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

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

An Approach in Coloring Semi-Regular Tilings on the Hyperbolic Plane

An Approach in Coloring Semi-Regular Tilings on the Hyperbolic Plane An Approach n Colorng Sem-Regular Tlngs on the Hyperbolc Plane Ma Louse Antonette N De Las Peñas, mlp@mathscmathadmueduph Glenn R Lago, glago@yahoocom Math Department, Ateneo de Manla Unversty, Loyola

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

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

TN348: Openlab Module - Colocalization

TN348: Openlab Module - Colocalization TN348: Openlab Module - Colocalzaton Topc The Colocalzaton module provdes the faclty to vsualze and quantfy colocalzaton between pars of mages. The Colocalzaton wndow contans a prevew of the two mages

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

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

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

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

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

Accounting for the Use of Different Length Scale Factors in x, y and z Directions

Accounting for the Use of Different Length Scale Factors in x, y and z Directions 1 Accountng for the Use of Dfferent Length Scale Factors n x, y and z Drectons Taha Soch (taha.soch@kcl.ac.uk) Imagng Scences & Bomedcal Engneerng, Kng s College London, The Rayne Insttute, St Thomas Hosptal,

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

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

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

Brave New World Pseudocode Reference

Brave New World Pseudocode Reference Brave New World Pseudocode Reference Pseudocode s a way to descrbe how to accomplsh tasks usng basc steps lke those a computer mght perform. In ths week s lab, you'll see how a form of pseudocode can be

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

AP PHYSICS B 2008 SCORING GUIDELINES

AP PHYSICS B 2008 SCORING GUIDELINES AP PHYSICS B 2008 SCORING GUIDELINES General Notes About 2008 AP Physcs Scorng Gudelnes 1. The solutons contan the most common method of solvng the free-response questons and the allocaton of ponts for

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

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

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

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

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

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 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

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

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

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

VISUAL SELECTION OF SURFACE FEATURES DURING THEIR GEOMETRIC SIMULATION WITH THE HELP OF COMPUTER TECHNOLOGIES

VISUAL SELECTION OF SURFACE FEATURES DURING THEIR GEOMETRIC SIMULATION WITH THE HELP OF COMPUTER TECHNOLOGIES UbCC 2011, Volume 6, 5002981-x manuscrpts OPEN ACCES UbCC Journal ISSN 1992-8424 www.ubcc.org VISUAL SELECTION OF SURFACE FEATURES DURING THEIR GEOMETRIC SIMULATION WITH THE HELP OF COMPUTER TECHNOLOGIES

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

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

Improvement of Spatial Resolution Using BlockMatching Based Motion Estimation and Frame. Integration

Improvement of Spatial Resolution Using BlockMatching Based Motion Estimation and Frame. Integration Improvement of Spatal Resoluton Usng BlockMatchng Based Moton Estmaton and Frame Integraton Danya Suga and Takayuk Hamamoto Graduate School of Engneerng, Tokyo Unversty of Scence, 6-3-1, Nuku, Katsuska-ku,

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

Content Based Image Retrieval Using 2-D Discrete Wavelet with Texture Feature with Different Classifiers

Content Based Image Retrieval Using 2-D Discrete Wavelet with Texture Feature with Different Classifiers IOSR Journal of Electroncs and Communcaton Engneerng (IOSR-JECE) e-issn: 78-834,p- ISSN: 78-8735.Volume 9, Issue, Ver. IV (Mar - Apr. 04), PP 0-07 Content Based Image Retreval Usng -D Dscrete Wavelet wth

More information

REFRACTION. a. To study the refraction of light from plane surfaces. b. To determine the index of refraction for Acrylic and Water.

REFRACTION. a. To study the refraction of light from plane surfaces. b. To determine the index of refraction for Acrylic and Water. Purpose Theory REFRACTION a. To study the refracton of lght from plane surfaces. b. To determne the ndex of refracton for Acrylc and Water. When a ray of lght passes from one medum nto another one of dfferent

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

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

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

Quality Improvement Algorithm for Tetrahedral Mesh Based on Optimal Delaunay Triangulation

Quality Improvement Algorithm for Tetrahedral Mesh Based on Optimal Delaunay Triangulation Intellgent Informaton Management, 013, 5, 191-195 Publshed Onlne November 013 (http://www.scrp.org/journal/m) http://dx.do.org/10.36/m.013.5601 Qualty Improvement Algorthm for Tetrahedral Mesh Based on

More information

Scan Conversion & Shading

Scan Conversion & Shading Scan Converson & Shadng Thomas Funkhouser Prnceton Unversty C0S 426, Fall 1999 3D Renderng Ppelne (for drect llumnaton) 3D Prmtves 3D Modelng Coordnates Modelng Transformaton 3D World Coordnates Lghtng

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

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

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

Scan Conversion & Shading

Scan Conversion & Shading 1 3D Renderng Ppelne (for drect llumnaton) 2 Scan Converson & Shadng Adam Fnkelsten Prnceton Unversty C0S 426, Fall 2001 3DPrmtves 3D Modelng Coordnates Modelng Transformaton 3D World Coordnates Lghtng

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

Circuit Analysis I (ENGR 2405) Chapter 3 Method of Analysis Nodal(KCL) and Mesh(KVL)

Circuit Analysis I (ENGR 2405) Chapter 3 Method of Analysis Nodal(KCL) and Mesh(KVL) Crcut Analyss I (ENG 405) Chapter Method of Analyss Nodal(KCL) and Mesh(KVL) Nodal Analyss If nstead of focusng on the oltages of the crcut elements, one looks at the oltages at the nodes of the crcut,

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

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

AMath 483/583 Lecture 21 May 13, Notes: Notes: Jacobi iteration. Notes: Jacobi with OpenMP coarse grain

AMath 483/583 Lecture 21 May 13, Notes: Notes: Jacobi iteration. Notes: Jacobi with OpenMP coarse grain AMath 483/583 Lecture 21 May 13, 2011 Today: OpenMP and MPI versons of Jacob teraton Gauss-Sedel and SOR teratve methods Next week: More MPI Debuggng and totalvew GPU computng Read: Class notes and references

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

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

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

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

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

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

High-Boost Mesh Filtering for 3-D Shape Enhancement

High-Boost Mesh Filtering for 3-D Shape Enhancement Hgh-Boost Mesh Flterng for 3-D Shape Enhancement Hrokazu Yagou Λ Alexander Belyaev y Damng We z Λ y z ; ; Shape Modelng Laboratory, Unversty of Azu, Azu-Wakamatsu 965-8580 Japan y Computer Graphcs Group,

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

Lecture Note 08 EECS 4101/5101 Instructor: Andy Mirzaian. All Nearest Neighbors: The Lifting Method

Lecture Note 08 EECS 4101/5101 Instructor: Andy Mirzaian. All Nearest Neighbors: The Lifting Method Lecture Note 08 EECS 4101/5101 Instructor: Andy Mrzaan Introducton All Nearest Neghbors: The Lftng Method Suose we are gven aset P ={ 1, 2,..., n }of n onts n the lane. The gven coordnates of the -th ont

More information

Harvard University CS 101 Fall 2005, Shimon Schocken. Assembler. Elements of Computing Systems 1 Assembler (Ch. 6)

Harvard University CS 101 Fall 2005, Shimon Schocken. Assembler. Elements of Computing Systems 1 Assembler (Ch. 6) Harvard Unversty CS 101 Fall 2005, Shmon Schocken Assembler Elements of Computng Systems 1 Assembler (Ch. 6) Why care about assemblers? Because Assemblers employ some nfty trcks Assemblers are the frst

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

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

CS 534: Computer Vision Model Fitting

CS 534: Computer Vision Model Fitting CS 534: Computer Vson Model Fttng Sprng 004 Ahmed Elgammal Dept of Computer Scence CS 534 Model Fttng - 1 Outlnes Model fttng s mportant Least-squares fttng Maxmum lkelhood estmaton MAP estmaton Robust

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

USING GRAPHING SKILLS

USING GRAPHING SKILLS Name: BOLOGY: Date: _ Class: USNG GRAPHNG SKLLS NTRODUCTON: Recorded data can be plotted on a graph. A graph s a pctoral representaton of nformaton recorded n a data table. t s used to show a relatonshp

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

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

LOOP ANALYSIS. The second systematic technique to determine all currents and voltages in a circuit

LOOP ANALYSIS. The second systematic technique to determine all currents and voltages in a circuit LOOP ANALYSS The second systematic technique to determine all currents and voltages in a circuit T S DUAL TO NODE ANALYSS - T FRST DETERMNES ALL CURRENTS N A CRCUT AND THEN T USES OHM S LAW TO COMPUTE

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

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

Multiblock method for database generation in finite element programs

Multiblock method for database generation in finite element programs Proc. of the 9th WSEAS Int. Conf. on Mathematcal Methods and Computatonal Technques n Electrcal Engneerng, Arcachon, October 13-15, 2007 53 Multblock method for database generaton n fnte element programs

More information

Introduction to Geometrical Optics - a 2D ray tracing Excel model for spherical mirrors - Part 2

Introduction to Geometrical Optics - a 2D ray tracing Excel model for spherical mirrors - Part 2 Introducton to Geometrcal Optcs - a D ra tracng Ecel model for sphercal mrrors - Part b George ungu - Ths s a tutoral eplanng the creaton of an eact D ra tracng model for both sphercal concave and sphercal

More information

Cluster Analysis of Electrical Behavior

Cluster Analysis of Electrical Behavior Journal of Computer and Communcatons, 205, 3, 88-93 Publshed Onlne May 205 n ScRes. http://www.scrp.org/ournal/cc http://dx.do.org/0.4236/cc.205.350 Cluster Analyss of Electrcal Behavor Ln Lu Ln Lu, School

More information

FEATURE EXTRACTION. Dr. K.Vijayarekha. Associate Dean School of Electrical and Electronics Engineering SASTRA University, Thanjavur

FEATURE EXTRACTION. Dr. K.Vijayarekha. Associate Dean School of Electrical and Electronics Engineering SASTRA University, Thanjavur FEATURE EXTRACTION Dr. K.Vjayarekha Assocate Dean School of Electrcal and Electroncs Engneerng SASTRA Unversty, Thanjavur613 41 Jont Intatve of IITs and IISc Funded by MHRD Page 1 of 8 Table of Contents

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

Approximations for Steiner Trees with Minimum Number of Steiner Points

Approximations for Steiner Trees with Minimum Number of Steiner Points Journal of Global Optmzaton 18: 17 33, 000. 17 000 Kluwer Academc ublshers. rnted n the Netherlands. Approxmatons for Stener Trees wth Mnmum Number of Stener onts 1, 1,,,,3, DONGHUI CHEN *, DING-ZHU DU

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

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

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

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

Shape Representation Robust to the Sketching Order Using Distance Map and Direction Histogram

Shape Representation Robust to the Sketching Order Using Distance Map and Direction Histogram Shape Representaton Robust to the Sketchng Order Usng Dstance Map and Drecton Hstogram Department of Computer Scence Yonse Unversty Kwon Yun CONTENTS Revew Topc Proposed Method System Overvew Sketch Normalzaton

More information

NUMERICAL SOLVING OPTIMAL CONTROL PROBLEMS BY THE METHOD OF VARIATIONS

NUMERICAL SOLVING OPTIMAL CONTROL PROBLEMS BY THE METHOD OF VARIATIONS ARPN Journal of Engneerng and Appled Scences 006-017 Asan Research Publshng Network (ARPN). All rghts reserved. NUMERICAL SOLVING OPTIMAL CONTROL PROBLEMS BY THE METHOD OF VARIATIONS Igor Grgoryev, Svetlana

More information

Any Pair of 2D Curves Is Consistent with a 3D Symmetric Interpretation

Any Pair of 2D Curves Is Consistent with a 3D Symmetric Interpretation Symmetry 2011, 3, 365-388; do:10.3390/sym3020365 OPEN ACCESS symmetry ISSN 2073-8994 www.mdp.com/journal/symmetry Artcle Any Par of 2D Curves Is Consstent wth a 3D Symmetrc Interpretaton Tadamasa Sawada

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

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

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

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

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

Reading. 14. Subdivision curves. Recommended:

Reading. 14. Subdivision curves. Recommended: eadng ecommended: Stollntz, Deose, and Salesn. Wavelets for Computer Graphcs: heory and Applcatons, 996, secton 6.-6., A.5. 4. Subdvson curves Note: there s an error n Stollntz, et al., secton A.5. Equaton

More information

2D Raster Graphics. Integer grid Sequential (left-right, top-down) scan. Computer Graphics

2D Raster Graphics. Integer grid Sequential (left-right, top-down) scan. Computer Graphics 2D Graphcs 2D Raster Graphcs Integer grd Sequental (left-rght, top-down scan j Lne drawng A ver mportant operaton used frequentl, block dagrams, bar charts, engneerng drawng, archtecture plans, etc. curves

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

A PATTERN RECOGNITION APPROACH TO IMAGE SEGMENTATION

A PATTERN RECOGNITION APPROACH TO IMAGE SEGMENTATION 1 THE PUBLISHING HOUSE PROCEEDINGS OF THE ROMANIAN ACADEMY, Seres A, OF THE ROMANIAN ACADEMY Volume 4, Number 2/2003, pp.000-000 A PATTERN RECOGNITION APPROACH TO IMAGE SEGMENTATION Tudor BARBU Insttute

More information

Outline. Self-Organizing Maps (SOM) US Hebbian Learning, Cntd. The learning rule is Hebbian like:

Outline. Self-Organizing Maps (SOM) US Hebbian Learning, Cntd. The learning rule is Hebbian like: Self-Organzng Maps (SOM) Turgay İBRİKÇİ, PhD. Outlne Introducton Structures of SOM SOM Archtecture Neghborhoods SOM Algorthm Examples Summary 1 2 Unsupervsed Hebban Learnng US Hebban Learnng, Cntd 3 A

More information

Transaction-Consistent Global Checkpoints in a Distributed Database System

Transaction-Consistent Global Checkpoints in a Distributed Database System Proceedngs of the World Congress on Engneerng 2008 Vol I Transacton-Consstent Global Checkponts n a Dstrbuted Database System Jang Wu, D. Manvannan and Bhavan Thurasngham Abstract Checkpontng and rollback

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

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

On the Perspectives Opened by Right Angle Crossing Drawings

On the Perspectives Opened by Right Angle Crossing Drawings Journal of Graph Algorthms and Applcatons http://jgaa.nfo/ vol. 5, no., pp. 53 78 (20) On the Perspectves Opened by Rght Angle Crossng Drawngs Patrzo Angeln Luca Cttadn Guseppe D Battsta Walter Ddmo 2

More information