English

Simple Balanced Binary Search Trees

Programming Languages 2014-12-17 v1 Data Structures and Algorithms

Abstract

Efficient implementations of sets and maps (dictionaries) are important in computer science, and balanced binary search trees are the basis of the best practical implementations. Pedagogically, however, they are often quite complicated, especially with respect to deletion. I present complete code (with justification and analysis not previously available in the literature) for a purely-functional implementation based on AA trees, which is the simplest treatment of the subject of which I am aware.

Keywords

Cite

@article{arxiv.1412.4882,
  title  = {Simple Balanced Binary Search Trees},
  author = {Prabhakar Ragde},
  journal= {arXiv preprint arXiv:1412.4882},
  year   = {2014}
}

Comments

In Proceedings TFPIE 2014, arXiv:1412.4738

R2 v1 2026-06-22T07:32:55.334Z