摘要: 分离了二叉树在控制台的打印实现 没有对节点的分配和释放进行抽象 阅读全文
posted @ 2011-11-25 16:19 Evil.Ghost 阅读(464) 评论(0) 推荐(0) 编辑
摘要: BinaryHeap.h文件#ifndef BINARY_HEAP_H#define BINARY_HEAP_Hnamespace ghost{template<typename A>void MinHeapShiftUp(A& array, const size_t size, size_t n/*umber(not index)*/){ if (0 == size) { // array为空 return; } if (size < n || 2 > n) { // n超出有效区间,或者没有父节点 ret... 阅读全文
posted @ 2011-11-25 15:38 Evil.Ghost 阅读(448) 评论(0) 推荐(0) 编辑