登录
首页 » 数据结构 » 哈夫曼编/解码器

哈夫曼编/解码器

于 2022-03-21 发布 文件大小:16.92 kB
0 127
下载积分: 2 下载次数: 1

代码说明:

(1) 初始化。从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树,并将它存于文件hfmTree.txt中。 (2) 编码。利用已建好的哈夫曼树,对文件ToBeTra.txt中的正文进行编码,然后将结果存入文件CodeFil.txt中。 (3) 译码。利用已建好的哈夫曼树将文件CodeFile.txt中的代码进行译码,结果存入文件Textfile.txt中。 -Huffman encoder/decoder

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

发表评论

0 个回复

  • 本程序是一个用于管理学生成绩例子.通过利用MFC的DAO类,用VC++编写独立与DBMS的应用程序...
    本程序是一个用于管理学生成绩例子.通过利用MFC的DAO类,用VC++编写独立与DBMS的应用程序-this is a procedure for the management of the performance of their students examples. Through the use of the MFC DAO category, prepared by VC independence and DBMS applications
    2022-02-26 07:22:10下载
    积分:1
  • single source shortest path problem of dynamic programming algorithm, please exh...
    单源最短路径问题的动态规划算法,请大家多多指教-single source shortest path problem of dynamic programming algorithm, please exhibitions
    2023-03-29 08:30:04下载
    积分:1
  • 一个用VB编写的很有代表性的库搜索器(虽然界面不怎么样)...
    一个用VB编写的很有代表性的数据库搜索器(虽然界面不怎么样)-a VB prepared by the very representative of the database search (though not impressive interface)
    2022-02-26 20:18:39下载
    积分:1
  • 程序存储问题:设有n 个程序{1,2,…, n }要存放在长度为L的磁带上。程序i存放在磁带上的长度是Li ,1≤i≤n 程序存储问题要求确定这n 个程序在磁带...
    程序存储问题:设有n 个程序{1,2,…, n }要存放在长度为L的磁带上。程序i存放在磁带上的长度是Li ,1≤i≤n 程序存储问题要求确定这n 个程序在磁带上的一个存储方案,使得能够在磁带上存储尽可能多的程序。 编程任务: 对于给定的n个程序存放在磁带上的长度,编程计算磁带上最多可以存储的程序数。 数据输入:由文件input.txt给出输入数据。第一行是正整数n,表示文件个数。接下来的1 行中,有n 个正整数,表示程序存放在磁带上的长度。 结果输出: input.txt output.txt 6 50 5 2 3 13 8 80 20 -program storage problem : There n procedures (1,2, ..., n) to be stored in the length of the L tape. I kept in the proceedings on the tape length is Li, 1 i n storage procedures to seek to establish that n procedures on tape storage of a program that allows the tape to store as much as possible the procedure. Programming tasks : to the n procedures stored in the tape length, calculated programming on tape can store up to the number of procedures. Data input : from the document input.txt given input data. The first line is a positive integer n, said the document number. Following a visit, n is an integer, said procedures stored on tape length. Results output : input.txt output.txt 6 50 5 2 3 13 8 80 20
    2023-01-10 04:30:04下载
    积分:1
  • 先输入矩阵的维,再输入该矩阵,然后通过该算法从大到小输出该矩阵的各行各列和主辅对角线的和...
    先输入矩阵的维数,再输入该矩阵,然后通过该算法从大到小输出该矩阵的各行各列和主辅对角线的和-First dimension of input matrix, and then enter the matrix, and then through the smallest of the algorithm output lines of the matrix columns and the main diagonal and Des
    2022-03-31 15:58:41下载
    积分:1
  • 一个程序而已,不过看看也有好处
    一个程序而已,不过看看也有好处-a procedure adopted, but it is also good to see
    2023-07-10 14:05:05下载
    积分:1
  • a good JAVA guestbook
    一个不错的JAVA guestbook -a good JAVA guestbook
    2023-02-26 04:00:04下载
    积分:1
  • 同一个库开发的系统,有源代码和发布版本
    同一个数据库开发的系统,有源代码和发布版本-with a database development systems, and active code releases
    2022-05-17 05:06:43下载
    积分:1
  • 递归算法求统计二叉树T中叶子点的目,常用算法...
    递归算法求统计二叉树T中叶子结点的数目,数据结构常用算法-recursive algorithm for statistical binary tree T leaf node of the number of commonly used data structures Algorithm
    2022-02-10 14:36:32下载
    积分:1
  • 车队管理
    车辆管理系统是有利于巴士营办商,想要在一天之内运作很多巴士班次的软件。车辆管理系统是为 32 位 Windows 操作系统的重点领域的添加、 编辑和删除工作人员及巴士路线的乘客写一个 windows 应用程序。在这个软件中一个人可以注册为用户,他可以管理巴士路线和工作人员,乘客的详细信息。他可以添加一辆公共汽车和其详细信息,包括巴士路线的详细信息。用户还可以在系统中添加细节的工作人员和他们的工作时间。
    2022-03-15 23:47:07下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载