Skip to main content
Log in

Simple Algorithms for the On-Line Multidimensional Dictionary and Related Problems

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract.

The on-line multidimensional dictionary problem consists of executing on-line any sequence of the following operations: INSERT(p) , DELETE(p) , and MEM-BER-SHIP(p) , where p is any (ordered) d -tuple (or string with d elements, or points in d -space where the dimensions have been ordered). We introduce a clean structure based on balanced binary search trees, which we call multidimensional balanced binary search trees, to represent the set of d -tuples. We present algorithms for each of the above operations that take O(d + log n) time, where n is the current number of d -tuples in the set, and each INSERT and DELETE operation requires no more than a constant number of rotations. Our structure requires dn words to represent the input, plus O(n) pointers and data indicating the first component where pairs of d -tuples differ. This information, which can be easily updated, enables us to test for MEMBERSHIP efficiently. Other operations that can be performed efficiently in our multidimensional balanced binary search trees are: print in lexicographic order (O(dn) time), find the (lexicographically) smallest or largest d -tuple (O( log n) time), and concatenation (O(d + log n) time). Finding the (lexicographically) k th smallest or largest d -tuple can also be implemented efficiently (O( log n) time), at the expense of adding an integer value at each node.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Additional information

Received June 13, 1997; revised September 3, 1998.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Gonzalez, T. Simple Algorithms for the On-Line Multidimensional Dictionary and Related Problems. Algorithmica 28, 255–267 (2000). https://doi.org/10.1007/s004530010039

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1007/s004530010039

Navigation