【发布时间】:2015-02-19 07:32:45
【问题描述】:
我有一个有向加权图G = <V, E>。我需要在O((V + E)*logV) 中找到s 和t 之间的最短路径。如果我有一个经典的路径度量权重,这将是一项非常简单的任务。但事实并非如此。
Weight of path = two heaviest edges in this path。
因此,经典的Dijkstra's algorithm with modified binary heap 不起作用。我认为,我必须修改这个算法。我正在尝试这样做,但没有成功。
Example.
3 和 5 之间的路径权重 = 4 + 2 = 6
3 和 7 之间的路径权重 = 4 + 4 = 8
【问题讨论】:
标签: algorithm graph computer-science graph-algorithm shortest-path