登录
首页 » C++ » 4.2

4.2

于 2016-04-06 发布 文件大小:16KB
0 115
下载积分: 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 个回复

  • 几个C的小程序,有汉诺塔,环打印,链表的创建并自动排序...
    几个C的小程序,有汉诺塔,数环打印,链表的创建并自动排序 -several small programs, Tower of Hanoi, several Central Print, Chain automatically create and order
    2022-02-22 09:52:33下载
    积分:1
  • point_to_line
    计算点到直线的距离.输入两点坐标确定一个直线,再输入一个点的坐标,计算该点到直线的距离.(Calculated point to the straight line distance. Enter the coordinates of two points determine a straight line, and then input the coordinates of a point, to calculate the straight-line distance between points.)
    2020-11-30 15:09:27下载
    积分:1
  • 编程 实现的插入
    数据结构编程 实现数的插入-data structure programming several of the insert, etc.
    2022-12-21 23:25:03下载
    积分:1
  • struts 登陆的小例子,包括密码验证,业务逻辑,Token解决重复递交...
    struts 登陆的小例子,包括密码验证,业务逻辑,Token解决重复递交
    2022-03-02 23:23:56下载
    积分:1
  • b
    说明:  定义一个类SortArray继承自MyArray,在该类中定义函数sort实现排序功能。 定义一个类ReArray继承自MyArray,在该类中定义函数reverse实现逆转功能。 定义一个类AverArray继承自MyArray,在该类中定义函数Aver实现求解整数的平均值。 定义NewArray类,同时继承了SortArray、ReArray和AverArray,使得NewArray类的对象同时具有排序、逆转和求平均值的功能。在继承的过程中声明为虚基类,体会虚基类在解决二义性问题中的作用。 (Define a class SortArray inherited from MyArray, defined in the class sorting function sort implementation. Define a class ReArray inherited from MyArray, define the function in reverse to achieve such reversal function. Define a class AverArray inherited from MyArray, defined in the class to solve integer function Aver achieve the average. Defined NewArray class, and inherits SortArray, ReArray and AverArray, making the object of both NewArray class sorting, reversing, and the mean value of the function. In the process of succession declared as virtual base classes, virtual base class experience in resolving ambiguities of the role.)
    2010-06-02 02:13:03下载
    积分:1
  • 产品工序调度仿真
    mfc动态演示,基于贪婪法的拓扑排序。
    2022-08-07 10:39:11下载
    积分:1
  • matlab 三种聚类算法合集(机器学习)
    机器学习的基础在于分类与聚类,此处分享三种聚类算法,matlab平台
    2023-02-25 06:15:03下载
    积分:1
  • 火车售票系统
    说明:  c语言火车票售卖系统项目,利用了数据结构中的知识,有兴趣的可以看一下(C language train ticket selling system)
    2020-06-21 17:40:01下载
    积分:1
  • 循环队列的实现
    实现循环扩容队列
    2022-03-03 18:28:19下载
    积分:1
  • The use of linked list data structure algorithms, will be made up of expressions...
    使用链表数据结构算法,将中缀表达式转变为后缀表达式。-The use of linked list data structure algorithms, will be made up of expressions into expressions suffix.
    2023-07-04 05:55:02下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载