! Data mining. ! VLSI design. ! Computer vision. ! Mathematical models. ! Astronomical simulation. ! Geographic information systems.
|
|
- Conrad York
- 5 years ago
- Views:
Transcription
1 Geometri Algorithms Geometri Algorithms Applitions.! Dt mining.! VLSI design.! Computer vision.! Mthemtil models.! Astronomil simultion.! Geogrphi informtion systems. irflow round n irrft wing! Computer grphis (movies, gmes, virtul relity).! Models of physil world (mps, rhiteture, medil imging). Referene: Referene: Chpters 24-25, Algorithms in C, 2 nd Edition, Roert Sedgewik. History.! Anient mthemtil foundtions.! Most geometri lgorithms less thn 25 yers old. Roert Sedgewik nd Kevin Wyne Copyright Geometri Primitives Intuition Point: two numers (x, y). Line: two numers nd [x + y = 1] Line segment: two points. Polygon: sequene of points. ny line not through origin Wrning: intuition my e misleding.! Humns hve sptil intuition in 2D nd 3D.! Computers do not.! Neither hs good intuition in higher dimensions! Primitive opertions.! Is point inside polygon?! Compre slopes of two lines.! Distne etween two points.! Do two line segments interset?! Given three points p 1, p 2, p 3, is p 1 -p 2 -p 3 ounterlokwise turn? Other geometri shpes.! Tringle, retngle, irle, sphere, one,! 3D nd higher dimensions sometimes more omplited. Is given polygon simple? no rossings we think of this lgorithm sees this 3 4
2 Polygon Inside, Outside Polygon Inside, Outside: Crossing Numer Jordn urve theorem. [Velen 1905] Any ontinuous simple losed urve uts the plne in extly two piees: the inside nd the outside. Does line segment interset ry? Is point inside simple polygon? y = y i+1 " y i (x " x i ) + y i x i+1 " x i (x i+1, y i+1 ) where x i # x # x i+1 (x i, y i ) (x, y ) Applition. Drw filled polygon on the sreen. puli oolen ontins(doule x0, doule y0) { int rossings = 0; for (int i = 0; i < N; i++) { doule slope = (y[i+1] - y[i]) / (x[i+1] - x[i]); oolen ond1 = (x[i] <= x0) && (x0 < x[i+1]); oolen ond2 = (x[i+1] <= x0) && (x0 < x[i]); oolen ove = (y0 < slope * (x0 - x[i]) + y[i]); if ((ond1 ond2) && ove) rossings++; return (rossings % 2!= 0); 5 6 Implementing CCW Implementing CCW CCW. Given three point,, nd, is -- ounterlokwise turn?! Anlog of omprisons in sorting.! Ide: ompre slopes. CCW. Given three point,, nd, is -- ounterlokwise turn?! Determinnt gives twie re of tringle. x y 1 2 " Are(,, ) = x y 1 = ( x # x )( y # y ) # ( y # y )( x # x ) x y 1! If re > 0 then -- is ounterlokwise. yes no Yes (! slope)??? (olliner)??? (olliner)??? (olliner) If re < 0, then -- is lokwise. If re = 0, then -- re olliner. ( x, y ) ( x, y ) Lesson. Geometri primitives re triky to implement.! Deling with degenerte ses.! Coping with floting point preision. ( x, y ) > 0 ( x, y ) ( x, y ) < 0 ( x, y ) 7 8
3 Immutle Point ADT puli finl lss Point { puli finl int x; puli finl int y; Convex Hull puli Point(int x, int y) { this.x = x; this.y = y; puli doule distneto(point q) { return Mth.hypot(this.x - q.x, this.y - q.y); puli stti int w(point, Point, Point ) { doule re2 = (.x-.x)*(.y-.y) - (.y-.y)*(.x-.x); if else (re2 < 0) return -1; else if (re2 > 0) return +1; else if (re2 > 0 return 0; puli stti oolen olliner(point, Point, Point ) { return w(,, ) == 0; 9 10 Convex Hull Mehnil Solution A set of points is onvex if for ny two points p nd q in the set, the line segment pq is ompletely in the set. Mehnil lgorithm. Hmmer nils perpendiulr to plne; streth elsti ruer nd round points. Convex hull. Smllest onvex set ontining ll the points. p p q q onvex not onvex onvex hull Properties.! "Simplest" shpe tht pproximtes set of points.! Shortest (perimeter) fene surrounding the points.! Smllest (re) onvex polygon enlosing the points
4 Brute Fore Pkge Wrp (Jrvis Mrh) Oservtion 1. Edges of onvex hull of P onnet pirs of points in P. Oservtion 2. Edge pq is on onvex hull if ll other points re ounterlokwise of pq. q p Pkge wrp.! Strt with point with smllest y-oordinte.! Rotte sweep line round urrent point in w diretion.! First point hit is on the hull.! Repet. O(N 3 ) lgorithm. For ll points p nd q in P, hek whether pq is n edge of onvex hull. eh hek requires O(N) w lultions, where N is the numer of points in P Pkge Wrp (Jrvis Mrh) How Mny Points on the Hull? Implementtion.! Compute ngle etween urrent point nd ll remining points.! Pik smllest ngle lrger thn urrent ngle.! "(N) per itertion. Prmeters.! N = numer of points.! h = numer of points on the hull. Pkge wrp running time. "(N h) per itertion. How mny points on hull?! Worst se: h = N.! Averge se: diffiult prolems in stohsti geometry. in dis: h = N 1/3. in onvex polygon with O(1) edges: h = log N
5 Grhm Sn: Exmple Grhm Sn: Exmple Grhm sn.! Choose point p with smllest y-oordinte.! Sort points y polr ngle with p to get simple polygon.! Consider points in order, nd disrd those tht would rete lokwise turn. p Implementtion.! Input: p[1], p[2],, p[n] re points.! Output: M nd rerrngement so tht p[1],..., p[m] is onvex hull. // preproess so tht p[1] hs smllest y-oordinte // sort y ngle with p[1] points[0] = points[n]; // sentinel int M = 2; for (int i = 3; i <= N; i++) { while (Point.w(p[M-1], p[m], p[i]) <= 0) { M--; disrd points tht would rete lokwise turn M++; swp(points, M, i); dd i to puttive hull Running time. O() for sort nd O(N) for rest. 17 why? 18 Quik Elimintion Convex Hull Algorithms Costs Summry Quik elimintion.! Choose qudrilterl Q or retngle R with 4 points s orners.! If point is inside, n eliminte. 4 w tests for qudrilterl 4 omprisons for retngle Q R Algorithm Pkge wrp Grhm sn Running Time N h Three-phse lgorithm! Pss through ll points to ompute R.! Eliminte points inside R.! Find onvex hull of remining points. Quikhull Mergehull Sweep line Quik elimintion N t Best in theory N log h output sensitive running time Prtie. Cn eliminte lmost ll points in liner time. these points eliminted symptoti ost to find h-point hull in N-point set t ssumes "resonle" point distriution 19 20
6 Convex Hull: Lower Bound Models of omputtion.! Comprison sed: ompre oordintes. (impossile to ompute onvex hull in this model of omputtion) Closest Pir of Points (.x <.x) ((.x ==.x) && (.y <.y)))! Qudrti deision tree model: ompute ny qudrti funtion of the oordintes nd ompre ginst 0. (.x*.y -.y*.x +.y*.x -.x*.y +.x*.y -.x*.y) < 0 Theorem. [Andy Yo, 1981] In qudrti deision tree model, ny onvex hull lgorithm requires #() ops. higher degree polynomil tests don't help either [Ben-Or, 1983] even if hull points re not required to e output in ounterlokwise order Closest Pir of Points Closest Pir of Points Closest pir. Given N points in the plne, find pir with smllest Euliden distne etween them. Fundmentl geometri primitive.! Grphis, omputer vision, geogrphi informtion systems, moleulr modeling, ir trffi ontrol.! Speil se of nerest neighor, Euliden MST, Voronoi. fst losest pir inspired fst lgorithms for these prolems Algorithm.! Divide: drw vertil line L so tht roughly!n points on eh side.! Conquer: find losest pir in eh side reursively.! Comine: find losest pir with one point in eh side.! Return est of 3 solutions. L seems like "(N 2 ) Brute fore. Chek ll pirs of points p nd q with "(N 2 ) distne lultions D version. O() esy if points re on line. Assumption. No two points hve sme x oordinte. 12 to mke presenttion lener 23 26
7 Closest Pir of Points Closest Pir of Points Find losest pir with one point in eh side, ssuming tht distne < $.! Oservtion: only need to onsider points within $ of line L. Def. Let s i e the point in the 2$-strip, with the i th smllest y-oordinte.! Sort points in 2$-strip y their y oordinte.! Only hek distnes of those within 11 positions in sorted list! Clim. If i j % 12, then the distne etween s i nd s j is t lest $. Pf j! No two points lie in sme!$-y-!$ ox. 7 6 L! Two points t lest 2 rows prt hve distne % 2(!$).! 2 rows 29 30!$!$ Ft. Still true if we reple 12 with 7. i 27 28!$ 12 3 $ = min(12, 21) $ 30 $ $ 31 Closest Pir Algorithm Closest Pir of Points: Anlysis Closest-Pir(p 1,, p n ) { Compute seprtion line L suh tht hlf the points re on one side nd hlf on the other side. $ 1 = Closest-Pir(left hlf) $ 2 = Closest-Pir(right hlf) $ = min($ 1, $ 2 ) Delete ll points further thn $ from seprtion line L Sort remining points y y-oordinte. O() 2T(N / 2) O(N) O() Running time. T(N) " 2T ( N /2) + O() # T(N) = O(N log 2 N) Upper ound. Cn e improved to O(). void sorting y y-oordinte from srth Sn points in y-order nd ompre distne etween eh point nd next 11 neighors. If ny of these distnes is less thn $, updte $. O(N) Lower ound. In qudrti deision tree model, ny lgorithm for losest pir requires #() steps. return $
8 1854 Choler Outrek, Golden Squre, London Nerest Neighor Nerest Neighor Voronoi Digrm Input. N Euliden points. Nerest neighor prolem. Given query point p, whih one of originl N points is losest to p? Voronoi region. Set of ll points losest to given point. Voronoi digrm. Plnr sudivision delineting Voronoi regions. Ft. Voronoi edges re perpendiulr isetor segments. Algorithm Brute Gol Preproess 1 Query N log N Voronoi of 2 points (perpendiulr isetor) Voronoi of 3 points (psses through irumenter) 36 37
9 Voronoi Digrm Voronoi Digrm: Applitions Voronoi region. Set of ll points losest to given point. Voronoi digrm. Plnr sudivision delineting Voronoi regions. Ft. Voronoi edges re perpendiulr isetor segments. Toxi wste dump prolem. N homes in region. Where to lote nuler power plnt so tht it is fr wy from ny home s possile? looking for lrgest empty irle (enter must lie on Voronoi digrm) Pth plnning. Cirulr root must nvigte through environment with N ostle points. How to minimize risk of umping into ostle? root should sty on Voronoi digrm of ostles Referene: J. O'Rourke. Computtionl Geometry. Quintessentil nerest neighor dt struture Voronoi Digrm: More Applitions Sientifi Redisoveries Anthropology. Identify influene of lns nd hiefdoms on geogrphi regions. Astronomy. Identify lusters of strs nd lusters of glxies. Biology, Eology, Forestry. Model nd nlyze plnt ompetition. Crtogrphy. Piee together stellite photogrphs into lrge "mosi" mps. Crystllogrphy. Study Wigner-Setiz regions of metlli sodium. Dt visuliztion. Nerest neighor interpoltion of 2D dt. Finite elements. Generting finite element meshes whih void smll ngles. Fluid dynmis. Vortex methods for invisid inompressile 2D fluid flow. Geology. Estimtion of ore reserves in deposit using info from ore holes. Geo-sientifi modeling. Reonstrut 3D geometri figures from points. Mrketing. Model mrket of US metro re t individul retil store level. Metllurgy. Modeling "grin growth" in metl films. Physiology. Anlysis of pillry distriution in ross-setions of musle tissue. Rootis. Pth plnning for root to minimize risk of ollision. Typogrphy. Chrter reognition, eveled nd rved lettering. Zoology. Model nd nlyze the territories of nimls. Referenes: Yer 1644 Disoverer Desrtes Disipline Astronomy Nme "Hevens" 1850 Dirihlet Mth Dirihlet tesseltion Voronoi Boldyrev Mth Geology Voronoi digrm re of influene polygons Thiessen Niggli Meteorology Crystllogrphy Thiessen polygons domins of tion Wigner-Seitz Frnk-Csper Physis Physis Wigner-Seitz regions tom domins Brown Med Eology Eology re of potentilly ville plnt polygons 1985 Hoofd et l. Antomy pillry domins Referene: Kenneth E. Hoff III 40 41
10 Fortune's Algorithm Fortune's Algorithm Fortune's lgorithm. Sweep-line lgorithm n e implemented in O() time. ut very triky to get right due to degenery nd floting point! Algorithm Brute Fortune Preproess 1 Query N log N Disretized Voronoi Hoff's Algorithm Disretized Voronoi. Solve nerest neighor prolem on n N-y-N grid. Hoff's lgorithm. Align pex of right irulr one with sites.! Minimum envelope of one intersetions projeted onto plne is the Voronoi digrm.! View ones in different olors & render Voronoi. Brute fore. For eh grid ell, mintin losest point. When dding new point to Voronoi, updte N 2 ells. Implementtion. Drw ones using stndrd grphis hrdwre!
11 Deluny Tringultion Summry Deluny tringultion. Tringultion of N points suh tht no point is inside irumirle of ny other tringle. Summry. Mny fundmentl geometri prolems require ingenuity to solve lrge instnes. Ft 0. It exists nd is unique (ssuming no degenery). Ft 1. Dul of Voronoi (onnet djent points in Voronoi digrm). Ft 2. No edges ross & O(N) edges. Ft 3. Mximizes the minimum ngle for ll tringulr elements. Ft 4. Boundry of Deluny tringultion is onvex hull. Ft 5. Shortest Deluny edge onnets losest pir of points. Prolem onvex hull losest pir Brute Cleverness N 2 N 2 furthest pir N 2 Deluny tringultion N 4 polygon tringultion N 2 N Deluny Voronoi symptoti time to solve 2D prolem with N points 46 47
Geometric Algorithms. Geometric Algorithms. Warning: Intuition May Mislead. Geometric Primitives
Geometri Algorithms Geometri Algorithms Convex hull Geometri primitives Closest pir of points Voronoi Applitions. Dt mining. VLSI design. Computer vision. Mthemtil models. Astronomil simultion. Geogrphi
More informationConvex Hull Algorithms. Convex hull: basic facts
CG Leture D Conve Hull Algorithms Bsi fts Algorithms: Nïve, Gift wrpping, Grhm sn, Quik hull, Divide-nd-onquer Lower ound 3D Bsi fts Algorithms: Gift wrpping, Divide nd onquer, inrementl Conve hulls in
More informationCS 551 Computer Graphics. Hidden Surface Elimination. Z-Buffering. Basic idea: Hidden Surface Removal
CS 55 Computer Grphis Hidden Surfe Removl Hidden Surfe Elimintion Ojet preision lgorithms: determine whih ojets re in front of others Uses the Pinter s lgorithm drw visile surfes from k (frthest) to front
More informationWidth and Bounding Box of Imprecise Points
Width nd Bounding Box of Impreise Points Vhideh Keikh Mrten Löffler Ali Mohdes Zhed Rhmti Astrt In this pper we study the following prolem: we re given set L = {l 1,..., l n } of prllel line segments,
More informationGeometric Primitives. primitive operations convex hull closest pair voronoi diagram. primitive operations convex hull closest pair voronoi diagram
Geometric Primitives primitive operations convex hull closest pair voronoi diagram Geometric algorithms Applications. Data mining. VLSI design. Computer vision. Mathematical models. Astronomical simulation.
More informationInternet Routing. IP Packet Format. IP Fragmentation & Reassembly. Principles of Internet Routing. Computer Networks 9/29/2014.
omputer Networks 9/29/2014 IP Pket Formt Internet Routing Ki Shen IP protool version numer heder length (words) for qulity of servie mx numer remining hops (deremented t eh router) upper lyer protool to
More informationDistance Computation between Non-convex Polyhedra at Short Range Based on Discrete Voronoi Regions
Distne Computtion etween Non-onvex Polyhedr t Short Rnge Bsed on Disrete Voronoi Regions Ktsuki Kwhi nd Hiroms Suzuki Deprtment of Preision Mhinery Engineering, The University of Tokyo 7-3-1 Hongo, Bunkyo-ku,
More informationMinimal Memory Abstractions
Miniml Memory Astrtions (As implemented for BioWre Corp ) Nthn Sturtevnt University of Alert GAMES Group Ferury, 7 Tlk Overview Prt I: Building Astrtions Minimizing memory requirements Performnes mesures
More informationFinal Exam Review F 06 M 236 Be sure to look over all of your tests, as well as over the activities you did in the activity book
inl xm Review 06 M 236 e sure to loo over ll of your tests, s well s over the tivities you did in the tivity oo 1 1. ind the mesures of the numered ngles nd justify your wor. Line j is prllel to line.
More informationLine The set of points extending in two directions without end uniquely determined by two points. The set of points on a line between two points
Lines Line Line segment Perpendiulr Lines Prllel Lines Opposite Angles The set of points extending in two diretions without end uniquely determined by two points. The set of points on line between two
More information3D convex hulls. Convex Hull in 3D. convex polyhedron. convex polyhedron. The problem: Given a set P of points in 3D, compute their convex hull
Convex Hull in The rolem: Given set P of oints in, omute their onvex hull onvex hulls Comuttionl Geometry [si 3250] Lur Tom Bowoin College onvex olyheron 1 2 3 olygon olyheron onvex olyheron 4 5 6 Polyheron
More informationTight triangulations: a link between combinatorics and topology
Tight tringultions: link between ombintoris nd topology Jonthn Spreer Melbourne, August 15, 2016 Topologil mnifolds (Geometri) Topology is study of mnifolds (surfes) up to ontinuous deformtion Complited
More informationMath 227 Problem Set V Solutions. f ds =
Mth 7 Problem Set V Solutions If is urve with prmetriztion r(t), t b, then we define the line integrl f ds b f ( r(t) ) dr dt (t) dt. Evlute the line integrl f(x,y,z)ds for () f(x,y,z) xosz, the urve with
More informationCan Pythagoras Swim?
Overview Ativity ID: 8939 Mth Conepts Mterils Students will investigte reltionships etween sides of right tringles to understnd the Pythgoren theorem nd then use it to solve prolems. Students will simplify
More information2 Computing all Intersections of a Set of Segments Line Segment Intersection
15-451/651: Design & Anlysis of Algorithms Novemer 14, 2016 Lecture #21 Sweep-Line nd Segment Intersection lst chnged: Novemer 8, 2017 1 Preliminries The sweep-line prdigm is very powerful lgorithmic design
More informationCS 241 Week 4 Tutorial Solutions
CS 4 Week 4 Tutoril Solutions Writing n Assemler, Prt & Regulr Lnguges Prt Winter 8 Assemling instrutions utomtilly. slt $d, $s, $t. Solution: $d, $s, nd $t ll fit in -it signed integers sine they re 5-it
More informationComputational geometry
Leture 23 Computtionl geometry Supplementl reding in CLRS: Chpter 33 exept 33.3 There re mny importnt prolems in whih the reltionships we wish to nlyze hve geometri struture. For exmple, omputtionl geometry
More informationDistance vector protocol
istne vetor protool Irene Finohi finohi@i.unirom.it Routing Routing protool Gol: etermine goo pth (sequene of routers) thru network from soure to Grph strtion for routing lgorithms: grph noes re routers
More informationLesson 4.4. Euler Circuits and Paths. Explore This
Lesson 4.4 Euler Ciruits nd Pths Now tht you re fmilir with some of the onepts of grphs nd the wy grphs onvey onnetions nd reltionships, it s time to egin exploring how they n e used to model mny different
More informations 1 t 4 s 2 4 t 2 a b r 2 r 8 r10 g 4
k-pirs Non-Crossing Shortest Pths in Simple Polgon Evnthi Ppdopoulou Northwestern Universit, Evnston, Illinois 60208, USA Astrt. This pper presents n O(n + k) time lgorithm to ompute the set of k non-rossing
More informationV = set of vertices (vertex / node) E = set of edges (v, w) (v, w in V)
Definitions G = (V, E) V = set of verties (vertex / noe) E = set of eges (v, w) (v, w in V) (v, w) orere => irete grph (igrph) (v, w) non-orere => unirete grph igrph: w is jent to v if there is n ege from
More informationChapter 2. Chapter 2 5. Section segments: AB, BC, BD, BE. 32. N 53 E GEOMETRY INVESTIGATION Answers will vary. 34. (a) N. sunset.
Chpter 2 5 Chpter 2 32. N 53 E GEOMETRY INVESTIGATION Answers will vry. 34. () N Setion 2.1 2. 4 segments: AB, BC, BD, BE sunset sunrise 4. 2 rys: CD (or CE ), CB (or CA ) 6. ED, EC, EB W Oslo, Norwy E
More informationCMPUT101 Introduction to Computing - Summer 2002
CMPUT Introdution to Computing - Summer 22 %XLOGLQJ&RPSXWHU&LUFXLWV Chpter 4.4 3XUSRVH We hve looked t so fr how to uild logi gtes from trnsistors. Next we will look t how to uild iruits from logi gtes,
More informationCameras. Importance of camera models
pture imges mesuring devie Digitl mers mers fill in memor ith olor-smple informtion D hrge-oupled Devie insted of film film lso hs finite resolution grininess depends on speed IS 00 00 6400 sie 35mm IMAX
More informationa c = A C AD DB = BD
1.) SIMILR TRINGLES.) Some possile proportions: Geometry Review- M.. Sntilli = = = = =.) For right tringle ut y its ltitude = = =.) Or for ll possiilities, split into 3 similr tringles: ll orresponding
More informationPresentation Martin Randers
Presenttion Mrtin Rnders Outline Introduction Algorithms Implementtion nd experiments Memory consumption Summry Introduction Introduction Evolution of species cn e modelled in trees Trees consist of nodes
More informationChapter 9. Greedy Technique. Copyright 2007 Pearson Addison-Wesley. All rights reserved.
Chpter 9 Greey Tehnique Copyright 2007 Person Aison-Wesley. All rights reserve. Greey Tehnique Construts solution to n optimiztion prolem piee y piee through sequene of hoies tht re: fesile lolly optiml
More informationIntroducing fractions
Introduing frtions Nme Colour hlf of eh shpe: Show the following fr ons: out of out of out of Lel these fr ons: Shde these fr ons: 7 0 Represents ommon fr ons on different models Interprets the numertor
More informationCompact Drawings of 1-Planar Graphs with Right-Angle Crossings and Few Bends
Compt Drwings of 1-Plnr Grphs with Right-Angle Crossings nd Few Bends Steven Chplik, Fbin Lipp, Alexnder Wolff, nd Johnnes Zink Lehrstuhl für Informtik I, Universität Würzburg, Germny http://www1.informtik.uni-wuerzburg.de/en/stff
More informationDoubts about how to use azimuth values from a Coordinate Object. Juan Antonio Breña Moral
Douts out how to use zimuth vlues from Coordinte Ojet Jun Antonio Breñ Morl # Definition An Azimuth is the ngle from referene vetor in referene plne to seond vetor in the sme plne, pointing towrd, (ut
More informationPolygonal Approximation of Voronoi Diagrams of a Set of Triangles in Three Dimensions Marek Teichmann Seth Teller MIT Computer Graphics Group Abstract
Polygonl Approximtion of Voronoi Digrms of Set of Tringles in Three Dimensions Mrek Teihmnn Seth Teller MIT Computer Grphis Group Astrt We desrie roust dptive mrhing tetrhedr type lgorithm for onstruting
More informationSolving Problems by Searching. CS 486/686: Introduction to Artificial Intelligence Winter 2016
Solving Prolems y Serching CS 486/686: Introduction to Artificil Intelligence Winter 2016 1 Introduction Serch ws one of the first topics studied in AI - Newell nd Simon (1961) Generl Prolem Solver Centrl
More informationMITSUBISHI ELECTRIC RESEARCH LABORATORIES Cambridge, Massachusetts. Introduction to Matroids and Applications. Srikumar Ramalingam
Cmrige, Msshusetts Introution to Mtrois n Applitions Srikumr Rmlingm MERL mm//yy Liner Alger (,0,0) (0,,0) Liner inepenene in vetors: v, v2,..., For ll non-trivil we hve s v s v n s, s2,..., s n 2v2...
More informationCS453 INTRODUCTION TO DATAFLOW ANALYSIS
CS453 INTRODUCTION TO DATAFLOW ANALYSIS CS453 Leture Register llotion using liveness nlysis 1 Introdution to Dt-flow nlysis Lst Time Register llotion for expression trees nd lol nd prm vrs Tody Register
More informationCS553 Lecture Introduction to Data-flow Analysis 1
! Ide Introdution to Dt-flow nlysis!lst Time! Implementing Mrk nd Sweep GC!Tody! Control flow grphs! Liveness nlysis! Register llotion CS553 Leture Introdution to Dt-flow Anlysis 1 Dt-flow Anlysis! Dt-flow
More informationDistributed Systems Principles and Paradigms. Chapter 11: Distributed File Systems
Distriuted Systems Priniples nd Prdigms Mrten vn Steen VU Amsterdm, Dept. Computer Siene steen@s.vu.nl Chpter 11: Distriuted File Systems Version: Deemer 10, 2012 2 / 14 Distriuted File Systems Distriuted
More informationPattern Matching. Pattern Matching. Pattern Matching. Review of Regular Expressions
Pttern Mthing Pttern Mthing Some of these leture slides hve een dpted from: lgorithms in C, Roert Sedgewik. Gol. Generlize string serhing to inompletely speified ptterns. pplitions. Test if string or its
More informationGreedy Algorithm. Algorithm Fall Semester
Greey Algorithm Algorithm 0 Fll Semester Optimiztion prolems An optimiztion prolem is one in whih you wnt to fin, not just solution, ut the est solution A greey lgorithm sometimes works well for optimiztion
More informationMa/CS 6b Class 1: Graph Recap
M/CS 6 Clss 1: Grph Recp By Adm Sheffer Course Detils Instructor: Adm Sheffer. TA: Cosmin Pohot. 1pm Mondys, Wednesdys, nd Fridys. http://mth.cltech.edu/~2015-16/2term/m006/ Min ook: Introduction to Grph
More informationOutline. Motivation Background ARCH. Experiment Additional usages for Input-Depth. Regular Expression Matching DPI over Compressed HTTP
ARCH This work ws supported y: The Europen Reserh Counil, The Isreli Centers of Reserh Exellene, The Neptune Consortium, nd Ntionl Siene Foundtion wrd CNS-119748 Outline Motivtion Bkground Regulr Expression
More informationUNCORRECTED SAMPLE PAGES. Angle relationships and properties of 6geometrical figures 1. Online resources. What you will learn
Online resoures uto-mrked hpter pre-test Video demonstrtions of ll worked exmples Intertive widgets Intertive wlkthroughs Downlodle HOTsheets ess to ll HOTmths ustrlin urriulum ourses ess to the HOTmths
More information6.3 Volumes. Just as area is always positive, so is volume and our attitudes towards finding it.
6.3 Volumes Just s re is lwys positive, so is volume nd our ttitudes towrds finding it. Let s review how to find the volume of regulr geometric prism, tht is, 3-dimensionl oject with two regulr fces seprted
More informationThe Network Layer: Routing in the Internet. The Network Layer: Routing & Addressing Outline
CPSC 852 Internetworking The Network Lyer: Routing in the Internet Mihele Weigle Deprtment of Computer Siene Clemson University mweigle@s.lemson.edu http://www.s.lemson.edu/~mweigle/ourses/ps852 1 The
More informationand vertically shrinked by
1. A first exmple 1.1. From infinite trnsltion surfe mp to end-periodi mp. We begin with n infinite hlf-trnsltion surfe M 0 desribed s in Figure 1 nd n ffine mp f 0 defined s follows: the surfe is horizontlly
More informationWORKSHOP 9 HEX MESH USING SWEEP VECTOR
WORKSHOP 9 HEX MESH USING SWEEP VECTOR WS9-1 WS9-2 Prolem Desription This exerise involves importing urve geometry from n IGES file. The urves re use to rete other urves. From the urves trimme surfes re
More informationGrade 7/8 Math Circles Geometric Arithmetic October 31, 2012
Fculty of Mthemtics Wterloo, Ontrio N2L 3G1 Grde 7/8 Mth Circles Geometric Arithmetic Octoer 31, 2012 Centre for Eduction in Mthemtics nd Computing Ancient Greece hs given irth to some of the most importnt
More informationMa/CS 6b Class 1: Graph Recap
M/CS 6 Clss 1: Grph Recp By Adm Sheffer Course Detils Adm Sheffer. Office hour: Tuesdys 4pm. dmsh@cltech.edu TA: Victor Kstkin. Office hour: Tuesdys 7pm. 1:00 Mondy, Wednesdy, nd Fridy. http://www.mth.cltech.edu/~2014-15/2term/m006/
More informationZZ - Advanced Math Review 2017
ZZ - Advnced Mth Review Mtrix Multipliction Given! nd! find the sum of the elements of the product BA First, rewrite the mtrices in the correct order to multiply The product is BA hs order x since B is
More informationWORKSHOP 8B TENSION COUPON
WORKSHOP 8B TENSION COUPON WS8B-2 Workshop Ojetives Prtie reting n eiting geometry Prtie mesh seeing n iso meshing tehniques. WS8B-3 Suggeste Exerise Steps 1. Crete new tse. 2. Crete geometry moel of the
More information4452 Mathematical Modeling Lecture 4: Lagrange Multipliers
Mth Modeling Lecture 4: Lgrnge Multipliers Pge 4452 Mthemticl Modeling Lecture 4: Lgrnge Multipliers Lgrnge multipliers re high powered mthemticl technique to find the mximum nd minimum of multidimensionl
More informationDuality in linear interval equations
Aville online t http://ijim.sriu..ir Int. J. Industril Mthemtis Vol. 1, No. 1 (2009) 41-45 Dulity in liner intervl equtions M. Movhedin, S. Slhshour, S. Hji Ghsemi, S. Khezerloo, M. Khezerloo, S. M. Khorsny
More informationLast Time? Ray Casting II. Explicit vs. Implicit? Assignment 1: Ray Casting. Object-Oriented Design. Graphics Textbooks
Csting II Lst Time? Csting / Tring Orthogrphi Cmer epresenttion (t) = origin + t * diretion -Sphere Intersetion -lne Intersetion Impliit vs. Epliit epresenttions MIT EECS 6.837, Cutler nd Durnd 1 MIT EECS
More informationChapter44. Polygons and solids. Contents: A Polygons B Triangles C Quadrilaterals D Solids E Constructing solids
Chpter44 Polygons nd solids Contents: A Polygons B Tringles C Qudrilterls D Solids E Constructing solids 74 POLYGONS AND SOLIDS (Chpter 4) Opening prolem Things to think out: c Wht different shpes cn you
More informationOrthogonal line segment intersection
Computtionl Geometry [csci 3250] Line segment intersection The prolem (wht) Computtionl Geometry [csci 3250] Orthogonl line segment intersection Applictions (why) Algorithms (how) A specil cse: Orthogonl
More informationAnswer Key Lesson 6: Workshop: Angles and Lines
nswer Key esson 6: tudent Guide ngles nd ines Questions 1 3 (G p. 406) 1. 120 ; 360 2. hey re the sme. 3. 360 Here re four different ptterns tht re used to mke quilts. Work with your group. se your Power
More informationLecture 8: Graph-theoretic problems (again)
COMP36111: Advned Algorithms I Leture 8: Grph-theoreti prolems (gin) In Prtt-Hrtmnn Room KB2.38: emil: iprtt@s.mn..uk 2017 18 Reding for this leture: Sipser: Chpter 7. A grph is pir G = (V, E), where V
More informationApproximate computations
Living with floting-point numers Stndrd normlized representtion (sign + frction + exponent): Approximte computtions Rnges of vlues: Representtions for:, +, +0, 0, NN (not numer) Jordi Cortdell Deprtment
More informationCalculus Differentiation
//007 Clulus Differentition Jeffrey Seguritn person in rowot miles from the nerest point on strit shoreline wishes to reh house 6 miles frther down the shore. The person n row t rte of mi/hr nd wlk t rte
More informationInter-domain Routing
COMP 631: NETWORKED & DISTRIBUTED SYSTEMS Inter-domin Routing Jsleen Kur Fll 2016 1 Internet-sle Routing: Approhes DV nd link-stte protools do not sle to glol Internet How to mke routing slle? Exploit
More informationOrder these angles from smallest to largest by wri ng 1 to 4 under each one. Put a check next to the right angle.
Lines nd ngles Connect ech set of lines to the correct nme: prllel perpendiculr Order these ngles from smllest to lrgest y wri ng to 4 under ech one. Put check next to the right ngle. Complete this tle
More informationStained Glass Design. Teaching Goals:
Stined Glss Design Time required 45-90 minutes Teching Gols: 1. Students pply grphic methods to design vrious shpes on the plne.. Students pply geometric trnsformtions of grphs of functions in order to
More informationParadigm 5. Data Structure. Suffix trees. What is a suffix tree? Suffix tree. Simple applications. Simple applications. Algorithms
Prdigm. Dt Struture Known exmples: link tble, hep, Our leture: suffix tree Will involve mortize method tht will be stressed shortly in this ourse Suffix trees Wht is suffix tree? Simple pplitions History
More informationDistributed Systems Principles and Paradigms
Distriuted Systems Priniples nd Prdigms Christoph Dorn Distriuted Systems Group, Vienn University of Tehnology.dorn@infosys.tuwien..t http://www.infosys.tuwien..t/stff/dorn Slides dpted from Mrten vn Steen,
More information50 AMC LECTURES Lecture 2 Analytic Geometry Distance and Lines. can be calculated by the following formula:
5 AMC LECTURES Lecture Anlytic Geometry Distnce nd Lines BASIC KNOWLEDGE. Distnce formul The distnce (d) between two points P ( x, y) nd P ( x, y) cn be clculted by the following formul: d ( x y () x )
More informationCOMP 423 lecture 11 Jan. 28, 2008
COMP 423 lecture 11 Jn. 28, 2008 Up to now, we hve looked t how some symols in n lphet occur more frequently thn others nd how we cn sve its y using code such tht the codewords for more frequently occuring
More informationContainers: Queue and List
Continers: Queue n List Queue A ontiner in whih insertion is one t one en (the til) n eletion is one t the other en (the he). Also lle FIFO (First-In, First-Out) Jori Cortell n Jori Petit Deprtment of
More informationReview Packet #3 Notes
SCIE 40, Fll 05 Miller Review Pket # Notes Prllel Lines If two prllel lines re onneted y third line (lled the trnsversl), the resulting ngles re either ongruent or supplementry. Angle pirs re nmed s follows:
More informationGeometrical reasoning 1
MODULE 5 Geometril resoning 1 OBJECTIVES This module is for study y n individul teher or group of tehers. It: looks t pprohes to developing pupils visulistion nd geometril resoning skills; onsiders progression
More informationSlides for Data Mining by I. H. Witten and E. Frank
Slides for Dt Mining y I. H. Witten nd E. Frnk Simplicity first Simple lgorithms often work very well! There re mny kinds of simple structure, eg: One ttriute does ll the work All ttriutes contriute eqully
More information10.2 Graph Terminology and Special Types of Graphs
10.2 Grph Terminology n Speil Types of Grphs Definition 1. Two verties u n v in n unirete grph G re lle jent (or neighors) in G iff u n v re enpoints of n ege e of G. Suh n ege e is lle inient with the
More informationProblem Final Exam Set 2 Solutions
CSE 5 5 Algoritms nd nd Progrms Prolem Finl Exm Set Solutions Jontn Turner Exm - //05 0/8/0. (5 points) Suppose you re implementing grp lgoritm tt uses ep s one of its primry dt strutures. Te lgoritm does
More informationReview Packet #3 Notes
SCIE 40, Spring 0 Miller Review Pket # Notes Mpping Nottion We use mpping nottion to note how oordinte hnges. For exmple, if the point ( ) trnsformed under mpping nottion of ( x, y) ( x, y), then it eomes
More informationWhat are suffix trees?
Suffix Trees 1 Wht re suffix trees? Allow lgorithm designers to store very lrge mount of informtion out strings while still keeping within liner spce Allow users to serch for new strings in the originl
More informationa < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1
Mth 33 Volume Stewrt 5.2 Geometry of integrls. In this section, we will lern how to compute volumes using integrls defined by slice nlysis. First, we recll from Clculus I how to compute res. Given the
More informationAgilent Mass Hunter Software
Agilent Mss Hunter Softwre Quick Strt Guide Use this guide to get strted with the Mss Hunter softwre. Wht is Mss Hunter Softwre? Mss Hunter is n integrl prt of Agilent TOF softwre (version A.02.00). Mss
More informationCOSC 6374 Parallel Computation. Non-blocking Collective Operations. Edgar Gabriel Fall Overview
COSC 6374 Prllel Computtion Non-loking Colletive Opertions Edgr Griel Fll 2014 Overview Impt of olletive ommunition opertions Impt of ommunition osts on Speedup Crtesin stenil ommunition All-to-ll ommunition
More informationSystems I. Logic Design I. Topics Digital logic Logic gates Simple combinational logic circuits
Systems I Logic Design I Topics Digitl logic Logic gtes Simple comintionl logic circuits Simple C sttement.. C = + ; Wht pieces of hrdwre do you think you might need? Storge - for vlues,, C Computtion
More informationLecture 7: Building 3D Models (Part 1) Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)
Computer Grphics (CS 4731) Lecture 7: Building 3D Models (Prt 1) Prof Emmnuel Agu Computer Science Dept. Worcester Polytechnic Institute (WPI) Stndrd d Unit itvectors Define y i j 1,0,0 0,1,0 k i k 0,0,1
More informationCS 340, Fall 2016 Sep 29th Exam 1 Note: in all questions, the special symbol ɛ (epsilon) is used to indicate the empty string.
CS 340, Fll 2016 Sep 29th Exm 1 Nme: Note: in ll questions, the speil symol ɛ (epsilon) is used to indite the empty string. Question 1. [10 points] Speify regulr expression tht genertes the lnguge over
More informationBefore We Begin. Introduction to Spatial Domain Filtering. Introduction to Digital Image Processing. Overview (1): Administrative Details (1):
Overview (): Before We Begin Administrtive detils Review some questions to consider Winter 2006 Imge Enhncement in the Sptil Domin: Bsics of Sptil Filtering, Smoothing Sptil Filters, Order Sttistics Filters
More informationB. Definition: The volume of a solid of known integrable cross-section area A(x) from x = a
Mth 176 Clculus Sec. 6.: Volume I. Volume By Slicing A. Introduction We will e trying to find the volume of solid shped using the sum of cross section res times width. We will e driving towrd developing
More informationWORKSHOP 19 GLOBAL/LOCAL MODELING USING FEM FIELDS
WORKSHOP 19 GLOBAL/LOCAL MODELING USING FEM FIELDS WS19-1 WS19-2 Prolem Desription This exerise is use to emonstrte how to mp isplement results from the nlysis of glol(overll) moel onto the perimeter of
More informationIf you are at the university, either physically or via the VPN, you can download the chapters of this book as PDFs.
Lecture 5 Wlks, Trils, Pths nd Connectedness Reding: Some of the mteril in this lecture comes from Section 1.2 of Dieter Jungnickel (2008), Grphs, Networks nd Algorithms, 3rd edition, which is ville online
More informationSolving Problems by Searching. CS 486/686: Introduction to Artificial Intelligence
Solving Prolems y Serching CS 486/686: Introduction to Artificil Intelligence 1 Introduction Serch ws one of the first topics studied in AI - Newell nd Simon (1961) Generl Prolem Solver Centrl component
More informationTiling Triangular Meshes
Tiling Tringulr Meshes Ming-Yee Iu EPFL I&C 1 Introdution Astrt When modelling lrge grphis senes, rtists re not epeted to model minute nd repetitive fetures suh s grss or snd with individul piees of geometry
More informationLecture 12 : Topological Spaces
Leture 12 : Topologil Spes 1 Topologil Spes Topology generlizes notion of distne nd loseness et. Definition 1.1. A topology on set X is olletion T of susets of X hving the following properties. 1. nd X
More informationLecture 10 Evolutionary Computation: Evolution strategies and genetic programming
Lecture 10 Evolutionry Computtion: Evolution strtegies nd genetic progrmming Evolution strtegies Genetic progrmming Summry Negnevitsky, Person Eduction, 2011 1 Evolution Strtegies Another pproch to simulting
More informationMeasurement and geometry
Mesurement nd geometry 4 Geometry Geometry is everywhere. Angles, prllel lines, tringles nd qudrilterls n e found ll round us, in our homes, on trnsport, in onstrution, rt nd nture. This sene from Munih
More informationCOSC 6374 Parallel Computation. Communication Performance Modeling (II) Edgar Gabriel Fall Overview. Impact of communication costs on Speedup
COSC 6374 Prllel Computtion Communition Performne Modeling (II) Edgr Griel Fll 2015 Overview Impt of ommunition osts on Speedup Crtesin stenil ommunition All-to-ll ommunition Impt of olletive ommunition
More informationPackage Contents. Wireless-G USB Network Adapter with SpeedBooster USB Cable Setup CD-ROM with User Guide (English only) Quick Installation
A Division of Ciso Systems, In. Pkge Contents Wireless-G USB Network Adpter with SpeedBooster USB Cle Setup CD-ROM with User Guide (English only) Quik Instlltion 2,4 GHz 802.11g Wireless Model No. Model
More informationMesh Simplification. Mesh Simplification. Mesh Simplification Goals. Mesh Simplification Motivation. Mesh Simplification Overview.
Mesh Simlifition Mesh Simlifition homs Funkhouser Prineton University CS 56, Fll 6 ringles : 41,855 7,97,9 1,939 8,385 4,766 Division, Viewoint, Cohen Mesh Simlifition Motivtion Intertive visuliztion Store
More information12/9/14. CS151 Fall 20124Lecture (almost there) 12/6. Graphs. Seven Bridges of Königsberg. Leonard Euler
CS5 Fll 04Leture (lmost there) /6 Seven Bridges of Königserg Grphs Prof. Tny Berger-Wolf Leonrd Euler 707-783 Is it possile to wlk with route tht rosses eh ridge e Seven Bridges of Königserg Forget unimportnt
More informationCS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig
CS311H: Discrete Mthemtics Grph Theory IV Instructor: Işıl Dillig Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 1/25 A Non-plnr Grph Regions of Plnr Grph The plnr representtion of
More informationCOMPUTATION AND VISUALIZATION OF REACHABLE DISTRIBUTION NETWORK SUBSTATION VOLTAGE
24 th Interntionl Conferene on Eletriity Distriution Glsgow, 12-15 June 2017 Pper 0615 COMPUTATION AND VISUALIZATION OF REACHABLE DISTRIBUTION NETWORK SUBSTATION VOLTAGE Mihel SANKUR Dniel ARNOLD Lun SCHECTOR
More information5 ANGLES AND POLYGONS
5 GLES POLYGOS urling rige looks like onventionl rige when it is extene. However, it urls up to form n otgon to llow ots through. This Rolling rige is in Pington sin in Lonon, n urls up every Friy t miy.
More informationReprinted from "Algorithm Design" by M. T. Goodrich and R. Tamassia (c) 2002 John Wiley & Sons Inc.
Reprinted from "Algorithm Design" by M. T. Goodrich nd R. Tmssi (c) 2002 John Wiley & Sons Inc. 572 Chpter 12. Computtionl Geometry 12.5 Convex Hulls One of the most studied geometric problems is tht of
More informationF. R. K. Chung y. University ofpennsylvania. Philadelphia, Pennsylvania R. L. Graham. AT&T Labs - Research. March 2,1997.
Forced convex n-gons in the plne F. R. K. Chung y University ofpennsylvni Phildelphi, Pennsylvni 19104 R. L. Grhm AT&T Ls - Reserch Murry Hill, New Jersey 07974 Mrch 2,1997 Astrct In seminl pper from 1935,
More informationProduct of polynomials. Introduction to Programming (in C++) Numerical algorithms. Product of polynomials. Product of polynomials
Product of polynomils Introduction to Progrmming (in C++) Numericl lgorithms Jordi Cortdell, Ricrd Gvldà, Fernndo Orejs Dept. of Computer Science, UPC Given two polynomils on one vrile nd rel coefficients,
More informationWORKSHOP 8A TENSION COUPON
WORKSHOP 8A TENSION COUPON WS8A-2 Workshop Ojetives Buil the tension oupon geometry Control the mesh y using tehniques isusse in lss Compre FEA stress results to theoretil results From Stress Conentrtion
More informationTOWARDS GRADIENT BASED AERODYNAMIC OPTIMIZATION OF WIND TURBINE BLADES USING OVERSET GRIDS
TOWARDS GRADIENT BASED AERODYNAMIC OPTIMIZATION OF WIND TURBINE BLADES USING OVERSET GRIDS S. H. Jongsm E. T. A. vn de Weide H. W. M. Hoeijmkers Overset symposium 10-18-2012 Deprtment of mechnicl engineering
More information