-
常用搜索算法,包括8数码游戏,A star算法类的实现,以及黑白棋算法等...
常用搜索算法,包括8数码游戏,A star算法类的实现,以及黑白棋算法等-commonly used search algorithm, including eight digital games, Class A star of the algorithm to achieve, and reversi algorithm
- 2022-05-30 14:43:45下载
- 积分:1
-
TColor RGB color to the gradual change
TColor到RGB色的渐变-TColor RGB color to the gradual change
- 2022-03-25 01:45:27下载
- 积分:1
-
g.721 C代码
g.721 C代码-g.721 C code
- 2022-12-16 13:30:03下载
- 积分: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
-
判断队列是否唯恐,进出队列,遍历队列,去队列头部元素等...
判断队列是否唯恐,进出队列,遍历队列,去队列头部元素等-Queue to determine whether or not for fear, and out of the queue, the queue traversal to the head queue element, such as
- 2023-02-14 03:55:03下载
- 积分:1
-
EasyARM1138 的蜂鸣器程序 能发出两种不同频率的声音
EasyARM1138 的蜂鸣器程序 能发出两种不同频率的声音-EasyARM1138 the buzzer program can issue two kinds of different frequencies of sound
- 2022-03-18 22:23:14下载
- 积分:1
-
一个公认的无损和近无损图像压缩算法:实现…
当前公认的最优无损/准无损图像压缩算法之一:calic算法的软件实现。-An accepted lossless and near lossless image compression algrithm: Relization of CALIC on soft.
- 2022-07-27 02:52:30下载
- 积分:1
-
静态的哈夫曼编码,从file.txt文件中读取字符,统计,并编码,输出到huffman...
静态的哈夫曼编码,从file.txt文件中读取字符,统计,并编码,输出到huffman-u.txt中-Static Huffman coding, the document read from file.txt characters, statistics, and coding, the output of the huffman-u.txt
- 2023-06-17 11:35:03下载
- 积分:1
-
self contained Huffman encoder and decoder with CLI.
Simple program written in...
self contained Huffman encoder and decoder with CLI.
Simple program written in C. The program encode text entered to a file. The file is used by the decoder to recover text.
- 2022-02-28 17:27:26下载
- 积分:1
-
for tree traversal sequence were used method is the use of non
求树的中序遍历,运用的方法是用非递归的算法来做的.-for tree traversal sequence were used method is the use of non- recursive algorithm very consistent.
- 2022-08-26 11:53:55下载
- 积分:1