Dijikstra !!

Правка en4, от noobied, 2018-06-20 17:02:15

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 queue 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

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский noobied 2018-06-20 17:02:15 2 Tiny change: 'iority que which g' -> 'iority queue which g'
en3 Английский noobied 2018-06-20 16:58:10 916
en2 Английский noobied 2018-06-20 16:57:48 7 Tiny change: '="CODE">\n...\n#include' -> '="CODE">\n#include'
en1 Английский noobied 2018-06-20 16:56:59 1281 Initial revision (published)