Codechef GRTRIP

Revision en1, by _nathan_drake_, 2018-09-14 07:11:06

Can anyone provide a better editorial for this question . https://www.codechef.com/LTIME01/problems/GRTRIP

I have been trying to understand it for a week now, but I fail to understand how shortest path tree is being constructed and how it is compared with the dfs done by chef in his own algorithm.

Please help

Tags dfs and similar, #graphs, all-shortest-path, djikstra

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English _nathan_drake_ 2018-09-14 07:11:06 331 Initial revision (published)