登录
首页 » C++ » 4.2

4.2

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

  • 1
    说明:  顺序表的基本操作:1. 编写函数,输入一组整型元素序列,建立一个顺序表。 2. 编写函数,实现对该顺序表的遍历。 3. 编写函数,在顺序表中进行顺序查找某一元素,查找成功则返回其存储位置i,否则返回错误信息。 4. 编写函数,实现在顺序表的第i个位置上插入一个元素x的算法。 5. 编写函数,实现删除顺序表中第i个元素的算法。 6. 编写利用有序表插入算法建立一个有序表的函数。 7. 编写函数,利用以上算法,建立两个非递减有序表,并把它们合并成一个非递减有序表。 8. 编写函数,实现输入一个元素x,把它插入到有序表中,使顺序表依然有序。 9. 编写一个主函数,在主函数中设计一个简单的菜单,分别调试上述算法。 (The basic operation of the order form)
    2010-06-15 18:15:32下载
    积分:1
  • 文件读取解析插入ORACLE
    选择AL2格式文件,修改代码可以插入txt文件等等,解析文件赋值实体,格式固定,转而插入ORACLE数据库记录
    2022-02-28 16:32:04下载
    积分:1
  • pigeSort.tar
    通过鸽巢排序实现对于数字在10000以内的排列。(For the realization of the arrangement within the digital pigeonhole sort through 10,000.)
    2016-03-17 17:23:30下载
    积分:1
  • 与算法
    数据结构与算法-程序、素材---使用矩阵类-Data Structures and Algorithms- procedures, materials--- the use of matrices
    2022-05-24 05:17:33下载
    积分:1
  • 北大ACM1003(Hangover)
    北大ACM1003(Hangover)-North ACM1003 (Hangover)
    2022-02-03 12:26:03下载
    积分:1
  • 二叉树是的重中之重,进一步认识二叉树的查询技巧...
    二叉树是数据结构的重中之重,进一步认识二叉树的查询技巧-Binary tree data structure is the most important, a better understanding of tree query skills
    2022-04-02 06:23:35下载
    积分:1
  • StackandQueue
    该ppt包含了栈和队列的数据结构及基本操作,同时还有栈的举例(This ppt contains the stack and queue data structure and basic operation, as well as examples of the stack)
    2013-12-06 21:02:24下载
    积分:1
  • 哈夫曼树编码
    资源描述将字符串转化为哈夫曼编码,也能将哈夫曼编码转化为字符
    2022-11-26 08:10:13下载
    积分:1
  • 赫夫曼编码程序,配套于教学书(南航)
    赫夫曼编码程序,配套于数据结构教学书(南航)-Huffman coding procedures, data structures in supporting the teaching book (Southern)
    2023-06-23 06:40:04下载
    积分:1
  • Visual C#库开发中 简单论坛的开发sql2000
    Visual C#数据库开发中 简单论坛的开发sql2000数据库-Visual C# Database development in a simple forum for the development of SQL2000 database
    2022-04-11 21:55:11下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载