登录
首页 » c » 简单的huffman实现,读一个文件,然后进行Huffman编码

简单的huffman实现,读一个文件,然后进行Huffman编码

于 2022-04-08 发布 文件大小:2.79 kB
0 118
下载积分: 2 下载次数: 1

代码说明:

最近在尝试Huffman编码,搜了很多,但是网上的不是有问题,就是不好使,因此,自己简单实现了一个Huffman编码的程序,该程序实现了从文件中读取数据后,构建Huffman树,对每个字符进行huffman编码,然后再对文件中的数据进行编码,并生成新的文件。当然是静态Huffman编码的实现。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • cidian
    windows phone 8开发技巧与案例精解一书中的参考代码,在线小词典,分享给大家。
    2014-02-21 14:46:30下载
    积分:1
  • MACD交叉策略
    MT4平台上利用MACD开平仓的一款EA(A EA that uses MACD to open a warehouse on the MT4 platform.)
    2020-06-30 23:20:02下载
    积分:1
  • c#调用sqlite自动切换32位和64位
    c#调用sqlite自动切换32位和64位
    2014-06-01下载
    积分:1
  • TherdTry
    说明:  实现雷达的信息接收的插件脚本,剩下的就是凑字数了,第一次上传东西,不知道有没有人看!(Achieve radar information receiving plug-in script, the rest is the word count, the first time to upload things, do not know if there is anyone to see!)
    2020-06-21 22:00:01下载
    积分:1
  • VMD642_CPLD
    本例程位于 VMD642_CPLD目录中。 使用 CPLD 实现辅助译码、LED 指示灯控制、看门狗等各种逻辑控制电路。源程序使 用 Verilog HDL书写,编译开发系统使用 Cypress公司的 Warp 6.3。(This routine is located VMD642_CPLD directory. Using CPLD implementation auxiliary decoding, LED indicator control, watchdog, and other logic control circuitry. Written using Verilog HDL source code, the compiler development system using Cypress' s Warp 6.3.)
    2013-09-13 13:59:52下载
    积分:1
  • c#实现了显示格式、隐式格式、CN格式数值模拟求解流体冷却一维板材
    c#实现了显示格式、隐式格式、CN格式数值模拟求解流体冷却一维板材
    2023-07-06 13:05:03下载
    积分:1
  • 知三点求圆心半径
    输入三点的三维坐标,求立体空间的圆心所在,使用了对话框架构,里面的算法函数可以提出来单独使用(importation of 3D coordinates for a three-dimensional space where the center of a circle, use the dialog box structure, function inside the algorithm can be made to use separate)
    2005-07-07 17:48:04下载
    积分:1
  • 高质量C++/C编程指南
    说明:  软件质量是被大多数程序员挂在嘴上而不是放在心上的东西! 除了完全外行和真正的编程高手外,初读本书,你最先的感受将是惊慌:“哇!我以前捏造的C++/C程序怎么会有那么多的毛病?” 别难过,作者只不过比你早几年、多几次惊慌而已。 请花一两个小时认真阅读这本百页经书,你将会获益匪浅,这是前面N-1个读者的建议。(Software quality is the majority of programmers have paid lip service rather than the heart! In addition to being a complete layman and a real master of programming, your first reading of the book will be a panic: "Wow! How can I have so many problems with the C++/C program I've made up before?" Don't be sad, the author is only a few years and a few times earlier than you panic. Please spend one or two hours reading this 100 pages of Scripture carefully, and you will benefit a lot from it. This is a suggestion from the previous N-1 readers.)
    2017-06-13 15:49:09下载
    积分:1
  • Gtk+ 回调函数的编写
    掌握回调函数与signal信号响应功能实现
    2022-12-02 04:25:03下载
    积分:1
  • balance-upright-trolley-source
    个人制作的电磁智能平衡直立小车的源程序,希望对有心人有用!(Individuals produced by electromagnetic intelligent balance upright trolley source, I hope to be useful off!)
    2013-11-20 20:00:55下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载