建立huffman树,当然用堆排序
摘要:
闲着去逛论坛,看到有人问建huffman树。记得当初学数据结构时我没写过,所以也来试试。不过这个当作业实在是太迟了:) /**//*做huffman用堆排序应该效率最高了吧,不过自己写一个太麻烦,就直接用stl算了:*/#includecstdio>#includevector>#includealgorithm>templateclassType>structnode{n... 阅读全文
posted @ 2005-07-14 21:01 kaikai 阅读(1660) 评论(1) 推荐(0) 编辑