-
Implementation for the Huffman Cod in Visual C++.
Both, the encoder and the d...
Implementation for the Huffman Cod in Visual C++.
Both, the encoder and the decoder take as input a file and write the output into another file.-Implementation for the Huffman Cod in Visual C++.
Both, the encoder and the decoder take as input a file and write the output into another file.
- 2022-01-24 16:56:24下载
- 积分:1
-
一 . 需求分析:
1) 输入形式和输入值范围:
输入形式是要压缩(或者要解压)的文件路径,输入范围是字符串,而且要是文件的路径。
2) 输...
一 . 需求分析:
1) 输入形式和输入值范围:
输入形式是要压缩(或者要解压)的文件路径,输入范围是字符串,而且要是文件的路径。
2) 输出形式:
输出相应的编码压缩文件和解码原文件
3) 程序所能达到的功能:
利用哈夫曼对ASCII文件做不等长编码,达到压缩文件。利用哈夫曼树的遍历,达到解压文件的目的。程序的功能也就是实现压缩和解压ASCII类型文件的目的。
4)测试数据:(包括正确的输入数据及其输出结果和含有错误输入及其输出结果)
测试输入或者输出文本框是不是有空的,是不是不是有效路径。进行条件判断,实现错误处理。
比如要压缩:c:a.txt 文件路径就是:c:a.txt。如果输入框是空的,就判断,然后用MessageBox处理信息。
如果文件路径和文件的输出路径都写正确的话,就会输出相应的压缩或者解压文件,否则用函数MessageBox提示错误。然后进行更正。
二 . 概要设计:
1) 哈夫曼树的特点
a) 是二叉树的一种,而且是一种没有度数是1的二叉树
b) 一棵树有n个叶子,就会用2n-1个节点
c) 一种“最优”二叉树,由于树的带权路径(WPL)最小
d) 由于它是由下到上顺序构造的,使得分支节点和叶子节点从下到上,权值都是从小到大的顺序排列的
- 2022-03-21 06:23:05下载
- 积分:1
-
B样条曲线生成程序.txt B样条曲线生成程序.txt
B样条曲线生成程序.txt B样条曲线生成程序.txt-B-spline curve generation procedure. TxtB spline curve generation procedure. TxtB spline curve generation procedure. Txt
- 2022-03-21 12:32:42下载
- 积分:1
-
这是基于4*4键盘,及液晶的菜单设计,菜单内容包括波形、峰峰值和频率。...
这是基于4*4键盘,及液晶的菜单设计,菜单内容包括波形、峰峰值和频率。-This is based on the 4* 4 keyboard, and LCD menu design, menu content, including waveform, peak-to-peak and frequency.
- 2023-07-27 19:30:03下载
- 积分:1
-
一个简单的压缩算法源程序,希望能给大家带来帮助
一个简单的压缩算法源程序,希望能给大家带来帮助-A simple compression algorithm source code, I hope everyone can help
- 2022-03-26 03:40:56下载
- 积分:1
-
Listless SPIHT, JPEG2000 faster than the speed, compression ratio almost
无链表SPIHT算法,速度比JPEG2000快,压缩比差不多-Listless SPIHT, JPEG2000 faster than the speed, compression ratio almost
- 2022-12-07 05:10:03下载
- 积分:1
-
实现了图像的哈夫曼编码和解码,对图像编码的学习很有帮助...
实现了图像的哈夫曼编码和解码,对图像编码的学习很有帮助-Achieved image Huffman encoding and decoding of image coding learning helpful
- 2022-02-02 03:29:37下载
- 积分:1
-
互联网的建立
VC下的INTERNET的建立-VC establishment of the Internet
- 2022-10-12 17:25:03下载
- 积分:1
-
可用的基于小波的spiht算法,可以自己设定小波分解基数,做成人机交互界面,直观
可用的基于小波的spiht算法,可以自己设定小波分解基数,做成人机交互界面,直观-Available to the SPIHT algorithm based on wavelet, wavelet decomposition can be set for the base, resulting in human-computer interaction interface, intuitive
- 2022-02-25 11:59:14下载
- 积分:1
-
树的先序,中序排列,求树的后序排列,自己编码实现的。
树的先序,中序排列,求树的后序排列,自己编码实现的。-Tree first order, in sequence order, and after the sequence tree with their own coding achievable.
- 2022-07-25 22:50:30下载
- 积分:1