Does kruskal algorithm work with negative weights
Answers
Answered by
0
Yes,The concept of MST allows weights of an arbitrary sign. The two most popular algorithms for finding MST (Kruskal's and Prim's) work fine with negative edges. Actually, you can just add a big positive constant to all the edges of your graph, making all the edges positive.
Similar questions
English,
8 months ago
Biology,
8 months ago
Social Sciences,
8 months ago
Chemistry,
1 year ago
History,
1 year ago