Chan’s Algorithm It is Jarvis’s march applied to big blobs of points.

Slides:



Advertisements
Similar presentations
Chapter 14 Recursion Lecture Slides to Accompany An Introduction to Computer Science Using Java (2nd Edition) by S.N. Kamin, D. Mickunas,, E. Reingold.
Advertisements

Lecture 10 Disjoint Set ADT.
College of Information Technology & Design
Complexity Analysis (Part II)
MATH 224 – Discrete Mathematics
Computational Geometry - Part II Mohammed Nadeem Ahmed Raghavendra Kyatham.
Approximations of points and polygonal chains
Jarvis March Graham Scan Chan’s Algorithm
Chan’s algorithm CS504 Presentation.
Planar Convex Hull 2013 / 5 / 9 Group 4 Sungheon Park Jeongho Son CS504 Presentation [CS504 Presentation]
Prune-and-Search Method
© The McGraw-Hill Companies, Inc., Chapter 2 The Complexity of Algorithms and the Lower Bounds of Problems.
Convex Hulls in Two Dimensions Definitions Basic algorithms Gift Wrapping (algorithm of Jarvis ) Graham scan Divide and conquer Convex Hull for line intersections.
Convex Hulls May Shmuel Wimer Bar Ilan Univ., Eng. Faculty Technion, EE Faculty.
Advanced Topics in Algorithms and Data Structures Lecture 7.1, page 1 An overview of lecture 7 An optimal parallel algorithm for the 2D convex hull problem,
Convex Sets & Concave Sets A planar region R is called convex if and only if for any pair of points p, q in R, the line segment pq lies completely in R.
Computational Geometry
Polygons and the convex hull Prof. Noah Snavely CS1114
Advanced Algorithm Design and Analysis (Lecture 10) SW5 fall 2004 Simonas Šaltenis E1-215b
Informal Definition : Let S is set of nails sticking out from a board. the convex hull can be visualized as the shape formed by a tight rubber band that.
1 Today’s Material Computational Geometry Problems –Closest Pair Problem –Convex Hull Jarvis’s March, Graham’s scan –Farthest Point Problem.
Computational Geometry Piyush Kumar (Lecture 3: Convexity and Convex hulls) Welcome to CIS5930.
Search and Recursion pt. 2 CS221 – 2/25/09. How to Implement Binary Search Take a sorted data-set to search and a key to search for Start at the mid-point.
2 -1 Chapter 2 The Complexity of Algorithms and the Lower Bounds of Problems.
HCS Clustering Algorithm
CSC 2300 Data Structures & Algorithms March 27, 2007 Chapter 7. Sorting.
5 - 1 § 5 The Divide-and-Conquer Strategy e.g. find the maximum of a set S of n numbers.
CS 104 Introduction to Computer Science and Graphics Problems Data Structure & Algorithms (3) Recurrence Relation 11/11 ~ 11/14/2008 Yang Song.
Polygons and the convex hull Prof. Noah Snavely CS1114
Convex Hull ● Jarvis' March O(hn) – Find lowest point O(n) – Repeatedly Find next least-counterclockwise point O(hn) ● Grahm's Scan O(n log n) – Find lowest.
Review of Bézier Curves DeCastlejau Algorithm V2V2 V4V4 V1V1 V3V3 Insert at t = ¾.
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.
Computational Geometry Course Summary (First Half) Spring 2008 Pay special attention to: algorithm details (able to explain correctness and carry out a.
© The McGraw-Hill Companies, Inc., Chapter 6 Prune-and-Search Strategy.
The Lower Bounds of Problems
The Fast Optimal Voltage Partitioning Algorithm For Peak Power Density Minimization Jia Wang, Shiyan Hu Department of Electrical and Computer Engineering.
CS Discrete Mathematical Structures Mehdi Ghayoumi MSB rm 132 Ofc hr: Thur, 9:30-11:30a.
Dynamic Program Analysis with Partial Execution and Summary Thomas Huining Feng CHESS, UC Berkeley May 8, 2007 CS.
1 Prune-and-Search Method 2012/10/30. A simple example: Binary search sorted sequence : (search 9) step 1  step 2  step 3  Binary search.
Even more problems.. Mean (average) I need a program that calculates the average of student test scores. I need a program that calculates the average.
Convex Hull. University of Manchester biologists used lasers to measure the minimum amount of skin required to wrap around the skeletons of modern-day.
Kansas State University Department of Computing and Information Sciences Friday, July 13, 2001 Mantena V. Raju Department of Computing and Information.
Lecture 9COMPSCI.220.FS.T Lower Bound for Sorting Complexity Each algorithm that sorts by comparing only pairs of elements must use at least 
Question of the Day  Move one matchstick to produce a square.
COMPUTATIONAL GEOMETRY AND MATRIX MULTIPLICATION Mohammed Zeeshan Farooqui Minhaj Uddin.
Simplex “walk on the vertices of the feasible region” v = current vertex if  neighbor v’ of v with better objective then move to v’
Robert Pless, CS 546: Computational Geometry Lecture #3 Last time Several convex hull algorithms. Lower bound of O(n log n) –O(n log h) for output sensitive.
3:00. 2:59 2:58 2:57 2:56 2:55 2:54 2:53 2:52.
0 Introduction to asymptotic complexity Search algorithms You are responsible for: Weiss, chapter 5, as follows: 5.1 What is algorithmic analysis? 5.2.
Quick Sort Modifications By Mr. Dave Clausen Updated for Python.
Remarks on Fast Exp (4/2) How do we measure how fast any algorithm is? Definition. The complexity of an algorithm is a measure of the approximate number.
Analysis of Algorithms & Recurrence Relations. Recursive Algorithms Definition –An algorithm that calls itself Components of a recursive algorithm 1.Base.
CMPT 120 Topic: Searching – Part 2 and Intro to Time Complexity (Algorithm Analysis)
What is the runtime of the best possible (comparison based) sorting algorithm? 1.O(log n) 2.O(n) 3.O(n log n) 4.O(n 2 ) 5.None of the above.
COP 3503 FALL 2012 Shayan Javed Lecture 15
Convex Hull R.L. Graham’s Algorithm Computer Graphics.
Top Fire Protection Services Ottawa available on Dubinskyconstruction
Algorithm design and Analysis
Binary Search and Intro to Sorting
Discrete Math for CS CMPSC 360 LECTURE 12 Last time: Stable matching
Convex Sets & Concave Sets
DS.A.1 Algorithm Analysis Chapter 2 Overview
The Big 6 Research Model Step 3: Location and Access
SOLUTION OF NONLINEAR EQUATIONS
Intro to Computer Science CS1510 Dr. Sarah Diesburg
Visibility and Ray Shooting Queries in Polygonal Domains
Unit 2. Day 16..
Unit 2. Day 17..
DIVIDE AND CONQUER.
Presentation transcript:

Chan’s Algorithm It is Jarvis’s march applied to big blobs of points

Chan’s algorithm Each blob is the convex hull of m points What is m ? m = min(exp(2, exp(2,t)), n)

Chan’s algorithm Partition P into r disjoint sets of size m Compute convex hull of each set Set p 0 = (-∞, 0) and let p 1 be the bottommost point Do an m – step Jarvis march (note this) Stop if the march returns to p 1, else increase m and repeat

Chan’s algorithm Analysis –Time-complexity in O(n log h) »The time-complexity of each iteration is in O(n log m) where m = exp(2, exp(2,t)), for t =1, 2, … » Number of iterations is bounded above by log log h »Thus the complexity is O(n exp(2, log log h + 1)). This simplifies to O(n log h)