Lecture 24: Bezier Curves and Surfaces. thou shalt be near unto me Genesis 45:10

Size: px
Start display at page:

Download "Lecture 24: Bezier Curves and Surfaces. thou shalt be near unto me Genesis 45:10"

Transcription

1 Lecture 24: Bezier Curves ad Surfaces thou shalt be ear uto me Geesis 45:0. Iterpolatio ad Approximatio Freeform curves ad surfaces are smooth shapes ofte describig ma-made objects. The hood of a car, the hull of a ship, the fuselage of a airplae are all examples of freeform shapes. Freeform surfaces differ from the classical surfaces we ecoutered i earlier lectures such as spheres, cyliders, coes, ad tori. Classical surfaces are typically easy to describe with a few simple parameters. A sphere ca be represeted by a ceter poit ad a scalar radius; a coe by a vertex poit, a vertex agle, ad a axis vector. The hood of a car or the hull of a ship are ot so easy to describe with a few simple parameters. The goal of the ext few chapters is to develop mathematical techiques for describig freeform curves ad surfaces. Scietists ad egieers use freeform curves ad surfaces to iterpolate data ad to approximate shape. But iterpolatio ad approximatio are ot always compatible operatios. Cosider the data i Figure (a). If we use a low degree polyomial as i Figure (b) to iterpolate this data, the polyomial oscillates about the x-axis, eve though there are o such oscillatios i the data. Thus the shape of the iterpolatig polyomial does ot reflect the shape of the data. Moreover, eve providig more ad more data poits o the desired curve may ot elimiate these uwated oscillatios. (a) Data Poits (b) Polyomial Iterpolatio Figure : Polyomial iterpolatio. Notice that there are oscillatios i the iterpolatig polyomial curve, eve though there are o oscillatios i the origial data poits. The goal of approximatio is to capture the shape of a desired curve or surface from a few data poits without ecessarily iterpolatig the poits. Ulike iterpolatio, i approximatio the data poits themselves are ot sacred. Rather the data poits are cotrol poits; these poits cotrol the shape of the curve or surface ad ca be adjusted i order to provide a better represetatio of the desired shape. The curve i Figure 2(b) approximates the shape of the data i Figure 2(a), eve

2 though the curve does ot pass through all the data poits. The curve i Figure 2(b) is called a Bezier curve. Bezier curves have may practical applicatios, ragig from the desig of ew fots to the creatio of mechaical compoets ad assemblies for idustrial desig ad maufacture. The goal of this lecture is to develop some of the theory uderlyig Bezier curves ad surfaces. (a) Cotrol Poits (b) Bezier Approximatio Figure 2: Polyomial approximatio. A Bezier curve approximates the shape described by the cotrol poits, but the Bezier curve does ot iterpolate all the cotrol poits. The height of the curve ca be adjusted by chagig the height of the middle cotrol poit. Compare to Figure (b). 2. The de Casteljau Evaluatio Algorithm The easiest curve to represet with cotrol poits is a straight lie. Give two poits P 0,P, the lie P(t) joiig P 0 ad P ca be expressed parametrically by settig P(t) = P 0 + t(p P 0 ) = ( t) P 0 + tp. (2.) It is easy to check that P(t) represets a straight lie, ad that P(0) = P 0 ad P() = P. Thus the curve P(t) passes through the poit P 0 at time t = 0 ad through the poit P at time t =. Suppose, however, that you wat the straight lie to pass through the poit P 0 at time t = a ad through the poit P at time t = b. The mimickig Equatio (2.), you might write P(t) = ( f (t))p 0 + f (t)p (2.2) with the requiremet that f (a) = 0 ad f (b) =. (2.3) To fid a simple explicit expressio for the fuctio f (t), you would eed to fid the lie i the coordiate plae iterpolatig the data (a,0) ad (b,). Usig stadard techiques from aalytic geometry, you ca write the equatio of this lie as () f (t) = (b a), (2.4) ad you ca easily verify that f (a) = 0 ad f (b) =. Substitutig Equatio (2.4) ito Equatio 2

3 (2.2) yields P(t) = b a P 0 + b a P. (2.5) Equatio (2.5) is called liear iterpolatio because the curve P(t) iterpolates the poits P 0,P with a straight lie. You have ecoutered liear iterpolatio may times before i Computer Graphics; for example, Gouraud ad Phog shadig are both based o liear iterpolatio. Equatio (2.5) is so importat that we are goig to represet this equatio by a simple graph. I Figure 3(a) the cotrol poits P 0,P are placed i the two odes at the base of the diagram ad the coefficiets of the cotrol poits P 0,P i Equatio (2.5) are placed alog the arrows emaatig from these odes. The values i the odes are multiplied by the values alog the arrows; these products are the added ad the result is placed i the ode at the apex of the diagram. Thus Figure 3(a) is a graphical represetatio of Equatio (2.5). Figure 3(b) is the same as Figure 3(a), except that to avoid clutterig the diagram, we have removed the ormalizig costat b a i the deomiator of the fuctios alog the arrows. We ca easily retrieve this ormalizig costat, sice the deomiator is simply the sum of the umerators: b a = () + (). Thus we shall iterpret Figure 3(b) to mea Figure 3(a), which i tur is equivalet to Equatio (2.5). P(t) P(t) b t b a b a b t P 0 P P 0 P (a) Normalized (b) Uormalized Figure 3: Diagrams represetig the lie i Equatio (2.5). A Bezier curve is a curve geerated by a algorithm where the steps i Figure 3 are repeated over ad over agai. Figure 4(a) with three cotrol poits at the base represets a quadratic Bezier curve, ad Figure 4(b) with four cotrol poits at the base represets a cubic Bezier curve. The correspodig curves are illustrated i Figures 5(a) ad 5(b). The piecewise liear curve cosistig of the lies coectig the cotrol poits with cosecutive idices is called the cotrol polygo. Notice how the Bezier curves i Figure 5 mimic the shape of their cotrol polygos. This algorithm for geeratig Bezier curves is called the de Casteljau evaluatio algorithm. A curve geerated by the de Casteljau algorithm with + cotrol poits at the base is called a degree Bezier curve. Notice that i the de Casteljau algorithm all the left poitig arrows are labeled with the fuctio ad all the right poitig arrows are labeled with the fuctio. 3

4 B(t) P 0 P P 2 B(t) P 0 P P2 P 3 (a) Quadratic de Casteljau Algorithm (b) Cubic de Casteljau Algorithm Figure 4: The de Casteljau evaluatio algorithm for (a) a quadratic Bezier curve, ad for (b) a cubic Bezier curve. The label o each edge must be ormalized by dividig by b a. (a) Quadratic Bezier Curve (b) Cubic Bezier Curve Figure 5: A quadratic Bezier curve (left) ad a cubic Bezier curve (right). Notice how the shape of the Bezier curve (dark) mimics the shape of the cotrol polygo (light). Itermediate odes of the de Casteljau algorithm represet Bezier curves of lower degree. Thus the de Casteljau algorithm is a dyamic programmig procedure for computig poits o a Bezier curve. Usually, for reasos that will become clear i the ext sectio, Bezier curves are restricted to the parameter iterval [a, b] -- that is, usually we shall isist that a t b. Typically, we shall take a = 0 ad b =, though there are cases where we will eed to take other values for a,b. Notice that whe a = 0 ad b =, o ormalizatio is required because b a = 0 =. Sice each ode i the de Casteljau algorithm represets the equatio of a straight lie joiig the poits i the odes immediately below to the left ad the right, each ode symbolizes a poit o the lie segmet joiig the two poits whose arrows poit ito the ode. Drawig all these lie segmets geerates the trellis i Figure 6. 4

5 Figure 6: Geometric costructio algorithm for a poit o a cubic Bezier curve based o a geometric iterpretatio of the de Casteljau evaluatio algorithm. If the labels alog the edges i the de Casteljau algorithm are () ad (), the at the parameter t, each lie segmet i the trellis is split i the ratio ()/(). 3. The Berstei Represetatio Bezier curves are polyomial curves. The de Casteljau algorithm proceeds by addig ad multiplyig the liear fuctios ad (see Figure 4). But addig ad multiplyig polyomials geerates polyomials of higher degree. Therefore the de Casteljau algorithm geerates polyomial curves. We ca fid a explicit polyomial represetatio for Bezier curves. Let B(t) deote the Bezier curve with cotrol poits P 0,K,P. Sice B(t) is a degree polyomial curve, we could try to express B(t) relative to the stadard polyomial basis,t, t 2,K,t -- that is, we could ask: what are the costat coefficiets of the basis fuctios,t, t 2,K,t for the polyomial B(t)? Ufortuately, these coefficiets are umerically ustable, so i practice these values are ot very useful. A better, more isightful questio to ask is: what are the polyomial coefficiets of the cotrol poits P 0,K,P? Let B k (t) deote the coefficiet of the cotrol poit Pk i the fuctio B(t). From the de Casteljau algorithm (Figure 4) it is easy to see that B k (t) = the sum over all paths from Pk at the base to B(t) at the apex of the graph where a path = the product of all the labels alog the arrows i the path. Sice P k lies i the kth positio at the base of the diagram, to reach the apex a path must take exactly k left turs ad exactly k right turs. But each left poitig arrow carries the label 5

6 () / (b a) ad each right poitig arrow carries the label () / (b a). Therefore, all the paths from P k at the base to B(t) at the apex of the diagram geerate the same product, so where B k (t) = P(,k) () k () k (b a), P(,k) = the umber of paths from P k to B(t). To fid a closed formula for P(,k), observe that P(,k) satisfies the recurrece P(,k) = P(,k ) + P(,k), because the oly way to reach the kth positio o the th level is from either the (k ) st positio o the ( ) st level or from the kth positio o the ( ) st level (see Figure 7). Sice P(0,0) =, the values i Pascal s triagle (biomial coefficiets) ad the values i the path triagle are ( ) idetical: k so ad P(,k) start at the same value ad satisfy the same recurrece. Therefore P(,k) = ( k ) =! k!( k)!, B k (t) = ( k ) ()k () k (b a) k = 0,K,. 2 P(0, 0) P(, 0) P(,) P(2, 0) P(2,) P(2, 2) 3 3 N M O L ( ) L ( k ) k P(3, 0) P(3,) P(3, 2) P(3, 3) N M O P(,0) L P(,k ) P(,k) L P(, ) L L ( k ) (a) Pascal s Triagle L P(, k) L P(, 0) P(, ) (b) Paths Triagle Figure 7: Pascal s triagle ad the paths triagle start at the same value ad satisfy the same recurrece. Therefore P(,k) = k ( ). The fuctios B 0 (t),k, B (t) are called the Berstei basis fuctios. We shall show i Lecture 26 that the Berstei basis fuctios form a basis for the polyomials of degree ; every 6

7 polyomial of degree ca be expressed i terms of the Berstei basis fuctios. From this perspective, the cotrol poits P 0,K,P of a Bezier curve B(t) are simply the coefficiets of the Bezier curve relative to the Berstei basis B 0 (t),k, B (t) -- that is, B(t) = B k (t)pk k=0 B k (t) = ( k ) ()k () k (3.) (b a) k = 0,K,. Equatio (3.) is called the Berstei represetatio of the Bezier curve B(t). The Berstei basis fuctios B 0 (t),k, B (t) are also called bledig fuctios, sice these fuctios bled the discrete cotrol poits P 0,K,P to form a smooth curve. 4. Geometric Properties of Bezier Curves Bezier curves have the followig key geometric features: they are affie ivariat, lie i the covex hull of their cotrol poits, satisfy the variatio dimiishig property (that is, they do ot oscillate more tha their cotrol polygo), ad iterpolate their first ad last cotrol poits. There are two ways to derive these properties: either we ca appeal to the de Casteljau evaluatio algorithm or we ca ivoke the Berstei represetatio of a Bezier curve. Here we shall derive most of these properties simply by readig these attributes off the graph represetig the de Casteljau algorithm. For simplicity we shall typically illustrate our argumets o cubic Bezier curves, but our proofs are completely geeral ad apply to Bezier curves of arbitrary degree. Alterative proofs based o the Berstei represetatio of a Bezier curve are provided i Exercises 4-7 at the ed of this lecture. 4.. Affie Ivariace. A curve scheme is said to be affie ivariat if applyig a affie trasformatio to the cotrol poits trasforms every poit o the curve by the same affie trasformatio. For example, a curve scheme is traslatio ivariat if traslatig each cotrol poit by a vector v traslates the etire curve by the vector v. Traslatio ivariace is a easy cosequece of the de Casteljau algorithm. If we traslate each cotrol poit by the vector v, the each ode i the de Casteljau algorithm traslates by the same vector v because the coefficiets alog the two arrows eterig each ode sum to oe (see Figure 8). More geerally, a affie trasformatio ca be represeted by a affie matrix. If we multiply each cotrol poit by a affie trasformatio matrix M, the each ode i the de Casteljau algorithm is multiplied by the same trasformatio matrix M because matrix multiplicatio distributes through both additio ad scalar multiplicatio (see Figure 9). 7

8 v +v B(t)+ v + v +v + v P 0 + v P + v P 2 + v P 3 + v Figure 8: Traslatio ivariace. Traslatig each cotrol poit by a vector v traslates each poit o the curve by the same vector v. ( B(t),) M (P 0,) M (,) M (,) M (,) M (,) M (,) M (P,) M (P 2,) M (P 3,) M Figure 9: Affie ivariace. Trasformig each cotrol poit by a affie trasformatio matrix M trasforms every poit o the curve by the same affie trasformatio matrix M. Traslatio ivariace is equivalet to assertig that the curve is idepedet of the choice of the origi of the coordiate system. Affie ivariace isures that the curve is also idepedet of the choice of the coordiate axes. Both of these properties are essetial for a good approximatio scheme. I Computer Graphics a curve should be completely determied by its cotrol poits; durig desig we do ot wat to worry about the locatio of the coordiate origi or the orietatio of the coordiate axes. Bezier curves deped oly o their cotrol poits; the locatio of the coordiate origi ad the orietatio of the coordiate axes affect either the locatio or the shape of a Bezier curve. 4.2 Covex Hull Property. A set of poits S is said to be covex if wheever P ad Q are poits i S the etire lie segmet from P to Q lies withi S (see Figure 0). The itersectio S of a 8

9 collectio of covex sets {S i } is a covex set because if P ad Q are poits i S, they must also be poits i each of the sets S i. Sice, by assumptio, the sets S i are covex, the etire lie segmet from P to Q lies i each set S i. Hece the etire lie segmet from P to Q lies i the itersectio S, so S too is covex. P Q P Q (a) Covex Set (b) No-Covex Set Figure 0: I a covex set (a) the lie segmet joiig ay two poits i the set lies etirely withi the set. I a o-covex set (b) part of the lie segmet joiig two poits i the set may lie outside the set. The covex hull of a collectio of poits {P k } is the itersectio of all the covex sets cotaiig the poits {P k }. Sice the itersectio of covex sets is a covex set, the covex hull is the smallest covex set cotaiig the poits {P k }. For two poits, the covex hull is the lie segmet joiig the poits. For three o-colliear poits, the covex hull is the triagle whose vertices are the three poits. The covex hull of a fiite collectio of poits i the plae ca be foud mechaically by placig a ail at each poit, stretchig a rubber bad so that its iterior cotais all the ails, ad the releasig the rubber bad. Whe the rubber bad comes to rest o the ails, the iterior of the rubber bad is the covex hull of the poits. Bezier curves always lie i the covex hull of their cotrol poits. Oce agai we ca prove this assertio directly from the de Casteljau algorithm. First recall that, by covetio, we always restrict the Bezier curve to the parameter iterval [a,b]. With this covetio, the poits o the first level of the de Casteljau algorithm certaily lie i the covex hull of the cotrol poits o the zeroth level because, by costructio, the poits o the first level lie o the lie segmets joiig adjacet cotrol poits (see Figure 6). For the same reaso, the poits o the ( +) st level of the de Casteljau algorithm lie i the covex hull of the poits o the th level of the de Casteljau algorithm. Hece, by iductio, the poit at the apex of the de Casteljau algorithm lies i the covex hull of the cotrol poits at the base of the de Casteljau algorithm. Thus each poit o a Bezier curve lies i the covex hull of the cotrol poits. 9

10 The covex hull property is importat i Computer Graphics because the covex hull property guaratees that if all the cotrol poits are visible o the graphics termial, the the etire curve is visible as well. The restrictio a t b o the parameter t is there precisely to guaratee the covex hull property. 4.3 Variatio Dimiishig Property. Ituitively, a curve is said to be variatio dimiishig if the curve does ot oscillate more tha its cotrol poits. I Sectio, we observed that iterpolatig polyomials may oscillate eve if the data does ot (see Figure ). We abadoed iterpolatio i favor of approximatio precisely i order to avoid uecessary oscillatios. Therefore we eed to be sure that Bezier curves are variatio dimiishig. But how do we measure oscillatios? I Figure we cosidered oscillatios with respect to the x-axis. The oscillatios of the curve i Figure are liked to the umber of times this curve crosses the x-axis. But i affie ivariat schemes, there is othig special about the x-axis; ay lie will do. Therefore we say that a curve is variatio dimiishig if the umber of itersectios of the curve with each lie i the plae (or each plae i 3-space) is less tha or equal to the umber of itersectios of the lie (or the plae) with the cotrol polygo (see Figure ). I this defiitio, we igore lies that coicide with a edge of the cotrol polygo. (a) Variatio Dimiishig (b) Not Variatio Dimiishig Figure. (a) A variatio dimiishig curve. A arbitrary lie L itersects both the curve ad the cotrol polygo twice. (b) A curve that is ot variatio dimiishig. The lie L itersects the curve three times, but the cotrol polygo oly twice. Bezier curves are ideed variatio dimiishig, but it is ot so clear how to derive this fact from the de Casteljau evaluatio algorithm. Therefore, we shall defer our proof of the variatio dimiishig property for Bezier curves till Lecture 25, where we shall derive the variatio dimiishig property for Bezier curves from de Casteljau s subdivisio algorithm. 0

11 Iterpolatio of the First ad Last Cotrol Poits. Bezier curves do ot geerally iterpolate all their cotrol poits. But Bezier curves always iterpolate their first ad last cotrol poits. I fact, if B(t) represets the Bezier curve over the iterval [a,b] with cotrol poits P 0,...,P, the B(a) = P 0 ad B(b) = P. Thus B(t) starts at the iitial cotrol poit P 0 ad eds at the fial cotrol poit P. As usual, we ca establish these results by examiig the de Casteljau algorithm. If we set t = a i de the Casteljau algorithm, the all the right poitig arrows become oe ad all the left poitig arrows become zero (see Figure 2(a)). Now if we follow the de Casteljau algorithm from the base to the apex, the P 0 appears at each ode alog the left edge of the diagram. Therefore at the apex, B(a) = P 0. Similarly, if we set t = b i de the Casteljau algorithm, the all the right poitig arrows become zero ad all the left poitig arrows become oe (see Figure 2(b)). Now if we follow the algorithm from the base to the apex, the P appears at each ode alog the right edge of the diagram. Therefore at the apex, B(b) = P. Iterpolatio at the ed poits is importat because we ofte wat to coect two Bezier curves. To isure that two Bezier curves joi at their ed poits, all we eed to do is to make sure that the iitial cotrol poit of the secod curve is the same as the fial cotrol poit of the first curve. This device guaratees cotiuity. I the ext sectio, we shall develop techiques for guarateeig higher order smoothess betwee adjacet Bezier curves, but before we ca perform this aalysis we eed to kow how to compute the derivative of a Bezier curve. P 0 0 P 3 0 P 0 0 P 0 0 P 2 0 P 3 P 0 P 0 0 P P P P 2 P 3 P 0 P 0 0 P 2 P 3 0 P P 2 P 3 (a) B(a) = P 0 (b) B(b) = P 3 Figure 2: Iterpolatio of the first ad last cotrol poits: B(a) = P 0 ad B(b) = P Differetiatig the de Casteljau Algorithm We ca compute the derivative of a Bezier curve directly from its Berstei represetatio. Let B(t) be a Bezier curve with cotrol poits P 0,K,P. Recall from Equatio (3.) that

12 0 2 where Thus B(t) = B k (t)pk k=0 B k (t) = ( k ) ()k () k (b a) k = 0,K,. B (t) = db k (t) P dt k. (5.) k=0 Therefore to compute the derivative of a Bezier curve, we eed oly differetiate the Berstei basis fuctios B k (t), k = 0,K,. But it follows easily from the product rule that (see Exercise 8) db k (t) dt = B k (t) Bk (t) b a. (5.2) Isertig Equatio (5.2) ito Equatio (5.) ad collectig the coefficiets of B k (t) yields B P (t) = B k (t) k+ P k. (5.3) k=0 b a Thus the derivative of the degree Berstei polyomial with coefficiets P 0,K,P is times the Berstei polyomial of degree with coefficiets P P 0 b a,k, P P. b a Oe importat cosequece of this observatio is that we ca compute the derivative of a Bezier curve usig the de Casteljau algorithm: Simply place the coefficiets P P 0 b a,k, P P b a at the base of the diagram, ru levels of the algorithm, ad multiply the output by (see Figure 3). B (t) = 3 _ P P 0 b a P 2 P b a P 3 P 2 b a Figure 3: The derivative of a cubic Bezier curve with cotrol poits {P k } is, up to a costat P multiple, a quadratic Berstei polyomial with coefficiets k+ P k b a. 2

13 0 2 We ca also compute the derivative of a Bezier curve by differetiatig the de Casteljau algorithm. Differetiatig the de Casteljau algorithm for a degree Bezier curve is actually quite easy: simply differetiate the labels -- that is, replace ad -- o the first level of the de Casteljau algorithm ad multiply the output by (see Figure 4). The validity of this differetiatio algorithm follows directly from Equatio (5.3) because if we differetiate the labels o the first level ad ru the algorithm, the the values i the odes o the first level become P P 0 b a,k, P P (remember the ormalizig factor of b a i the deomiator of every b a label), so the result of the algorithm is exactly the Berstei polyomial of degree with coefficiets P P 0 b a,k, P P. b a B (t) = 3 _ P 0 P P 2 P 3 Figure 4: Computig the first derivative of a cubic Bezier curve with cotrol poits P 0,P, P 2,P 3 by differetiatig the labels o the first level of the de Casteljau algorithm. To get the correct derivative B (t), we must multiply the output of this algorithm by = 3 ad we must remember to ormalize the labels o each arrow -- eve the costats alog the arrows o the first level -- by dividig by b a. Compare to Figure 3. I geeral, up to a costat multiple, the derivative of a Bezier curve with cotrol poits {P k } is a Berstei polyomial of oe lower degree with cotrol vectors P k+ P k b a. Therefore, by iductio, we ca express the kth derivative of a degree Bezier curve as a Berstei polyomial of degree k. Moreover, to compute the kth derivative of a Bezier curve, we ca simply differetiate the labels o the first k levels the de Casteljau algorithm ad multiply the output by Figure 5).! ( k)! (see 3

14 0 2 B (t) = 6 _ P 0 P P 2 P 3 Figure 5: Computig the secod derivative of a cubic Bezier curve by differetiatig the labels o the bottom two levels of the de Casteljau algorithm. Here to get the correct secod derivative B (t), we must multiply the output of this algorithm by 6 = 3 2. Also, as i Figure 4, we must remember to ormalize the labels alog all the arrows, eve the costats alog the arrows o the bottom two levels, by dividig by b a. 5. Smoothly Joiig Two Bezier Curves. We prefaced our discussio of differetiatio by sayig that we wated to be able to joi two Bezier curves together smoothly. To do so, we eed to calculate the derivatives at their ed poits. Let B(t) be a Bezier curve with cotrol poits P 0,K,P. Substitutig t = a or t = b ito the differetiatio algorithm ad recallig the iterpolatio property at the ed poits, we see that: B(a) = P 0 B(b) = P B (a) = (P P 0 ) / (b a) B (b) = (P P ) / (b a) B (a) = ( )(P 2 2P + P 0 ) / (b a) 2 B (b) = ( )(P 2P + P 2 ) / (b a) 2 I geeral, it follows by iductio o k that the kth derivative at t = a depeds oly o the first k + cotrol poits, ad the kth derivative at t = b depeds oly o the last k + cotrol poits. Suppose the that we are give a Bezier curve P(t) with cotrol poits P 0,K,P ad we wat to costruct aother Bezier curve Q(t) with cotrol poits Q 0,K,Q so that Q(t) meets P(t) ad matches the first r derivatives of P(t) at its ed poit. From the results i the previous paragraph, we fid that the cotrol poits Q 0,K,Q must satisfy the followig costraits: r = 0 : Q 0 = P r = : Q Q 0 = P P Q = P + (P P ) r = 2 : Q 2 2Q + Q 0 = P 2P + P 2 Q 2 = P 2 + 4(P P ) ad so o for higher values of r. Each additioal derivative allows us to solve for oe additioal cotrol poit. Clearly we could go o i this maer solvig for oe cotrol poit at a time. A 4

15 alterative approach for fidig a explicit formula for the cotrol poits {Q k } that avoids all this tedious computatio will be preseted i Lecture 25. Figure 6 illustrates two cubic Bezier curves that meet with matchig first derivatives at their joi. Figure 6: Two cubic Bezier curves -- oe with cotrol poits P 0,P,P 2,P 3 ad the other with cotrol poits Q 0,Q,Q 2,Q 3 -- that meet with matchig first derivatives at their joi. Here Q 0 = P 3 ad Q Q 0 = P 3 P Uiqueess of the Bezier Cotrol Poits. Aother cosequece of the differetiatio algorithm for Bezier curves is the uiqueess of the Bezier cotrol poits of a degree Bezier curve over a fixed parameter iterval. For suppose that P 0,K,P ad P 0,K,P are two distict sets of cotrol poits for the Bezier curve B(t) over the parameter iterval [a,b]. Substitutig t = a ito the differetiatio algorithm ad recallig the iterpolatio property at the ed poits, we have the followig formulas for the derivatives of B(t) at t = a i terms of P 0,K,P ad P 0,K,P : B(a) = P 0 B(a) = P 0 B (a) = (P P 0 ) / (b a) B (a) = (P P0 ) / (b a) B (a) = ( )(P 2 2P + P 0 ) / (b a) 2 B (a) = ( )(P 2 2P + P0 ) / (b a) 2 ad so o up to the th derivative B () (a). I geeral, it follows by iductio o k that B (k) (a) depeds oly o the first k + cotrol poits P 0,K,P k or P 0,K,Pk, ad the formulas for these derivatives are idetical with respect to P 0,K,P k ad P 0,K,Pk. From the formula for the zeroth derivative, we coclude that P 0 = P0 ; from this result ad the formula for the first derivative we coclude that P = P, ad so o. Thus from the formulas for first derivatives, we coclude that P k = Pk, k = 0,K,. Hece the cotrol poits of a degree Bezier curve over a fixed parameter iterval are uique. 5

16 6. Tesor Product Bezier Patches Bezier techology -- the de Casteljau algorithm ad Berstei polyomials -- ca be used to create surfaces as well as curves. A tesor product Bezier patch B(s,t) is a rectagular parametric surface patch -- the image of a plaar rectagular domai [a,b] [c, d] -- that approximates the shape of a rectagular array of cotrol poits {P ij }, i = 0,K,m, j = 0,K,. Coectig cotrol poits with adjacet idices by straight lies geerates a cotrol polyhedro that cotrols the shape of the Bezier patch i much the same way that a Bezier cotrol polygo cotrols the shape of a Bezier curve (see Figures 7). I particular, draggig a cotrol poit pulls the surface patch i the same geeral directio as the cotrol poit. Figure 7: A tesor product Bezier surface with its cotrol polyhedro, formed by coectig cotrol poits with adjacet idices. To costruct a tesor product Bezier patch B(s,t) from a rectagular array of cotrol poits {P ij }, i = 0,K,m, j = 0,K,, let P i (t) be the Bezier curve with cotrol poits P i,0,k,p i,. For each fixed value of t, let B(s,t) be the Bezier curve for the cotrol poits P 0 (t),k, P m (t). The as s varies from a to b ad t varies from c to d, the curves B(s,t) sweep out a surface (see Figures 8,9). This surface is called a tesor product Bezier patch of bidegree (m, ). This costructio suggests the followig evaluatio algorithm for tesor product Bezier patches: first use the de Casteljau algorithm m + times to compute the poits at the parameter t alog the degree Bezier curves P 0 (t),..., P m (t) ; the use the de Casteljau algorithm oe more time to compute the poit at the parameter s alog the degree m Bezier curve with cotrol poits P 0 (t),..., P m (t) (see Figure 20). 6

17 P 3 P 23 P 33 P 03 P 2 P 22 P 02 P 0 P 0 (t) P 00 P P 0 B(s, t) P 2 (t) P (t ) P 2 P 20 P 30 P 3 (t ) Figure 8: Costructio of poits o a bicubic tesor product Bezier surface B(s, t). First the Bezier curves P i (t), i = 0,..., 3 are costructed from the cotrol poits P i0, P i, P i2, P i3. The for a fixed value of t, the Bezier curve B(s, t) is costructed usig the poits P 0 (t), P (t), P 2 (t), P 3 (t) as cotrol poits. As s varies from a to b ad t varies from c to d, these curves sweep out a surface patch -- see Figure 9. P 32 P 3 Figure 9: The bicubic Bezier patch i Figure 7 alog with its cubic Bezier cotrol curves P 0 (t),...,p 3 (t). Notice that oly the boudary cotrol curves are iterpolated by the surface. 7

18 B(s,t) b s s a b s s a b s s a d t P 0 (t) P (t) P 2 (t) d t d t d t d t d t d t d t d t P 00 P 0 P 02 P 0 P P2 P 20 P 2 P 22 Figure 20: The de Casteljau evaluatio algorithm for a biquadratic Bezier patch. The three lower triagles represet Bezier curves i the t directio; the upper triagle bleds these curves i the s directio. d t B (s,t) d t d t b s P 0 (s) P (s) P 2 (s) s a b s s a b s s a b s s a b s s a b s s a b s s a b s s a b s s a P 00 P 0 P 20 P 0 P P2 P 02 P 2 P 22 Figure 2: A alterative versio of the de Casteljau evaluatio algorithm for a biquadratic Bezier patch with the same cotrol poits as i Figure 20. The three lower triagles represet Bezier curves i the s directio, ad the upper triagle bleds these curves i the t directio. Compare to Figure 20. 8

19 Alteratively, istead of startig with the Bezier curves P 0 (t),k, P m (t), we could begi with the Bezier curves P 0 (s),k,p (s), where Pj (s) is the degree m Bezier curve with cotrol poits P 0, j,k,p m, j. Now for each fixed value of s, let B (s,t) be the Bezier curve for the cotrol poits P 0 (s),k,p (s). Agai as s varies from a to b ad t varies from c to d, the curves B (s,t) sweep out a surface, ad we ca use the de Casteljau algorithm to evaluate poits alog this surface (see Figure 2). The surface B (s,t) is exactly the same as the surface B(s,t) because both of these surfaces have the same Berstei represetatio. To compute the Berstei represetatio of the Bezier patch B(s,t), recall that for a fixed value of t, B(s,t) is the Bezier curve with cotrol poits P 0 (t),..., P m (t). Therefore m m B(s,t) = B i (s)pi (t). (6.) i=0 Moreover, P i (t) is the Bezier curve with cotrol poits P i,0,k,p i,, so P i (t) = B j (t) Pi, j. (6.2) j=0 Substitutig Equatio (6.2) ito Equatio (6.) yields the Berstei represetatio m m B(s,t) = B i (s)b j (t)pi, j. (6.3) i=0 j=0 Similarly, B (s,t) = B j (t)pj (s) (6.4) j=0 where m P j (s) = m Bi (s)pi, j, (6.5) i=0 so B m m (s,t) = B i (s)b j (t)pi, j. (6.6) j=0 i=0 Hece B (s,t) = B(s,t) Thus it does ot matter which versio of the de Casteljau algorithm we apply; both costructios geerate the same surface. However, if m <, the the de Casteljau algorithm for B(s,t) is more efficiet, whereas if < m the the de Casteljau algorithm for B (s,t) is more efficiet. 9

20 0 2 2 Tesor product Bezier patches iherit may of the characteristic properties of Bezier curves: they are affie ivariat, lie i the covex hull of their cotrol poits, ad iterpolate their corer cotrol poits (see Exercises 2,3). These properties follow easily from the de Casteljau algorithm for Bezier patches (Figures 20, 2) ad the correspodig properties of Bezier curves. Moreover the boudaries of a tesor product Bezier patch are the Bezier curves determied by their boudary cotrol poits, sice B(a,t) = P 0 (t) B(s,c) = P ad 0 (s) B(b,t) = P m (t) B(s,d) = P (s). It follows that although tesor product Bezier patches do ot geerally iterpolate their cotrol poits, they always iterpolate the four corer cotrol poits P 00,P m0, P 0,P m. There is o kow aalogue of the variatio dimiishig property for tesor product Bezier patches. Thus although Bezier patches typically follow the shape of their cotrol polyhedra, there is o theorem which guaratees that Bezier surfaces do ot oscillate more tha their cotrol poits. To compute the partial derivatives of a Bezier patch, we ca apply our procedure for differetiatig the de Casteljau algorithm for Bezier curves. Cosider Figure 20. We ca compute B / t simply by differetiatig the de Casteljau algorithm for each of the Bezier curves P 0 (t),k, P m (t) at the base of the diagram. Similarly, we ca compute B / s by differetiatig the first upper s level of the diagram ad multiplyig the result by the degree i s (see Figure 22). Symmetric results hold for differetiatig the algorithm i Figure 2: simply reverse the roles of s ad t. The ormal vector N to a Bezier patch B(s,t) is give by settig N = B s B t. b s P 0 (t) b s B t s a b s s a s a P (t ) P 2 (t) 0 P 0 (t) b s B s = 2 _ P (t ) s a P 2 (t) Figure 22: Computig the partial derivatives of a biquadratic Bezier patch by applyig the procedure for differetiatig the de Casteljau algorithm for Bezier curves. To fid B / t (left) simply differetiate the de Casteljau algorithm for each of the Bezier curves P 0 (t), P (t), P 2 (t). To fid B / s (right) simply differetiate the first level of the de Casteljau algorithm i s ad multiply the result by the degree i s. 20

21 Summary The fudametal algorithm for Bezier curves ad surfaces is the de Casteljau evaluatio algorithm, a algorithm based o repeated liear iterpolatio (Figure 23(a)). The decompositio of evaluatio ito successive idetical liear iterpolatio steps makes the evaluatio algorithm easy to differetiate (Figure 23(b)), allowig us to compute derivatives as well as poits alog a Bezier curve usig a variat of the de Casteljau algorithm. We applied the differetiatio algorithm to derive costraits o the cotrol poits to guaratee that two Bezier curves meet smoothly at their joi. We also used the differetiatio algorithm to establish the uiqueess of the degree Bezier cotrol poits over a fixed parameter iterval. b t b t B(t) b t b t b t P 0 P P2 P 3 b t B (t ) = 3 _ b t P 0 P P2 P 3 (a) Evaluatio (b) Differetiatio Figure 23: The de Casteljau algorithm for (a) evaluatio ad (b) differetiatio. The Berstei represetatio provides a alterative explicit polyomial represetatio for Bezier curves. If B(t) is the Bezier curve over the iterval [a,b] with cotrol poits P 0,K,P, the the Berstei represetatio is give by settig B(t) = B k (t)pk a t b k=0 B k (t) = k ( ) ()k () k (b a) k = 0,K,. Bezier curves have the followig importat geometric properties:. Affie Ivariace 2. Covex Hull Property 3. Variatio Dimiishig Property 4. Iterpolate their First ad Last Cotrol Poits Tesor product Bezier patches are a extesio of the Bezier represetatio from curves to surfaces. Bezier patches ca be evaluated either by extedig the de Casteljau algorithm to surfaces (Figure 24) or by ivokig the Berstei represetatio i two variables (Equatio 7.2)). 2 (7.)

22 B(s,t) b s s a b s s a b s s a d t P 0 (t) P (t) P 2 (t) d t d t d t d t d t d t d t d t P 00 P 0 P 02 P 0 P P2 P 20 P 2 P 22 Figure 24: The de Casteljau evaluatio algorithm for a biquadratic Bezier patch. The three lower triagles represet Bezier curves i the t directio; the upper triagle bleds these curves i the s directio. The Berstei represetatio of a tesor product Bezier surface B(s,t) of bidegree (m, ) with cotrol poits {P ij } ad domai [a,b] [c, d] is give by m m B(s,t) = B i (s)b j (t)pi, j. (7.2) i=0 j=0 where B i m (s),b j (t) are the Berstei basis fuctios over the itervals [a,b] ad [c, d]. Bezier patches are affie ivariat, lie i the covex hull of their cotrol poits, ad iterpolate the boudary Bezier curves defied by their boudary cotrol poits. There is, however, o kow aalogue of the variatio dimiishig property for Bezier surfaces. Exercises:. Give a example to show that Bezier curves deped o the order of their cotrol poits P 0,..., P -- that is, if we chage the order but ot the locatio of the cotrol poits, we may geerate a differet Bezier curve. 2. Prove that the Bezier curve for the cotrol poits P,...,P 0 is the same as the Bezier curve with the cotrol poits P 0,..., P but with opposite orietatio. 22

23 3. Show that a Bezier curve collapses to a sigle poit P if ad oly if all the Bezier cotrol poits are located at P. 4. Cosider the Berstei basis fuctios B k (t) = ( k ) ()k () k (b a) k = 0,K,. Show that: a. B k (t) k=0 b. 0 B k (t) for a t b c. B k (a) =δk,0 ad B k (b) = δk, 5. Usig the results i Exercise 4, show that: a. Bezier curves are traslatio ivariat. b. Bezier curves iterpolate their first ad last cotrol poits. 6. Prove that CovexHull( P 0,K,P )= c k P k c k ad c k 0 k=0 k=0. 7. Usig the results of Exercises 4 ad 6, show that Bezier curves lie i the covex hull of their cotrol poits. 8. Cosider a Bezier curve B(t) = B k (t)pk k=0 where B k (t) = ( k ) ()k () k (b a) k = 0,K, are the Berstei basis fuctios. Show that: a db k (t) dt = B k (t) Bk (t) b a. b. B (t) = P B k (t) k+ P k. k=0 b a 23

24 9. Let P i 0 Li (t) deote the degree polyomial curve that iterpolates the cotrol poits P i 0,...,P i at the parameter values t i0,...,t i -- that is, P i 0 Li (t ik ) = P ik, k = 0,K,. Show that: a. P 0 (t) = t t t t 0 P 0 + t t 0 t t 0 P b. P 02 (t) ad P 023 (t) ca be built usig the dyamic programmig algorithm (Neville s algorithm) preseted i Figure 25. c. Explai how to exted the dyamic programmig algorithm i Figure 25 to P 0L (t). P 023 (t) t 3 t t t 0 P 02 (t) P 02 (t) P 23 (t) t 2 t t t 0 t 2 t t t 0 t 3 t t t t t P 0 (t) t t 0 t 2 t P 2 (t) t t P 0 (t) t t t t 0 t 2 t P 2 (t) t t t 3 t P 23 (t) t t 2 P 0 P P 2 P 0 P P2 P 3 Figure 25: Neville s algorithm for computig poits o the polyomial curve that iterpolates the poits at the base of the diagram. The value at each ode must be ormalized i the usual maer by dividig by the sum of the labels alog the arrows that eter the ode. 0. Cosider a Bezier curve with cotrol poits P 0,...,P. Show that: a. the lie segmet P 0 P is taget to the curve at P 0 ; b. the lie segmet P P is taget to the curve at P.. Give poit ad derivative data (R 0,v 0 ),...,(R,v ), explai how to place Bezier cotrol poits to geerate a smooth piecewise cubic curve to iterpolate this data. 2. Show that tesor product Bezier patches a. are affie ivariat; b. lie i the covex hull of their cotrol poits. 3. Show that every tesor product Bezier patch iterpolates a. the four Bezier curves defied by the boudary cotrol poits; b. the four corer cotrol poits. 24

Bezier curves. Figure 2 shows cubic Bezier curves for various control points. In a Bezier curve, only

Bezier curves. Figure 2 shows cubic Bezier curves for various control points. In a Bezier curve, only Edited: Yeh-Liag Hsu (998--; recommeded: Yeh-Liag Hsu (--9; last updated: Yeh-Liag Hsu (9--7. Note: This is the course material for ME55 Geometric modelig ad computer graphics, Yua Ze Uiversity. art of

More information

Convex hull ( 凸殻 ) property

Convex hull ( 凸殻 ) property Covex hull ( 凸殻 ) property The covex hull of a set of poits S i dimesios is the itersectio of all covex sets cotaiig S. For N poits P,..., P N, the covex hull C is the give by the expressio The covex hull

More information

Cubic Polynomial Curves with a Shape Parameter

Cubic Polynomial Curves with a Shape Parameter roceedigs of the th WSEAS Iteratioal Coferece o Robotics Cotrol ad Maufacturig Techology Hagzhou Chia April -8 00 (pp5-70) Cubic olyomial Curves with a Shape arameter MO GUOLIANG ZHAO YANAN Iformatio ad

More information

Parametric curves. Reading. Parametric polynomial curves. Mathematical curve representation. Brian Curless CSE 457 Spring 2015

Parametric curves. Reading. Parametric polynomial curves. Mathematical curve representation. Brian Curless CSE 457 Spring 2015 Readig Required: Agel 0.-0.3, 0.5., 0.6-0.7, 0.9 Parametric curves Bria Curless CSE 457 Sprig 05 Optioal Bartels, Beatty, ad Barsy. A Itroductio to Splies for use i Computer Graphics ad Geometric Modelig,

More information

Lecture 1: Introduction and Strassen s Algorithm

Lecture 1: Introduction and Strassen s Algorithm 5-750: Graduate Algorithms Jauary 7, 08 Lecture : Itroductio ad Strasse s Algorithm Lecturer: Gary Miller Scribe: Robert Parker Itroductio Machie models I this class, we will primarily use the Radom Access

More information

Consider the following population data for the state of California. Year Population

Consider the following population data for the state of California. Year Population Assigmets for Bradie Fall 2016 for Chapter 5 Assigmet sheet for Sectios 5.1, 5.3, 5.5, 5.6, 5.7, 5.8 Read Pages 341-349 Exercises for Sectio 5.1 Lagrage Iterpolatio #1, #4, #7, #13, #14 For #1 use MATLAB

More information

Computational Geometry

Computational Geometry Computatioal Geometry Chapter 4 Liear programmig Duality Smallest eclosig disk O the Ageda Liear Programmig Slides courtesy of Craig Gotsma 4. 4. Liear Programmig - Example Defie: (amout amout cosumed

More information

The isoperimetric problem on the hypercube

The isoperimetric problem on the hypercube The isoperimetric problem o the hypercube Prepared by: Steve Butler November 2, 2005 1 The isoperimetric problem We will cosider the -dimesioal hypercube Q Recall that the hypercube Q is a graph whose

More information

EVALUATION OF TRIGONOMETRIC FUNCTIONS

EVALUATION OF TRIGONOMETRIC FUNCTIONS EVALUATION OF TRIGONOMETRIC FUNCTIONS Whe first exposed to trigoometric fuctios i high school studets are expected to memorize the values of the trigoometric fuctios of sie cosie taget for the special

More information

Reading. Parametric curves. Mathematical curve representation. Curves before computers. Required: Angel , , , 11.9.

Reading. Parametric curves. Mathematical curve representation. Curves before computers. Required: Angel , , , 11.9. Readig Required: Agel.-.3,.5.,.6-.7,.9. Optioal Parametric curves Bartels, Beatty, ad Barsky. A Itroductio to Splies for use i Computer Graphics ad Geometric Modelig, 987. Fari. Curves ad Surfaces for

More information

Counting Regions in the Plane and More 1

Counting Regions in the Plane and More 1 Coutig Regios i the Plae ad More 1 by Zvezdelia Stakova Berkeley Math Circle Itermediate I Group September 016 1. Overarchig Problem Problem 1 Regios i a Circle. The vertices of a polygos are arraged o

More information

Reading. Subdivision curves and surfaces. Subdivision curves. Chaikin s algorithm. Recommended:

Reading. Subdivision curves and surfaces. Subdivision curves. Chaikin s algorithm. Recommended: Readig Recommeded: Stollitz, DeRose, ad Salesi. Wavelets for Computer Graphics: Theory ad Applicatios, 996, sectio 6.-6.3, 0., A.5. Subdivisio curves ad surfaces Note: there is a error i Stollitz, et al.,

More information

Polynomial Functions and Models. Learning Objectives. Polynomials. P (x) = a n x n + a n 1 x n a 1 x + a 0, a n 0

Polynomial Functions and Models. Learning Objectives. Polynomials. P (x) = a n x n + a n 1 x n a 1 x + a 0, a n 0 Polyomial Fuctios ad Models 1 Learig Objectives 1. Idetify polyomial fuctios ad their degree 2. Graph polyomial fuctios usig trasformatios 3. Idetify the real zeros of a polyomial fuctio ad their multiplicity

More information

Creating Exact Bezier Representations of CST Shapes. David D. Marshall. California Polytechnic State University, San Luis Obispo, CA , USA

Creating Exact Bezier Representations of CST Shapes. David D. Marshall. California Polytechnic State University, San Luis Obispo, CA , USA Creatig Exact Bezier Represetatios of CST Shapes David D. Marshall Califoria Polytechic State Uiversity, Sa Luis Obispo, CA 93407-035, USA The paper presets a method of expressig CST shapes pioeered by

More information

condition w i B i S maximum u i

condition w i B i S maximum u i ecture 10 Dyamic Programmig 10.1 Kapsack Problem November 1, 2004 ecturer: Kamal Jai Notes: Tobias Holgers We are give a set of items U = {a 1, a 2,..., a }. Each item has a weight w i Z + ad a utility

More information

1.2 Binomial Coefficients and Subsets

1.2 Binomial Coefficients and Subsets 1.2. BINOMIAL COEFFICIENTS AND SUBSETS 13 1.2 Biomial Coefficiets ad Subsets 1.2-1 The loop below is part of a program to determie the umber of triagles formed by poits i the plae. for i =1 to for j =

More information

Math Section 2.2 Polynomial Functions

Math Section 2.2 Polynomial Functions Math 1330 - Sectio. Polyomial Fuctios Our objectives i workig with polyomial fuctios will be, first, to gather iformatio about the graph of the fuctio ad, secod, to use that iformatio to geerate a reasoably

More information

Assignment 5; Due Friday, February 10

Assignment 5; Due Friday, February 10 Assigmet 5; Due Friday, February 10 17.9b The set X is just two circles joied at a poit, ad the set X is a grid i the plae, without the iteriors of the small squares. The picture below shows that the iteriors

More information

9.1. Sequences and Series. Sequences. What you should learn. Why you should learn it. Definition of Sequence

9.1. Sequences and Series. Sequences. What you should learn. Why you should learn it. Definition of Sequence _9.qxd // : AM Page Chapter 9 Sequeces, Series, ad Probability 9. Sequeces ad Series What you should lear Use sequece otatio to write the terms of sequeces. Use factorial otatio. Use summatio otatio to

More information

CS Polygon Scan Conversion. Slide 1

CS Polygon Scan Conversion. Slide 1 CS 112 - Polygo Sca Coversio Slide 1 Polygo Classificatio Covex All iterior agles are less tha 180 degrees Cocave Iterior agles ca be greater tha 180 degrees Degeerate polygos If all vertices are colliear

More information

Math 10C Long Range Plans

Math 10C Long Range Plans Math 10C Log Rage Plas Uits: Evaluatio: Homework, projects ad assigmets 10% Uit Tests. 70% Fial Examiatio.. 20% Ay Uit Test may be rewritte for a higher mark. If the retest mark is higher, that mark will

More information

CHAPTER IV: GRAPH THEORY. Section 1: Introduction to Graphs

CHAPTER IV: GRAPH THEORY. Section 1: Introduction to Graphs CHAPTER IV: GRAPH THEORY Sectio : Itroductio to Graphs Sice this class is called Number-Theoretic ad Discrete Structures, it would be a crime to oly focus o umber theory regardless how woderful those topics

More information

( n+1 2 ) , position=(7+1)/2 =4,(median is observation #4) Median=10lb

( n+1 2 ) , position=(7+1)/2 =4,(median is observation #4) Median=10lb Chapter 3 Descriptive Measures Measures of Ceter (Cetral Tedecy) These measures will tell us where is the ceter of our data or where most typical value of a data set lies Mode the value that occurs most

More information

IMP: Superposer Integrated Morphometrics Package Superposition Tool

IMP: Superposer Integrated Morphometrics Package Superposition Tool IMP: Superposer Itegrated Morphometrics Package Superpositio Tool Programmig by: David Lieber ( 03) Caisius College 200 Mai St. Buffalo, NY 4208 Cocept by: H. David Sheets, Dept. of Physics, Caisius College

More information

The Closest Line to a Data Set in the Plane. David Gurney Southeastern Louisiana University Hammond, Louisiana

The Closest Line to a Data Set in the Plane. David Gurney Southeastern Louisiana University Hammond, Louisiana The Closest Lie to a Data Set i the Plae David Gurey Southeaster Louisiaa Uiversity Hammod, Louisiaa ABSTRACT This paper looks at three differet measures of distace betwee a lie ad a data set i the plae:

More information

Big-O Analysis. Asymptotics

Big-O Analysis. Asymptotics Big-O Aalysis 1 Defiitio: Suppose that f() ad g() are oegative fuctios of. The we say that f() is O(g()) provided that there are costats C > 0 ad N > 0 such that for all > N, f() Cg(). Big-O expresses

More information

Thompson s Group F (p + 1) is not Minimally Almost Convex

Thompson s Group F (p + 1) is not Minimally Almost Convex Thompso s Group F (p + ) is ot Miimally Almost Covex Claire Wladis Thompso s Group F (p + ). A Descriptio of F (p + ) Thompso s group F (p + ) ca be defied as the group of piecewiseliear orietatio-preservig

More information

Intro to Scientific Computing: Solutions

Intro to Scientific Computing: Solutions Itro to Scietific Computig: Solutios Dr. David M. Goulet. How may steps does it take to separate 3 objects ito groups of 4? We start with 5 objects ad apply 3 steps of the algorithm to reduce the pile

More information

Alpha Individual Solutions MAΘ National Convention 2013

Alpha Individual Solutions MAΘ National Convention 2013 Alpha Idividual Solutios MAΘ Natioal Covetio 0 Aswers:. D. A. C 4. D 5. C 6. B 7. A 8. C 9. D 0. B. B. A. D 4. C 5. A 6. C 7. B 8. A 9. A 0. C. E. B. D 4. C 5. A 6. D 7. B 8. C 9. D 0. B TB. 570 TB. 5

More information

Smooth Spline Surfaces over Irregular Meshes

Smooth Spline Surfaces over Irregular Meshes Smooth Splie Surfaces over Irregular Meshes Charles Loop Apple Computer, Ic. Abstract A algorithm for creatig smooth splie surfaces over irregular meshes is preseted. The algorithm is a geeralizatio of

More information

Numerical Methods Lecture 6 - Curve Fitting Techniques

Numerical Methods Lecture 6 - Curve Fitting Techniques Numerical Methods Lecture 6 - Curve Fittig Techiques Topics motivatio iterpolatio liear regressio higher order polyomial form expoetial form Curve fittig - motivatio For root fidig, we used a give fuctio

More information

Lecture Notes 6 Introduction to algorithm analysis CSS 501 Data Structures and Object-Oriented Programming

Lecture Notes 6 Introduction to algorithm analysis CSS 501 Data Structures and Object-Oriented Programming Lecture Notes 6 Itroductio to algorithm aalysis CSS 501 Data Structures ad Object-Orieted Programmig Readig for this lecture: Carrao, Chapter 10 To be covered i this lecture: Itroductio to algorithm aalysis

More information

The Platonic solids The five regular polyhedra

The Platonic solids The five regular polyhedra The Platoic solids The five regular polyhedra Ole Witt-Hase jauary 7 www.olewitthase.dk Cotets. Polygos.... Topologically cosideratios.... Euler s polyhedro theorem.... Regular ets o a sphere.... The dihedral

More information

Visualization of Gauss-Bonnet Theorem

Visualization of Gauss-Bonnet Theorem Visualizatio of Gauss-Boet Theorem Yoichi Maeda maeda@keyaki.cc.u-tokai.ac.jp Departmet of Mathematics Tokai Uiversity Japa Abstract: The sum of exteral agles of a polygo is always costat, π. There are

More information

A New Morphological 3D Shape Decomposition: Grayscale Interframe Interpolation Method

A New Morphological 3D Shape Decomposition: Grayscale Interframe Interpolation Method A ew Morphological 3D Shape Decompositio: Grayscale Iterframe Iterpolatio Method D.. Vizireau Politehica Uiversity Bucharest, Romaia ae@comm.pub.ro R. M. Udrea Politehica Uiversity Bucharest, Romaia mihea@comm.pub.ro

More information

Normals. In OpenGL the normal vector is part of the state Set by glnormal*()

Normals. In OpenGL the normal vector is part of the state Set by glnormal*() Ray Tracig 1 Normals OpeG the ormal vector is part of the state Set by glnormal*() -glnormal3f(x, y, z); -glnormal3fv(p); Usually we wat to set the ormal to have uit legth so cosie calculatios are correct

More information

South Slave Divisional Education Council. Math 10C

South Slave Divisional Education Council. Math 10C South Slave Divisioal Educatio Coucil Math 10C Curriculum Package February 2012 12 Strad: Measuremet Geeral Outcome: Develop spatial sese ad proportioal reasoig It is expected that studets will: 1. Solve

More information

Pattern Recognition Systems Lab 1 Least Mean Squares

Pattern Recognition Systems Lab 1 Least Mean Squares Patter Recogitio Systems Lab 1 Least Mea Squares 1. Objectives This laboratory work itroduces the OpeCV-based framework used throughout the course. I this assigmet a lie is fitted to a set of poits usig

More information

Lecture 18. Optimization in n dimensions

Lecture 18. Optimization in n dimensions Lecture 8 Optimizatio i dimesios Itroductio We ow cosider the problem of miimizig a sigle scalar fuctio of variables, f x, where x=[ x, x,, x ]T. The D case ca be visualized as fidig the lowest poit of

More information

Civil Engineering Computation

Civil Engineering Computation Civil Egieerig Computatio Fidig Roots of No-Liear Equatios March 14, 1945 World War II The R.A.F. first operatioal use of the Grad Slam bomb, Bielefeld, Germay. Cotets 2 Root basics Excel solver Newto-Raphso

More information

CSC165H1 Worksheet: Tutorial 8 Algorithm analysis (SOLUTIONS)

CSC165H1 Worksheet: Tutorial 8 Algorithm analysis (SOLUTIONS) CSC165H1, Witer 018 Learig Objectives By the ed of this worksheet, you will: Aalyse the ruig time of fuctios cotaiig ested loops. 1. Nested loop variatios. Each of the followig fuctios takes as iput a

More information

. Written in factored form it is easy to see that the roots are 2, 2, i,

. Written in factored form it is easy to see that the roots are 2, 2, i, CMPS A Itroductio to Programmig Programmig Assigmet 4 I this assigmet you will write a java program that determies the real roots of a polyomial that lie withi a specified rage. Recall that the roots (or

More information

6.854J / J Advanced Algorithms Fall 2008

6.854J / J Advanced Algorithms Fall 2008 MIT OpeCourseWare http://ocw.mit.edu 6.854J / 18.415J Advaced Algorithms Fall 2008 For iformatio about citig these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. 18.415/6.854 Advaced Algorithms

More information

Module 8-7: Pascal s Triangle and the Binomial Theorem

Module 8-7: Pascal s Triangle and the Binomial Theorem Module 8-7: Pascal s Triagle ad the Biomial Theorem Gregory V. Bard April 5, 017 A Note about Notatio Just to recall, all of the followig mea the same thig: ( 7 7C 4 C4 7 7C4 5 4 ad they are (all proouced

More information

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe Copyright 2016 Ramez Elmasri ad Shamkat B. Navathe CHAPTER 19 Query Optimizatio Copyright 2016 Ramez Elmasri ad Shamkat B. Navathe Itroductio Query optimizatio Coducted by a query optimizer i a DBMS Goal:

More information

How do we evaluate algorithms?

How do we evaluate algorithms? F2 Readig referece: chapter 2 + slides Algorithm complexity Big O ad big Ω To calculate ruig time Aalysis of recursive Algorithms Next time: Litterature: slides mostly The first Algorithm desig methods:

More information

CIS 121 Data Structures and Algorithms with Java Fall Big-Oh Notation Tuesday, September 5 (Make-up Friday, September 8)

CIS 121 Data Structures and Algorithms with Java Fall Big-Oh Notation Tuesday, September 5 (Make-up Friday, September 8) CIS 11 Data Structures ad Algorithms with Java Fall 017 Big-Oh Notatio Tuesday, September 5 (Make-up Friday, September 8) Learig Goals Review Big-Oh ad lear big/small omega/theta otatios Practice solvig

More information

The Adjacency Matrix and The nth Eigenvalue

The Adjacency Matrix and The nth Eigenvalue Spectral Graph Theory Lecture 3 The Adjacecy Matrix ad The th Eigevalue Daiel A. Spielma September 5, 2012 3.1 About these otes These otes are ot ecessarily a accurate represetatio of what happeed i class.

More information

Counting the Number of Minimum Roman Dominating Functions of a Graph

Counting the Number of Minimum Roman Dominating Functions of a Graph Coutig the Number of Miimum Roma Domiatig Fuctios of a Graph SHI ZHENG ad KOH KHEE MENG, Natioal Uiversity of Sigapore We provide two algorithms coutig the umber of miimum Roma domiatig fuctios of a graph

More information

Orientation. Orientation 10/28/15

Orientation. Orientation 10/28/15 Orietatio Orietatio We will defie orietatio to mea a object s istataeous rotatioal cofiguratio Thik of it as the rotatioal equivalet of positio 1 Represetig Positios Cartesia coordiates (x,y,z) are a easy

More information

Big-O Analysis. Asymptotics

Big-O Analysis. Asymptotics Big-O Aalysis 1 Defiitio: Suppose that f() ad g() are oegative fuctios of. The we say that f() is O(g()) provided that there are costats C > 0 ad N > 0 such that for all > N, f() Cg(). Big-O expresses

More information

Ones Assignment Method for Solving Traveling Salesman Problem

Ones Assignment Method for Solving Traveling Salesman Problem Joural of mathematics ad computer sciece 0 (0), 58-65 Oes Assigmet Method for Solvig Travelig Salesma Problem Hadi Basirzadeh Departmet of Mathematics, Shahid Chamra Uiversity, Ahvaz, Ira Article history:

More information

Octahedral Graph Scaling

Octahedral Graph Scaling Octahedral Graph Scalig Peter Russell Jauary 1, 2015 Abstract There is presetly o strog iterpretatio for the otio of -vertex graph scalig. This paper presets a ew defiitio for the term i the cotext of

More information

The golden search method: Question 1

The golden search method: Question 1 1. Golde Sectio Search for the Mode of a Fuctio The golde search method: Questio 1 Suppose the last pair of poits at which we have a fuctio evaluatio is x(), y(). The accordig to the method, If f(x())

More information

Chapter 3 Classification of FFT Processor Algorithms

Chapter 3 Classification of FFT Processor Algorithms Chapter Classificatio of FFT Processor Algorithms The computatioal complexity of the Discrete Fourier trasform (DFT) is very high. It requires () 2 complex multiplicatios ad () complex additios [5]. As

More information

1 Graph Sparsfication

1 Graph Sparsfication CME 305: Discrete Mathematics ad Algorithms 1 Graph Sparsficatio I this sectio we discuss the approximatio of a graph G(V, E) by a sparse graph H(V, F ) o the same vertex set. I particular, we cosider

More information

Lecture 2: Spectra of Graphs

Lecture 2: Spectra of Graphs Spectral Graph Theory ad Applicatios WS 20/202 Lecture 2: Spectra of Graphs Lecturer: Thomas Sauerwald & He Su Our goal is to use the properties of the adjacecy/laplacia matrix of graphs to first uderstad

More information

Pseudocode ( 1.1) Analysis of Algorithms. Primitive Operations. Pseudocode Details. Running Time ( 1.1) Estimating performance

Pseudocode ( 1.1) Analysis of Algorithms. Primitive Operations. Pseudocode Details. Running Time ( 1.1) Estimating performance Aalysis of Algorithms Iput Algorithm Output A algorithm is a step-by-step procedure for solvig a problem i a fiite amout of time. Pseudocode ( 1.1) High-level descriptio of a algorithm More structured

More information

Recursive Procedures. How can you model the relationship between consecutive terms of a sequence?

Recursive Procedures. How can you model the relationship between consecutive terms of a sequence? 6. Recursive Procedures I Sectio 6.1, you used fuctio otatio to write a explicit formula to determie the value of ay term i a Sometimes it is easier to calculate oe term i a sequece usig the previous terms.

More information

EVALUATION OF ALGORITHMS FOR SURFACE INTERPOLATION OVER TRIANGULAR PATCH. Jenn-Taur Lee

EVALUATION OF ALGORITHMS FOR SURFACE INTERPOLATION OVER TRIANGULAR PATCH. Jenn-Taur Lee EVALUATION OF ALGORITHMS FOR SURFACE INTERPOLATION OVER TRIANGULAR PATCH Je-Taur Lee Departmet of Civil ad Evirometal Egieerig Uiversity of Wiscosi-Madiso Madiso, WI 53706 ABSTRACT Surface iterpolatio

More information

Texture Mapping. Jian Huang. This set of slides references the ones used at Ohio State for instruction.

Texture Mapping. Jian Huang. This set of slides references the ones used at Ohio State for instruction. Texture Mappig Jia Huag This set of slides refereces the oes used at Ohio State for istructio. Ca you do this What Dreams May Come Texture Mappig Of course, oe ca model the exact micro-geometry + material

More information

n n B. How many subsets of C are there of cardinality n. We are selecting elements for such a

n n B. How many subsets of C are there of cardinality n. We are selecting elements for such a 4. [10] Usig a combiatorial argumet, prove that for 1: = 0 = Let A ad B be disjoit sets of cardiality each ad C = A B. How may subsets of C are there of cardiality. We are selectig elemets for such a subset

More information

Parabolic Path to a Best Best-Fit Line:

Parabolic Path to a Best Best-Fit Line: Studet Activity : Fidig the Least Squares Regressio Lie By Explorig the Relatioship betwee Slope ad Residuals Objective: How does oe determie a best best-fit lie for a set of data? Eyeballig it may be

More information

What are we going to learn? CSC Data Structures Analysis of Algorithms. Overview. Algorithm, and Inputs

What are we going to learn? CSC Data Structures Analysis of Algorithms. Overview. Algorithm, and Inputs What are we goig to lear? CSC316-003 Data Structures Aalysis of Algorithms Computer Sciece North Carolia State Uiversity Need to say that some algorithms are better tha others Criteria for evaluatio Structure

More information

COMP 558 lecture 6 Sept. 27, 2010

COMP 558 lecture 6 Sept. 27, 2010 Radiometry We have discussed how light travels i straight lies through space. We would like to be able to talk about how bright differet light rays are. Imagie a thi cylidrical tube ad cosider the amout

More information

MATHEMATICAL METHODS OF ANALYSIS AND EXPERIMENTAL DATA PROCESSING (Or Methods of Curve Fitting)

MATHEMATICAL METHODS OF ANALYSIS AND EXPERIMENTAL DATA PROCESSING (Or Methods of Curve Fitting) MATHEMATICAL METHODS OF ANALYSIS AND EXPERIMENTAL DATA PROCESSING (Or Methods of Curve Fittig) I this chapter, we will eamie some methods of aalysis ad data processig; data obtaied as a result of a give

More information

CIS 121 Data Structures and Algorithms with Java Spring Stacks, Queues, and Heaps Monday, February 18 / Tuesday, February 19

CIS 121 Data Structures and Algorithms with Java Spring Stacks, Queues, and Heaps Monday, February 18 / Tuesday, February 19 CIS Data Structures ad Algorithms with Java Sprig 09 Stacks, Queues, ad Heaps Moday, February 8 / Tuesday, February 9 Stacks ad Queues Recall the stack ad queue ADTs (abstract data types from lecture.

More information

. Perform a geometric (ray-optics) construction (i.e., draw in the rays on the diagram) to show where the final image is formed.

. Perform a geometric (ray-optics) construction (i.e., draw in the rays on the diagram) to show where the final image is formed. MASSACHUSETTS INSTITUTE of TECHNOLOGY Departmet of Electrical Egieerig ad Computer Sciece 6.161 Moder Optics Project Laboratory 6.637 Optical Sigals, Devices & Systems Problem Set No. 1 Geometric optics

More information

Section 7.2: Direction Fields and Euler s Methods

Section 7.2: Direction Fields and Euler s Methods Sectio 7.: Directio ields ad Euler s Methods Practice HW from Stewart Tetbook ot to had i p. 5 # -3 9-3 odd or a give differetial equatio we wat to look at was to fid its solutio. I this chapter we will

More information

G 1 Interpolation of arbitrary meshes with Bézier patches

G 1 Interpolation of arbitrary meshes with Bézier patches Master s Degree i Applied Mathematics Supervised by Stefaie Hahma March 5th - July 5th 007 G Iterpolatio of arbitrary meshes with Bézier patches Jea Kutzma Lab. B.P. 53 3804 Greoble Cedex 9 Cotets Ackowledgmets

More information

EE123 Digital Signal Processing

EE123 Digital Signal Processing Last Time EE Digital Sigal Processig Lecture 7 Block Covolutio, Overlap ad Add, FFT Discrete Fourier Trasform Properties of the Liear covolutio through circular Today Liear covolutio with Overlap ad add

More information

The number n of subintervals times the length h of subintervals gives length of interval (b-a).

The number n of subintervals times the length h of subintervals gives length of interval (b-a). Simulator with MadMath Kit: Riema Sums (Teacher s pages) I your kit: 1. GeoGebra file: Ready-to-use projector sized simulator: RiemaSumMM.ggb 2. RiemaSumMM.pdf (this file) ad RiemaSumMMEd.pdf (educator's

More information

CSC 220: Computer Organization Unit 11 Basic Computer Organization and Design

CSC 220: Computer Organization Unit 11 Basic Computer Organization and Design College of Computer ad Iformatio Scieces Departmet of Computer Sciece CSC 220: Computer Orgaizatio Uit 11 Basic Computer Orgaizatio ad Desig 1 For the rest of the semester, we ll focus o computer architecture:

More information

INSCRIBED CIRCLE OF GENERAL SEMI-REGULAR POLYGON AND SOME OF ITS FEATURES

INSCRIBED CIRCLE OF GENERAL SEMI-REGULAR POLYGON AND SOME OF ITS FEATURES INTERNATIONAL JOURNAL OF GEOMETRY Vol. 2 (2013), No. 1, 5-22 INSCRIBED CIRCLE OF GENERAL SEMI-REGULAR POLYGON AND SOME OF ITS FEATURES NENAD U. STOJANOVIĆ Abstract. If above each side of a regular polygo

More information

A Very Simple Approach for 3-D to 2-D Mapping

A Very Simple Approach for 3-D to 2-D Mapping A Very Simple Approach for -D to -D appig Sadipa Dey (1 Ajith Abraham ( Sugata Sayal ( Sadipa Dey (1 Ashi Software Private Limited INFINITY Tower II 10 th Floor Plot No. - 4. Block GP Salt Lake Electroics

More information

OCR Statistics 1. Working with data. Section 3: Measures of spread

OCR Statistics 1. Working with data. Section 3: Measures of spread Notes ad Eamples OCR Statistics 1 Workig with data Sectio 3: Measures of spread Just as there are several differet measures of cetral tedec (averages), there are a variet of statistical measures of spread.

More information

Area As A Limit & Sigma Notation

Area As A Limit & Sigma Notation Area As A Limit & Sigma Notatio SUGGESTED REFERENCE MATERIAL: As you work through the problems listed below, you should referece Chapter 5.4 of the recommeded textbook (or the equivalet chapter i your

More information

On (K t e)-saturated Graphs

On (K t e)-saturated Graphs Noame mauscript No. (will be iserted by the editor O (K t e-saturated Graphs Jessica Fuller Roald J. Gould the date of receipt ad acceptace should be iserted later Abstract Give a graph H, we say a graph

More information

9 x and g(x) = 4. x. Find (x) 3.6. I. Combining Functions. A. From Equations. Example: Let f(x) = and its domain. Example: Let f(x) = and g(x) = x x 4

9 x and g(x) = 4. x. Find (x) 3.6. I. Combining Functions. A. From Equations. Example: Let f(x) = and its domain. Example: Let f(x) = and g(x) = x x 4 1 3.6 I. Combiig Fuctios A. From Equatios Example: Let f(x) = 9 x ad g(x) = 4 f x. Fid (x) g ad its domai. 4 Example: Let f(x) = ad g(x) = x x 4. Fid (f-g)(x) B. From Graphs: Graphical Additio. Example:

More information

Accuracy Improvement in Camera Calibration

Accuracy Improvement in Camera Calibration Accuracy Improvemet i Camera Calibratio FaJie L Qi Zag ad Reihard Klette CITR, Computer Sciece Departmet The Uiversity of Aucklad Tamaki Campus, Aucklad, New Zealad fli006, qza001@ec.aucklad.ac.z r.klette@aucklad.ac.z

More information

Data Structures and Algorithms. Analysis of Algorithms

Data Structures and Algorithms. Analysis of Algorithms Data Structures ad Algorithms Aalysis of Algorithms Outlie Ruig time Pseudo-code Big-oh otatio Big-theta otatio Big-omega otatio Asymptotic algorithm aalysis Aalysis of Algorithms Iput Algorithm Output

More information

Protected points in ordered trees

Protected points in ordered trees Applied Mathematics Letters 008 56 50 www.elsevier.com/locate/aml Protected poits i ordered trees Gi-Sag Cheo a, Louis W. Shapiro b, a Departmet of Mathematics, Sugkyukwa Uiversity, Suwo 440-746, Republic

More information

Appendix A. Use of Operators in ARPS

Appendix A. Use of Operators in ARPS A Appedix A. Use of Operators i ARPS The methodology for solvig the equatios of hydrodyamics i either differetial or itegral form usig grid-poit techiques (fiite differece, fiite volume, fiite elemet)

More information

Ch 9.3 Geometric Sequences and Series Lessons

Ch 9.3 Geometric Sequences and Series Lessons Ch 9.3 Geometric Sequeces ad Series Lessos SKILLS OBJECTIVES Recogize a geometric sequece. Fid the geeral, th term of a geometric sequece. Evaluate a fiite geometric series. Evaluate a ifiite geometric

More information

Running Time. Analysis of Algorithms. Experimental Studies. Limitations of Experiments

Running Time. Analysis of Algorithms. Experimental Studies. Limitations of Experiments Ruig Time Aalysis of Algorithms Iput Algorithm Output A algorithm is a step-by-step procedure for solvig a problem i a fiite amout of time. Most algorithms trasform iput objects ito output objects. The

More information

Extended Space Mapping with Bézier Patches and Volumes

Extended Space Mapping with Bézier Patches and Volumes Eteded Space Mappig with Béier Patches ad Volumes Bejami Schmitt 1, 2 Aleader Pasko 1 Vladimir Savcheko 1 Abstract We eplore a geeral eteded space mappig as a framework for trasformig a hypersurface i

More information

EM375 STATISTICS AND MEASUREMENT UNCERTAINTY LEAST SQUARES LINEAR REGRESSION ANALYSIS

EM375 STATISTICS AND MEASUREMENT UNCERTAINTY LEAST SQUARES LINEAR REGRESSION ANALYSIS EM375 STATISTICS AND MEASUREMENT UNCERTAINTY LEAST SQUARES LINEAR REGRESSION ANALYSIS I this uit of the course we ivestigate fittig a straight lie to measured (x, y) data pairs. The equatio we wat to fit

More information

FURTHER INTEGRATION TECHNIQUES (TRIG, LOG, EXP FUNCTIONS)

FURTHER INTEGRATION TECHNIQUES (TRIG, LOG, EXP FUNCTIONS) Mathematics Revisio Guides More Trigoometric ad Log Itegrals Page of 7 MK HOME TUITION Mathematics Revisio Guides Level: AS / A Level AQA : C Edexcel: C OCR: C OCR MEI: C FURTHER INTEGRATION TECHNIQUES

More information

CS 683: Advanced Design and Analysis of Algorithms

CS 683: Advanced Design and Analysis of Algorithms CS 683: Advaced Desig ad Aalysis of Algorithms Lecture 6, February 1, 2008 Lecturer: Joh Hopcroft Scribes: Shaomei Wu, Etha Feldma February 7, 2008 1 Threshold for k CNF Satisfiability I the previous lecture,

More information

Running Time ( 3.1) Analysis of Algorithms. Experimental Studies. Limitations of Experiments

Running Time ( 3.1) Analysis of Algorithms. Experimental Studies. Limitations of Experiments Ruig Time ( 3.1) Aalysis of Algorithms Iput Algorithm Output A algorithm is a step- by- step procedure for solvig a problem i a fiite amout of time. Most algorithms trasform iput objects ito output objects.

More information

Analysis of Algorithms

Analysis of Algorithms Aalysis of Algorithms Iput Algorithm Output A algorithm is a step-by-step procedure for solvig a problem i a fiite amout of time. Ruig Time Most algorithms trasform iput objects ito output objects. The

More information

Fast Fourier Transform (FFT) Algorithms

Fast Fourier Transform (FFT) Algorithms Fast Fourier Trasform FFT Algorithms Relatio to the z-trasform elsewhere, ozero, z x z X x [ ] 2 ~ elsewhere,, ~ e j x X x x π j e z z X X π 2 ~ The DFS X represets evely spaced samples of the z- trasform

More information

Lecturers: Sanjam Garg and Prasad Raghavendra Feb 21, Midterm 1 Solutions

Lecturers: Sanjam Garg and Prasad Raghavendra Feb 21, Midterm 1 Solutions U.C. Berkeley CS170 : Algorithms Midterm 1 Solutios Lecturers: Sajam Garg ad Prasad Raghavedra Feb 1, 017 Midterm 1 Solutios 1. (4 poits) For the directed graph below, fid all the strogly coected compoets

More information

Elementary Educational Computer

Elementary Educational Computer Chapter 5 Elemetary Educatioal Computer. Geeral structure of the Elemetary Educatioal Computer (EEC) The EEC coforms to the 5 uits structure defied by vo Neuma's model (.) All uits are preseted i a simplified

More information

Perhaps the method will give that for every e > U f() > p - 3/+e There is o o-trivial upper boud for f() ad ot eve f() < Z - e. seems to be kow, where

Perhaps the method will give that for every e > U f() > p - 3/+e There is o o-trivial upper boud for f() ad ot eve f() < Z - e. seems to be kow, where ON MAXIMUM CHORDAL SUBGRAPH * Paul Erdos Mathematical Istitute of the Hugaria Academy of Scieces ad Reu Laskar Clemso Uiversity 1. Let G() deote a udirected graph, with vertices ad V(G) deote the vertex

More information

5.3 Recursive definitions and structural induction

5.3 Recursive definitions and structural induction /8/05 5.3 Recursive defiitios ad structural iductio CSE03 Discrete Computatioal Structures Lecture 6 A recursively defied picture Recursive defiitios e sequece of powers of is give by a = for =0,,, Ca

More information

ON THE DEFINITION OF A CLOSE-TO-CONVEX FUNCTION

ON THE DEFINITION OF A CLOSE-TO-CONVEX FUNCTION I terat. J. Mh. & Math. Sci. Vol. (1978) 125-132 125 ON THE DEFINITION OF A CLOSE-TO-CONVEX FUNCTION A. W. GOODMAN ad E. B. SAFF* Mathematics Dept, Uiversity of South Florida Tampa, Florida 33620 Dedicated

More information

A Note on Least-norm Solution of Global WireWarping

A Note on Least-norm Solution of Global WireWarping A Note o Least-orm Solutio of Global WireWarpig Charlie C. L. Wag Departmet of Mechaical ad Automatio Egieerig The Chiese Uiversity of Hog Kog Shati, N.T., Hog Kog E-mail: cwag@mae.cuhk.edu.hk Abstract

More information

Improving Template Based Spike Detection

Improving Template Based Spike Detection Improvig Template Based Spike Detectio Kirk Smith, Member - IEEE Portlad State Uiversity petra@ee.pdx.edu Abstract Template matchig algorithms like SSE, Covolutio ad Maximum Likelihood are well kow for

More information

Fundamentals of Media Processing. Shin'ichi Satoh Kazuya Kodama Hiroshi Mo Duy-Dinh Le

Fundamentals of Media Processing. Shin'ichi Satoh Kazuya Kodama Hiroshi Mo Duy-Dinh Le Fudametals of Media Processig Shi'ichi Satoh Kazuya Kodama Hiroshi Mo Duy-Dih Le Today's topics Noparametric Methods Parze Widow k-nearest Neighbor Estimatio Clusterig Techiques k-meas Agglomerative Hierarchical

More information