title: Difference between Prim's and Dijkstra's algorithms?
body: <p>What  is the exact difference between Dijkstra's and Prim's algorithms? I know Prim's will give a MST but the tree generated by Dijkstra will also be a MST. Then what is the exact difference?</p>