# The Colored Sector Search Tree: A Dynamic Data Structure for Efficient High Dimensional Nearest-Foreign-Neighbor Queries

## Abstract

In this paper we present the new data structure *Colored Sector Search Tree* (*CSST*) for solving the *Nearest-Foreign-Neighbor Query Problem* (*NFNQP*): Given a set *S* of *n* colored points in ℝ^{D}, where *D* ≥ 2 is a constant, and a subset *S*′ ⊂ *S* stored in a *CSST*, for any colored query point *q* ∈ ℝ^{D} a nearest foreign neighbor in *S*′, i.e. a closest point with a different color, can be reported in *O*(log *n*(log log *n*)*D* ^{D − 1}) time w.r.t. a polyhedral distance function that is defined by a star-shaped polyhedron with *O*(1) vertices; note that this includes the Minkowski metrics *d* _{1} and *d* _{∞}. It takes a preprocessing time of *O*(*n*(log *n*)*D* ^{D − 1}) to construct the *CSST*. Points from *S* can be inserted into the set *S*′ and removed from *S*′ in *O*(log *n*(log log *n*)*D* ^{D − 1}) time. The *CSST* uses *O*(*n*(log *n*)*D* ^{D − 1}) space. We present an application of the data structure in the parallel simulation of solute transport in aquifer systems by particle tracking. Other applications may be found in GIS (geo information systems) and in CAD (computer aided design). To our knowledge the *CSST* is the first data structure to be reported for the *NFNQP*.

## Keywords

Binary Search Query Point Neighbor Problem Colored Point Dynamic Data Structure## Preview

Unable to display preview. Download preview PDF.

## References

- 1.A. Aggarwal, H. Edelsbrunner, P. Raghavan, and P. Tiwari. Optimal time bounds for some proximity problems in the plane.
*Inform. Process. Lett.*, 42(1):55–60, 1992.zbMATHCrossRefMathSciNetGoogle Scholar - 2.A. Brinkmann, T. Graf, and K. Hinrichs. The colored quadrant priority search tree with an application to the all-nearest-foreign-neighbors problem. In
*Proc. 6th Canad. Conf. Comput. Geom.*, pages 69–74, 1994.Google Scholar - 3.U. Doering, O. Neuendorf, R. Seidemann, U. Jaekel, and H. Vereecken. Transport of reactive solutes in a heterogeneous aquifer: Simulations with a stochastic approach. In
*Groundwater in the Urban Environment: Problems, Processes and Management*,*Chilton et al. (eds). Balkema, Rotterdam*, pages 121–126, 1997.Google Scholar - 4.M.F. Goodchild. A spatial analytic perspective on geographical information systems.
*Intern. Journ. Geograph. Inform. Syst.*, 1:327–334, 1987.CrossRefGoogle Scholar - 5.T. Graf, U. Hashagen, and H. Vereecken. 3d massive-parallel computation of solute transport in heterogeneous porous media. In
*Fourth SIAM Conference on Mathematical and Computational Issues in the Geosciences*, 1997.Google Scholar - 6.T. Graf and K. Hinrichs. Distribution algorithms for the all-nearest-foreignneighbors problem in arbitrary
*L*^{t}-metrics. In*Proc. 6th Canad. Conf. Comput. Geom.*, pages 69–74, 1994.Google Scholar - 7.T. Graf and K. Hinrichs. Simple search for the nearest foreign neighbors in arbitrary
*L*^{t}-metrics. In*Proceedings of the 10th European Workshop on Computational Geometry*, pages 25–28, 1994.Google Scholar - 8.T. Graf, N.S. Janaki Latha, V. Kamakoti, and C. Pandu Rangan. An optimal algorithm for the all-nearest-foreign neighbors problem in arbitrary dimensions (submitted). 1996.Google Scholar
- 9.T. Graf, V. Kamakoti, N.S. Janaki Latha, and C. Pandu Rangan. Efficient randomized algorithms for the on-line closest-foreign-pair problem (submitted). 1996.Google Scholar
- 10.V. Kamakoti, K. Krithivasan, and C. Pandu Rangan. Efficient randomized algorithms for the closest pair problem on colored point sets.
*Nordic Journal of Computing*, 2:28–40, 1995.zbMATHMathSciNetGoogle Scholar - 11.I. Masser and Blakemore M., editors.
*Handling geographical information: methodology and potential applications*. Long Scientific & Technical, 1991.Google Scholar - 12.
- 13.F.P. Preparata and Shamos M.I.
*Computational geometry: An introduction*. Springer, New York, 1985.Google Scholar - 14.Jonathan F. Raper, editor.
*Three dimensional applications in Geographic Information Systems*. Springer-Verlag, 1989.Google Scholar