package practice; public class TestMain { public static void main(String[] args) { int[] ao = {5, 1, 18, 3, 8, 20, 13, 16, 12}; Integer[] a = new Integer[9]; for (int i = 0; i < a.length; i++) { a[i] = new Integer(ao[i]); } RedBlackBST<Integer,Strin…
转载自http://blog.csdn.net/yangjun2/article/details/6542321 介绍另一种平衡二叉树:红黑树(Red Black Tree),红黑树由Rudolf Bayer于1972年发明,当时被称为平衡二叉B树(symmetric binary B-trees),1978年被Leonidas J. Guibas 和 Robert Sedgewick改成一个比较摩登的名字:红黑树. 红黑树和之前所讲的AVL树类似,都是在进行插入和删除操作时通过特定操作保持二叉…