Reputation: 8946
Assume we have a path in an undirected cyclic weighted graph. Assuming we have an engine that can find a path from node A to node B in such a graph, is there an easy way/algorithm to figure out if the given path from A to B is at least X% better than any other disjoint path from A to B? By disjoint I mean two paths may not share any edges.
Upvotes: 1
Views: 173
Reputation: 48398
The only way I see to do this is to remove the edges of the given path from the graph, find a minimum weight path from A to B in the smaller graph, and compare.
To solve this problem using this approach, try one of these well-studied algorithms:
Upvotes: 2