Abstract. Suppose we have a set of K-dimensional records stored in a general purpose spatial index like a K-d tree. The index eciently supports insertions, ordinary exact searches, orthogonal range searches, nearest neighbor searches, etc. Here we consider whether we can also eciently support search by rank, that is, to locate the i-th smallest element along the j-th coordinate. We answer this question in the armative by developing a simple algorithm with expected cost O(n (1=K) log n), where n is the size of the K-d tree and (1=K) < 1 for any K 2. The only requirement to support the search by rank is that each node in the K-d tree stores the size of the subtree rooted at that node (or some equivalent information). This is not too space demanding. Furthermore, it can be used to randomize the update algorithms to provide guarantees on the expected performance of the various operations on K-d trees. Although selection in multidimensional data can be solved more eciently than with our algorithm, those solutions will rely on ad-hoc data structures or superlinear space. Our solution adds to an existing data structure (Kd trees) the capability of search by rank with very little overhead, and it can be easily adapted to other spatial indexes as well. The simplicity of the algorithm makes it easy to implement, practical and very exible; however, its correctness and eciency are far from self-evident.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.
customersupport@researchsolutions.com
10624 S. Eastern Ave., Ste. A-614
Henderson, NV 89052, USA
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Copyright © 2024 scite LLC. All rights reserved.
Made with 💙 for researchers
Part of the Research Solutions Family.