Find 2 shortest paths between 2 vertices

Revision en1, by TheRenaissance, 2015-06-15 05:17:16

You are given a undirected weighted graph with at most 50000 vertices, 100000 edges and 2 vertices A and B. You have to find 2 paths from A to B that no edge is used twice (but they can have common vertices), and the sum of the length of these 2 paths is minimal.

I'm currently stuck on this problem. Can anyone give me a hint? Thank you.

Tags dijkstra, graph, shortest path

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English TheRenaissance 2015-06-15 05:17:16 381 Initial revision (published)