登录
首页 » C++ » 4.2

4.2

于 2016-04-06 发布 文件大小:16KB
0 126
下载积分: 1 下载次数: 30

代码说明:

   基于dijkstra和广度搜索的加权有向图有必经点的点对点的最短路径算法,路径必须经过要求的必经点,且不成环。 该算法采用了一种自适应调整的方法,经过多次迭代,使解收敛。 但只是寻找了一个略优的可行解(每次迭代都基于贪婪算法寻找),不能保证最优解。而且如果图过于稀疏,因为收敛速度过快,可能导致问题无解(收敛于一个局部最优解,没有经过所有点)。 解决相对稠密的图(每个点的平均出入度4以上),表现良好。 备注:里面有一个QT的工程,可以直接打开(源码里没用QT的库)(Weighted Dijkstra and breadth first search based on a shortest path algorithm must point to point to the map, the path must pass through points, and not a ring. This algorithm adopts an adaptive method to adjust, after several iterations, the convergence of solution. But only to find a slightly better feasible solution (each iteration is based on the greedy algorithm to find), can not guarantee the optimal solution. And if the graph is too sparse, because the convergence speed is too fast, it may lead to the problem of no solution (convergence to a local optimal solution, not after all points). To solve the relatively dense graphs (each entry point average above 4), good performance.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Blowfish加密
    应用背景对于一些数据库数据导出列表,以确保一些加密的数据,客户选择有河豚和MD5加密验证关键技术VB。NET,加密,MSSQL,StreamReader,将
    2022-05-29 12:47:43下载
    积分:1
  • TC
    说明:  数据结构算法实现C++ Builder上机验证实现(Data structure algorithms to achieve local authentication on C++ Builder)
    2013-05-23 22:01:10下载
    积分:1
  • oracle big blob of field examples of the type of operation
    oracle 的 blob大字段类型操作例子-oracle big blob of field examples of the type of operation
    2022-03-09 16:36:45下载
    积分:1
  • 用VC加ADO操作ACCESS库,很好的例子!采用文档视图界面,其中CListcTrl控件应用于的显示上,方法灵活恰当,很值得一看。...
    用VC加ADO操作ACCESS数据库,很好的例子!采用文档视图界面,其中CListcTrl控件应用于数据的显示上,方法灵活恰当,很值得一看。-increase ADO VC operation ACCESS database, a good example! Using documents View interface, which controls applied CListcTrl data showed that the methods appropriate, it is worth looking at.
    2023-03-12 13:15:03下载
    积分:1
  • MSSQL图书管理系统,源代码+库文件+说明文档+报告
    MSSQL图书管理系统,源代码+数据库文件+说明文档+报告-MSSQL library management system, database file+ source code+ documentation+ Report
    2022-03-04 15:58:23下载
    积分:1
  • 学校景点分布图最佳路径选择,通过最短路径选择让游者能够自由选择最佳观赏路径...
    学校景点分布图最佳路径选择,通过最短路径选择让游者能够自由选择最佳观赏路径-schools attractions distribution choose the best path through the shortest path chosen You can watch free to choose the best path
    2022-04-30 12:04:29下载
    积分:1
  • linked
    关于二叉树的一些相关代码,运用链表的形式,求二叉树的高度,结点个数以及叶节点个数(Some of the relevant code on the binary tree, using a linked list, find the height of a binary tree, the number of nodes, and the number of leaf nodes)
    2013-02-03 11:10:07下载
    积分:1
  • 一元多项式相加程序,用于完成一元多项式的相加
    一元多项式相加程序,用于完成一元多项式的相加-One of the polynomial sum of procedures used to complete the sum of the polynomial 1
    2022-01-26 05:40:56下载
    积分:1
  • 求解网络中的最短路径。假设某个计算机网络有n个站点,依次编号为1,2,…,n;有的站点之间有直接的线路连接(即这两个站点之间没有其它站点),有的站点之间没有直接...
    求解网络中的最短路径。假设某个计算机网络有n个站点,依次编号为1,2,…,n;有的站点之间有直接的线路连接(即这两个站点之间没有其它站点),有的站点之间没有直接的线路连接。如果用三元组(i,j,f)来表示该网络中的站点I和站点j之间有直接的线路连接且它们之间的距离为f 当已知该网络各站点之间的直接连接情况由m个三元组(i1,j1,f1),(i2,j2,f2),…,(im,jm,fm)确定时,要求计算出对于网络中任意一个站点g(1≤g≤n)到其余各站点的最短距离。-the shortest path. Assuming a computer network n site, followed by No. 1, 2, ..., n; Some sites have direct connections (that is, between two sites are no other site), and some sites have no direct connections. If three yuan (i, j, f) to the network said the site j site and I have direct connections between them but the distance of f the network known as the site of the direct link between the situation by 3 m (i1, j1, f1), ( i2, j2, f2), ..., (im, jm, fm) to determine, calculate requirements for a network site arbitrary g (1 g n) of the rest of the site is the shortest distance.
    2023-05-31 21:45:02下载
    积分:1
  • C++双向链表
    利用c++写的双向链表操作,有头插入,尾插入,中间寻找“朋友“的方式插入,适合简单数据结构分析
    2023-08-10 06:55:03下载
    积分:1
  • 696518资源总数
  • 105885会员总数
  • 31今日下载