摘要:
publicclassTest{ publicstaticvoid main(String[] args){ char[] ch =newchar[]{'A','B','D','#','#','G','#','#','C','J','#','#','M','#','#'}; BinaryTree b 阅读全文
posted @ 2016-05-27 16:17
_Doing
阅读(1097)
评论(0)
推荐(0)
摘要:
二叉树 二叉树基本性质 第 i 层:至多 2^(i-1) 个结点 深度为k,至多 2^k - 1 个结点,至少 k 个结点 叶子n0个,度为2的结点n2个:n0 = n2 + 1 完全二叉树:n个结点,则深度为 [ log2(n)] + 1 完全二叉树(顺序表存储,下标从1开始)下标关系:双亲[ i 阅读全文
posted @ 2016-05-27 16:14
_Doing
阅读(320)
评论(0)
推荐(0)
摘要:
publicclassLinkQueue<T>{ //结点类 publicclassNode{ public T data; publicNode next; publicNode(T obj,Node next){ this.data = obj; this.next = next; } } pr 阅读全文
posted @ 2016-05-27 16:13
_Doing
阅读(280)
评论(0)
推荐(0)

浙公网安备 33010602011771号