Dijikstra !!

Revision en3, by noobied, 2018-06-20 16:58:10

How this Solution works even if in priority queue the values stored are not weights.I think for Dijikstra to work we should maintain a priority que which give the node whose distance is shortest from the source but in this implementation the priority queue gives the smallest node number

LINK:http://mirror.codeforces.com/contest/20/submission/30960352

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English noobied 2018-06-20 17:02:15 2 Tiny change: 'iority que which g' -> 'iority queue which g'
en3 English noobied 2018-06-20 16:58:10 916
en2 English noobied 2018-06-20 16:57:48 7 Tiny change: '="CODE">\n...\n#include' -> '="CODE">\n#include'
en1 English noobied 2018-06-20 16:56:59 1281 Initial revision (published)