Space-Efficient Plane-Sweep Algorithms
Abstract
We introduce space-efficient plane-sweep algorithms for basic planar geometric problems. It is assumed that the input is in a read-only array of n items and that the available workspace is (s) bits, where n ≤ s ≤ n · n. Three techniques that can be used as general tools in different space-efficient algorithms are introduced and employed within our algorithms. In particular, we give an almost-optimal algorithm for finding the closest pair among a set of n points that runs in O(n2/s + n · s) time. We also give a simple algorithm to enumerate the intersections of n line segments that runs in O((n2/s2/3) · s + k) time, where k is the number of intersections. The counting version can be solved in O((n2/s2/3) · s)~time. When the segments are axis-parallel, we give an O((n2/s) · 4/3 s + n4/3 · 1/3 n)-time algorithm for counting the intersections, and an algorithm for enumerating the intersections that runs in O((n2/s) · s · s + n · s + k) time, where k is the number of intersections. We finally present an algorithm that runs in O((n2/s + n · s) · (n/s) · n) time to calculate Klee's measure of axis-parallel rectangles.
Turn this paper into a lesson
ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.