首页 | 本学科首页   官方微博 | 高级检索  
     


Randomized search trees
Authors:R. Seidel  C. R. Aragon
Affiliation:(1) Computer Science Division, University of California Berkeley, 94720 Berkeley, CA, USA;(2) Fachberich Informatik, Universität des Saarlandes, D-66123 Saarbrucken, Germany;(3) Computer Science Division, University of California Berkeley, 94720 Berkeley, CA, USA
Abstract:
We present a randomized strategy for maintaining balance in dynamically changing search trees that has optimalexpected behavior. In particular, in the expected case a search or an update takes logarithmic time, with the update requiring fewer than two rotations. Moreover, the update time remains logarithmic, even if the cost of a rotation is taken to be proportional to the size of the rotated subtree. Finger searches and splits and joins can be performed in optimal expected time also. We show that these results continue to hold even if very little true randomness is available, i.e., if only a logarithmic number of truely random bits are available. Our approach generalizes naturally to weighted trees, where the expected time bounds for accesses and updates again match the worst-case time bounds of the best deterministic methods.We also discuss ways of implementing our randomized strategy so that no explicit balance information is maintained. Our balancing strategy and our algorithms are exceedingly simple and should be fast in practice.Supported by NSF Presidential Young Investigator award CCR-9058440.Supported by an AT&T graduate fellowship.This paper is dedicated to the memory of Gene Lawler.
Keywords:Search trees  Dictionaries  Randomized data structures
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号