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

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)

Open PDF

Document Details

Document Type
Technical Report
Publication Date
Dec 02, 1982
Accession Number
ADA125210

Entities

People

  • Jeffrey L. Eppinger

Organizations

  • Carnegie Mellon University

Tags

DTIC Thesaurus Topics

  • Algorithms
  • Computer Programming
  • Computer Science
  • Computers
  • Generators
  • Markov Chains
  • Probability
  • Random Number Generators
  • Shift Registers
  • Simulations
  • Trees (Data Structures)
  • Universities

Readers

  • Atmospheric Science / Meteorology, specifically Wind Wave Turbulence.
  • Computer Programming and Software Development.
  • Molecular and genetic basis of cancer.