摘要: 参考网上代码,其中实现哈弗曼树的地方,使用了贪心准则。template<typename Type>class BinaryTree;template<typename Type>void Huffman(Type *,int,BinaryTree<Type> &);template<typename Type>class BinTreeNode{public: friend class BinaryTree<Type>; friend void Huffman<Type>(Type *,int,BinaryTre 阅读全文
posted @ 2013-06-03 21:22 李VS超 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 严正声明,这篇博客中写的代码,转自网络,非本人所创造。自认为此代码规范性很高,水平很好,供各位大神参考。目 录1、顺序表 1Seqlist.h 1Test.cpp 62、单链表 8ListNode.h 8SingleList.h 10test.cpp 203、双向链表 22NodeList.h 22DoubleList.h 24Test.cpp 344、循环链表 36ListNode.h 36CircularList.h 37Test.cpp 475、顺序栈 49SeqStack.h 49Test.cpp 546、链式栈 55StackNode.h 55LinkStack.h 56Test.. 阅读全文
posted @ 2013-06-03 18:38 李VS超 阅读(237) 评论(0) 推荐(0) 编辑