Reputation: 149
What is the difference between an elementary shortest path problem and shortest path problem?
A shortest path problem, is solved by finding the shortest path from a source node s to a target node t in a graph.
A simple shortest path problem, is solved by finding the shortest path from a source node s to a target node t in a graph, such that each arc in the shortest path is used at most 1 time.
What is an elementary shortest path?
Upvotes: 1
Views: 963
Reputation: 372814
The term "elementary shortest path" means "a shortest path that doesn't repeat any nodes or edges." If you're looking to compute the shortest path from one node to another in a graph with no negative cycles, then there's no difference between "shortest path" and "elementary shortest path," since they mean the same thing. However, "shortest path" in other contexts might not be the same as "elementary shortest path." For example:
Hope this helps!
Upvotes: 2