Slides by: Arjun Dasgupta BINARY PLANAR PARTITION Lecture 2 Advanced Algorithms II Slides by: Arjun Dasgupta.

Slides:



Advertisements
Similar presentations
Randomized Algorithms Introduction Rom Aschner & Michal Shemesh.
Advertisements

Interval Heaps Complete binary tree. Each node (except possibly last one) has 2 elements. Last node has 1 or 2 elements. Let a and b be the elements in.
Branch-and-Bound Technique for Solving Integer Programs
Lower Bounds for Sorting, Searching and Selection
Sorting Comparison-based algorithm review –You should know most of the algorithms –We will concentrate on their analyses –Special emphasis: Heapsort Lower.
Design and Analysis of Algorithms – Chapter 41 Decrease and Conquer II Dr. Ying Lu RAIK 283: Data Structures & Algorithms.
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,
Zoo-Keeper’s Problem An O(nlogn) algorithm for the zoo-keeper’s problem Sergei Bespamyatnikh Computational Geometry 24 (2003), pp th CGC Workshop.
Foreground/Background Image Segmentation. What is our goal? To label each pixel in an image as belonging to either the foreground of the scene or the.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Chapter 24 Sorting.
BSP Trees Binary space partitioning trees. Used to store a collection of objects in n- dimensional space. Tree recursively divides n-dimensional space.
CS774. Markov Random Field : Theory and Application Lecture 06 Kyomin Jung KAIST Sep
By Dor Lahav. Overview Straight Skeletons Convex Polygons Constrained Voronoi diagrams and Delauney triangulations.
I/O-Algorithms Lars Arge Spring 2009 February 2, 2009.
I/O-Algorithms Lars Arge Aarhus University February 7, 2005.
I/O-Algorithms Lars Arge Aarhus University February 6, 2007.
Derandomizing LOGSPACE Based on a paper by Russell Impagliazo, Noam Nissan and Avi Wigderson Presented by Amir Rosenfeld.
Point Location Computational Geometry, WS 2007/08 Lecture 5 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik Fakultät für.
UNC Chapel Hill M. C. Lin Overview of Last Lecture About Final Course Project –presentation, demo, write-up More geometric data structures –Binary Space.
CS2420: Lecture 15 Vladimir Kulyukin Computer Science Department Utah State University.
Lecture 6: Point Location Computational Geometry Prof. Dr. Th. Ottmann 1 Point Location 1.Trapezoidal decomposition. 2.A search structure. 3.Randomized,
Advanced Topics in Algorithms and Data Structures Page 1 An overview of lecture 3 A simple parallel algorithm for computing parallel prefix. A parallel.
1 Separator Theorems for Planar Graphs Presented by Shira Zucker.
Lection 1: Introduction Computational Geometry Prof.Dr.Th.Ottmann 1 History: Proof-based, algorithmic, axiomatic geometry, computational geometry today.
CS420 lecture three Lowerbounds wim bohm, cs CSU.
Ch. 8 & 9 – Linear Sorting and Order Statistics What do you trade for speed?
UNC Chapel Hill M. C. Lin Point Location Reading: Chapter 6 of the Textbook Driving Applications –Knowing Where You Are in GIS Related Applications –Triangulation.
1 Min-cut for Undirected Graphs Given an undirected graph, a global min-cut is a cut (S,V-S) minimizing the number of crossing edges, where a crossing.
March Trapezoidal Maps Shmuel Wimer Bar Ilan Univ., School of Engineering.
THE STABILITY BOX IN INTERVAL DATA FOR MINIMIZING THE SUM OF WEIGHTED COMPLETION TIMES Yuri N. Sotskov Natalja G. Egorova United Institute of Informatics.
Lecture Objectives  To learn how to use a Huffman tree to encode characters using fewer bytes than ASCII or Unicode, resulting in smaller files and reduced.
Point Location Dmitry Rusakov Boris Kronrod. Planar Point Location Lets S be a planar subdivision with n edges. The planar point location problem is.
C++ Programming: Program Design Including Data Structures, Fourth Edition Chapter 19: Searching and Sorting Algorithms.
The BSP-tree from Prof. Seth MIT.. Motivation for BSP Trees: The Visibility Problem We have a set of objects (either 2d or 3d) in space. We have.
CS261 – Recitation 5 Fall Outline Assignment 3: Memory and Timing Tests Binary Search Algorithm Binary Search Tree Add/Remove examples 1.
The Lower Bounds of Problems
MA/CSSE 473 Day 14 Permutations wrap-up Subset generation (Horner’s method)
MA/CSSE 473 Day 18 Permutations by lexicographic order number.
Analysis of Algorithms CS 477/677
Using BSP for CD Ref: BSP in deBerg et al ’ s book (url)url.
Content Addressable Networks CAN is a distributed infrastructure, that provides hash table-like functionality on Internet-like scales. Keys hashed into.
Cpt S 223 – Advanced Data Structures Math Review 2
Princeton University COS 423 Theory of Algorithms Spring 2001 Kevin Wayne Average Case Analysis.
Huffman’s Algorithm 11/02/ Weighted 2-tree A weighted 2-tree T is an extended binary tree with n external nodes and each of the external nodes is.
Foundation of Computing Systems
COSC 3101A - Design and Analysis of Algorithms 6 Lower Bounds for Sorting Counting / Radix / Bucket Sort Many of these slides are taken from Monica Nicolescu,
8 January Heap Sort CSE 2011 Winter Heap Sort Consider a priority queue with n items implemented by means of a heap  the space used is.
Lecture 9COMPSCI.220.FS.T Lower Bound for Sorting Complexity Each algorithm that sorts by comparing only pairs of elements must use at least 
February 17, 2005Lecture 6: Point Location Point Location (most slides by Sergi Elizalde and David Pritchard)
The Visibility Problem and Binary Space Partition.
Lecture 7: Searching a Tree Neil Ghani University of Strathclyde.
Chapter 4, Part II Sorting Algorithms. 2 Heap Details A heap is a tree structure where for each subtree the value stored at the root is larger than all.
Packet Classification Using Dynamically Generated Decision Trees
01/16/2008 Randomized Quick Sort Algorithm Lecture Note – 1 Prepared By: Muhammed Miah.
1 Chapter 8-1: Lower Bound of Comparison Sorts. 2 About this lecture Lower bound of any comparison sorting algorithm – applies to insertion sort, selection.
1 Chapter 7 Quicksort. 2 About this lecture Introduce Quicksort Running time of Quicksort – Worst-Case – Average-Case.
Review: Discrete Mathematics and Its Applications
David Kauchak cs062 Spring 2010
BSP Trees Binary space partitioning trees.
D I s , a ·.... l8l8.
The Visibility Problem and Binary Space Partition
CS200: Algorithm Analysis
CS223 Advanced Data Structures and Algorithms
I ll I
Review: Discrete Mathematics and Its Applications
CS223 Advanced Data Structures and Algorithms
' 1 A ./.\.l+./.\.l
Chapter 8: Overview Comparison sorts: algorithms that sort sequences by comparing the value of elements Prove that the number of comparison required to.
David Kauchak cs302 Spring 2012
Algorithms CSCI 235, Spring 2019 Lecture 8 Recurrences III
Presentation transcript:

Slides by: Arjun Dasgupta BINARY PLANAR PARTITION Lecture 2 Advanced Algorithms II Slides by: Arjun Dasgupta

Example 1 l1 l212l l1 l2 l3 Each oval node stores information about the infinite line l i The leaves denote the line segments being partitioned

Example L1L2 1 L3 34 L4 4 L5 32 l1 l2 l3 l4 l5 Smallest Tree that can be created from the partitions is O(n)

Auto-Partition Algorithm  Index(u, v) = # of cuts that u makes when extended to v Algorithm: Input: S = {S 1,S 2, …. S n } 1.Generate a random permutation of S U = {u 1,u 2,…..u n } 2.Start constructing the tree by using the segments in this order as partitioning lines Upper Bound of the size of tree created by Auto-Partition -> O(n)

Analysis  Our objective is to calculate ∑ n i=1 ∑ n j≠i,j=1 Prob(i cuts j)  Now, ∑ n j≠i Prob(i cuts j) ≤ (1/2 + 1/3 + …..) ≤ 2 ln n And, ∑ n i=1 ∑ n j≠i,j=1 Prob(i cuts j) ≤ 2 n ln n  Thus, E[# of cuts] ≤ 2 n ln n and, E[Tree Size] = O(nlogn)