ECCC-Report TR05-063https://eccc.weizmann.ac.il/report/2005/063Comments and Revisions published for TR05-063en-usFri, 29 Sep 2006 00:00:00 +0300
Revision 2
| Smoothed Analysis of Binary Search Trees |
Bodo Manthey,
Rüdiger Reischuk
https://eccc.weizmann.ac.il/report/2005/063#revision2Binary 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.<br>
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.<br>
On the one hand, we prove tight lower and upper bounds of roughly <i>&#920;((1-p) &#8730;n/p)</i> for the expected height of binary search trees under partial permutations and partial alterations, where <i>n</i> is the number of elements and <i>p</i> 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.
Fri, 29 Sep 2006 00:00:00 +0300https://eccc.weizmann.ac.il/report/2005/063#revision2
Revision 1
| Smoothed Analysis of Binary Search Trees |
Bodo Manthey,
Rüdiger Reischuk
https://eccc.weizmann.ac.il/report/2005/063#revision1Binary 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 problemsin 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 &#920;(&#8730;n) for the expected height of binary search trees under partial permutations and partial alterations. 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 balancedinstances can become.
Tue, 27 Sep 2005 00:00:00 +0300https://eccc.weizmann.ac.il/report/2005/063#revision1
Paper TR05-063
| Smoothed Analysis of the Height of Binary Search Trees |
Bodo Manthey,
Rüdiger Reischuk
https://eccc.weizmann.ac.il/report/2005/063Binary 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.
Sat, 25 Jun 2005 12:56:02 +0300https://eccc.weizmann.ac.il/report/2005/063