-
哈夫曼编码
程序是要建立一个哈弗曼树,并利用哈夫曼树求相应编码和译码,根据输入的一串电文(字符串)来设计哈夫曼树,并根据哈弗曼树求出每个字符相应的编码,最后根据已知的编码,随机组合输入编码串,根据哈弗曼编码和哈弗曼树求出译码内容。
主要输入形式为一串字符串例如:abcd
输入的范围就是这26个字母,不限大小写,定义最多输入的字符不超过100个。
输出的形式根据要求,输入字符串后,要输出每个字符及其权值(出现次数);
然后再输入要译码的编码串,输出译码内容。
- 2022-03-16 10:05:21下载
- 积分:1
-
计算PI的值有各种各样 ,看看这个算法是不是很简洁呢
计算PI的值有各种各样 ,看看这个算法是不是很简洁呢-Calculated PI values are varied, to see if this algorithm is not very simple and does
- 2022-01-27 15:59:10下载
- 积分:1
-
数据结构
详细描述了如何创建二分查找的方法以及操作
数据结构
详细描述了如何创建二分查找的方法以及操作-Data structure described in detail how to create a binary search method and the operation of
- 2023-07-28 02:25:02下载
- 积分:1
-
1 创建给定图的存储结构,从邻接表和邻接矩阵两种存储方式中选择一种。
2 对所创建的图进行深度和广度优先搜索遍历,给出遍历过程中的顶点序列。
3 求图的...
1 创建给定图的存储结构,从邻接表和邻接矩阵两种存储方式中选择一种。
2 对所创建的图进行深度和广度优先搜索遍历,给出遍历过程中的顶点序列。
3 求图的最小生成树,按构造顺序输出边的序列。(两种方法都要求!)
-Create a storage structure of a given graph from the adjacency list and adjacency matrix are two ways to choose a store. Two pairs of maps created by the depth and breadth-first search traversal, given the culmination of the process of traversal sequence. 3 order to map the minimum spanning tree, according to the order of the output side of the sequence structure. (Both methods require!)
- 2022-12-16 12:05:03下载
- 积分:1
-
用delphi开发的一个数据表
用delphi开发的一个数据表-with the development of a data table
- 2022-11-11 20:50:03下载
- 积分:1
-
ADO封状类。
使用ADO进行联接数据据的类封装。可以很便利地实现数据库的读写查。
- 2022-07-08 04:52:00下载
- 积分:1
-
通过修改access数据库的头文件来达到加密数据库的目的,在VC6.0平台上运行良好,已通过测试...
通过修改access数据库的头文件来达到加密数据库的目的,在VC6.0平台上运行良好,已通过测试-Access the database by modifying the header files to achieve the purpose of encrypting the database, in VC6.0 platform to run well, has been tested
- 2022-06-14 05:55:35下载
- 积分:1
-
这是一本介绍面向对象数据库的书,对学习数据库的朋友们很有帮助。
这是一本介绍面向对象数据库的书,对学习数据库的朋友们很有帮助。-This is an introduction of object-oriented database of books, to learning database helpful friends.
- 2022-11-03 17:05:04下载
- 积分:1
-
一个计算平均分数,应用好的算法,提供了运行速率
一个计算平均分数,应用好的算法,提供了运行速率-get the average of some numbers with a good algorithm
- 2023-03-03 09:25:03下载
- 积分:1
-
从键盘上输 入一串正整数, 最后输入-1作为输入结束的标志。以这些正整数的值作为二叉排序树中的结点的数据场之值,建立一棵二叉排序树要实现排序二叉树的插入。采取叶...
从键盘上输 入一串正整数, 最后输入-1作为输入结束的标志。以这些正整数的值作为二叉排序树中的结点的数据场之值,建立一棵二叉排序树要实现排序二叉树的插入。采取叶子插入法,即新插入的节点均为改二叉树的叶子节点,且满足中序有序性。-From the keyboard to enter a string of positive integers, the last input-1 as the input end of the sign. These are integer values as binary sort tree nodes in the data field" s value, and the establishment of a binary sort tree to achieve binary tree insertion sort. To leaf insertion method, that the new nodes are inserted to change the binary tree leaf node, and in order to meet the orderliness.
- 2022-05-16 12:06:25下载
- 积分:1