An improved algorithm for the rectangle enclosure problem |
| |
Authors: | DT Lee FP Preparata |
| |
Institution: | Department of Electrical Engineering and Computer Science, Northwestern University, Evanston, Illinois 60201 USA;Coordinated Science Laboratory, University of Illinois, Urbana, Illinois 61801 USA |
| |
Abstract: | Given a set of n rectangles in the plane, with sides parallel to the coordinate axes, the rectangle enclosure problem consists of finding all q pairs of rectangles such that one rectangle of the pair encloses the other. In this note we present an alternative algorithm to the one by Vaishnavi and Wood; while both techniques have worst-case running time O(nlog2n + q), ours uses optimal storage O(n) rather than O(nlog2n) of Vaishnavi and Wood. Our algorithm works entirely in-place and uses very conventional data structures. |
| |
Keywords: | |
本文献已被 ScienceDirect 等数据库收录! |
|