-
Shortest Path
资源描述Write a program to find the weighted shortest distances from any vertex to a given source vertex in a digraph. If there is more than one minimum path from v to w, a path with the fewest number of edges is chosen. It is guaranteed that all the weights are positive and such a path is unique for any vertex.
- 2022-08-26 06:49:00下载
- 积分:1
-
自己写的贪吃蛇的c语言代码
应用背景有趣的贪吃蛇代码,用c语言实现,简单易懂,不会很复杂。虽然网上已经有很多类似的游戏代码,但这是我亲自写,亲自测试的,一定能用。相信你会从中找到乐趣。关键技术简单的图形实现,关键的贪吃蛇算法,不是很难的,就是最基本的,有一点c基础的应该都能理解,也没有什么关键的技术与算法。
- 2023-01-17 17:30:03下载
- 积分:1
-
K-Means算法 mapreduce
public class KmeansMapper extends MapReduceBase implements
Mapper {
// one coodinate(data)
private List coordinate = new ArrayList();
private BasicKMeansTool basicKmeans = new BasicKMeansTool();
public void map(LongWritable key, Text value,
OutputCollector midoutput,
Reporter arg3) throws IOException {
// TODO Auto-generated method stub
String line = value.toString();
String[] dataList = line.split(",");
List distances = null;
StringTokenizer itr;
for (int i = 0; i < dataList.length; i++) {
itr = new StringTokenizer(dataList[i]);
&nbs
- 2023-02-01 17:45:04下载
- 积分:1
-
Pt100计算工具
Pt100传感器计算工具,输入温度值,如100℃,则能计算出相应的Pt100阻值。
- 2022-09-07 14:20:03下载
- 积分:1
-
X射线扫描仪图像拼接算法实例
本编程实例实现了将多幅相同大小(16x16)有重叠的图像,通过拼接获得目标图像(890x16)的算法,并通过图像显示了最终的数据处理结果。其中包括简单的坏点校正,空气校正,增益校正,图像平滑处理。该程序运行环境为qt4.8+vs2010,并带有一组验证数据,可以直接运行程序并显示运行结果。扫描目标为圆柱形容器中装有水和一根焊锡丝。若要看到输出结果请修改程序中的数据文件目录至目标文件路径,否则程序会出错
- 2022-03-11 10:48:44下载
- 积分:1
-
清华大学2002年出版的《科学与工程数值计算算法VC++》配套源码,包括复数计算、矩阵运算、插值计算、线性非线性方程组求解、数值积分、数值拟和与逼近等算法和类,...
清华大学2002年出版的《科学与工程数值计算算法VC++》配套源码,包括复数计算、矩阵运算、插值计算、线性非线性方程组求解、数值积分、数值拟和与逼近等算法和类,对于科学和工程数值计算很有参考价值!-Qinghua University, in 2002 published "Science and engineering numerical algorithm VC++" complementary source, includes the plural, matrix computation, interpolation, linear solve nonlinear equations, numerical integration, and the proposed numerical approximation algorithms and other categories, science and engineering numerical computation of great reference value!
- 2022-01-25 16:31:39下载
- 积分:1
-
杜利特分解中选定的主要元素的数值分析…
数值分析中的Doolittle选主元素分解法解方程组。-Numerical analysis of selected major elements in the Doolittle decomposition method solution of equations.
- 2022-03-16 16:44:30下载
- 积分:1
-
es 联合国 buen producto se trata de la conexion del arduino con el 软件 labview
Es 联合国帕斯方案十分构成 se trata de la conexion del arduino con el 软件 labview 德调查 es 联合国 sub VI de labview
- 2022-02-04 06:52:01下载
- 积分:1
-
判断点是否处于多边形内的最佳方法(适用于任意多边形包括凹凸边形)
本例子在VC6.0上编写了判断点是否处于多边形内的最佳方法,它和一般的叉乘判别法,角度判别法,面积判别法不同,它适用于任意多边形(包括凹凸边形)。它的基本思想就是:假设需要判定的点P,通过点P水平向左做射线,如果P在多边形内部,那么这条射线与多边形的交点必为奇数,反之,交点个数为偶数。所以,我们可以顺序考虑多边形的每条边,求出交点的总个数。当然,存在一些特殊情况,例如射线刚好和多边形端点相交。对于一些特殊情况,算法也有所考虑,并一一解决。具体见算法里的注释即可。
- 2022-01-31 11:10:31下载
- 积分:1
-
路径优化
资源描述
在点数比较小的时候如何使用动态规划来提高运行效率。
在点数比较小的时候如何使用动态规划来提高运行效率。
在点数比较小的时候如何使用动态规划来提高运行效率。
在点数比较小的时候如何使用动态规划来提高运行效率。
在点数比较小的时候如何使用动态规划来提高运行效率。
在点数比较小的时候如何使用动态规划来提高运行效率。
- 2022-04-25 02:37:49下载
- 积分:1