-
HuffanCoding
读取数据,统计所得到的文件中每个字母的权值,创建哈夫曼树,哈夫曼编码。哈夫曼解码,解码后内容写入到指定的文件。
读取数据里面的内容是由英文单词组成。读取文件的时候传入文件存放的路径、读取方式以及读出以后存放的数组,最终可以得到一个存放目标文件内容的数组。
将得到的数组进行字母权值的统计,统计每个字母出现的次数,次数即为每个字母的权值。
将得到的字符数组与权值数组作为创建哈夫曼树的依据,哈夫曼树根据每个字母权值的大小来创建,每个节点,包括权值、父节点、左子、右子和字母本身。
根据哈夫曼树进行编码。形成目标文件的哈夫曼编码,将此编码返回。
根据哈夫曼树得到的数组即为解码数组,解码数组作为解码的结果返回。
写入输出文件,将解码得到的数组、文件的完整路径以及文件的写方式作为参数传入,将数组写入到相应的文件中。
(Read the data, statistical documents obtained weights for each letter, create a Huffman tree, Huffman coding. Huffman decoding, the decoded contents are written to the specified file.
Read the content inside is composed of English words. When the incoming file to read the file storage path, read mode and read out after storage array that can eventually get a storage target file contents of the array.
The resulting array of letter weights statistics, statistical number of occurrences of each letter, the number is the weight of each letter.
The resulting character array with the weights array as the basis for creating Huffman tree, Huffman tree based on the size of the weights of each letter to create, for each node, including weights, parent, left child, right child, and letter itself.
According to Huffman coding. The formation of the target file Huffman coding, this code returns.
According to Huffman decoding the resulting array is an array, the decoder decodes the result is retur)
- 2020-07-02 15:40:01下载
- 积分:1
-
ostu
最大类间方差法求阈值(thanks)
- 2010-05-22 17:58:40下载
- 积分:1
-
cbezier
画Bezier曲线的对话框,基于VC++程序开发,运行正确,图像直观(draw bezier)
- 2012-05-28 17:26:48下载
- 积分:1
-
Dc-generator-speed
直流发电机的调速程序,使用的是STC12C5A的单片机,采用PWM技术来调节他的速度,简单便捷。(DC generator speed control program use is microcontroller of STC12C5A, and PWM technology to adjust his speed, simple and convenient.)
- 2012-08-03 22:04:35下载
- 积分:1
-
xs436
可实现对二维数据的聚类,代码里有很完整的注释和解释,有井曲线作为输入可计算其地震波的衰减。( Can realize the two-dimensional data clustering, Code, there are very complete notes and explanations There is a well attenuation curve as input to calculate its seismic waves.)
- 2017-04-28 19:19:02下载
- 积分:1
-
wenxianzongshu
基于卷积神经网络的图像分割技术研究综述的实验报告(Research of image segmentation based on convolution neural network)
- 2016-06-14 13:46:17下载
- 积分:1
-
数字电源程序
101259385digital_power_supply_software, 经过测试功能很稳定可靠。程序有注释,方便理解。
- 2022-03-16 16:11:48下载
- 积分:1
-
enterprise users through Nortel system to provide Click
企业用户可通过Web800系统来提供Click-to-Dial的新型客户服务,即用户通过点击Web页面上的800电话,可直接与企业的相关人员通话。而客户或者企业的在外人员与企业联系时,只需点击企业Web页面上的指定图标,即可通过IP方式与企业的各部门取得联系。
企业不仅可以把申请Web800后获得的连接作为签名,嵌入Email中,从而实现Mail2phone功能。如果您愿意,还可以把她嵌入企业在网络上的广告中,也是轻松实现的功能。Web800把互联网与电话网的合二为一,为企业提供了一种新的网络通讯方式。
-enterprise users through Nortel system to provide Click-to-Dial a new customer household services, the user through the Web page click on the 800 phone directly with the enterprise personnel in the relevant calls. And the customer or business enterprises with foreign ties, simply click Enterprise Web pages on the designated icon. IP approach will be adopted by enterprises and the various departments contacted. Businesses can apply for Nortel, was signed as a link, embedded Email. thus achieving Mail2phone function. If you want, she can also be used in enterprise networks embedded in the commercials, as well as easy to achieve function. Nortel use the Internet and telephone network integration, and provide a new means of communi
- 2022-05-06 10:38:37下载
- 积分:1
-
贪吃蛇游戏
说明: 此游戏是在STM32F407上开发的一款简易版贪吃蛇游戏,具有设置功能,可以调节蛇与食物颜色,还具有调节声音,暂停等功能。(This game is a simple version of Snake Eating game developed on STM32F407. It has setting function, can adjust the color of snake and food, and also has the functions of adjusting sound and pausing.)
- 2020-06-24 16:20:02下载
- 积分:1
-
字符权的匹配的算法
字符权的匹配的算法-Matching Algorithm
- 2022-01-25 15:25:57下载
- 积分:1