Planar point location using persistent search trees
- 1 July 1986
- journal article
- Published by Association for Computing Machinery (ACM) in Communications of the ACM
- Vol. 29 (7), 669-679
- https://doi.org/10.1145/6138.6151
Abstract
A classical problem in computational geometry is the planar point location problem. This problem calls for preprocessing a polygonal subdivision of the plane defined by n line segments so that, given a sequence of points, the polygon containing each point can be determined quickly on-line. Several ways of solving this problem in O(log n) query time and O(n) space are known, but they are all rather complicated. We propose a simple O(log n)-query-time, O(n)-space solution, using persistent search trees. A persistent search tree differs from an ordinary search tree in that after an insertion or deletion, the old version of the tree can still be accessed. We develop a persistent form of binary search tree that supports insertions and deletions in the present and queries in the past. The time per query or update is O(log m), where m is the total number of updates, and the space needed is O(1) per update. Our planar point location algorithm is an immediate application of this data structure. The structure also provides an alternative to Chazelle's "hive graph" structure, which has a variety of applications in geometric retrieval.Keywords
This publication has 22 references indexed in Scilit:
- Searching and storing similar listsJournal of Algorithms, 1986
- Self-adjusting binary search treesJournal of the ACM, 1985
- SortingPublished by Springer Nature ,1984
- Incremental Context-Dependent Analysis for Language-Based EditorsACM Transactions on Programming Languages and Systems, 1983
- Updating a balanced search tree in O(1) rotationsInformation Processing Letters, 1983
- Optimal Search in Planar SubdivisionsSIAM Journal on Computing, 1983
- Hysterical B-treesInformation Processing Letters, 1981
- Robust balancing in B-treesPublished by Springer Nature ,1981
- Location of a Point in a Planar Subdivision and Its ApplicationsSIAM Journal on Computing, 1977
- Multidimensional Searching ProblemsSIAM Journal on Computing, 1976