-
哈夫曼树算法
根据给定的n个权值{w1,w2,……wn},构造n棵只有根结点的二叉树,令起权值为wj
在森林中选取两棵根结点权值最小的树作左右子树,构造...
哈夫曼树算法
根据给定的n个权值{w1,w2,……wn},构造n棵只有根结点的二叉树,令起权值为wj
在森林中选取两棵根结点权值最小的树作左右子树,构造一棵新的二叉树,置新二叉树根结点权值为其左右子树根结点权值之和
在森林中删除这两棵树,同时将新得到的二叉树加入森林中
重复上述两步,直到只含一棵树为止,这棵树即哈夫曼树
-Huffman tree algorithm based on a given n-weights (w1, w2, ... ... wn), construct n trees only a root node of the tree, so that from the right value of wj in the forest root node to select two the right tree for the value of the smallest subtree around, a new binary tree structure, the right to buy a new tree root node value of its subtree root node around the right value in the forest and delete these two trees, At the same time, the new binary tree obtained by adding the forest to repeat the above two steps until a tree containing only the date, that is, Huffman tree tree
- 2023-05-05 13:05:03下载
- 积分:1
-
c语言经典代码,包括:打印图案
,大小写字母的互换
整数因子
/*请编写一程序完成下面的功能:从键盘上任意上任意输入一个大于0且小于1000的整数,...
c语言经典代码,包括:打印图案
,大小写字母的互换
整数因子
/*请编写一程序完成下面的功能:从键盘上任意上任意输入一个大于0且小于1000的整数,然后输出此整数的所有整数因子。如输入12,则输入1,2,3,4,6,12。*/
插入后自动排序
/*原题:把一个整数插入到按由小到大排列的数列中,插入后仍然保持由小到大的顺序排列*/
/*指针,穷举法进行比较交换*/
求数列
/*原题:已知一正整数递增等差数列,前5项之和为25,前5项之积为945,根据以上条件,请编写一个程序,输出该数列的前十项。*/
-c语言经典代码,包括:打印图案
,大小写字母的互换
- 2022-07-18 12:52:57下载
- 积分:1
-
vb6 访问access技术
适合初学者调试学习
vb6 访问access技术
适合初学者调试学习-VB6 visit debug access technique is suitable for beginners to learn
- 2022-02-22 02:46:27下载
- 积分:1
-
反正切函数C实现,一个简单的C语言函数的实现,以及两个math的头文件...
反正切函数C实现,一个简单的C语言函数的实现,以及两个math的头文件-Arc tangent function C implementation, a simple implementation of C-language function, and two math header file
- 2022-01-25 13:45:48下载
- 积分:1
-
我写的数据结构小程序是关于排序算法的,功能比较全
我写的数据结构小程序是关于排序算法的,功能比较全-I write the data structure of small programs algorithm, the entire comparison function
- 2023-03-30 03:10:04下载
- 积分:1
-
c++链表模板类,实现所有链表的功能!
c++链表模板类,实现所有链表的功能!包括增删改查,反转、递归反转等功能。对数据结构初学者有极高的参考价值。且代码规范,命名规范,有很多注释帮助理解。
- 2022-08-16 10:11:43下载
- 积分:1
-
案例一 贪吃蛇游戏
案例二 计算器
案例三 黑白棋游戏
案例四 迷宫问题
案例五 扫地雷游戏
案例六 速算24
案例七 数据结构CAI系...
案例一 贪吃蛇游戏
案例二 计算器
案例三 黑白棋游戏
案例四 迷宫问题
案例五 扫地雷游戏
案例六 速算24
案例七 数据结构CAI系统
案例八 进程调度
案例九 存储管理分区分配算法
案例十 通讯录
案例十一 学生成绩管理
案例十二 工资管理
案例十三 图书借阅管理
案例十四 教师工作量计算
-case a huge memory game two cases calculators Case 3 Case 4 game reversi maze problem cases five outbound mine sweeping Case 6 game speed count 24 cases seven CAI system data structure eight cases process scheduling nine cases storage management district allocation algorithm 10 cases of 11 cases of student directories performance management salaries 12 cases 13 cases of books to borrow 14 teachers Case Workload Calculation
- 2022-02-27 08:34:35下载
- 积分:1
-
Some simple small programs, such as Havermann editor, minimum spanning tree, has...
一些简单的小程序,如哈弗曼编辑器,最小生成树,哈希表的设计与实现-Some simple small programs, such as Havermann editor, minimum spanning tree, hash table design and implementation, etc.
- 2023-02-07 13:25:03下载
- 积分:1
-
这是我上学期的课程操作系统的设计和一个多
这是我上个学期操作系统的课程设计,做了一个多级文件系统,用文件模拟磁盘,基于i节点结构,功能超强,希望对大家有用。-This is my last semester of courses operating system design and a multi-level file system, disk using simulated document, based on i node structure, function superpower, we hope that the right useful.
- 2022-02-13 06:28:16下载
- 积分:1
-
个人所得简税计算与作表软件,适合一月多发情况
个人所得简税计算与作表软件,适合一月多发情况-Brief personal income tax calculation for the table with the software, for January-prone situations
- 2022-01-26 05:44:38下载
- 积分:1