Space-Efficient Algorithms for Computing the Convex Hull of A
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
Gscan: Accelerating Graham Scan on The
gScan:AcceleratingGrahamScanontheGPU Gang Mei Institute of Earth and Environmental Science, University of Freiburg Albertstr.23B, D-79104, Freiburg im Breisgau, Germany E-mail: [email protected] Abstract This paper presents a fast implementation of the Graham scan on the GPU. The proposed algorithm is composed of two stages: (1) two rounds of preprocessing performed on the GPU and (2) the finalization of finding the convex hull on the CPU. We first discard the interior points that locate inside a quadrilateral formed by four extreme points, sort the remaining points according to the angles, and then divide them into the left and the right regions. For each region, we perform a second round of filtering using the proposed preprocessing approach to discard the interior points in further. We finally obtain the expected convex hull by calculating the convex hull of the remaining points on the CPU. We directly employ the parallel sorting, reduction, and partitioning provided by the library Thrust for better efficiency and simplicity. Experimental results show that our implementation achieves 6x ~ 7x speedups over the Qhull implementation for 20M points. Keywords: GPU, CUDA, Convex Hull, Graham Scan, Divide-and-Conquer, Data Dependency 1.Introduction Given a set of planar points S, the 2D convex hull problem is to find the smallest polygon that contains all the points in S. This problem is a fundamental issue in computer science and has been studied extensively. Several classic convex hull algorithms have been proposed [1-7]; most of them run in O(nlogn) time. Among them, the Graham scan algorithm [1] is the first practical convex hull algorithm, while QuickHull [7] is the most efficient and popular one in practice. -
Geometric Algorithms
Geometric Algorithms primitive operations convex hull closest pair voronoi diagram References: Algorithms in C (2nd edition), Chapters 24-25 http://www.cs.princeton.edu/introalgsds/71primitives http://www.cs.princeton.edu/introalgsds/72hull 1 Geometric Algorithms Applications. • Data mining. • VLSI design. • Computer vision. • Mathematical models. • Astronomical simulation. • Geographic information systems. airflow around an aircraft wing • Computer graphics (movies, games, virtual reality). • Models of physical world (maps, architecture, medical imaging). Reference: http://www.ics.uci.edu/~eppstein/geom.html History. • Ancient mathematical foundations. • Most geometric algorithms less than 25 years old. 2 primitive operations convex hull closest pair voronoi diagram 3 Geometric Primitives Point: two numbers (x, y). any line not through origin Line: two numbers a and b [ax + by = 1] Line segment: two points. Polygon: sequence of points. Primitive operations. • Is a point inside a polygon? • Compare slopes of two lines. • Distance between two points. • Do two line segments intersect? Given three points p , p , p , is p -p -p a counterclockwise turn? • 1 2 3 1 2 3 Other geometric shapes. • Triangle, rectangle, circle, sphere, cone, … • 3D and higher dimensions sometimes more complicated. 4 Intuition Warning: intuition may be misleading. • Humans have spatial intuition in 2D and 3D. • Computers do not. • Neither has good intuition in higher dimensions! Is a given polygon simple? no crossings 1 6 5 8 7 2 7 8 6 4 2 1 1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 2 18 4 18 4 19 4 19 4 20 3 20 3 20 1 10 3 7 2 8 8 3 4 6 5 15 1 11 3 14 2 16 we think of this algorithm sees this 5 Polygon Inside, Outside Jordan curve theorem. -
Official Form 309F (For Corporations Or Partnerships)
17-22445-rdd Doc 9 Filed 03/28/17 Entered 03/28/17 11:28:37 Ch 11 First Mtg Corp/Part Pg 1 of 3 Information to identify the case: Debtor Metro Newspaper Advertising Services, Inc. EIN 13−1038730 Name United States Bankruptcy Court Southern District of New York Date case filed for chapter 11 3/27/17 Case number: 17−22445−rdd Official Form 309F (For Corporations or Partnerships) Notice of Chapter 11 Bankruptcy Case 12/15 For the debtor listed above, a case has been filed under chapter 11 of the Bankruptcy Code. An order for relief has been entered. This notice has important information about the case for creditors, debtors, and trustees, including information about the meeting of creditors and deadlines. Read both pages carefully. The filing of the case imposed an automatic stay against most collection activities. This means that creditors generally may not take action to collect debts from the debtor or the debtor's property. For example, while the stay is in effect, creditors cannot sue, assert a deficiency, repossess property, or otherwise try to collect from the debtor. Creditors cannot demand repayment from the debtor by mail, phone, or otherwise. Creditors who violate the stay can be required to pay actual and punitive damages and attorney's fees. Confirmation of a chapter 11 plan may result in a discharge of debt. A creditor who wants to have a particular debt excepted from discharge may be required to file a complaint in the bankruptcy clerk's office within the deadline specified in this notice. -
Optimal Output-Sensitive Convex Hull Algorithms in Two and Three Dimensions*
Discrete Comput Geom 16:361-368 (1996) GeometryDiscrete & Computational ~) 1996Springer-Verlag New YorkInc. Optimal Output-Sensitive Convex Hull Algorithms in Two and Three Dimensions* T. M. Chan Department of Computer Science, University of British Columbia, Vancouver, British Columbia, Canada V6T 1Z4 Abstract. We present simple output-sensitive algorithms that construct the convex hull of a set of n points in two or three dimensions in worst-case optimal O (n log h) time and O(n) space, where h denotes the number of vertices of the convex hull. 1. Introduction Given a set P ofn points in the Euclidean plane E 2 or Euclidean space E 3, we consider the problem of computing the convex hull of P, cony(P), which is defined as the smallest convex set containing P. The convex hull problem has received considerable attention in computational geometry [11], [21], [23], [25]. In E 2 an algorithm known as Graham's scan [15] achieves O(n logn) rtmning time, and in E 3 an algorithm by Preparata and Hong [24] has the same complexity. These algorithms are optimal in the worst case, but if h, the number of hull vertices, is small, then it is possible to obtain better time bounds. For example, in E 2, a simple algorithm called Jarvis's march [ 19] can construct the convex hull in O(nh) time. This bound was later improved to O(nlogh) by an algorithm due to Kirkpatrick and Seidel [20], who also provided a matching lower bound; a simplification of their algorithm has been recently reported by Chan et al. -
A Framework for Multi-Core Implementations of Divide and Conquer Algorithms and Its Application to the Convex Hull Problem ∗
CCCG 2008, Montr´eal, Qu´ebec, August 13–15, 2008 A Framework for Multi-Core Implementations of Divide and Conquer Algorithms and its Application to the Convex Hull Problem ∗ Stefan N¨aher Daniel Schmitt † Abstract 2 Divide and Conquer Algorithms We present a framework for multi-core implementations Divide and conquer algorithms solve problems by di- of divide and conquer algorithms and show its efficiency viding them into subproblems, solving each subprob- and ease of use by applying it to the fundamental geo- lem recursively and merging the corresponding results metric problem of computing the convex hull of a point to a complete solution. All subproblems have exactly set. We concentrate on the Quickhull algorithm intro- the same structure as the original problem and can be duced in [2]. In general the framework can easily be solved independently from each other, and so can eas- used for any D&C-algorithm. It is only required that ily be distributed over a number of parallel processes the algorithm is implemented by a C++ class imple- or threads. This is probably the most straightforward menting the job-interface introduced in section 3 of this parallelization strategy. However, in general it can not paper. be guaranteed that always enough subproblems exist, which leads to non-optimal speedups. This is in partic- 1 Introduction ular true for the first divide step and the final merging step but is also a problem in cases where the recur- Performance gain in computing is no longer achieved sion tree is unbalanced such that the number of open by increasing cpu clock rates but by multiple cpu cores sub-problems is smaller than the number of available working on shared memory and a common cache. -
642117 109.Pdf
17-22445-rdd Doc 109 Filed 10/04/17 Entered 10/04/17 13:27:05 Main Document Pg 1 of 99 17-22445-rdd Doc 109 Filed 10/04/17 Entered 10/04/17 13:27:05 Main Document Pg 2 of 99 Metro Newspaper17-22445-rdd Advertising Services, Doc Inc. 109 - U.S. MailFiled 10/04/17 Entered 10/04/17 13:27:05 Main DocumentServed 10/2/2017 Pg 3 of 99 1808 GREENSBORO MAGAZINE 21ST CENTURY MEDIA 22ND CENTURY MEDIA 200 E. MARKET STREET ATTN: CARA EVERETT 11516 W. 183RD PLACE GREENSBORO, NC 27401 12320 ORACLE BLVD STE 310 UNIT SW CONDO 3 COLORADO SPRINGS, CO 80921 ORLAND PARK, IL 60467 280 LIVING 360 WEST MAGAZINE ABERDEEN AMERICAN NEWS P.O. BOX 530341 1612 SUMMIT AVENUE SUITE 150 BOX 4430 BIRMINGHAM, AL 35253 FORT WORTH, TX 76102 124 S 2ND STREET ABERDEEN, SD 57402 ABERDEEN WORLD ABILENE REPORTER ABILENE REPORTER NEWS C/O SOUND PUBLISHING C/O GANNETT COMPANY /JMG SITES PO BOX 630849 11323 CAMMANDO RD W UNIT 651 N. BOONVILLE AVE CINCINNATI, OH 45263 EVERETT, WA 98204 SPRINGFIELD, MO 65806 ABILENE REPORTER NEWS - ACCOUNT #804426 ABINGTON/AVON ARGUS SENTINEL ABOUT TOWN ATTN: KATHLEEN HENNESSEY 26 WEST SIDE SQUARE ATTN: HUNT GILLESPIE 7950 JONES BRANCH DR. MACOMB, IL 61455 PO BOX 130328 MCLEAN, VA 22107 BIRMINGHAM, AL 35213 ABOUT TOWN ABOUT TOWN GILLESPIE INC ACADIANIA COMMUNITY ADVOCATE GILLESPIE INC HUNT GILLESPIE 10705 RIEGER RD P.O. BOX 130328 PO BOX 130328 BATON ROUGE, LA 70810 BIRMINGHAM, AL 35213 BIRMINGHAM AL 35213 ADA EVENING NEWS ADAMS TIMES REPORTER ADCRAFT ROSTER EDITION 116 NORTH BROADWAY 116 S MAIN C/O ADCRAFT CLUB OF DETROIT ADA, OK 74820 P.O. -
On the Number of Minimal 1-Steiner Trees
On the Number of Minimal 1-Steiner Trees Boris Aronov Marshall Bern† David Eppstein‡ Abstract We count the number of nonisomorphic geometric minimum spanning trees formed by adding a single point to an n-point set in d-dimensional space, by relating it to a family of 2 convex decompositions of space. The O(nd log2d d n) bound that we obtain signicantly improves previously known bounds and is tight to within a polylogarithmic factor. The minimum Steiner tree of a point set is the tree of minimum total length, spanning the in- put points and possibly having some additional vertices. Georgakopoulos and Papadimitriou [1] dene the minimum 1-Steiner tree as the minimum spanning tree whose set of vertices consists of the input points and exactly one extra point. They describe an algorithm for constructing this tree in the plane by enumerating all combinatorially distinct minimal 1-Steiner trees, that is, trees formed by xing the position of the extra vertex and considering the minimum span- ning tree of the resulting set of points. They give an O(n2) bound on the number of such trees and construct a matching lower bound. Independently, Monma and Suri [3] proved the same bounds in the plane and gave bounds of O(n2d) and (nd) in any dimension d. We signicantly improve Monma and Suri’s upper bounds. We show that the maximum possible number of 2 combinatorially distinct minimal 1-Steiner trees on n points in d-space is O(nd log2d d n) for all dimensions d. Our bounds require—as do the bounds in previous papers—either an assump- tion of general position or a tie-breaking rule, so that the minimum spanning tree is unique; otherwise even in the plane there can be exponentially many distinct topologies. -
Firefighter Informational Tutorial
The careerof a lifetime starts here. Carlos F. Munroe Sarina Olmo AnitaDaniel Danny Chan Brooke Guinan AndrewM. Brown Battalion 35 Ladder29 Engine234 Ladder109 Engine312 Ladder176 FIREFIGHTER INFORMATIONAL TUTORIAL [PAGE INTENTIONALLY LEFT BLANK] Daniel A. Nigro Fire Commissioner July 5, 2017 Dear Applicants, This test preparation guide has been assembled to help prepare you for the upcoming New York City Firefighter exam, and was developed to complement the online tutorial that you'll find on the DCAS website (nyc.gov). This booklet will provide you with valuable test and note-taking tips, along with sample math and reading comprehension exercises. In addition, the new exam format includes video exercises which will help applicants judge how well they are taking notes, retaining information and answering questions. I want to thank the FDNY Recruitment & Retention team for preparing this booklet. I also want to thank each applicant for attending these sessions and taking advantage of the opportunity to learn as much as you can about the test. I began my career as a Firefighter in 1969, rising through all of the ranks, and now, as Fire Commissioner, I can tell you there is no better job in the world than being one of New York City's Bravest. I, therefore, encourage you to study and work hard in preparation for the upcoming test. I wish each and every one of you good luck on the test! Daniel A. Nigro Fire Commissioner DAN/yk Fire Department, City of New York 9 MetroTech Center Brooklyn New York 11201-3857 TABLE OF CONTENTS SUGGESTED READING COMPREHENSION TIPS ....................................................................................................... -
The Pacific Park Brooklyn Project Is the Redevelopment of 22 Acres In
CREDIT VUW PACIFIC PARK BROOKLYN The Pacific Park Brooklyn project is the redevelopment of 22 acres in downtown Brooklyn that will include approximately 6 million square feet of residential space (6,430 units of affordable and market-rate housing), a state of the art sports and entertainment arena, the Barclays Center, 247,000 square feet of retail use, approximately 336,000 square feet of office space and 8 acres of publicly accessible open space. The project plan permits a program variation which could allow for up to 1.6 million square feet of commercial space. The project also includes major transportation improvements, including a new storage and maintenance facility for the LIRR and a new subway entrance to the Atlantic Terminal Transit Hub, the third largest hub in the City. Atlantic Yards’ Master Plan was designed by Frank Gehry. The development was renamed Pacific Park Brooklyn in July, 2014. DEVELOPER In 2006 New York State approved Forest City Ratner Companies’ master plan for Atlantic Yards. In June of 2014, Greenland, USA and Forest City Ratner Companies closed on a joint venture agreement to develop all phases of the project – excluding Barclays Center and the first residential tower, 461 Dean Street, already under construction – including infrastructure, a permanent MTA rail yard, a platform above the rail yard, future residential units and future commercial high-rise development. Greenland Forest City Partners was chosen as the name of the new development company. SCHEDULE In June of 2014, Greenland Forest City Partners, New York State and New York City reached a deal to accelerate the build-out of Pacific Park Brooklyn. -
Convex Hull in 3 Dimensions
CONVEX HULL IN 3 DIMENSIONS PETR FELKEL FEL CTU PRAGUE [email protected] https://cw.felk.cvut.cz/doku.php/courses/a4m39vg/start Based on [Berg], [Preparata], [Rourke] and [Boissonnat] Version from 16.11.2017 Talk overview Upper bounds for convex hull in 2D and 3D Other criteria for CH algorithm classification Recapitulation of CH algorithms Terminology refresh Convex hull in 3D – Terminology – Algorithms • Gift wrapping • D&C Merge • Randomized Incremental www.cguu.com www.cguu.com Computational geometry (2 / 41) Upper bounds for Convex hull algorithms O(n) for sorted points and for simple polygon 2 3 O(n log n) in E ,E with sorting – insensitive about output O(n h), O(n logh), h is number of CH facets – output sensitive –O(n2) or O(n logn) for n ~ h O(log n) for new point insertion in realtime algs. => O(n log n) for n-points O(log n) search where to insert Computational geometry (3 / 41) Other criteria for CH algorithm classification Optimality – depends on data order (or distribution) In the worst case x In the expected case Output sensitivity – depends on the result ~ O(f(h)) Extendable to higher dimensions? Off-line versus on-line – Off-line – all points available, preprocessing for search speedup – On-line – stream of points, new point pi on demand, just one new point at a time, CH valid for {p1,p2 ,…, pi } – Real-time – points come as they “want” (come not faster than optimal constant O(log n) inter-arrival delay) Parallelizable x serial Dynamic – points can be deleted Deterministic x approximate (lecture 13) Computational -
An Overview of Computational Geometry
An Overview of Computational Geometry Alex Scheffelin Contents 1 Abstract 2 2 Introduction 3 2.1 Basic Definitions . .3 3 Floating Point Error 4 3.1 Imprecision in Floating Point Operations . .4 3.2 Precision in the Calculation of the Area of a Polygon . .5 4 Speed 7 4.1 Big O Notation . .7 4.2 A More Efficient Algorithm to Calculate Intersections of Lines . .8 4.3 Recap on Speed . 15 5 How Can Pure Mathematics Influence Computational Geometry? 16 5.1 Point in Polygon Calculation . 16 5.2 Why Do We Care? . 19 6 Convex Hull Algorithms 19 6.1 What is a Convex Hull . 19 6.2 The Jarvis March Algorithm . 19 6.3 The Graham Scan Algorithm . 21 6.4 Other Efficient Algorithms . 22 6.5 Generalizations to the Convex Hull . 23 7 Conclusion 23 1 1 Abstract Computational geometry is an applied math field which can be described as the intersection of geometry and computer science. It has many real world applications, including in 3D mod- elling programs, graphics processing, etc. We will provide an overview of the methodology of computational geometry in the limited case of 2D objects, culminating in the discussion of the construction of convex hulls, a type of polygon in the plane which is determined by a set of points. Along the way we will try to explain some unique difficulties one faces when using a computer to compute things, and attempt to highlight the methods of proof used. 2 2 Introduction 2.1 Basic Definitions I will define a few geometric objects, and give example about how one might represent them in a computer. -
Emergency Response Incidents
Emergency Response Incidents Incident Type Location Borough Utility-Water Main 136-17 72 Avenue Queens Structural-Sidewalk Collapse 927 Broadway Manhattan Utility-Other Manhattan Administration-Other Seagirt Blvd & Beach 9 Street Queens Law Enforcement-Other Brooklyn Utility-Water Main 2-17 54 Avenue Queens Fire-2nd Alarm 238 East 24 Street Manhattan Utility-Water Main 7th Avenue & West 27 Street Manhattan Fire-10-76 (Commercial High Rise Fire) 130 East 57 Street Manhattan Structural-Crane Brooklyn Fire-2nd Alarm 24 Charles Street Manhattan Fire-3rd Alarm 581 3 ave new york Structural-Collapse 55 Thompson St Manhattan Utility-Other Hylan Blvd & Arbutus Avenue Staten Island Fire-2nd Alarm 53-09 Beach Channel Drive Far Rockaway Fire-1st Alarm 151 West 100 Street Manhattan Fire-2nd Alarm 1747 West 6 Street Brooklyn Structural-Crane Brooklyn Structural-Crane 225 Park Avenue South Manhattan Utility-Gas Low Pressure Noble Avenue & Watson Avenue Bronx Page 1 of 478 09/30/2021 Emergency Response Incidents Creation Date Closed Date Latitude Longitude 01/16/2017 01:13:38 PM 40.71400364095638 -73.82998933154158 10/29/2016 12:13:31 PM 40.71442154062271 -74.00607638041981 11/22/2016 08:53:17 AM 11/14/2016 03:53:54 PM 40.71400364095638 -73.82998933154158 10/29/2016 05:35:28 PM 12/02/2016 04:40:13 PM 40.71400364095638 -73.82998933154158 11/25/2016 04:06:09 AM 40.71442154062271 -74.00607638041981 12/03/2016 04:17:30 AM 40.71442154062271 -74.00607638041981 11/26/2016 05:45:43 AM 11/18/2016 01:12:51 PM 12/14/2016 10:26:17 PM 40.71442154062271 -74.00607638041981