Treaps - A Balanced and Efficient Data Structure

Authors

  • Guna Khambhammettu  New Jersey Institute of Technology, Newark, New Jersey, USA

DOI:

https://doi.org//10.32628/CSEIT241015

Keywords:

Treap, Binary Search Tree, Heap, Maxheap, Data Structure

Abstract

Treaps, blending Binary Search Trees (BST) and Heaps, present a distinctive data structure combining search accuracy with randomized prioritization. This paper explores Treap fundamentals, operations, and implementation details, emphasizing their adeptness in maintaining equilibrium during dynamic operations. The Treap structure, succinctly outlined, features nodes with keys, priorities, and left/right children. Operations like insertion, deletion, and search are demystified, showcasing Treaps' inherent balancing mechanisms. Treap split and join operations, crucial for partitioning and merging based on keys, are explored alongside real-world use cases, underscoring Treaps' versatility. Backed by Java implementation and the TreapAnalyzer class, this research provides concise insights into Treap efficiency. Experimental results, graphically depicted, affirm Treaps' prowess, making them a compelling choice for developers seeking balance and efficiency in computational tasks.

References

  1. https://www.cs.cmu.edu/~scandal/papers/treaps-spaa98.pdf
  2. M. R. Brown and R. E. Tarjan. A fast merging algorithm. Journal of the Association for Computing Machinery, 26(2):211–226, Apr. 1979
  3. S. Carlsson, C. Levcopoulos, and O. Petersson. Sublinear merging and natural merge sort. In Proceedings of the International Symposium on Algorithms SIGAL’90, pages 251–260, Tokyo, Japan, Aug. 1990.
  4. R. Seidel and C. R. Aragon. Randomized search trees. Algorithmica, 16:464–497, 1996.
  5. F. K. Hwang and S. Lin. A simple algorithm for merging two disjoint linearly ordered sets. SIAM Journal of Computing, 1:31–39, Mar. 1972.
  6. https://en.wikipedia.org/wiki/Treap
  7. https://www.geeksforgeeks.org/treap-a-randomized-binary-search-tree/
  8. https://cp-algorithms.com/data_structures/treap.html

Downloads

Published

2024-02-29

Issue

Section

Research Articles

How to Cite

[1]
Guna Khambhammettu, " Treaps - A Balanced and Efficient Data Structure, IInternational Journal of Scientific Research in Computer Science, Engineering and Information Technology(IJSRCSEIT), ISSN : 2456-3307, Volume 10, Issue 1, pp.71-78, January-February-2024. Available at doi : https://doi.org/10.32628/CSEIT241015