Summary
We reconsider two geometrical problems that have been solved previously by line-sweep algorithms: the measure problem and the contour problem. Both problems involve determining some property of the union of a set of rectangles, namely the size and the contour (boundary) of the union. We devise essentially a single time-optimal divide-and-conquer algorithm to solve both problems. This can be seen as a step towards comparing the power of the line-sweep and the divide-and-conquer paradigms. The surprisingly efficient divide-and-conquer algorithm is obtained by using a new technique called “separational representation”, which extends the applicability of divide-and-conquer to orthogonal planar objects.
Similar content being viewed by others
References
Aho, A.V., Hopcroft, J.E., Ullman, J.D.: The design and analysis of computer algorithms. Reading, MA: Addison-Wesley 1974
Bentley, J.L.: Solutions to Klee's rectangle problems. Carnegie-Mellon University, Department of Computer Science, 1977 (Unpublished)
Bentley, J.L., Ottmann, T.: Algorithms for reporting and counting geometric intersections. IEEE Trans. Comput. C-28, 643–647 (1979)
Bentley, J.L., Shamos, M.I.: Optimal algorithms for structuring geographic data. In: Proceedings, Symposium on Topological Data Structures for Geographic Information Systems, Harvard University, pp. 43–51, 1977
Bentley, J.L., Wood, D.: An optimal worst-case algorithm for reporting intersections of rectangles. IEEE Trans. Comput. C-29, 571–577 (1980)
Eastman, C.M., Lividini, J.: Spatial search. Carnegie-Mellon University, Institute of Physical Planning, Report 55, 1975
Edelsbrunner, H.: Dynamic rectangle intersection searching. Technical University of Graz, Institut für Informationsverarbeitung, Report F47, 1980
Edelsbrunner, H., van Leeuwen, J., Ottmann, T., Wood, D.: Connected components of orthogonal geometrical objects. RAIRO Theoretical Informatics 18, 171–183 (1984)
Güting, R.H.: An optimal contour algorithm for iso-oriented rectangles. McMaster University, Unit for Computer Science, Report 82-CS-03, 1982 (To appear)
Güting, R.H.: Conquering contours. Efficient algorithms for computational geometry. Universität Dortmund, Lehrstuhl Informatik VI, Ph. D. Thesis, 1983
Güting, R.H., Wood, D.: Finding rectangle intersections by divide-and-conquer. IEEE Trans. Comput. C-33, 671–675 (1984)
Lipski, W., Preparata, F.P.: Finding the contour of a union of isooriented rectangles. J. Algorithms 1, 235–246 (1980)
McCreight, E.M.: Efficient algorithms for enumerating intersecting intervals and rectangles. XEROX Palo Alto Research Center, Report CSL-80-9, 1980
Mead, C, Conway, L.: Introduction to VLSI-Systems. Reading, MA: Addison-Wesley, 1980
Shamos, M.I., Hoey, D.: Geometric intersection problems. Proceedings of the 17th Annual IEEE Symposium on Foundations of Computer Science, pp. 208–215, 1976
Soisalon-Soininen, E., Wood, D.: Optimal algorithms to compute the closure of a set of isorectangles. J. Algorithms 5, 199–214 (1984)
Author information
Authors and Affiliations
Additional information
This work was partially supported by the DAAD (Deutscher Akademischer Austauschdienst) and by the DFG (Deutsche Forschungsgemeinschaft)
Rights and permissions
About this article
Cite this article
Güting, R.H. Optimal divide-and-conquer to compute measure and contour for a set of iso-rectangles. Acta Informatica 21, 271–291 (1984). https://doi.org/10.1007/BF00264251
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF00264251