Closed Claudia4 closed 6 years ago
Prim is easier to implement using UnionFind. One can enforce edges by setting the costs to zero and forbid edges by setting the costs to infinity.
sorry I meant Kruskal
Had to change to Prim because of runtime...
Will we use Kruskal's or Prim's algorithm?
pro Kruskal: required edges can be used as basis for tree con Kruskal: I'm not sure about runtime
pro Prim: runtime seems better con Prim: how to enforce required edges?