搜索资源列表
huffman.rar
- 用优先队列实现霍夫曼编码,是对贪心算法实现的一个详细代码。输入文件是待编码文件,输出文件是各个字符编码信息。,Priority queue with the realization of Huffman code is a greedy algorithm to achieve a detailed code. Input file is to be encoded file, output file is all character encoding information.
jiayouwenti
- 用贪心算法实现加油问题的代码,而且是以C++实现的。-this is a C++!include<iostream.h> #include<fstream.h> ifstream infile("E:\\jiayou.in") ofstream outfile("E:\\jiaou.out") void jiayou(int*x,int n,int k){
HAFFMAN
- 数组贪心法实现哈弗曼编码与解码,文件读入,较简单易懂-Array greedy method to achieve the Huffman encoding and decoding, the document read, simple to understand