32

Can any one tell me the difference between Dijkstra's and Prim's algorithms? I know what each of the algorithms do. But they look the same to me. Dijkstra's algorithm stores a summation of minimum cost edges whereas Prim's algorithm stores at most one minimum cost edge. Isn't this the same?

eh9
  • 7,340
  • 20
  • 43
Pradit
  • 709
  • 5
  • 12
  • 27

0 Answers0