Find 2 shortest paths between 2 vertices

Правка en1, от 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.

Теги dijkstra, graph, shortest path

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский TheRenaissance 2015-06-15 05:17:16 381 Initial revision (published)