计算机科学 > 数据结构与算法
[提交于 2014年6月12日]
标题:A note on the largest number of red nodes in red-black trees
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In this paper, we are interested in the number of red nodes in red-black trees. We first present an $O(n^2\log n)$ time dynamic programming solution for computing $r(n)$, the largest number of red internal nodes in a red-black tree on $n$ keys. Then the algorithm is improved to some $O(\log n)$ time recursive and nonrecursive algorithms. Based on these improved algorithms we finally find a closed-form solution of $r(n)$.
提交历史
来自:Xiaodong Wang[v1] 2014年6月12日 星期四 00:56:02 UTC