Affiliation:
1. Carnegie-Mellon Univ., Pittsburgh, PA
Abstract
This paper describes an experiment on the effect of insertions and deletions on the path length of unbalanced binary search trees. Repeatedly inserting and deleting nodes in a random binary tree yields a tree that is no longer random. The expected internal path length differs when different deletion algorithms are used. Previous empirical studies indicated that expected internal path length tends to decrease after repeated insertions and asymmetric deletions. This study shows that performing a larger number of insertions and asymmetric deletions actually increases the expected internal path length, and that for sufficiently large trees, the expected internal path length becomes worse than that of a random tree. With a symmetric deletion algorithm, however, the experiments indicate that performing a large number of insertions and deletions decreases the expected internal path length, and that the expected internal path length remains better than that of a random tree.
Publisher
Association for Computing Machinery (ACM)
Reference9 articles.
1. Some Combinatorial Properties of Certain Trees With Applications to Searching and Sorting
2. A trivial algorithm whose analysis isn't
3. Knuth D.E. The Art of Computer Programming. Volume lI: Seminumerical Algorithms. Addison-Wesley Publ. Co. Inc. Reading Massachusetts (1969) Section 3.2. Knuth D.E. The Art of Computer Programming. Volume lI: Seminumerical Algorithms. Addison-Wesley Publ. Co. Inc. Reading Massachusetts (1969) Section 3.2.
Cited by
14 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献