为了避免最坏情况的出现,在正权图上应使用效率更高的Dijkstra算法。若给定的图存在负权边,类似Dijkstra算法等算法便没有了用武之地的英语翻译

为了避免最坏情况的出现,在正权图上应使用效率更高的Dijkstra算法

为了避免最坏情况的出现,在正权图上应使用效率更高的Dijkstra算法。若给定的图存在负权边,类似Dijkstra算法等算法便没有了用武之地,SPFA算法便派上用场了。简而言之,当加权有向图D不存在负权回路时,最短路径一定存在。用数组d记录每个结点的最短路径估计值,并用邻接表来存储图D。我们采取的方法是动态逼近法:设立一个先进先出的队列用来保存待优化的结点,优化时每次取出队首结点u,并且用u点当前的最短路径估计值对离开u点所指向的结点v进行松弛操作,如果v点的最短路径估计值有所调整,且v点不在当前的队列中,就将v点放入队尾。这样不断从队列中取出结点来进行松弛操作,直至队列空为止。
0/5000
源语言: -
目标语言: -
结果 (英语) 1: [复制]
复制成功!
In order to avoid the worst case, the more efficient Dijkstra algorithm should be used on the positive weight graph. If a given graph has negative weight edges, algorithms like Dijkstra's algorithm will be useless, and the SPFA algorithm will come in handy. In short, when there is no negative weight loop in the weighted directed graph D, the shortest path must exist. Use array d to record the shortest path estimate for each node, and use adjacency table to store graph D. The method we adopt is the dynamic approximation method: set up a first-in first-out queue to save the node to be optimized, and take out the first node u of the team every time during optimization, and use the current shortest path estimation value of u to leave u The pointed node v performs a relaxation operation. If the estimated shortest path of point v is adjusted, and point v is not in the current queue, point v is put at the end of the queue. In this way, nodes are continuously taken out of the queue to perform slack operations until the queue is empty.
正在翻译中..
结果 (英语) 2:[复制]
复制成功!
To avoid the worst-case scenario, the more efficient Dijkstra algorithm should be used on the positive power map. If a given graph has a negative edge, algorithms such as The Dijkstra algorithm will be useless, and the SPFA algorithm will come in handy. In short, the shortest path must exist when the weighted directional graph D does not have a negative loop. Record the shortest path estimate for each node with array d, and store Figure D with an adjacent table. We take the method of dynamic approximation: set up a first-in-first-out queue to save the node to be optimized, optimize each time to take out the team head node u, and use the current shortest path estimate of u point to leave the u point point point v to relax the operation, if the shortest path estimate of the v point has been adjusted, and v point is not in the current queue, the v point will be placed in the end of the team. This keeps taking nodes out of the queue for relaxation until the queue is empty.
正在翻译中..
结果 (英语) 3:[复制]
复制成功!
In order to avoid the worst case, Dijkstra algorithm with higher efficiency should be used in the positive weight graph. If a given graph has negative weight edges, algorithms such as Dijkstra algorithm will not be used, and SPFA algorithm will be used. In short, when the weighted digraph D does not have a negative weighted loop, the shortest path must exist. Array D is used to record the shortest path estimation of each node, and adjacency table is used to store graph D. The method we adopt is dynamic approach: set up a first in first out queue to save the nodes to be optimized, take out the first node U of the queue every time during optimization, and use the current shortest path estimation value of u point to relax the node V that points away from u point. If the shortest path estimation value of V point is adjusted and V point is not in the current queue, put V point into the end of the queue. In this way, nodes are taken out of the queue to relax until the queue is empty.
正在翻译中..
 
其它语言
本翻译工具支持: 世界语, 丹麦语, 乌克兰语, 乌兹别克语, 乌尔都语, 亚美尼亚语, 伊博语, 俄语, 保加利亚语, 信德语, 修纳语, 僧伽罗语, 克林贡语, 克罗地亚语, 冰岛语, 加利西亚语, 加泰罗尼亚语, 匈牙利语, 南非祖鲁语, 南非科萨语, 卡纳达语, 卢旺达语, 卢森堡语, 印地语, 印尼巽他语, 印尼爪哇语, 印尼语, 古吉拉特语, 吉尔吉斯语, 哈萨克语, 土库曼语, 土耳其语, 塔吉克语, 塞尔维亚语, 塞索托语, 夏威夷语, 奥利亚语, 威尔士语, 孟加拉语, 宿务语, 尼泊尔语, 巴斯克语, 布尔语(南非荷兰语), 希伯来语, 希腊语, 库尔德语, 弗里西语, 德语, 意大利语, 意第绪语, 拉丁语, 拉脱维亚语, 挪威语, 捷克语, 斯洛伐克语, 斯洛文尼亚语, 斯瓦希里语, 旁遮普语, 日语, 普什图语, 格鲁吉亚语, 毛利语, 法语, 波兰语, 波斯尼亚语, 波斯语, 泰卢固语, 泰米尔语, 泰语, 海地克里奥尔语, 爱尔兰语, 爱沙尼亚语, 瑞典语, 白俄罗斯语, 科西嘉语, 立陶宛语, 简体中文, 索马里语, 繁体中文, 约鲁巴语, 维吾尔语, 缅甸语, 罗马尼亚语, 老挝语, 自动识别, 芬兰语, 苏格兰盖尔语, 苗语, 英语, 荷兰语, 菲律宾语, 萨摩亚语, 葡萄牙语, 蒙古语, 西班牙语, 豪萨语, 越南语, 阿塞拜疆语, 阿姆哈拉语, 阿尔巴尼亚语, 阿拉伯语, 鞑靼语, 韩语, 马其顿语, 马尔加什语, 马拉地语, 马拉雅拉姆语, 马来语, 马耳他语, 高棉语, 齐切瓦语, 等语言的翻译.

Copyright ©2024 I Love Translation. All reserved.

E-mail: