RANDOMIZED BINARY SEARCH-TREES

Citation
C. Martinez et S. Roura, RANDOMIZED BINARY SEARCH-TREES, JOURNAL OF THE ACM, 45(2), 1998, pp. 288-323
Citations number
27
Categorie Soggetti
Computer Science Hardware & Architecture","Computer Science Information Systems","Computer Science Software Graphycs Programming","Computer Science Theory & Methods","Computer Science Hardware & Architecture","Computer Science Information Systems","Computer Science Software Graphycs Programming","Computer Science Theory & Methods
Journal title
Volume
45
Issue
2
Year of publication
1998
Pages
288 - 323
Database
ISI
SICI code
Abstract
In this paper, we present randomized algorithms over binary search tre es such that: (a) the insertion of a set of keys, in any fixed order, into an initially empty tree always produces a random binary search tr ee; (b) the deletion of any key from a random binary search tree resul ts in a random binary search tree; (c) the random choices made by the algorithms are based upon the sizes of the subtrees of the tree; this implies that we can support accesses by rank without additional storag e requirements or modification of the data structures; and (d) the cos t of any elementary operation, measured as the number of visited nodes , is the same as the expected cost of its standard deterministic count erpart; hence, all search and update operations have guaranteed expect ed cost O(log n), but now irrespective of any assumption on the input distribution.