Red-black trees in a functional setting

Chris Okasaki

Journal of Functional Programming · 1999 · 74 citations · 8 references

DOIFull text

Open access

Concepts

Abstract

Everybody learns about balanced binary search trees in their introductory computer science classes, but even the stouthearted tremble at the thought of actually implementing such a beast. The details surrounding rebalancing are usually just too messy. To show that this need not be the case, we present an algorithm for insertion into red-black trees (Guibas and Sedgewick, 1978) that any competent programmer should be able to implement in fifteen minutes or less.

References

8