-
哈夫曼编码
程序是要建立一个哈弗曼树,并利用哈夫曼树求相应编码和译码,根据输入的一串电文(字符串)来设计哈夫曼树,并根据哈弗曼树求出每个字符相应的编码,最后根据已知的编码,随机组合输入编码串,根据哈弗曼编码和哈弗曼树求出译码内容。
主要输入形式为一串字符串例如:abcd
输入的范围就是这26个字母,不限大小写,定义最多输入的字符不超过100个。
输出的形式根据要求,输入字符串后,要输出每个字符及其权值(出现次数);
然后再输入要译码的编码串,输出译码内容。
- 2022-03-16 10:05:21下载
- 积分:1
-
C#中,应用程序与数据库access的链接解释
C#中,应用程序与数据库access的链接解释-C#, applications and database access links to explain the
- 2022-07-09 06:23:46下载
- 积分:1
-
C语言实现的寻找多数元素代码
C语言实现的寻找多数元素代码,含英文注释。算法采用《算法设计技巧与分析》(沙特)一书上的方法。在一个整数序列A中,如果整数r在A中出现的次数大于序列A的一半,那么我们把这个r称为多数元素。如何更快的找出这个元素呢?在原序列中去除两个不同的元素后,那么在原序列中的多数元素在新序列中还是多数元素。
- 2022-11-30 03:55:03下载
- 积分:1
-
various algorithm C language, graphic menu, ordering random number generation.
各种排序算法的C语言实现,图形菜单,排序数随机生成.-various algorithm C language, graphic menu, ordering random number generation.
- 2022-06-16 20:22:16下载
- 积分:1
-
VB为前台,SQL_SERVER为后台的关于宾馆的数据库编程
VB为前台,SQL_SERVER为后台的关于宾馆的数据库编程-prospects for VB, SQL_SERVER background on the hotel Database Programming
- 2022-03-14 22:29:19下载
- 积分:1
-
马的遍历问题。在中国象棋棋盘上,对任一位置上放置的一个马,均能选择合适的路线,使得该棋子能够按象棋的规则不重复的走过棋盘上的每一个位置。...
马的遍历问题。在中国象棋棋盘上,对任一位置上放置的一个马,均能选择合适的路线,使得该棋子能够按象棋的规则不重复的走过棋盘上的每一个位置。-Traversal problem horses. In Chinese chess chessboard, for any one location to place a horse, able to choose the right line, making the chess pieces according to chess rules can not repeat the past chessboard for each location.
- 2022-02-27 04:21:33下载
- 积分:1
-
图邻接表的建立,深度优先遍历,.广度优先遍历,最小生成树,拓扑排序,单源点到其余各个顶点的最短路径等对图的操作!VC界面!...
图邻接表的建立,深度优先遍历,.广度优先遍历,最小生成树,拓扑排序,单源点到其余各个顶点的最短路径等对图的操作!VC界面!-plans to establish the adjacent table, depth-first traversal. Breadth priority traversal, the minimum spanning tree, topological sorting, single-source all of the rest of the vertices such as the shortest path to map the way! VC interface!
- 2023-05-10 17:40:03下载
- 积分:1
-
严蔚敏编写的《数据结构》第2章的答案,全部为源码
严蔚敏编写的《数据结构》第2章的答案,全部为源码-the answers of chapter two of a book called ‘Data Structures’ writen by Yan Wei Min
- 2022-11-03 03:35:03下载
- 积分:1
-
Hotel management program, mainly for small a la carte restaurant cash register,...
酒店管理程序,主要用于小型饭店点菜收银,功能完备-Hotel management program, mainly for small a la carte restaurant cash register, a fully functioning
- 2022-07-05 03:10:30下载
- 积分:1
-
VC stack with the expression evaluates to achieve! ! Data structure of a small o...
VC实现的用堆栈实现表达式求值!! 数据结构的一个小作业!! 大家可以参考一下-VC stack with the expression evaluates to achieve! ! Data structure of a small operation! ! We can take a look
- 2022-03-04 13:39:13下载
- 积分:1