A = p 4 B = p 5 CP = E[ p 7, p 2, p 3, p 6, p 1, p 8 ] S[p 4, p 5 ] d min = d 45 Plane Sweep Algorithm for Closest Pair Problem E=Event QueueS=Status Queue.

Slides:



Advertisements
Similar presentations
and 6.855J Dijkstras Algorithm with simple buckets (also known as Dials algorithm)
Advertisements

Ex: Solve x 2 + 6x +10 = 0 a = b = c = 1 st 2 nd.
and 6.855J Modified Label Correcting Algorithm.
Polygon Triangulation
Computational Geometry
 Review: The Greedy Method
ADA: 15. Basic Math1 Objective o a reminder about dot product and cross product, and their use for analyzing line segments (e.g. do two segments.
On Spatial-Range Closest Pair Query Jing Shan, Donghui Zhang and Betty Salzberg College of Computer and Information Science Northeastern University.
Agglomerative Hierarchical Clustering 1. Compute a distance matrix 2. Merge the two closest clusters 3. Update the distance matrix 4. Repeat Step 2 until.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
15.082J & 6.855J & ESD.78J Shortest Paths 2: Bucket implementations of Dijkstra’s Algorithm R-Heaps.
AB 11 22 33 44 55 66 77 88 99 10  20  19  18  17  16  15  14  13  12  11  21  22  23  24  25  26  27  28.
1 Dijkstra’s Minimum-Path Algorithm Minimum Spanning Tree CSE Lectures 20 – Intro to Graphs.
The Shortest Path Problem. Shortest-Path Algorithms Find the “shortest” path from point A to point B “Shortest” in time, distance, cost, … Numerous.
Closest Pair Given a set S = {p1, p2,..., pn} of n points in the plane find the two points of S whose distance is the smallest. Images in this presentation.
1 Today’s Material Computational Geometry Problems –Closest Pair Problem –Convex Hull Jarvis’s March, Graham’s scan –Farthest Point Problem.
Geometry (Holt 3-4)K.Santos. Perpendicular Bisector Perpendicular bisector of a segment is a line perpendicular to a segment at the segment’s midpoint.
9/5/06CS 6463: AT Computational Geometry1 CS 6463: AT Computational Geometry Fall 2006 Plane Sweep Algorithms and Segment Intersection Carola Wenk.
Robert Pless, CS 546: Computational Geometry Lecture #3 Last Time: Convex Hulls Today: Plane Sweep Algorithms, Segment Intersection, + (Element Uniqueness,
10/2/20061 Algorithms on grids Natasha Gelfand Geometry Seminar Fall 2006.
Network Optimization Problems: Models and Algorithms This handout: Minimum Spanning Tree Problem.
Example Input: points p 1, p 2,…,p 8 in a plane. Find a line L 1 such that 4 points are on one side and the other 4 points are.
Computational Geometry Overview from Cormen, et al. Chapter 33
Graphs & Graph Algorithms 2 Nelson Padua-Perez Bill Pugh Department of Computer Science University of Maryland, College Park.
CP = E[ s 2, s 5, s 1, s 3, s 2 ’, s 3 ’, s 4, s 1 ’, s 4 ’, s 5 ’ ] S[] I[] s1s1 s1’s1’ s2s2 s2’s2’ s4s4 s4’s4’ s3s3 s3’s3’ s5s5 s5’s5’ Plane Sweep Algorithm.
CS2420: Lecture 40 Vladimir Kulyukin Computer Science Department Utah State University.
An Interval MST Procedure Rebecca Nugent w/ Werner Stuetzle November 16, 2004.
1 Comments for Assignment 1 Q1 is basic part and is also part of outcome 1. Q2 is for outcome 1. Q3 is for outcome 2. To pass outcome 1, you need to get.
CE 230-Engineering Fluid Mechanics Lecture # 9 & 10 Hydrostatic forces on plane surfaces.
Graphs & Graph Algorithms 2 Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Vectors: planes. The plane Normal equation of the plane.
Global Routing. 2 B (2, 6) A (2, 1) C (6, 4) B (2, 6) A (2, 1) C (6, 4) S (2, 4) Rectilinear Steiner minimum tree (RSMT) Rectilinear minimum spanning.
Section 6.4a: Our standard (x, y) system is called the _____________ coordinate system rectangular Today, we start learning about the P PP POLAR coordinate.
Lesson opener 1. Name the plane 3 different ways. 2. Name line l differently. 3. Name 3 segments on line h. 4. Name a pair of opposite rays. 5. Name 3.
Dijkstra’s algorithm N: set of nodes for which shortest path already found Initialization: (Start with source node s) n N = {s}, D s = 0, “s is distance.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Computational Geometry (35/33) Line Segments and cross-product Segment intersection and Sweep Line Convex Hull and Graham’s Scan, Jarvis’s march Divide-and-Conquer.
Lecture 10 The Label Correcting Algorithm.
Graphing on a Coordinate Plane
Minimum Spanning Trees Suppose G = (V, E) is a undirected network. Each edge (i,j) in E has an associated ‘length’ c ij (cost, time, distance, …) Determine.
Algorithms 2005 Ramesh Hariharan. Divide and Conquer+Recursion Compact and Precise Algorithm Description.
Hierarchical Clustering Produces a set of nested clusters organized as a hierarchical tree Can be visualized as a dendrogram – A tree like diagram that.
AGENDA WARM-UP REVIEW PACKET QUESTIONS?? LESSON 21 EXIT CARD.
Clustering Algorithms Sunida Ratanothayanon. What is Clustering?
3:00. 2:59 2:58 2:57 2:56 2:55 2:54 2:53 2:52.
Do Now 8/29/12 Name the intersection of each pair of planes or lines
1/20/15CMPS 3130/6130 Computational Geometry1 CMPS 3130/6130 Computational Geometry Spring 2015 Plane Sweep Algorithms I Carola Wenk.
ПЕЧЕНЬ 9. Закладка печени в период эмбрионального развития.
CSE 373: Data Structures and Algorithms Lecture 21: Graphs V 1.
All Pairs Shortest Path Algorithms Aditya Sehgal Amlan Bhattacharya.
Voronoi Graph Voronoi region Vor(p) (p in set S) Voronoi Graph VOR(S)
CMPS 3130/6130 Computational Geometry Spring 2017
Top Fire Protection Services Ottawa available on Dubinskyconstruction
Tips Need to Consider When Organizing a College Event
Notation of lines in space
Party-by-Night Problem
4.1. EXTREMA OF functions Rita Korsunsky.
Sorting “Example” with Insertion Sort
ماجستير إدارة المعارض من بريطانيا
חקרשת webquest לכיתה ה2 , בי"ס "צהלה"
CSE 373: Data Structures and Algorithms
#. shop now P1080P · /' '
Convex Hulls Given a set of points (x1,y1),(x2,y2),…,(xn,yn), the convex hull is the smallest convex polygon containing all the points.
Finding the Distance Between Two Points
3.6 Prove Theorems about ⊥Lines
CSE 373 Data Structures and Algorithms
SP & CP கொடுக்கப்பட்டால் இலாபம்/நட்டம் கண்டறிதல்
When are you closest to the candy?
Implementation of Dijkstra’s Algorithm
Delivery systems & Cost
Presentation transcript:

A = p 4 B = p 5 CP = E[ p 7, p 2, p 3, p 6, p 1, p 8 ] S[p 4, p 5 ] d min = d 45 Plane Sweep Algorithm for Closest Pair Problem E=Event QueueS=Status Queue A,B = Current closest pair CP = Current point d min = Current minimum distance (distance between point A and B) d ij = distance between p i and p j p4p4 p1p1 p6p6 p2p2 p7p7 p8p8 p3p3 p5p5

Previous A = p 4 B = p 5 CP = E[ p 7, p 2, p 3, p 6, p 1, p 8 ] S[ p 4, p 5 ] d min = d 45 p4p4 p1p1 p6p6 p2p2 p7p7 p8p8 p3p3 p5p5 New A = p 4 B = p 5 CP = p 7 E[ p 7, p 2, p 3, p 6, p 1, p 8 ] S[ p 4, p 5, p 7 ] d min <= min (d min, d 57 ) = d 45 d 45

Previous A = p 4 B = p 5 CP = p 7 E[ p 2, p 3, p 6, p 1, p 8 ] S[ p 5, p 7 ] d min = d 45 p4p4 p1p1 p6p6 p2p2 p7p7 p8p8 p3p3 p5p5 New A = p 2 B = p 7 CP = p 2 E[ p 2, p 3, p 6, p 1, p 8 ] S[ p 5, p 7, p 2 ] d min <= min (d min, d 25, d 27 ) = d 27 d 45

Previous A = p 2 B = p 7 CP = p 2 E[ p 3, p 6, p 1, p 8 ] S[ p 5, p 7, p 2 ] d min = d 27 p4p4 p1p1 p6p6 p2p2 p7p7 p8p8 p3p3 p5p5 New A = p 2 B = p 7 CP = p 3 E[ p 3, p 6, p 1, p 8 ] S[ p 5, p 7, p 2, p 3 ] d min <= d 27 d 27

Previous A = p 2 B = p 7 CP = p 3 E[ p 6, p 1, p 8 ] S[p 3 ] d min <= d 27 p4p4 p1p1 p6p6 p2p2 p7p7 p8p8 p3p3 p5p5 New A = p 3 B = p 6 CP = p 6 E[ p 6, p 1, p 8 ] S[ p 3, p 6 ] d min <= min (d min, d 36 ) = d 36 d 27

Previous A = p 3 B = p 6 CP = p 6 E[ p 1, p 8 ] S[p 3, p 6 ] d min <= d 36 p4p4 p1p1 p6p6 p2p2 p7p7 p8p8 p3p3 p5p5 New A = p 3 B = p 6 CP = p 1 E[ p 1, p 8 ] S[ p 3, p 6, p 1 ] d min <= d 36 d 36

Previous A = p 3 B = p 6 CP = p 1 E[ p 8 ] S[ p 1 ] d min <= d 36 p4p4 p1p1 p6p6 p2p2 p7p7 p8p8 p3p3 p5p5 New A = p 3 B = p 6 CP = p 8 E[ p 8 ] S[ p 1, p 8 ] d min <= d 36 d 36 Event Queue Is Empty, therefore STOP