Hostname: page-component-8448b6f56d-wq2xx Total loading time: 0 Render date: 2024-04-19T02:45:22.598Z Has data issue: false hasContentIssue false

Red-black trees in a functional setting

Published online by Cambridge University Press:  01 July 1999

CHRIS OKASAKI
Affiliation:
School of Computer Science, Carnegie Mellon University, 5000 Forbes Avenue, Pittsburgh, Pennsylvania 15213, USA
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the ‘Save PDF’ action button.

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.

Type
FUNCTIONAL PEARL
Copyright
© 1999 Cambridge University Press
Submit a response

Discussions

No Discussions have been published for this article.