Dijkstra Algorithm
Explanation Video It works on both directed or non directed graph. Works only for +ve values of edge. This algorithm may or may not work when edges have -ve values. For example it fails in below case.
I am using other blog's content also to make my post. Purpose of this blog is to my own self study and not to claim any content in my blog...