Back to Search
Start Over
Smoothed analysis of binary search trees
- Source :
- Theoretical computer science, 378(3), 292-315. Elsevier
- Publication Year :
- 2007
-
Abstract
- Binary search trees are one of the most fundamental data structures. While the height of such a tree may be linear in the worst case, the average height with respect to the uniform distribution is only logarithmic. The exact value is one of the best studied problems in average-case complexity.We investigate what happens in between by analysing the smoothed height of binary search trees: Randomly perturb a given (adversarial) sequence and then take the expected height of the binary search tree generated by the resulting sequence. As perturbation models, we consider partial permutations, partial alterations, and partial deletions.On the one hand, we prove tight lower and upper bounds of roughly Θ((1−p)⋅n/p) for the expected height of binary search trees under partial permutations and partial alterations, where n is the number of elements and p is the smoothing parameter. This means that worst-case instances are rare and disappear under slight perturbations. On the other hand, we examine how much a perturbation can increase the height of a binary search tree, i.e. how much worse well balanced instances can become.
- Subjects :
- General Computer Science
Optimal binary search tree
Weight-balanced tree
Binary search trees
EWI-21276
Permutations
IR-79427
Random binary tree
Treap
Theoretical Computer Science
Combinatorics
Discrete perturbations
Geometry of binary search trees
Binary search tree
Ternary search tree
Self-balancing binary search tree
Smoothed Analysis
Mathematics
Computer Science(all)
Subjects
Details
- ISSN :
- 03043975
- Volume :
- 378
- Issue :
- 3
- Database :
- OpenAIRE
- Journal :
- Theoretical computer science
- Accession number :
- edsair.doi.dedup.....9f61df49c0108a99976d808068d139e0