-
contains common type of data structure and function
包含常见的数据结构的类和函数-contains common type of data structure and function
- 2022-07-04 09:29:52下载
- 积分:1
-
求两个字符串的最长公共子序列,使用递归算法实现。
求两个字符串的最长公共子序列,使用递归算法实现。-For two of the longest common sub-string sequences, using the recursive algorithm.
- 2022-09-05 10:30:02下载
- 积分:1
-
清华大学数据结构 严蔚敏 PPT+习题答案
清华大学数据结构 严蔚敏 PPT+习题答案-Tsinghua University, Yan Wei-min data structure PPT+ Exercises Answer
- 2022-03-20 23:22:42下载
- 积分:1
-
以一个Maze(m, n)的长方阵表示迷宫, 迷宫的入口是Maze(1,1), 出口是Maze(m, n), Maze(i,j)等于0表示通路, Maze(i,...
以一个Maze(m, n)的长方阵表示迷宫, 迷宫的入口是Maze(1,1), 出口是Maze(m, n), Maze(i,j)等于0表示通路, Maze(i,j)等于1表示障碍。设计一个程序,对任意设定的迷宫,求出一条从入口到出口的通路,或得出没有通路的结论。各个命令以及相关数据的输入格式如下:
输入迷宫:C,接下来一行是m n,其中m是迷宫矩阵行数,n是迷宫矩阵列数,接下来的m行数据是迷宫矩阵,每行n个值,表示一个m*n的迷宫矩阵
求迷宫的一条通路:Q
当输入的命令为E时,程序结束-With a Maze (m, n), said the long square maze, the maze entrance is a Maze (1,1), exports is the Maze (m, n), Maze (i, j) is equal to 0, said channel, Maze (i, j) is equal to 1, said barrier. Designing a program, for any set of the maze, find a path from the entrance to the export, or come to the conclusion there is no path. The various commands and data input format is as follows: Enter the Labyrinth: C, followed by his party mn, where m is the maze of matrix rows, n is a maze of matrix columns, the next line of data is a maze m matrix, each row n- value, indicating an m* n matrix of the labyrinth a maze of pathways: Q when the input command for the E, the end of the process
- 2023-04-15 19:50:03下载
- 积分:1
-
这是一本书<<VC数据库开发技术与工程实践>>中的部分代码,供学习者学习中使用...
这是一本书中的部分代码,供学习者学习中使用-This a book lt; Lt; VC database development technology and engineering practice gt; Gt; Part of the code for the use of Learners! !
- 2022-03-15 14:19:22下载
- 积分:1
-
带电作业的警示标签
Caution tagging for live line works
- 2022-03-07 21:57:51下载
- 积分:1
-
Minimum spanning tree, my own little program, very good, and would like to share...
最小生成树,我自己做的小程序,很好用,希望和大家分享-Minimum spanning tree, my own little program, very good, and would like to share with
- 2022-08-07 14:03:44下载
- 积分:1
-
prime Central, a program to run automatically generated within a certain range o...
质数环,运行程序自动生成一定范围内的质数环,即相邻俩数之和为质数-prime Central, a program to run automatically generated within a certain range of standard ring, the two neighboring few and as a prime number
- 2023-05-25 00:25:02下载
- 积分:1
-
二叉树排序代码,动态生成二叉树,进行动态查找
二叉树排序代码,动态生成二叉树,进行动态查找-Binary tree sort code, dynamically generated binary tree, dynamic search
- 2022-01-25 16:15:25下载
- 积分:1
-
哈夫曼树算法
根据给定的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