Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
428399 | Information Processing Letters | 2007 | 6 Pages |
Abstract
We present the first in-place algorithm for solving Klee's measure problem for a set of n axis-parallel rectangles in the plane. Our algorithm runs in O(n3/2logn) time and uses O(1) extra words in addition to the space needed for representing the input. The algorithm is surprisingly simple and thus very likely to yield an implementation that could be of practical interest. As a byproduct, we develop an optimal algorithm for solving Klee's measure problem for a set of n intervals; this algorithm runs in optimal time O(nlogn) and uses O(1) extra space.
Related Topics
Physical Sciences and Engineering
Computer Science
Computational Theory and Mathematics