-
closest point of the problem, realizing the partition method, random number gene...
最接近点对问题,分治法实现,随机生成N个数寻找最短路径的两个点-closest point of the problem, realizing the partition method, random number generation N to find the shortest path to the two points
- 2022-07-13 00:33:28下载
- 积分:1
-
数据结构实现图
数据结构里面实现图:拓扑排序、最小生成树、关键路径、深搜、广搜、优先路径
- 2022-01-26 01:48:55下载
- 积分:1
-
float型而二叉树的创建及遍历
#include
#include
struct BiTNode //定义二叉树结构体
{
float data;
struct BiTNode *lchild;
struct BiTNode *rchild;
};
//二叉树创建函数
struct BiTNode *CreateTree(float *preorder,float *inorder,int lenth)
{
float *p,*q;
- 2022-12-24 11:10:03下载
- 积分:1
-
calculated factorial majority, in a calculated within seconds above 10,000 integ...
计算大数阶乘,可以在1秒内计算出10000以上的整数阶乘-calculated factorial majority, in a calculated within seconds above 10,000 integer factorial
- 2022-08-12 20:59:11下载
- 积分:1
-
Order to map any of the distance between two nodes, (2) with two
求图的任两结点间的距离,(2) 用二维数组存放C和A ,C是原成本矩阵,A 是求出的距离矩阵
(3) 算法采用三重循环,其中最外层的循环变量必须代表中间结点,中层的循环变量代表头结点而内层循环变量代表尾结点。
(4) 试着把三层循环变量的顺序作些改变,最外层的循环变量仍代表中间结点,而中层循环变量代表尾结点,内层循环变量代表头结点。把两种做法所得结果作比较,看结果是否相同
(5) 显示结果要清晰易懂
(6) 本题运行结果
-Order to map any of the distance between two nodes, (2) with two-dimensional array of storage C, A, C is the original cost matrix, A is to find the distance matrix (3) The algorithm uses the triple loop, one of the most outer loop variable must be representative of intermediate nodes, the middle loop variable represents the first node and the inner loop variable represents the end nodes. (4) tried to three-loop order of the variables to make some changes, the most outer loop variables still represent intermediate nodes, while the middle loop variable represents the end nodes, the inner loop variable represents the first node. The two approaches to compare the results to see whether the results the same (5) shows the results must be clear and understandable (6) The q
- 2022-04-20 12:55:19下载
- 积分:1
-
objectlist, provides a full suite of Chain Functions
链表类,提供了全套的链表处理函数-objectlist, provides a full suite of Chain Functions
- 2022-03-26 18:14:41下载
- 积分:1
-
eXtremeDB与# 39;的示例代码,对你有用!!
extremeDB s sample code,useful for you-extremeDB"s sample code, useful for you! !
- 2022-11-07 18:50:04下载
- 积分:1
-
chain matrix multiplication to solve the problem through dynamic programming met...
求解矩阵链相乘的问题,通过动态规划的方法,来求解该问题,使得矩阵链的相乘的运算最少。-chain matrix multiplication to solve the problem through dynamic programming methods to solve the problem, making the chain matrix multiplication operator at least.
- 2022-03-14 04:42:57下载
- 积分:1
-
哈夫曼编码/译码 利用克鲁斯卡尔算法计算一段传输数据的哈夫曼编码,以提高信道利用率。...
哈夫曼编码/译码 利用克鲁斯卡尔算法计算一段传输数据的哈夫曼编码,以提高信道利用率。-Huffman encoding/decoding algorithm using Kruskal data section of the Huffman coding, in order to improve channel utilization.
- 2023-02-28 03:10:03下载
- 积分:1
-
双向约瑟夫问题,利用双向链表实现双向进行的约瑟夫问题
双向约瑟夫问题,利用双向链表实现双向进行的约瑟夫问题-Two-way Joseph problems, using two-way two-way linked to the issue of Joseph
- 2023-04-28 16:05:03下载
- 积分:1