A red-black tree is a Binary Search Tree that satisfy the red-black tree properties:

1. Every node is colored red or black;

2. If a node is red, either it is a leaf or it has two black children.

3. For any node x, every path from x to a leaf contains the same number of black nodes. This number is the black-height of x, denoted by b(x).

4. Root of T is black.

***The height of the red-black tree is at most 2logn = O(logn) height. h(x) <= 2b(x), since the red nodes' children have to be black. at most alternative.

***For any node x, the subtree(x as well as its descendents) rooted at x has at least 2b(x)-1 nodes.

最新文章

  1. 【SAP业务模式】之ICS(六):发票输出类型
  2. vs2010无可用源
  3. 如何在Mac OSX 10.10上安装GDB
  4. 【转】Objective-C Class Dump
  5. Scanner 和 String 类的常用方法
  6. php socket编程参考资料
  7. css选择器,有箭头与没箭头的区别
  8. 从Python传递JSON到JavaScript
  9. jsp-javabean-setproperty介绍
  10. SqlCommand.Parameters.add()方法
  11. Linux基础知识(一)
  12. ecshop物料库存管理
  13. The Suspects(并查集求节点数)
  14. 付款页面DEMO
  15. JavaWeb三层结构---课设02
  16. python 中 try catch finally语句中含有return语句的执行情况
  17. AWK如何打印从某一列到最后一列的内容
  18. openstack,docker,mesos,k8s关系
  19. Nuget CsvHelper 的使用
  20. 更改wordpress的默认登录页面名称wp-login

热门文章

  1. pytest 测试报告
  2. picker组件,mode=date,苹果机年份从1开始
  3. POJ 3177 Redundant Paths &amp; POJ 3352 Road Construction(双连通分量)
  4. C++STL——map
  5. MySQL日常管理
  6. gdb coredum 信息例子
  7. CentOS6.8单独编译安装PHP gd库扩展
  8. PAT 1030 完美数列
  9. windows apache启动报错
  10. Bjarne Stroustrup语录2