Abstract
Binary tree is a graph, without cycle, that is frequently used in computer science for fast data access and retrieval. To ensure faster insertion and deletion, the tree height has to be kept to a minimum. A random tree starts losing its randomness after a series of insertions and deletions and, in the worst case, a tree with n nodes, could grow up to the height of n - 1. In this paper, we present modified insertion and deletion algorithms to maintain the tree in better shape dynamically. Without applying any complex rebalancing technique, or using considerable amount of space, both algorithms maintain the tree in such a way that even a series of insertions and asymmetric deletions do not cause the tree to grow beyond n/2. A comparative study of traditional and modified insert algorithms shows that for random input, the modified insert algorithm produces a tree with 20% to 30% reduction in height, forcing the average number of comparisons required for a successful search to go down by 15% to 20%.
| Original language | English |
|---|---|
| Title of host publication | nan |
| Publisher | Institute of Electrical and Electronics Engineers Inc. |
| DOIs | |
| Publication status | Published - 1 Jan 2006 |
| Event | Tenth International Conference on Information Visualisation (IV'06) - London Duration: 5 Jul 2006 → 7 Jul 2006 |
Conference
| Conference | Tenth International Conference on Information Visualisation (IV'06) |
|---|---|
| City | London |
| Period | 5/07/06 → 7/07/06 |
| Other | Tenth International Conference on Information Visualisation (IV'06) (05/07/2006-07/07/2006, London) |
Keywords
- Search logic
Fingerprint
Dive into the research topics of 'Maintaining a random binary search tree dynamically'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver