搜索资源列表
huffman
- 根据对二叉树知识的理解,实现对最优二叉树哈夫曼树的构造,遍历,然后实现编码,译码的功能,结果保存到文件中. 输入要进行编码的字符段,统计对字符的出现次数即为权值,根据权值建立哈夫曼树,由哈夫曼树可得到各字符的编码,反过来可得数字译码,保存到文件中 -Based on a binary tree of knowledge of understanding, to achieve the optimal Huffman tree binary tree structure, traverse
hafuman
- 实现构造一颗哈夫曼树,算法效率较高,易懂-The realization of a Huffman tree structure, the algorithm more efficient, easy to understand
huofuman
- 设计一个哈夫曼编码/译码系统,对字符串进行编码/译码 要求: (1)从键盘输入字符串,以回车结束; (2)根据字符串中字符出现的概率进行哈夫曼编码;) (3)并输出编码结果和编码表;(4)根据编码结果和编码表还原字符串; (5)输出编码过程中构造的哈夫曼树。 -Design a Huffman encoding/decoding system, the string encoding/decoding requirements: (1) from the keyboard input st
huffman-tree
- 该小程序的功能是输入权值,构造哈夫曼树,并在构造的过程中将各权值进行哈弗曼编码,并且具有一定的判断功能-The program function is to input the right values, construct the Huffman tree , and constructed during the weight Hafu Man coding and judgment
huffman-code
- 该小程序为哈弗曼编码系统,带有一个小界面,主要执行的功能是对输入的数据进行编码,译码,构造并打印哈夫曼树。并且将输入的数据进行保存。-The applet is Felicity Huffman coding system, with a small interface, main function is performed on the input data encoding, decoding, construct and print a Huffman tree. Data entered
huffmantree-code
- 此代码为哈弗曼编码,主要功能是输入结点数以及权值,构造出哈夫曼树,并且把构造结果输出到屏幕,结果会显示哈夫曼树的左孩子和右孩子以及双亲节点等-The code is Felicity Huffman coding, the main function is to enter a nodal points and weights, construct a Huffman tree, and the result is output to the screen structure, results
Text2
- 构造哈夫曼树,由一串输入的字符得到权值并构造、编码哈夫曼树-to create a huffman tree
main
- 对字符文件进行构造哈夫曼树并进行哈夫曼编码-Character file structure Huffman tree and Huffman coding
Huffman
- 哈弗曼编码,构造哈夫曼树,构造哈夫曼树非常简单,将所有的节点放到一个队列中,用一个节点替换两个频率最低的节点,新节点的频率就是这两个节点的频率之和。这样,新节点就是两个被替换节点的父节点了。如此循环,直到队列中只剩一个节点(树根)。-Hoffman coding, Huffman tree structure, Huffman tree structure is very simple, all the nodes in a queue, replace the two lowest frequ
huffmancode
- 利用最小堆编程实现给定权值集合下构造相应霍夫曼树的算法,并解决以下问题: 有一电文共使用五种字符a,b,c,d,e,其出现频率依次为4,7,5,2,9。 (1)构造对应的编码哈夫曼树(要求左子树根结点的权小于等于右子树根结点的权)。 (2)给出每个字符的哈夫曼编码。 (3)译出编码系列11 00 011 10 00 10 10 11的相应电文。 -With a minimum heap programming under a given set of weights to c
huffman
- 给定n个权值作为n的叶子结点,构造一棵二叉树,若带权路径长度达到最小,称这样的二叉树为最优二叉树,也称为哈夫曼树(Huffman tree)。哈夫曼树是带权路径长度最短的树,权值较大的结点离根较近。-Structure and Huffman tree coding and decoding
Hafuman-
- 给定n个权值作为n的叶子结点,构造一棵二叉树,若带权路径长度达到最小,称这样的二叉树为最优二叉树,也称为哈夫曼树(Huffman tree)。哈夫曼树是带权路径长度最短的树,权值较大的结点离根较近。-Huffman source code tree
hafuman
- C++代码,目的是生成哈夫曼树。哈夫曼树又称最优二叉树,是一类带权路径长度最短的树。其构造可利用哈夫曼最早给出的哈夫曼算法来构造-C++ code is to generate Huffman trees. Huffman tree is also called the optimal two tree, is a class of weighted length of the shortest path tree. Its structure can be used to give the H
ekcodilg
- [CC++]哈夫曼编码及译码 构造赫夫曼树 HT , 并求出 n 个字符的赫夫曼编码 HC-[CC++] Huffman encoding and decoding structure tree HT, hoffman and the n character encoding HC hoffman
哎呀
- 设计一个哈夫曼编码、译码系统。对一个ASCII编码的文本文件中的字符进行哈夫曼编码,生成编码文件;反过来,可将编码文件译码还原为一个文本文件。 (1)从文件中读入任意一篇英文短文(文件为ASCII编码,扩展名为txt); (2)统计并输出不同字符在文章中出现的频率(空格、换行、标点等也按字符处理); (3)根据字符频率构造哈夫曼树,并给出每个字符的哈夫曼编码; (4)图形化输出哈夫曼树、哈夫曼编码; (5)将文本文件利用哈夫曼树进行编码,存储成压缩文件(编码文件后缀名.huf) (6
哈弗曼
- 设计程序以实现的哈夫曼算法。求解所构造的哈夫曼树的带权路径长度()
哈夫曼树
- 哈夫曼树(Huffman tree),又名最优树,指给定n个权值作为n的叶子结点,构造一棵二叉树,若带权路径长度达到最小,称这样的二叉树为最优二叉树,也称为哈夫曼树(Huffman tree)。哈夫曼树是带权路径长度最短的树,权值较大的结点离根较近。若将树中结点赋给一个有着某种含义的数值,则这个数值称为该结点的权。(Huffman tree (Huffman tree), also known as the tree, given n as n weights of the leaf node,
ZGCompress-master
- 构造huffman树生成huffman编码压缩文件(Constructing Huffman tree to generate Huffman coded compression file)
课设4 Huffman ok
- 完成哈夫曼树,哈夫曼的解码和重新构造,有效压缩文件(Completing the Huffman tree, decoding and reconstructing Huffman, effectively compressing the file)