Paper record
W2142753649Priority Search Trees
Edward M. McCreight
- Year
- 1985
- Venue
- SIAM Journal on Computing
- References
- 7
- Cited by
- 528
Details and counts from OpenAlex.
Abstract
Let D be a dynamic set of ordered pairs over the set of integers. Consider the following operations applied to D: (1) Insert (delete) a pair into (from) D. (2) Given test integers , and , among all pairs in D such that and , find a pair whose x is minimal (or maximal). (3) Given test integers and , among all pairs in D such that , find a pair whose y is minimal. (4) Given test integers , , and , enumerate those pairs in D such that and . Using a new data structure that we call a priority search tree, of which two variants are introduced, operations (1), (2), and (3) can be implemented in time, where n is the cardinality of D. Operation (4) is performed in at most time, where s is the number of pairs enumerated. The priority search tree occupies space. Priority seach tree algorithms can be used effectively as subroutines in diverse applications. With them one can answer questions of intersection or containment in a dynamic set of linear intervals. They can be used in combination with a well-known plane-sweep technique, to implement off-line algorithms for enumerating all intersecting pairs of rectangles. Priority search trees can also be used to implement best-/first-fit storage allocation.