-
设有n个人围做一圈,现从某个人开始报数,数到m的人出列,接着从出列的下一个人开始重新报数,数到m的人又出列,如此下去,直到所有人都出列为止。运用循环单链表解决约...
设有n个人围做一圈,现从某个人开始报数,数到m的人出列,接着从出列的下一个人开始重新报数,数到m的人又出列,如此下去,直到所有人都出列为止。运用循环单链表解决约瑟夫环问题。- Is equipped with n personally to encircle makes, presently
starts from some person to count off, leaves ranks the number to the m
person, meets from the next person which leaves ranks is starting reto
count off, leaves ranks the number to the m person, continue like
this, all leaves ranks until all people. Using circulates Shan
Lianbiao to solve the Joseph link problem.
- 2022-02-26 00:46:58下载
- 积分:1
-
使用查找联盟的 Kruskal 的算法
Kruskal 的算法是一种贪婪算法中查找最小生成树的一个连通的加权图的图论。
这意味着它发现形成一棵树,其中包含每个顶点的边子集那里所有的总重量
在树中的边最小化。如果未连接关系图,然后它找到的最小生成森林 (最低跨越
树的每个连接的组件)。
联盟-查找算法是一种算法,这种数据结构上两个有用的运算:
查找: 确定特定元素是在哪个子集。这可用于确定如果两个元素在同一
子集。
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-06-12 22:02:00下载
- 积分:1
-
计算PI(圆周率)的程序,可以计算2的N次幂的精确度
计算PI(圆周率)的程序,可以计算2的N次幂的精确度- Calculates PI (girth quotient) the procedure, may calculate 2 N
power the precision
- 2022-02-02 00:13:52下载
- 积分:1
-
用C++实现的遗传算法程序,简单易懂,拥有遗传算法的一些经典方法...
用C++实现的遗传算法程序,简单易懂,拥有遗传算法的一些经典方法-Implemented using C++ genetic algorithm program, easy to understand, with some of the classical method of genetic algorithms
- 2023-09-04 01:15:03下载
- 积分:1
-
归并排序算法的C++
该代码读取输入文本文件并将其排序,然后将这些数字排序为输出文本文件。代码使用合并排序算法进行排序。
- 2022-08-13 23:57:35下载
- 积分:1
-
离散傅立叶变换在视觉基本经典中的实现。
A implementation of the discrete Fourier transform in visual basic classic.
- 2022-01-27 16:59:12下载
- 积分:1
-
SHOOTING METHOD SOLUTION
SHOOTING METHOD SOLUTION
- 2022-09-15 21:15:03下载
- 积分:1
-
缓存:你会得到一个字符,你应该模拟计算机的M。
cache: you will be given a char at will and you should simulate the computer s memory and cache .-cache : you will be given a char at will and you should sim ulate the computer"s memory and cache.
- 2022-06-13 23:50:06下载
- 积分:1
-
迷宫寻路 A*算法
A*算法实现迷宫寻路功能,用启发式函数的编写以及各类启发式函数效果的比较。
- 2022-03-20 20:51:41下载
- 积分:1
-
二叉树的C语言实现
二叉树是每个结点最多有两个子树的有序树。二叉树常被用于实现二叉查找树和二叉堆。该代码对二叉树进行了C语言实现,实现平台为VC6.0。
- 2023-05-27 07:50:04下载
- 积分:1