Accession Number:

ADA125210

Title:

An Empirical Study of Insertion and Deletion in Binary Search Trees.

Descriptive Note:

Interim rept.,

Corporate Author:

CARNEGIE-MELLON UNIV PITTSBURGH PA DEPT OF COMPUTER SCIENCE

Personal Author(s):

Report Date:

1982-12-02

Pagination or Media Count:

20.0

Abstract:

This paper describes an experiment on the effect of insertions and deletions on the path length of unbalanced binary search trees. Given a random binary tree, repeatedly inserting and deleting nodes 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 deletion. This study shows that performing a larger number of insertions and asymmetric deletion 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. However, with a symmetric deletion algorithm, the results 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. Author

Subject Categories:

  • Theoretical Mathematics

Distribution Statement:

APPROVED FOR PUBLIC RELEASE