A note on the largest number of red nodes in red-black trees

preprint2014arXivOpen access

Abstract

In this paper, we are interested in the number of red nodes in red-black trees. We first present an O(n2log⁡n)O(n^2\log n) time dynamic programming solution for computing r(n)r(n), the largest number of red internal nodes in a red-black tree on nn keys. Then the algorithm is improved to some O(log⁡n)O(\log n) time recursive and nonrecursive algorithms. Based on these improved algorithms we finally find a closed-form solution of r(n)r(n).

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.